More Info
Private Name Tags
ContractCreator
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
ERC20Handler
Compiler Version
v0.6.4+commit.1dca32f3
Contract Source Code (Solidity)
/** *Submitted for verification at moonriver.moonscan.io on 2021-12-10 */ // File: contracts/interfaces/IDepositExecute.sol pragma solidity 0.6.4; /** @title Interface for handler contracts that support deposits and deposit executions. @author ChainSafe Systems. */ interface IDepositExecute { /** @notice It is intended that deposit are made using the Bridge contract. @param destinationChainID Chain ID deposit is expected to be bridged to. @param depositNonce This value is generated as an ID by the Bridge contract. @param depositer Address of account making the deposit in the Bridge contract. @param data Consists of additional data needed for a specific deposit. */ function deposit(bytes32 resourceID, uint8 destinationChainID, uint64 depositNonce, address depositer, bytes calldata data) external; /** @notice It is intended that proposals are executed by the Bridge contract. @param data Consists of additional data needed for a specific deposit execution. */ function executeProposal(bytes32 resourceID, bytes calldata data) external; } // File: contracts/interfaces/IERC20Handler.sol pragma solidity 0.6.4; interface IERC20Handler { function setFeePercent(uint256 feePercent) external; function setFeePercentTreasury(address newTreasury) external; } // File: contracts/interfaces/IERCHandler.sol pragma solidity 0.6.4; /** @title Interface to be used with handlers that support ERC20s and ERC721s. @author ChainSafe Systems. */ interface IERCHandler { /** @notice Correlates {resourceID} with {contractAddress}. @param resourceID ResourceID to be used when making deposits. @param contractAddress Address of contract to be called when a deposit is made and a deposited is executed. */ function setResource(bytes32 resourceID, address contractAddress) external; /** @notice Marks {contractAddress} as mintable/burnable. @param contractAddress Address of contract to be used when making or executing deposits. @param burnable Does the token need to be burnable */ function setBurnable(address contractAddress, bool burnable) external; /** @notice Used to manually release funds from ERC safes. @param tokenAddress Address of token contract to release. @param recipient Address to release tokens to. @param amountOrTokenID Either the amount of ERC20 tokens or the ERC721 token ID to release. */ function withdraw(address tokenAddress, address recipient, uint256 amountOrTokenID) external; } // File: contracts/handlers/HandlerHelpers.sol pragma solidity 0.6.4; /** @title Function used across handler contracts. @author ChainSafe Systems. @notice This contract is intended to be used with the Bridge contract. */ contract HandlerHelpers is IERCHandler { address public _bridgeAddress; // resourceID => token contract address mapping (bytes32 => address) public _resourceIDToTokenContractAddress; // token contract address => resourceID mapping (address => bytes32) public _tokenContractAddressToResourceID; // token contract address => is whitelisted mapping (address => bool) public _contractWhitelist; // token contract address => is burnable mapping (address => bool) public _burnList; modifier onlyBridge() { _onlyBridge(); _; } function _onlyBridge() private view { require(msg.sender == _bridgeAddress, "sender must be bridge contract"); } /** @notice First verifies {_resourceIDToContractAddress}[{resourceID}] and {_contractAddressToResourceID}[{contractAddress}] are not already set, then sets {_resourceIDToContractAddress} with {contractAddress}, {_contractAddressToResourceID} with {resourceID}, and {_contractWhitelist} to true for {contractAddress}. @param resourceID ResourceID to be used when making deposits. @param contractAddress Address of contract to be called when a deposit is made and a deposited is executed. */ function setResource(bytes32 resourceID, address contractAddress) external override onlyBridge { _setResource(resourceID, contractAddress); } /** @notice First verifies {contractAddress} is whitelisted, then sets {_burnList}[{contractAddress}] to `burnable`. @param contractAddress Address of contract to be used when making or executing deposits. @param burnable Does the token need to be burnable */ function setBurnable(address contractAddress, bool burnable) external override onlyBridge{ _setBurnable(contractAddress, burnable); } /** @notice Used to manually release funds from ERC safes. @param tokenAddress Address of token contract to release. @param recipient Address to release tokens to. @param amountOrTokenID Either the amount of ERC20 tokens or the ERC721 token ID to release. */ function withdraw(address tokenAddress, address recipient, uint256 amountOrTokenID) external virtual override {} function _setResource(bytes32 resourceID, address contractAddress) internal { _resourceIDToTokenContractAddress[resourceID] = contractAddress; _tokenContractAddressToResourceID[contractAddress] = resourceID; _contractWhitelist[contractAddress] = true; } function _setBurnable(address contractAddress, bool burnable) internal { require(_contractWhitelist[contractAddress], "provided contract is not whitelisted"); _burnList[contractAddress] = burnable; } } // File: contracts/ERC20PresetMinterPauser.sol // File: @openzeppelin/contracts/utils/EnumerableSet.sol pragma solidity ^0.6.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.0.0, only sets of type `address` (`AddressSet`) and `uint256` * (`UintSet`) are supported. */ 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; // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. 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] = toDeleteIndex + 1; // All indexes are 1-based // 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) { require(set._values.length > index, "EnumerableSet: index out of bounds"); return set._values[index]; } // 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(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(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(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(uint256(_at(set._inner, index))); } // 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)); } } // File: @openzeppelin/contracts/utils/Address.sol pragma solidity ^0.6.2; /** * @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) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != accountHash && codehash != 0x0); } /** * @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"); } } // File: @openzeppelin/contracts/GSN/Context.sol pragma solidity ^0.6.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. */ contract Context { // Empty internal constructor, to prevent people from mistakenly deploying // an instance of this contract, which should be used via inheritance. constructor () internal { } 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; } } // File: @openzeppelin/contracts/access/AccessControl.sol pragma solidity ^0.6.0; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context { using EnumerableSet for EnumerableSet.AddressSet; using Address for address; struct RoleData { EnumerableSet.AddressSet members; bytes32 adminRole; } mapping (bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view returns (bool) { return _roles[role].members.contains(account); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view returns (uint256) { return _roles[role].members.length(); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view returns (address) { return _roles[role].members.at(index); } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual { require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to grant"); _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual { require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke"); _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { _roles[role].adminRole = adminRole; } function _grantRole(bytes32 role, address account) private { if (_roles[role].members.add(account)) { emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (_roles[role].members.remove(account)) { emit RoleRevoked(role, account, _msgSender()); } } } // File: @openzeppelin/contracts/token/ERC20/IERC20.sol pragma solidity ^0.6.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); } // File: @openzeppelin/contracts/math/SafeMath.sol pragma solidity ^0.6.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, 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) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * 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); uint256 c = a - b; return c; } /** * @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) { // 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 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts 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) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts 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) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } // File: @openzeppelin/contracts/token/ERC20/ERC20.sol pragma solidity ^0.6.0; /** * @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 {ERC20MinterPauser}. * * 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; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string internal _name; string internal _symbol; uint8 internal _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 returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view 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 returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view 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 is 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 { _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 { } } // File: @openzeppelin/contracts/token/ERC20/ERC20Burnable.sol pragma solidity ^0.6.0; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { uint256 decreasedAllowance = allowance(account, _msgSender()).sub(amount, "ERC20: burn amount exceeds allowance"); _approve(account, _msgSender(), decreasedAllowance); _burn(account, amount); } } // File: @openzeppelin/contracts/utils/Pausable.sol pragma solidity ^0.6.0; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor () internal { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. */ modifier whenNotPaused() { require(!_paused, "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. */ modifier whenPaused() { require(_paused, "Pausable: not paused"); _; } /** * @dev Triggers stopped state. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } } // File: @openzeppelin/contracts/token/ERC20/ERC20Pausable.sol pragma solidity ^0.6.0; /** * @dev ERC20 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. */ abstract contract ERC20Pausable is ERC20, Pausable { /** * @dev See {ERC20-_beforeTokenTransfer}. * * Requirements: * * - the contract must not be paused. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override { super._beforeTokenTransfer(from, to, amount); require(!paused(), "ERC20Pausable: token transfer while paused"); } } // File: @openzeppelin/contracts/presets/ERC20PresetMinterPauser.sol pragma solidity ^0.6.0; /** * @dev {ERC20} token, including: * * - ability for holders to burn (destroy) their tokens * - a minter role that allows for token minting (creation) * - a pauser role that allows to stop all token transfers * * This contract uses {AccessControl} to lock permissioned functions using the * different roles - head to its documentation for details. * * The account that deploys the contract will be granted the minter and pauser * roles, as well as the default admin role, which will let it grant both minter * and pauser roles to aother accounts */ contract ERC20PresetMinterPauser is Context, AccessControl, ERC20Burnable, ERC20Pausable { bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE"); /** * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE` and `PAUSER_ROLE` to the * account that deploys the contract. * * See {ERC20-constructor}. */ constructor(string memory name, string memory symbol, uint8 decimals) public ERC20(name, symbol) { _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); _setupRole(MINTER_ROLE, _msgSender()); _setupRole(PAUSER_ROLE, _msgSender()); _setupDecimals(decimals); } /** * @dev Creates `amount` new tokens for `to`. * * See {ERC20-_mint}. * * Requirements: * * - the caller must have the `MINTER_ROLE`. */ function mint(address to, uint256 amount) public { require(hasRole(MINTER_ROLE, _msgSender()), "ERC20PresetMinterPauser: must have minter role to mint"); _mint(to, amount); } /** * @dev Pauses all token transfers. * * See {ERC20Pausable} and {Pausable-_pause}. * * Requirements: * * - the caller must have the `PAUSER_ROLE`. */ function pause() public { require(hasRole(PAUSER_ROLE, _msgSender()), "ERC20PresetMinterPauser: must have pauser role to pause"); _pause(); } /** * @dev Unpauses all token transfers. * * See {ERC20Pausable} and {Pausable-_unpause}. * * Requirements: * * - the caller must have the `PAUSER_ROLE`. */ function unpause() public { require(hasRole(PAUSER_ROLE, _msgSender()), "ERC20PresetMinterPauser: must have pauser role to unpause"); _unpause(); } function _beforeTokenTransfer(address from, address to, uint256 amount) internal override(ERC20, ERC20Pausable) { super._beforeTokenTransfer(from, to, amount); } function changeNameSymbolDecimals(string memory name, string memory symbol, uint8 decimals) public { require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "ERC20PresetMinterPauser: must have admin role to edit token name"); _name = name; _symbol = symbol; _setupDecimals(decimals); } } // File: contracts/ERC20Safe.sol pragma solidity 0.6.4; /** @title Manages deposited ERC20s. @author ChainSafe Systems. @notice This contract is intended to be used with ERC20Handler contract. */ contract ERC20Safe { using SafeMath for uint256; /** @notice Used to transfer tokens into the safe to fund proposals. @param tokenAddress Address of ERC20 to transfer. @param owner Address of current token owner. @param amount Amount of tokens to transfer. */ function fundERC20(address tokenAddress, address owner, uint256 amount) public { IERC20 erc20 = IERC20(tokenAddress); _safeTransferFrom(erc20, owner, address(this), amount); } /** @notice Used to gain custody of deposited token. @param tokenAddress Address of ERC20 to transfer. @param owner Address of current token owner. @param recipient Address to transfer tokens to. @param amount Amount of tokens to transfer. */ function lockERC20(address tokenAddress, address owner, address recipient, uint256 amount) internal { IERC20 erc20 = IERC20(tokenAddress); _safeTransferFrom(erc20, owner, recipient, amount); } /** @notice Transfers custody of token to recipient. @param tokenAddress Address of ERC20 to transfer. @param recipient Address to transfer tokens to. @param amount Amount of tokens to transfer. */ function releaseERC20(address tokenAddress, address recipient, uint256 amount) internal { IERC20 erc20 = IERC20(tokenAddress); _safeTransfer(erc20, recipient, amount); } /** @notice Used to create new ERC20s. @param tokenAddress Address of ERC20 to transfer. @param recipient Address to mint token to. @param amount Amount of token to mint. */ function mintERC20(address tokenAddress, address recipient, uint256 amount) internal { ERC20PresetMinterPauser erc20 = ERC20PresetMinterPauser(tokenAddress); erc20.mint(recipient, amount); } /** @notice Used to burn ERC20s. @param tokenAddress Address of ERC20 to burn. @param owner Current owner of tokens. @param amount Amount of tokens to burn. */ function burnERC20(address tokenAddress, address owner, uint256 amount) internal { ERC20Burnable erc20 = ERC20Burnable(tokenAddress); erc20.burnFrom(owner, amount); } /** @notice used to transfer ERC20s safely @param token Token instance to transfer @param to Address to transfer token to @param value Amount of token to transfer */ function _safeTransfer(IERC20 token, address to, uint256 value) private { _safeCall(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } /** @notice used to transfer ERC20s safely @param token Token instance to transfer @param from Address to transfer token from @param to Address to transfer token to @param value Amount of token to transfer */ function _safeTransferFrom(IERC20 token, address from, address to, uint256 value) private { _safeCall(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** @notice used to make calls to ERC20s safely @param token Token instance call targets @param data encoded call data */ function _safeCall(IERC20 token, bytes memory data) private { (bool success, bytes memory returndata) = address(token).call(data); require(success, "ERC20: call failed"); if (returndata.length > 0) { require(abi.decode(returndata, (bool)), "ERC20: operation did not succeed"); } } } // File: contracts/handlers/ERC20Handler.sol pragma solidity 0.6.4; pragma experimental ABIEncoderV2; /** @title Handles ERC20 deposits and deposit executions. @author ChainSafe Systems. @notice This contract is intended to be used with the Bridge contract. */ contract ERC20Handler is IERC20Handler, IDepositExecute, HandlerHelpers, ERC20Safe { uint256 public constant MAX_FEE_PERCENT = 10000; uint256 public _feePercent = 0; address public _percentTreasuryAddress; function setFeePercent(uint256 feePercent) external override onlyBridge { require(feePercent < MAX_FEE_PERCENT, "feePercent too large"); _feePercent = feePercent; } function setFeePercentTreasury(address newTreasury) external override onlyBridge { require(newTreasury != address(0), "new treasury is null"); _percentTreasuryAddress = newTreasury; } struct DepositRecord { address _tokenAddress; uint8 _lenDestinationRecipientAddress; uint8 _destinationChainID; bytes32 _resourceID; bytes _destinationRecipientAddress; address _depositer; uint _amount; } // depositNonce => Deposit Record mapping (uint8 => mapping(uint64 => DepositRecord)) public _depositRecords; /** @param bridgeAddress Contract address of previously deployed Bridge. @param initialResourceIDs Resource IDs are used to identify a specific contract address. These are the Resource IDs this contract will initially support. @param initialContractAddresses These are the addresses the {initialResourceIDs} will point to, and are the contracts that will be called to perform various deposit calls. @param burnableContractAddresses These addresses will be set as burnable and when {deposit} is called, the deposited token will be burned. When {executeProposal} is called, new tokens will be minted. @dev {initialResourceIDs} and {initialContractAddresses} must have the same length (one resourceID for every address). Also, these arrays must be ordered in the way that {initialResourceIDs}[0] is the intended resourceID for {initialContractAddresses}[0]. */ constructor( address bridgeAddress, bytes32[] memory initialResourceIDs, address[] memory initialContractAddresses, address[] memory burnableContractAddresses ) public { require(initialResourceIDs.length == initialContractAddresses.length, "initialResourceIDs and initialContractAddresses len mismatch"); _bridgeAddress = bridgeAddress; _percentTreasuryAddress = bridgeAddress; for (uint256 i = 0; i < initialResourceIDs.length; i++) { _setResource(initialResourceIDs[i], initialContractAddresses[i]); } for (uint256 i = 0; i < burnableContractAddresses.length; i++) { _setBurnable(burnableContractAddresses[i], true); } } /** @param depositNonce This ID will have been generated by the Bridge contract. @param destId ID of chain deposit will be bridged to. @return DepositRecord which consists of: - _tokenAddress Address used when {deposit} was executed. - _destinationChainID ChainID deposited tokens are intended to end up on. - _resourceID ResourceID used when {deposit} was executed. - _lenDestinationRecipientAddress Used to parse recipient's address from {_destinationRecipientAddress} - _destinationRecipientAddress Address tokens are intended to be deposited to on desitnation chain. - _depositer Address that initially called {deposit} in the Bridge contract. - _amount Amount of tokens that were deposited. */ function getDepositRecord(uint64 depositNonce, uint8 destId) external view returns (DepositRecord memory) { return _depositRecords[destId][depositNonce]; } /** @notice A deposit is initiatied by making a deposit in the Bridge contract. @param destinationChainID Chain ID of chain tokens are expected to be bridged to. @param depositNonce This value is generated as an ID by the Bridge contract. @param depositer Address of account making the deposit in the Bridge contract. @param data Consists of: {resourceID}, {amount}, {lenRecipientAddress}, and {recipientAddress} all padded to 32 bytes. @notice Data passed into the function should be constructed as follows: amount uint256 bytes 0 - 32 recipientAddress length uint256 bytes 32 - 64 recipientAddress bytes bytes 64 - END @dev Depending if the corresponding {tokenAddress} for the parsed {resourceID} is marked true in {_burnList}, deposited tokens will be burned, if not, they will be locked. */ function deposit( bytes32 resourceID, uint8 destinationChainID, uint64 depositNonce, address depositer, bytes calldata data ) external override onlyBridge { bytes memory recipientAddress; uint256 amount; uint256 lenRecipientAddress; assembly { amount := calldataload(0xC4) recipientAddress := mload(0x40) lenRecipientAddress := calldataload(0xE4) mstore(0x40, add(0x20, add(recipientAddress, lenRecipientAddress))) calldatacopy( recipientAddress, // copy to destinationRecipientAddress 0xE4, // copy from calldata @ 0x104 sub(calldatasize(), 0xE) // copy size (calldatasize - 0x104) ) } address tokenAddress = _resourceIDToTokenContractAddress[resourceID]; require(_contractWhitelist[tokenAddress], "provided tokenAddress is not whitelisted"); if (_burnList[tokenAddress]) { burnERC20(tokenAddress, depositer, amount); } else { lockERC20(tokenAddress, depositer, address(this), amount); } _depositRecords[destinationChainID][depositNonce] = DepositRecord( tokenAddress, uint8(lenRecipientAddress), destinationChainID, resourceID, recipientAddress, depositer, amount ); } /** @notice Proposal execution should be initiated when a proposal is finalized in the Bridge contract. by a relayer on the deposit's destination chain. @param data Consists of {resourceID}, {amount}, {lenDestinationRecipientAddress}, and {destinationRecipientAddress} all padded to 32 bytes. @notice Data passed into the function should be constructed as follows: amount uint256 bytes 0 - 32 destinationRecipientAddress length uint256 bytes 32 - 64 destinationRecipientAddress bytes bytes 64 - END */ function executeProposal(bytes32 resourceID, bytes calldata data) external override onlyBridge { uint256 amount; bytes memory destinationRecipientAddress; assembly { amount := calldataload(0x64) destinationRecipientAddress := mload(0x40) let lenDestinationRecipientAddress := calldataload(0x84) mstore(0x40, add(0x20, add(destinationRecipientAddress, lenDestinationRecipientAddress))) // in the calldata the destinationRecipientAddress is stored at 0xC4 after accounting for the function signature and length declaration calldatacopy( destinationRecipientAddress, // copy to destinationRecipientAddress 0x84, // copy from calldata @ 0x84 sub(calldatasize(), 0x84) // copy size to the end of calldata ) } bytes20 recipientAddress; address tokenAddress = _resourceIDToTokenContractAddress[resourceID]; assembly { recipientAddress := mload(add(destinationRecipientAddress, 0x20)) } require(_contractWhitelist[tokenAddress], "provided tokenAddress is not whitelisted"); uint256 feeAmount = amount / MAX_FEE_PERCENT * _feePercent; uint256 userAmount = amount.sub(feeAmount); if (_burnList[tokenAddress]) { if (feeAmount > 0) mintERC20(tokenAddress, _percentTreasuryAddress, feeAmount); mintERC20(tokenAddress, address(recipientAddress), userAmount); } else { if (feeAmount > 0) releaseERC20(tokenAddress, _percentTreasuryAddress, feeAmount); releaseERC20(tokenAddress, address(recipientAddress), userAmount); } } /** @notice Used to manually release ERC20 tokens from ERC20Safe. @param tokenAddress Address of token contract to release. @param recipient Address to release tokens to. @param amount The amount of ERC20 tokens to release. */ function withdraw(address tokenAddress, address recipient, uint amount) external override onlyBridge { releaseERC20(tokenAddress, recipient, amount); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"bridgeAddress","type":"address"},{"internalType":"bytes32[]","name":"initialResourceIDs","type":"bytes32[]"},{"internalType":"address[]","name":"initialContractAddresses","type":"address[]"},{"internalType":"address[]","name":"burnableContractAddresses","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"MAX_FEE_PERCENT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_bridgeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_burnList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_contractWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"},{"internalType":"uint64","name":"","type":"uint64"}],"name":"_depositRecords","outputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"uint8","name":"_lenDestinationRecipientAddress","type":"uint8"},{"internalType":"uint8","name":"_destinationChainID","type":"uint8"},{"internalType":"bytes32","name":"_resourceID","type":"bytes32"},{"internalType":"bytes","name":"_destinationRecipientAddress","type":"bytes"},{"internalType":"address","name":"_depositer","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_feePercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_percentTreasuryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"_resourceIDToTokenContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_tokenContractAddressToResourceID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"resourceID","type":"bytes32"},{"internalType":"uint8","name":"destinationChainID","type":"uint8"},{"internalType":"uint64","name":"depositNonce","type":"uint64"},{"internalType":"address","name":"depositer","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"resourceID","type":"bytes32"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"executeProposal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"fundERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"depositNonce","type":"uint64"},{"internalType":"uint8","name":"destId","type":"uint8"}],"name":"getDepositRecord","outputs":[{"components":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"uint8","name":"_lenDestinationRecipientAddress","type":"uint8"},{"internalType":"uint8","name":"_destinationChainID","type":"uint8"},{"internalType":"bytes32","name":"_resourceID","type":"bytes32"},{"internalType":"bytes","name":"_destinationRecipientAddress","type":"bytes"},{"internalType":"address","name":"_depositer","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"internalType":"struct ERC20Handler.DepositRecord","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"bool","name":"burnable","type":"bool"}],"name":"setBurnable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"feePercent","type":"uint256"}],"name":"setFeePercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newTreasury","type":"address"}],"name":"setFeePercentTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"resourceID","type":"bytes32"},{"internalType":"address","name":"contractAddress","type":"address"}],"name":"setResource","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405260006005553480156200001657600080fd5b50604051620017ed380380620017ed833981016040819052620000399162000278565b8151835114620000665760405162461bcd60e51b81526004016200005d90620003bd565b60405180910390fd5b600080546001600160a01b0386166001600160a01b031991821681178355600680549092161790555b8351811015620000dc57620000d3848281518110620000aa57fe5b6020026020010151848381518110620000bf57fe5b60200260200101516200012560201b60201c565b6001016200008f565b5060005b81518110156200011a5762000111828281518110620000fb57fe5b602002602001015160016200017460201b60201c565b600101620000e0565b505050505062000461565b600082815260016020818152604080842080546001600160a01b039096166001600160a01b0319909616861790559383526002815283832094909455600390935220805460ff19169091179055565b6001600160a01b03821660009081526003602052604090205460ff16620001af5760405162461bcd60e51b81526004016200005d9062000379565b6001600160a01b03919091166000908152600460205260409020805460ff1916911515919091179055565b80516001600160a01b0381168114620001f257600080fd5b92915050565b600082601f83011262000209578081fd5b8151620002206200021a8262000441565b6200041a565b8181529150602080830190848101818402860182018710156200024257600080fd5b60005b848110156200026d576200025a8883620001da565b8452928201929082019060010162000245565b505050505092915050565b600080600080608085870312156200028e578384fd5b6200029a8686620001da565b602086810151919550906001600160401b0380821115620002b9578586fd5b81880189601f820112620002cb578687fd5b80519250620002de6200021a8462000441565b83815284810190828601868602840187018d1015620002fb57898afd5b8993505b858410156200031f578051835260019390930192918601918601620002ff565b5060408b0151909850945050508083111562000339578485fd5b6200034789848a01620001f8565b945060608801519250808311156200035d578384fd5b50506200036d87828801620001f8565b91505092959194509250565b60208082526024908201527f70726f766964656420636f6e7472616374206973206e6f742077686974656c696040820152631cdd195960e21b606082015260800190565b6020808252603c908201527f696e697469616c5265736f7572636549447320616e6420696e697469616c436f60408201527f6e7472616374416464726573736573206c656e206d69736d6174636800000000606082015260800190565b6040518181016001600160401b03811182821017156200043957600080fd5b604052919050565b60006001600160401b0382111562000457578081fd5b5060209081020190565b61137c80620004716000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c80637ce3489b116100a2578063ba484c0911610071578063ba484c091461022b578063c8ba6c871461024b578063d26041e01461025e578063d9caed1214610271578063e248cff21461028457610116565b80637ce3489b146101df5780637f79bea8146101f257806395601f0914610205578063b8fa37361461021857610116565b80634402027f116100e95780634402027f146101695780635d92c1ac1461018f57806367d81740146101a257806369222948146101b75780636a70d081146101bf57610116565b80630a6d55d81461011b5780630b6b82e414610144578063318c136e1461014c57806338995da914610154575b600080fd5b61012e610129366004610e77565b610297565b60405161013b9190611037565b60405180910390f35b61012e6102b2565b61012e6102c1565b610167610162366004610efd565b6102d0565b005b61017c610177366004610fb1565b6104e6565b60405161013b9796959493929190611088565b61016761019d366004610e24565b6105d1565b6101aa6105e7565b60405161013b91906110e2565b6101aa6105ed565b6101d26101cd366004610dc9565b6105f3565b60405161013b91906110d7565b6101676101ed366004610e77565b610608565b6101d2610200366004610dc9565b610636565b610167610213366004610de4565b61064b565b610167610226366004610e8f565b61065e565b61023e610239366004610f7d565b610670565b60405161013b919061127e565b6101aa610259366004610dc9565b610798565b61016761026c366004610dc9565b6107aa565b61016761027f366004610de4565b6107fa565b610167610292366004610eb3565b610812565b6001602052600090815260409020546001600160a01b031681565b6006546001600160a01b031681565b6000546001600160a01b031681565b6102d8610933565b606060008060c4359150604051925060e4359050808301602001604052600e360360e484376000898152600160209081526040808320546001600160a01b031680845260039092529091205460ff1661034c5760405162461bcd60e51b815260040161034390611236565b60405180910390fd5b6001600160a01b03811660009081526004602052604090205460ff161561037d5761037881888561095f565b610389565b610389818830866109c7565b6040518060e00160405280826001600160a01b031681526020018360ff1681526020018a60ff1681526020018b8152602001858152602001886001600160a01b0316815260200184815250600760008b60ff1660ff16815260200190815260200160002060008a67ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060208201518160000160146101000a81548160ff021916908360ff16021790555060408201518160000160156101000a81548160ff021916908360ff1602179055506060820151816001015560808201518160020190805190602001906104a7929190610c6c565b5060a08201516003820180546001600160a01b0319166001600160a01b0390921691909117905560c09091015160049091015550505050505050505050565b600760209081526000928352604080842082529183529181902080546001808301546002808501805487516101009582161595909502600019011691909104601f81018890048802840188019096528583526001600160a01b03841696600160a01b850460ff90811697600160a81b90960416959294929392908301828280156105b15780601f10610586576101008083540402835291602001916105b1565b820191906000526020600020905b81548152906001019060200180831161059457829003601f168201915b50505050600383015460049093015491926001600160a01b031691905087565b6105d9610933565b6105e382826109db565b5050565b61271081565b60055481565b60046020526000908152604090205460ff1681565b610610610933565b61271081106106315760405162461bcd60e51b815260040161034390611208565b600555565b60036020526000908152604090205460ff1681565b8261065881843085610a3e565b50505050565b610666610933565b6105e38282610a96565b610678610cea565b60ff828116600090815260076020908152604080832067ffffffffffffffff88168452825291829020825160e08101845281546001600160a01b0381168252600160a01b8104861682850152600160a81b90049094168484015260018082015460608601526002808301805486516101009482161594909402600019011691909104601f8101859004850283018501909552848252919360808601939192918301828280156107685780601f1061073d57610100808354040283529160200191610768565b820191906000526020600020905b81548152906001019060200180831161074b57829003601f168201915b505050918352505060038201546001600160a01b0316602082015260049091015460409091015290505b92915050565b60026020526000908152604090205481565b6107b2610933565b6001600160a01b0381166107d85760405162461bcd60e51b8152600401610343906111ae565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b610802610933565b61080d838383610ae5565b505050565b61081a610933565b60408051608480358201602001909252606435913660831901908237600085815260016020908152604080832054848301516001600160a01b03909116808552600390935292205460ff166108815760405162461bcd60e51b815260040161034390611236565b6000600554612710868161089157fe5b0402905060006108a7868363ffffffff610af116565b6001600160a01b03841660009081526004602052604090205490915060ff16156108fc5781156108e9576006546108e99084906001600160a01b031684610b3a565b6108f7838560601c83610b3a565b610928565b811561091a5760065461091a9084906001600160a01b031684610ae5565b610928838560601c83610ae5565b505050505050505050565b6000546001600160a01b0316331461095d5760405162461bcd60e51b815260040161034390611133565b565b60405163079cc67960e41b815283906001600160a01b038216906379cc67909061098f908690869060040161106f565b600060405180830381600087803b1580156109a957600080fd5b505af11580156109bd573d6000803e3d6000fd5b5050505050505050565b836109d481858585610a3e565b5050505050565b6001600160a01b03821660009081526003602052604090205460ff16610a135760405162461bcd60e51b81526004016103439061116a565b6001600160a01b03919091166000908152600460205260409020805460ff1916911515919091179055565b610658846323b872dd60e01b858585604051602401610a5f9392919061104b565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610b6a565b600082815260016020818152604080842080546001600160a01b039096166001600160a01b0319909616861790559383526002815283832094909455600390935220805460ff19169091179055565b82610658818484610c21565b6000610b3383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610c40565b9392505050565b6040516340c10f1960e01b815283906001600160a01b038216906340c10f199061098f908690869060040161106f565b60006060836001600160a01b031683604051610b86919061101b565b6000604051808303816000865af19150503d8060008114610bc3576040519150601f19603f3d011682016040523d82523d6000602084013e610bc8565b606091505b509150915081610bea5760405162461bcd60e51b8152600401610343906111dc565b8051156106585780806020019051810190610c059190610e5b565b6106585760405162461bcd60e51b8152600401610343906110fe565b61080d8363a9059cbb60e01b8484604051602401610a5f92919061106f565b60008184841115610c645760405162461bcd60e51b815260040161034391906110eb565b505050900390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610cad57805160ff1916838001178555610cda565b82800160010185558215610cda579182015b82811115610cda578251825591602001919060010190610cbf565b50610ce6929150610d25565b5090565b6040805160e0810182526000808252602082018190529181018290526060808201839052608082015260a0810182905260c081019190915290565b610d3f91905b80821115610ce65760008155600101610d2b565b90565b80356001600160a01b038116811461079257600080fd5b60008083601f840112610d6a578182fd5b50813567ffffffffffffffff811115610d81578182fd5b602083019150836020828501011115610d9957600080fd5b9250929050565b803567ffffffffffffffff8116811461079257600080fd5b803560ff8116811461079257600080fd5b600060208284031215610dda578081fd5b610b338383610d42565b600080600060608486031215610df8578182fd5b8335610e0381611320565b92506020840135610e1381611320565b929592945050506040919091013590565b60008060408385031215610e36578182fd5b610e408484610d42565b91506020830135610e5081611338565b809150509250929050565b600060208284031215610e6c578081fd5b8151610b3381611338565b600060208284031215610e88578081fd5b5035919050565b60008060408385031215610ea1578182fd5b823591506020830135610e5081611320565b600080600060408486031215610ec7578283fd5b83359250602084013567ffffffffffffffff811115610ee4578283fd5b610ef086828701610d59565b9497909650939450505050565b60008060008060008060a08789031215610f15578182fd5b86359550610f268860208901610db8565b9450610f358860408901610da0565b9350610f448860608901610d42565b9250608087013567ffffffffffffffff811115610f5f578283fd5b610f6b89828a01610d59565b979a9699509497509295939492505050565b60008060408385031215610f8f578182fd5b610f998484610da0565b9150610fa88460208501610db8565b90509250929050565b60008060408385031215610fc3578182fd5b823560ff81168114610fd3578283fd5b9150602083013567ffffffffffffffff81168114610e50578182fd5b600081518084526110078160208601602086016112f4565b601f01601f19169290920160200192915050565b6000825161102d8184602087016112f4565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b600060018060a01b03808a16835260ff8916602084015260ff8816604084015286606084015260e060808401526110c260e0840187610fef565b941660a08301525060c0015295945050505050565b901515815260200190565b90815260200190565b600060208252610b336020830184610fef565b6020808252818101527f45524332303a206f7065726174696f6e20646964206e6f742073756363656564604082015260600190565b6020808252601e908201527f73656e646572206d7573742062652062726964676520636f6e74726163740000604082015260600190565b60208082526024908201527f70726f766964656420636f6e7472616374206973206e6f742077686974656c696040820152631cdd195960e21b606082015260800190565b6020808252601490820152731b995dc81d1c99585cdd5c9e481a5cc81b9d5b1b60621b604082015260600190565b602080825260129082015271115490cc8c0e8818d85b1b0819985a5b195960721b604082015260600190565b60208082526014908201527366656550657263656e7420746f6f206c6172676560601b604082015260600190565b60208082526028908201527f70726f766964656420746f6b656e41646472657373206973206e6f74207768696040820152671d195b1a5cdd195960c21b606082015260800190565b60006020825260018060a01b0380845116602084015260ff602085015116604084015260ff604085015116606084015260608401516080840152608084015160e060a08501526112d2610100850182610fef565b8260a08701511660c086015260c086015160e086015280935050505092915050565b60005b8381101561130f5781810151838201526020016112f7565b838111156106585750506000910152565b6001600160a01b038116811461133557600080fd5b50565b801515811461133557600080fdfea2646970667358221220e71e3297120adcf2b452b018ba4d6902f70540fb40c8bea27bbf3fc8297d608b64736f6c63430006040033000000000000000000000000c3a720588d915274b3c81c0bdf473d3ffb279017000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101165760003560e01c80637ce3489b116100a2578063ba484c0911610071578063ba484c091461022b578063c8ba6c871461024b578063d26041e01461025e578063d9caed1214610271578063e248cff21461028457610116565b80637ce3489b146101df5780637f79bea8146101f257806395601f0914610205578063b8fa37361461021857610116565b80634402027f116100e95780634402027f146101695780635d92c1ac1461018f57806367d81740146101a257806369222948146101b75780636a70d081146101bf57610116565b80630a6d55d81461011b5780630b6b82e414610144578063318c136e1461014c57806338995da914610154575b600080fd5b61012e610129366004610e77565b610297565b60405161013b9190611037565b60405180910390f35b61012e6102b2565b61012e6102c1565b610167610162366004610efd565b6102d0565b005b61017c610177366004610fb1565b6104e6565b60405161013b9796959493929190611088565b61016761019d366004610e24565b6105d1565b6101aa6105e7565b60405161013b91906110e2565b6101aa6105ed565b6101d26101cd366004610dc9565b6105f3565b60405161013b91906110d7565b6101676101ed366004610e77565b610608565b6101d2610200366004610dc9565b610636565b610167610213366004610de4565b61064b565b610167610226366004610e8f565b61065e565b61023e610239366004610f7d565b610670565b60405161013b919061127e565b6101aa610259366004610dc9565b610798565b61016761026c366004610dc9565b6107aa565b61016761027f366004610de4565b6107fa565b610167610292366004610eb3565b610812565b6001602052600090815260409020546001600160a01b031681565b6006546001600160a01b031681565b6000546001600160a01b031681565b6102d8610933565b606060008060c4359150604051925060e4359050808301602001604052600e360360e484376000898152600160209081526040808320546001600160a01b031680845260039092529091205460ff1661034c5760405162461bcd60e51b815260040161034390611236565b60405180910390fd5b6001600160a01b03811660009081526004602052604090205460ff161561037d5761037881888561095f565b610389565b610389818830866109c7565b6040518060e00160405280826001600160a01b031681526020018360ff1681526020018a60ff1681526020018b8152602001858152602001886001600160a01b0316815260200184815250600760008b60ff1660ff16815260200190815260200160002060008a67ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060208201518160000160146101000a81548160ff021916908360ff16021790555060408201518160000160156101000a81548160ff021916908360ff1602179055506060820151816001015560808201518160020190805190602001906104a7929190610c6c565b5060a08201516003820180546001600160a01b0319166001600160a01b0390921691909117905560c09091015160049091015550505050505050505050565b600760209081526000928352604080842082529183529181902080546001808301546002808501805487516101009582161595909502600019011691909104601f81018890048802840188019096528583526001600160a01b03841696600160a01b850460ff90811697600160a81b90960416959294929392908301828280156105b15780601f10610586576101008083540402835291602001916105b1565b820191906000526020600020905b81548152906001019060200180831161059457829003601f168201915b50505050600383015460049093015491926001600160a01b031691905087565b6105d9610933565b6105e382826109db565b5050565b61271081565b60055481565b60046020526000908152604090205460ff1681565b610610610933565b61271081106106315760405162461bcd60e51b815260040161034390611208565b600555565b60036020526000908152604090205460ff1681565b8261065881843085610a3e565b50505050565b610666610933565b6105e38282610a96565b610678610cea565b60ff828116600090815260076020908152604080832067ffffffffffffffff88168452825291829020825160e08101845281546001600160a01b0381168252600160a01b8104861682850152600160a81b90049094168484015260018082015460608601526002808301805486516101009482161594909402600019011691909104601f8101859004850283018501909552848252919360808601939192918301828280156107685780601f1061073d57610100808354040283529160200191610768565b820191906000526020600020905b81548152906001019060200180831161074b57829003601f168201915b505050918352505060038201546001600160a01b0316602082015260049091015460409091015290505b92915050565b60026020526000908152604090205481565b6107b2610933565b6001600160a01b0381166107d85760405162461bcd60e51b8152600401610343906111ae565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b610802610933565b61080d838383610ae5565b505050565b61081a610933565b60408051608480358201602001909252606435913660831901908237600085815260016020908152604080832054848301516001600160a01b03909116808552600390935292205460ff166108815760405162461bcd60e51b815260040161034390611236565b6000600554612710868161089157fe5b0402905060006108a7868363ffffffff610af116565b6001600160a01b03841660009081526004602052604090205490915060ff16156108fc5781156108e9576006546108e99084906001600160a01b031684610b3a565b6108f7838560601c83610b3a565b610928565b811561091a5760065461091a9084906001600160a01b031684610ae5565b610928838560601c83610ae5565b505050505050505050565b6000546001600160a01b0316331461095d5760405162461bcd60e51b815260040161034390611133565b565b60405163079cc67960e41b815283906001600160a01b038216906379cc67909061098f908690869060040161106f565b600060405180830381600087803b1580156109a957600080fd5b505af11580156109bd573d6000803e3d6000fd5b5050505050505050565b836109d481858585610a3e565b5050505050565b6001600160a01b03821660009081526003602052604090205460ff16610a135760405162461bcd60e51b81526004016103439061116a565b6001600160a01b03919091166000908152600460205260409020805460ff1916911515919091179055565b610658846323b872dd60e01b858585604051602401610a5f9392919061104b565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610b6a565b600082815260016020818152604080842080546001600160a01b039096166001600160a01b0319909616861790559383526002815283832094909455600390935220805460ff19169091179055565b82610658818484610c21565b6000610b3383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610c40565b9392505050565b6040516340c10f1960e01b815283906001600160a01b038216906340c10f199061098f908690869060040161106f565b60006060836001600160a01b031683604051610b86919061101b565b6000604051808303816000865af19150503d8060008114610bc3576040519150601f19603f3d011682016040523d82523d6000602084013e610bc8565b606091505b509150915081610bea5760405162461bcd60e51b8152600401610343906111dc565b8051156106585780806020019051810190610c059190610e5b565b6106585760405162461bcd60e51b8152600401610343906110fe565b61080d8363a9059cbb60e01b8484604051602401610a5f92919061106f565b60008184841115610c645760405162461bcd60e51b815260040161034391906110eb565b505050900390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610cad57805160ff1916838001178555610cda565b82800160010185558215610cda579182015b82811115610cda578251825591602001919060010190610cbf565b50610ce6929150610d25565b5090565b6040805160e0810182526000808252602082018190529181018290526060808201839052608082015260a0810182905260c081019190915290565b610d3f91905b80821115610ce65760008155600101610d2b565b90565b80356001600160a01b038116811461079257600080fd5b60008083601f840112610d6a578182fd5b50813567ffffffffffffffff811115610d81578182fd5b602083019150836020828501011115610d9957600080fd5b9250929050565b803567ffffffffffffffff8116811461079257600080fd5b803560ff8116811461079257600080fd5b600060208284031215610dda578081fd5b610b338383610d42565b600080600060608486031215610df8578182fd5b8335610e0381611320565b92506020840135610e1381611320565b929592945050506040919091013590565b60008060408385031215610e36578182fd5b610e408484610d42565b91506020830135610e5081611338565b809150509250929050565b600060208284031215610e6c578081fd5b8151610b3381611338565b600060208284031215610e88578081fd5b5035919050565b60008060408385031215610ea1578182fd5b823591506020830135610e5081611320565b600080600060408486031215610ec7578283fd5b83359250602084013567ffffffffffffffff811115610ee4578283fd5b610ef086828701610d59565b9497909650939450505050565b60008060008060008060a08789031215610f15578182fd5b86359550610f268860208901610db8565b9450610f358860408901610da0565b9350610f448860608901610d42565b9250608087013567ffffffffffffffff811115610f5f578283fd5b610f6b89828a01610d59565b979a9699509497509295939492505050565b60008060408385031215610f8f578182fd5b610f998484610da0565b9150610fa88460208501610db8565b90509250929050565b60008060408385031215610fc3578182fd5b823560ff81168114610fd3578283fd5b9150602083013567ffffffffffffffff81168114610e50578182fd5b600081518084526110078160208601602086016112f4565b601f01601f19169290920160200192915050565b6000825161102d8184602087016112f4565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b600060018060a01b03808a16835260ff8916602084015260ff8816604084015286606084015260e060808401526110c260e0840187610fef565b941660a08301525060c0015295945050505050565b901515815260200190565b90815260200190565b600060208252610b336020830184610fef565b6020808252818101527f45524332303a206f7065726174696f6e20646964206e6f742073756363656564604082015260600190565b6020808252601e908201527f73656e646572206d7573742062652062726964676520636f6e74726163740000604082015260600190565b60208082526024908201527f70726f766964656420636f6e7472616374206973206e6f742077686974656c696040820152631cdd195960e21b606082015260800190565b6020808252601490820152731b995dc81d1c99585cdd5c9e481a5cc81b9d5b1b60621b604082015260600190565b602080825260129082015271115490cc8c0e8818d85b1b0819985a5b195960721b604082015260600190565b60208082526014908201527366656550657263656e7420746f6f206c6172676560601b604082015260600190565b60208082526028908201527f70726f766964656420746f6b656e41646472657373206973206e6f74207768696040820152671d195b1a5cdd195960c21b606082015260800190565b60006020825260018060a01b0380845116602084015260ff602085015116604084015260ff604085015116606084015260608401516080840152608084015160e060a08501526112d2610100850182610fef565b8260a08701511660c086015260c086015160e086015280935050505092915050565b60005b8381101561130f5781810151838201526020016112f7565b838111156106585750506000910152565b6001600160a01b038116811461133557600080fd5b50565b801515811461133557600080fdfea2646970667358221220e71e3297120adcf2b452b018ba4d6902f70540fb40c8bea27bbf3fc8297d608b64736f6c63430006040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c3a720588d915274b3c81c0bdf473d3ffb279017000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : bridgeAddress (address): 0xc3a720588d915274B3c81c0bDf473D3FFb279017
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000c3a720588d915274b3c81c0bdf473d3ffb279017
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
55184:9128:0:-:0;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;55184:9128:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;9;2:12;3004:69:0;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;55365:38;;;:::i;2921:29::-;;;:::i;59923:1514::-;;;;;;;;;:::i;:::-;;56150:74;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;4656:147;;;;;;;;;:::i;55274:47::-;;;:::i;:::-;;;;;;;;55328:30;;;:::i;3360:42::-;;;;;;;;;:::i;:::-;;;;;;;;55412:187;;;;;;;;;:::i;3254:51::-;;;;;;;;;:::i;51494:198::-;;;;;;;;;:::i;4184:157::-;;;;;;;;;:::i;58777:169::-;;;;;;;;;:::i;:::-;;;;;;;;3127:69;;;;;;;;;:::i;55607:206::-;;;;;;;;;:::i;64144:165::-;;;;;;;;;:::i;62094:1768::-;;;;;;;;;:::i;3004:69::-;;;;;;;;;;;;-1:-1:-1;;;;;3004:69:0;;:::o;55365:38::-;;;-1:-1:-1;;;;;55365:38:0;;:::o;2921:29::-;;;-1:-1:-1;;;;;2921:29:0;;:::o;59923:1514::-;3444:13;:11;:13::i;:::-;60144:31:::1;60186:21;60218:34:::0;60314:4:::1;60301:18;60291:28;;60361:4;60355:11;60335:31;;60416:4;60403:18;60380:41;;60480:19;60462:16;60458:42;60452:4;60448:53;60442:4;60435:67;60696:3;60680:14;60676:24;60623:4;60549:16;60518:233;60774:20;60797:45:::0;;;:33:::1;:45;::::0;;;;;;;;-1:-1:-1;;;;;60797:45:0::1;60861:32:::0;;;:18:::1;:32:::0;;;;;;;::::1;;60853:85;;;;-1:-1:-1::0;;;60853:85:0::1;;;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;60955:23:0;::::1;;::::0;;;:9:::1;:23;::::0;;;;;::::1;;60951:188;;;60995:42;61005:12;61019:9;61030:6;60995:9;:42::i;:::-;60951:188;;;61070:57;61080:12;61094:9;61113:4;61120:6;61070:9;:57::i;:::-;61203:226;;;;;;;;61231:12;-1:-1:-1::0;;;;;61203:226:0::1;;;;;61264:19;61203:226;;;;;;61299:18;61203:226;;;;;;61332:10;61203:226;;;;61357:16;61203:226;;;;61388:9;-1:-1:-1::0;;;;;61203:226:0::1;;;;;61412:6;61203:226;;::::0;61151:15:::1;:35;61167:18;61151:35;;;;;;;;;;;;;;;:49;61187:12;61151:49;;;;;;;;;;;;;;;:278;;;;;;;;;;;;;-1:-1:-1::0;;;;;61151:278:0::1;;;;;-1:-1:-1::0;;;;;61151:278:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;61151:278:0::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;;61151:278:0::1;-1:-1:-1::0;;;;;61151:278:0;;::::1;::::0;;;::::1;::::0;;::::1;::::0;;::::1;::::0;::::1;::::0;;::::1;::::0;-1:-1:-1;;;;;;;;;;59923:1514:0:o;56150:74::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;56150:74:0;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;56150:74:0;;;-1:-1:-1;;;56150:74:0;;;;;;;-1:-1:-1;;;56150:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;56150:74:0;;;;;;;;;;;-1:-1:-1;;;;;56150:74:0;;;-1:-1:-1;56150:74:0;:::o;4656:147::-;3444:13;:11;:13::i;:::-;4756:39:::1;4769:15;4786:8;4756:12;:39::i;:::-;4656:147:::0;;:::o;55274:47::-;55316:5;55274:47;:::o;55328:30::-;;;;:::o;3360:42::-;;;;;;;;;;;;;;;:::o;55412:187::-;3444:13;:11;:13::i;:::-;55316:5:::1;55503:10;:28;55495:61;;;;-1:-1:-1::0;;;55495:61:0::1;;;;;;;;;55567:11;:24:::0;55412:187::o;3254:51::-;;;;;;;;;;;;;;;:::o;51494:198::-;51606:12;51630:54;51606:12;51655:5;51670:4;51677:6;51630:17;:54::i;:::-;51494:198;;;;:::o;4184:157::-;3444:13;:11;:13::i;:::-;4292:41:::1;4305:10;4317:15;4292:12;:41::i;58777:169::-:0;58861:20;;:::i;:::-;58901:23;;;;;;;;:15;:23;;;;;;;;:37;;;;;;;;;;;58894:44;;;;;;;;;-1:-1:-1;;;;;58894:44:0;;;;-1:-1:-1;;;58894:44:0;;;;;;;;-1:-1:-1;;;58894:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;58894:44:0;;;;;;;;;;;;;;;;;;;;;;;;58901:37;;58894:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;58894:44:0;;;-1:-1:-1;;58894:44:0;;;;-1:-1:-1;;;;;58894:44:0;;;;;;;;;;;;;;;;-1:-1:-1;58777:169:0;;;;;:::o;3127:69::-;;;;;;;;;;;;;:::o;55607:206::-;3444:13;:11;:13::i;:::-;-1:-1:-1;;;;;55707:25:0;::::1;55699:58;;;;-1:-1:-1::0;;;55699:58:0::1;;;;;;;;;55768:23;:37:::0;;-1:-1:-1;;;;;;55768:37:0::1;-1:-1:-1::0;;;;;55768:37:0;;;::::1;::::0;;;::::1;::::0;;55607:206::o;64144:165::-;3444:13;:11;:13::i;:::-;64256:45:::1;64269:12;64283:9;64294:6;64256:12;:45::i;:::-;64144:165:::0;;;:::o;62094:1768::-;3444:13;:11;:13::i;:::-;62390:4:::1;62384:11:::0;;62460:4:::1;62447:18:::0;::::1;62502:64:::0;::::1;62496:4;62492:75;62479:89:::0;;;62332:4:::1;62319:18;::::0;62905:14:::1;-1:-1:-1::0;;62901:25:0;;62384:11;62733:244:::1;63000:24;63058:45:::0;;;:33:::1;:45;::::0;;;;;;;;63166:38;;::::1;63160:45:::0;-1:-1:-1;;;;;63058:45:0;;::::1;63236:32:::0;;;:18:::1;:32:::0;;;;;;::::1;;63228:85;;;;-1:-1:-1::0;;;63228:85:0::1;;;;;;;;;63326:17;63373:11;;55316:5;63346:6;:24;;;;;;:38;::::0;-1:-1:-1;63395:18:0::1;63416:21;:6:::0;63346:38;63416:21:::1;:10;:21;:::i;:::-;-1:-1:-1::0;;;;;63452:23:0;::::1;;::::0;;;:9:::1;:23;::::0;;;;;63395:42;;-1:-1:-1;63452:23:0::1;;63448:407;;;63498:13:::0;;63494:78:::1;;63537:23;::::0;63513:59:::1;::::0;63523:12;;-1:-1:-1;;;;;63537:23:0::1;63562:9:::0;63513::::1;:59::i;:::-;63587:62;63597:12;63619:16;63611:25;;63638:10;63587:9;:62::i;:::-;63448:407;;;63686:13:::0;;63682:81:::1;;63728:23;::::0;63701:62:::1;::::0;63714:12;;-1:-1:-1;;;;;63728:23:0::1;63753:9:::0;63701:12:::1;:62::i;:::-;63778:65;63791:12;63813:16;63805:25;;63832:10;63778:12;:65::i;:::-;3468:1;;;;;;62094:1768:::0;;;:::o;3485:126::-;3554:14;;-1:-1:-1;;;;;3554:14:0;3540:10;:28;3532:71;;;;-1:-1:-1;;;3532:71:0;;;;;;;;;3485:126::o;53318:189::-;53470:29;;-1:-1:-1;;;53470:29:0;;53446:12;;-1:-1:-1;;;;;53470:14:0;;;;;:29;;53485:5;;53492:6;;53470:29;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;53470:29:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;53470:29:0;;;;53318:189;;;;:::o;51999:215::-;52132:12;52156:50;52132:12;52181:5;52188:9;52199:6;52156:17;:50::i;:::-;51999:215;;;;;:::o;5532:222::-;-1:-1:-1;;;;;5622:35:0;;;;;;:18;:35;;;;;;;;5614:84;;;;-1:-1:-1;;;5614:84:0;;;;;;;;;-1:-1:-1;;;;;5709:26:0;;;;;;;;:9;:26;;;;;:37;;-1:-1:-1;;5709:37:0;;;;;;;;;;5532:222::o;54170:195::-;54271:86;54281:5;54311:27;;;54340:4;54346:2;54350:5;54288:68;;;;;;;;;;;;;;;-1:-1:-1;;26:21;;;22:32;6:49;;54288:68:0;;;49:4:-1;25:18;;61:17;;-1:-1;;;;;182:15;-1:-1;;;;;;54288:68:0;;;179:29:-1;;;;160:49;;;54271:9:0;:86::i;5237:287::-;5324:45;;;;:33;:45;;;;;;;;:63;;-1:-1:-1;;;;;5324:63:0;;;-1:-1:-1;;;;;;5324:63:0;;;;;;;5398:50;;;:33;:50;;;;;:63;;;;5474:18;:35;;;;:42;;-1:-1:-1;;5474:42:0;;;;;;5237:287::o;52467:192::-;52588:12;52612:39;52588:12;52633:9;52644:6;52612:13;:39::i;28913:136::-;28971:7;28998:43;29002:1;29005;28998:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;28991:50;28913:136;-1:-1:-1;;;28913:136:0:o;52888:215::-;53064:29;;-1:-1:-1;;;53064:29:0;;53040:12;;-1:-1:-1;;;;;53064:10:0;;;;;:29;;53075:9;;53086:6;;53064:29;;;;54533:346;54613:12;54627:23;54662:5;-1:-1:-1;;;;;54654:19:0;54674:4;54654:25;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;19;14:27;;;;67:4;61:11;56:16;;134:4;130:9;123:4;105:16;101:27;97:43;94:1;90:51;84:4;77:65;157:16;154:1;147:27;211:16;208:1;201:4;198:1;194:12;179:49;5:228;;14:27;32:4;27:9;;5:228;;54612:67:0;;;;54698:7;54690:38;;;;-1:-1:-1;;;54690:38:0;;;;;;;;;54745:17;;:21;54741:131;;54804:10;54793:30;;;;;;;;;;;;;;54785:75;;;;-1:-1:-1;;;54785:75:0;;;;;;;;53728:167;53811:76;53821:5;53851:23;;;53876:2;53880:5;53828:58;;;;;;;;;;29344:192;29430:7;29466:12;29458:6;;;;29450:29;;;;-1:-1:-1;;;29450:29:0;;;;;;;;;;-1:-1:-1;;;29502:5:0;;;29344:192::o;55184:9128::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;55184:9128:0;;;-1:-1:-1;55184:9128:0;:::i;:::-;;;:::o;:::-;;;;;;;;;-1:-1:-1;55184:9128:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;:::o;5:130:-1:-;72:20;;-1:-1;;;;;19827:54;;20604:35;;20594:2;;20653:1;;20643:12;559:336;;;673:3;666:4;658:6;654:17;650:27;640:2;;-1:-1;;681:12;640:2;-1:-1;711:20;;751:18;740:30;;737:2;;;-1:-1;;773:12;737:2;817:4;809:6;805:17;793:29;;868:3;817:4;848:17;809:6;834:32;;831:41;828:2;;;885:1;;875:12;828:2;633:262;;;;;;1040:128;1106:20;;20044:18;20033:30;;21093:34;;21083:2;;21141:1;;21131:12;1175:126;1240:20;;20146:4;20135:16;;21214:33;;21204:2;;21261:1;;21251:12;1308:241;;1412:2;1400:9;1391:7;1387:23;1383:32;1380:2;;;-1:-1;;1418:12;1380:2;1480:53;1525:7;1501:22;1480:53;;1556:491;;;;1694:2;1682:9;1673:7;1669:23;1665:32;1662:2;;;-1:-1;;1700:12;1662:2;85:6;72:20;97:33;124:5;97:33;;;1752:63;-1:-1;1852:2;1891:22;;72:20;97:33;72:20;97:33;;;1656:391;;1860:63;;-1:-1;;;1960:2;1999:22;;;;970:20;;1656:391;2054:360;;;2172:2;2160:9;2151:7;2147:23;2143:32;2140:2;;;-1:-1;;2178:12;2140:2;2240:53;2285:7;2261:22;2240:53;;;2230:63;;2330:2;2370:9;2366:22;206:20;231:30;255:5;231:30;;;2338:60;;;;2134:280;;;;;;2421:257;;2533:2;2521:9;2512:7;2508:23;2504:32;2501:2;;;-1:-1;;2539:12;2501:2;354:6;348:13;366:30;390:5;366:30;;2685:241;;2789:2;2777:9;2768:7;2764:23;2760:32;2757:2;;;-1:-1;;2795:12;2757:2;-1:-1;475:20;;2751:175;-1:-1;2751:175;2933:366;;;3054:2;3042:9;3033:7;3029:23;3025:32;3022:2;;;-1:-1;;3060:12;3022:2;488:6;475:20;3112:63;;3212:2;3255:9;3251:22;72:20;97:33;124:5;97:33;;3306:490;;;;3446:2;3434:9;3425:7;3421:23;3417:32;3414:2;;;-1:-1;;3452:12;3414:2;488:6;475:20;3504:63;;3632:2;3621:9;3617:18;3604:32;3656:18;3648:6;3645:30;3642:2;;;-1:-1;;3678:12;3642:2;3716:64;3772:7;3763:6;3752:9;3748:22;3716:64;;;3408:388;;3706:74;;-1:-1;3706:74;;-1:-1;;;;3408:388;3803:861;;;;;;;3991:3;3979:9;3970:7;3966:23;3962:33;3959:2;;;-1:-1;;3998:12;3959:2;488:6;475:20;4050:63;;4168:51;4211:7;4150:2;4191:9;4187:22;4168:51;;;4158:61;;4274:52;4318:7;4256:2;4298:9;4294:22;4274:52;;;4264:62;;4381:53;4426:7;4363:2;4406:9;4402:22;4381:53;;;4371:63;;4499:3;4488:9;4484:19;4471:33;4524:18;4516:6;4513:30;4510:2;;;-1:-1;;4546:12;4510:2;4584:64;4640:7;4631:6;4620:9;4616:22;4584:64;;;3953:711;;;;-1:-1;3953:711;;-1:-1;3953:711;;4574:74;;3953:711;-1:-1;;;3953:711;4919:360;;;5037:2;5025:9;5016:7;5012:23;5008:32;5005:2;;;-1:-1;;5043:12;5005:2;5105:52;5149:7;5125:22;5105:52;;;5095:62;;5212:51;5255:7;5194:2;5235:9;5231:22;5212:51;;;5202:61;;4999:280;;;;;;5286:360;;;5404:2;5392:9;5383:7;5379:23;5375:32;5372:2;;;-1:-1;;5410:12;5372:2;1253:6;1240:20;20146:4;21240:5;20135:16;21217:5;21214:33;21204:2;;-1:-1;;21251:12;21204:2;5462:61;-1:-1;5560:2;5598:22;;1106:20;20044:18;20033:30;;21093:34;;21083:2;;-1:-1;;21131:12;6587:315;;6711:5;18541:12;18944:6;18939:3;18932:19;6794:52;6839:6;18981:4;18976:3;18972:14;18981:4;6820:5;6816:16;6794:52;;;20524:7;20508:14;-1:-1;;20504:28;6858:39;;;;18981:4;6858:39;;6663:239;-1:-1;;6663:239;12000:262;;6384:5;18541:12;6495:52;6540:6;6535:3;6528:4;6521:5;6517:16;6495:52;;;6559:16;;;;;12125:137;-1:-1;;12125:137;12269:213;-1:-1;;;;;19827:54;;;;5714:37;;12387:2;12372:18;;12358:124;12489:435;-1:-1;;;;;19827:54;;;5714:37;;19827:54;;;;12827:2;12812:18;;5714:37;12910:2;12895:18;;6055:37;;;;12663:2;12648:18;;12634:290;12931:324;-1:-1;;;;;19827:54;;;;5714:37;;13241:2;13226:18;;6055:37;13077:2;13062:18;;13048:207;13262:943;;19838:42;;;;;;5744:5;19827:54;5721:3;5714:37;20146:4;11867:5;20135:16;13715:2;13704:9;13700:18;11839:35;20146:4;11867:5;20135:16;13794:2;13783:9;13779:18;11839:35;6085:5;13877:2;13866:9;13862:18;6055:37;13554:3;13914;13903:9;13899:19;13892:49;13955:72;13554:3;13543:9;13539:19;14013:6;13955:72;;;19827:54;;14106:3;14091:19;;5714:37;-1:-1;14190:3;14175:19;6055:37;13947:80;13525:680;-1:-1;;;;;13525:680;14212:201;19660:13;;19653:21;5948:34;;14324:2;14309:18;;14295:118;14420:213;6055:37;;;14538:2;14523:18;;14509:124;14640:301;;14778:2;14799:17;14792:47;14853:78;14778:2;14767:9;14763:18;14917:6;14853:78;;14948:407;15139:2;15153:47;;;15124:18;;;18932:19;7866:34;18972:14;;;7846:55;7920:12;;;15110:245;15362:407;15553:2;15567:47;;;8171:2;15538:18;;;18932:19;8207:32;18972:14;;;8187:53;8259:12;;;15524:245;15776:407;15967:2;15981:47;;;8510:2;15952:18;;;18932:19;8546:34;18972:14;;;8526:55;-1:-1;;;8601:12;;;8594:28;8641:12;;;15938:245;16190:407;16381:2;16395:47;;;8892:2;16366:18;;;18932:19;-1:-1;;;18972:14;;;8908:43;8970:12;;;16352:245;16604:407;16795:2;16809:47;;;9221:2;16780:18;;;18932:19;-1:-1;;;18972:14;;;9237:41;9297:12;;;16766:245;17018:407;17209:2;17223:47;;;9548:2;17194:18;;;18932:19;-1:-1;;;18972:14;;;9564:43;9626:12;;;17180:245;17432:407;17623:2;17637:47;;;9877:2;17608:18;;;18932:19;9913:34;18972:14;;;9893:55;-1:-1;;;9968:12;;;9961:32;10012:12;;;17594:245;17846:385;;18026:2;18047:17;18040:47;19838:42;;;;;;10359:16;10353:23;19827:54;18026:2;18015:9;18011:18;5714:37;20146:4;18026:2;10544:5;10540:16;10534:23;20135:16;10607:14;18015:9;10607:14;11839:35;20146:4;10607:14;10709:5;10705:16;10699:23;20135:16;10772:14;18015:9;10772:14;11839:35;10772:14;10866:5;10862:16;10856:23;10933:14;18015:9;10933:14;6055:37;10933:14;11044:5;11040:16;11034:23;10278:4;11077:14;18015:9;11077:14;11070:38;11123:67;10269:14;18015:9;10269:14;11171:12;11123:67;;;19838:42;11077:14;11274:5;11270:16;11264:23;19827:54;11341:14;18015:9;11341:14;5714:37;11341:14;11431:5;11427:16;11421:23;10278:4;18015:9;11498:14;6055:37;18093:128;;;;;;17997:234;;;;;20164:268;20229:1;20236:101;20250:6;20247:1;20244:13;20236:101;;;20317:11;;;20311:18;20298:11;;;20291:39;20272:2;20265:10;20236:101;;;20352:6;20349:1;20346:13;20343:2;;;-1:-1;;20229:1;20399:16;;20392:27;20213:219;20545:117;-1:-1;;;;;19827:54;;20604:35;;20594:2;;20653:1;;20643:12;20594:2;20588:74;;20669:111;20750:5;19660:13;19653:21;20728:5;20725:32;20715:2;;20771:1;;20761:12
Swarm Source
ipfs://e71e3297120adcf2b452b018ba4d6902f70540fb40c8bea27bbf3fc8297d608b
Loading...
Loading
Loading...
Loading
Loading...
Loading
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.