Source Code
Overview
S Balance
0 S
More Info
ContractCreator
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Latest 25 internal transactions (View All)
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
7102318 | 7 hrs ago | 0 S | ||||
7102191 | 7 hrs ago | 0.21196346 S | ||||
7057379 | 11 hrs ago | 0 S | ||||
6952043 | 20 hrs ago | 0 S | ||||
6824699 | 30 hrs ago | 0.18351041 S | ||||
6819663 | 30 hrs ago | 0.18351041 S | ||||
6808685 | 31 hrs ago | 0 S | ||||
6808685 | 31 hrs ago | 0 S | ||||
6808685 | 31 hrs ago | 0 S | ||||
6808685 | 31 hrs ago | 0 S | ||||
6808685 | 31 hrs ago | 0 S | ||||
6808685 | 31 hrs ago | 0 S | ||||
6808685 | 31 hrs ago | 0 S | ||||
6808685 | 31 hrs ago | 0 S | ||||
6808685 | 31 hrs ago | 0 S | ||||
6808685 | 31 hrs ago | 0 S | ||||
6808685 | 31 hrs ago | 0 S | ||||
6808685 | 31 hrs ago | 0 S | ||||
6808685 | 31 hrs ago | 0 S | ||||
6808685 | 31 hrs ago | 0 S | ||||
6808685 | 31 hrs ago | 0 S | ||||
6808685 | 31 hrs ago | 0 S | ||||
6808685 | 31 hrs ago | 0 S | ||||
6808685 | 31 hrs ago | 0 S | ||||
6808685 | 31 hrs ago | 0 S |
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xc27E6311...A2A682042 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
Vault
Compiler Version
v0.8.26+commit.8a97fa7a
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.18; import "../interface/IVault.sol"; import "../interface/IVaultCrossChainManager.sol"; import "../library/Utils.sol"; import "openzeppelin-contracts/contracts/token/ERC20/IERC20.sol"; import "openzeppelin-contracts-upgradeable/contracts/security/PausableUpgradeable.sol"; import "openzeppelin-contracts-upgradeable/contracts/access/OwnableUpgradeable.sol"; import "openzeppelin-contracts/contracts/utils/structs/EnumerableSet.sol"; import "openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol"; import "../interface/cctp/ITokenMessenger.sol"; import "../interface/cctp/IMessageTransmitter.sol"; /// @title Vault contract /// @author Orderly_Rubick, Orderly_Zion /// @notice Vault is responsible for saving user's erc20 token. /// EACH CHAIN SHOULD HAVE ONE Vault CONTRACT. /// User can deposit erc20 (USDC) from Vault. /// Only crossChainManager can approve withdraw request. contract Vault is IVault, PausableUpgradeable, OwnableUpgradeable { using EnumerableSet for EnumerableSet.Bytes32Set; using SafeERC20 for IERC20; // The cross-chain manager address on Vault side address public crossChainManagerAddress; // An incrasing deposit id / nonce on Vault side uint64 public depositId; // A set to record the hash value of all allowed brokerIds // brokerHash = keccak256(abi.encodePacked(brokerId)) EnumerableSet.Bytes32Set private allowedBrokerSet; // A set to record the hash value of all allowed tokens // tokenHash = keccak256(abi.encodePacked(tokenSymbol)) EnumerableSet.Bytes32Set private allowedTokenSet; // A mapping from tokenHash to token contract address mapping(bytes32 => address) public allowedToken; // A flag to indicate if deposit fee is enabled bool public depositFeeEnabled; // https://developers.circle.com/stablecoin/docs/cctp-protocol-contract#tokenmessenger-mainnet // TokenMessager for CCTP address public tokenMessengerContract; // MessageTransmitterContract for CCTP address public messageTransmitterContract; // A set to record deposit limit for each token. 0 means unlimited mapping(address => uint256) public tokenAddress2DepositLimit; /// @notice Require only cross-chain manager can call modifier onlyCrossChainManager() { if (msg.sender != crossChainManagerAddress) revert OnlyCrossChainManagerCanCall(); _; } /// @notice check non-zero address modifier nonZeroAddress(address _address) { if (_address == address(0)) revert AddressZero(); _; } constructor() { _disableInitializers(); } function initialize() external override initializer { __Ownable_init(); __Pausable_init(); } /// @notice Change crossChainManager address function setCrossChainManager(address _crossChainManagerAddress) public override onlyOwner nonZeroAddress(_crossChainManagerAddress) { emit ChangeCrossChainManager(crossChainManagerAddress, _crossChainManagerAddress); crossChainManagerAddress = _crossChainManagerAddress; } /// @notice Set deposit limit for a token function setDepositLimit(address _tokenAddress, uint256 _limit) public override onlyOwner { tokenAddress2DepositLimit[_tokenAddress] = _limit; emit ChangeDepositLimit(_tokenAddress, _limit); } /// @notice Add contract address for an allowed token given the tokenHash /// @dev This function is only called when changing allow status for a token, not for initializing function setAllowedToken(bytes32 _tokenHash, bool _allowed) public override onlyOwner { bool succ = false; if (_allowed) { // require tokenAddress exist if (allowedToken[_tokenHash] == address(0)) revert AddressZero(); succ = allowedTokenSet.add(_tokenHash); } else { succ = allowedTokenSet.remove(_tokenHash); } if (!succ) revert EnumerableSetError(); emit SetAllowedToken(_tokenHash, _allowed); } /// @notice Add the hash value for an allowed brokerId function setAllowedBroker(bytes32 _brokerHash, bool _allowed) public override onlyOwner { bool succ = false; if (_allowed) { succ = allowedBrokerSet.add(_brokerHash); } else { succ = allowedBrokerSet.remove(_brokerHash); } if (!succ) revert EnumerableSetError(); emit SetAllowedBroker(_brokerHash, _allowed); } /// @notice Change the token address for an allowed token, used when a new token is added /// @dev maybe should called `addTokenAddressAndAllow`, because it's for initializing function changeTokenAddressAndAllow(bytes32 _tokenHash, address _tokenAddress) public override onlyOwner nonZeroAddress(_tokenAddress) { allowedToken[_tokenHash] = _tokenAddress; allowedTokenSet.add(_tokenHash); // ignore returns here emit ChangeTokenAddressAndAllow(_tokenHash, _tokenAddress); } /// @notice Check if the given tokenHash is allowed on this Vault function getAllowedToken(bytes32 _tokenHash) public view override returns (address) { if (allowedTokenSet.contains(_tokenHash)) { return allowedToken[_tokenHash]; } else { return address(0); } } /// @notice Check if the brokerHash is allowed on this Vault function getAllowedBroker(bytes32 _brokerHash) public view override returns (bool) { return allowedBrokerSet.contains(_brokerHash); } /// @notice Get all allowed tokenHash from this Vault function getAllAllowedToken() public view override returns (bytes32[] memory) { return allowedTokenSet.values(); } /// @notice Get all allowed brokerIds hash from this Vault function getAllAllowedBroker() public view override returns (bytes32[] memory) { return allowedBrokerSet.values(); } /// @notice The function to receive user deposit, VaultDepositFE type is defined in VaultTypes.sol function deposit(VaultTypes.VaultDepositFE calldata data) public payable override whenNotPaused { _deposit(msg.sender, data); } /// @notice The function to allow users to deposit on behalf of another user, the receiver is the user who will receive the deposit function depositTo(address receiver, VaultTypes.VaultDepositFE calldata data) public payable override whenNotPaused { _deposit(receiver, data); } /// @notice The function to query layerzero fee from CrossChainManager contract function getDepositFee(address receiver, VaultTypes.VaultDepositFE calldata data) public view override whenNotPaused returns (uint256) { _validateDeposit(receiver, data); VaultTypes.VaultDeposit memory depositData = VaultTypes.VaultDeposit( data.accountId, receiver, data.brokerHash, data.tokenHash, data.tokenAmount, depositId + 1 ); return (IVaultCrossChainManager(crossChainManagerAddress).getDepositFee(depositData)); } /// @notice The function to enable/disable deposit fee function enableDepositFee(bool _enabled) public override onlyOwner whenNotPaused { depositFeeEnabled = _enabled; } /// @notice The function to call deposit of CCManager contract function _deposit(address receiver, VaultTypes.VaultDepositFE calldata data) internal whenNotPaused { _validateDeposit(receiver, data); // avoid reentrancy, so `transferFrom` token at the beginning IERC20 tokenAddress = IERC20(allowedToken[data.tokenHash]); // check deposit limit if ( tokenAddress2DepositLimit[address(tokenAddress)] != 0 && data.tokenAmount + tokenAddress.balanceOf(address(this)) > tokenAddress2DepositLimit[address(tokenAddress)] ) { revert DepositExceedLimit(); } // avoid non-standard ERC20 tranferFrom bug tokenAddress.safeTransferFrom(msg.sender, address(this), data.tokenAmount); // cross-chain tx to ledger VaultTypes.VaultDeposit memory depositData = VaultTypes.VaultDeposit( data.accountId, receiver, data.brokerHash, data.tokenHash, data.tokenAmount, _newDepositId() ); // if deposit fee is enabled, user should pay fee in native token and the msg.value will be forwarded to CrossChainManager to pay for the layerzero cross-chain fee if (depositFeeEnabled) { if (msg.value == 0) revert ZeroDepositFee(); IVaultCrossChainManager(crossChainManagerAddress).depositWithFeeRefund{value: msg.value}( msg.sender, depositData ); } else { IVaultCrossChainManager(crossChainManagerAddress).deposit(depositData); } emit AccountDepositTo(data.accountId, receiver, depositId, data.tokenHash, data.tokenAmount); } /// @notice The function to validate deposit data function _validateDeposit(address receiver, VaultTypes.VaultDepositFE calldata data) internal view { // check if tokenHash and brokerHash are allowed if (!allowedTokenSet.contains(data.tokenHash)) revert TokenNotAllowed(); if (!allowedBrokerSet.contains(data.brokerHash)) revert BrokerNotAllowed(); // check if accountId = keccak256(abi.encodePacked(brokerHash, receiver)) if (!Utils.validateAccountId(data.accountId, data.brokerHash, receiver)) revert AccountIdInvalid(); // check if tokenAmount > 0 if (data.tokenAmount == 0) revert ZeroDeposit(); } /// @notice user withdraw function withdraw(VaultTypes.VaultWithdraw calldata data) public override onlyCrossChainManager whenNotPaused { // send cross-chain tx to ledger IVaultCrossChainManager(crossChainManagerAddress).withdraw(data); // avoid reentrancy, so `transfer` token at the end IERC20 tokenAddress = IERC20(allowedToken[data.tokenHash]); uint128 amount = data.tokenAmount - data.fee; require(tokenAddress.balanceOf(address(this)) >= amount, "Vault: insufficient balance"); // avoid revert if transfer to zero address or blacklist. /// @notice This check condition should always be true because cc promise that if (!_validReceiver(data.receiver, address(tokenAddress))) { emit WithdrawFailed(address(tokenAddress), data.receiver, amount); } else { tokenAddress.safeTransfer(data.receiver, amount); } // emit withdraw event emit AccountWithdraw( data.accountId, data.withdrawNonce, data.brokerHash, data.sender, data.receiver, data.tokenHash, data.tokenAmount, data.fee ); } /// @notice validate if the receiver address is zero or in the blacklist function _validReceiver(address _receiver, address _token) internal view returns (bool) { if (_receiver == address(0)) { return false; } else if (_isBlacklisted(_receiver, _token)) { return false; } else { return true; } } /// @notice check if the receiver is in the blacklist in case the token contract has the blacklist function function _isBlacklisted(address _receiver, address _token) internal view returns (bool) { bytes memory data = abi.encodeWithSignature("isBlacklisted(address)", _receiver); (bool success, bytes memory result) = _token.staticcall(data); if (success) { return abi.decode(result, (bool)); } else { return false; } } function delegateSigner(VaultTypes.VaultDelegate calldata data) public override { if ((msg.sender).code.length == 0) revert ZeroCodeLength(); if ((data.delegateSigner).code.length != 0) revert NotZeroCodeLength(); if (!allowedBrokerSet.contains(data.brokerHash)) revert BrokerNotAllowed(); // emit delegate event emit AccountDelegate(msg.sender, data.brokerHash, data.delegateSigner, block.chainid, block.number); } /// @notice Update the depositId function _newDepositId() internal returns (uint64) { return ++depositId; } function emergencyPause() public whenNotPaused onlyOwner { _pause(); } function emergencyUnpause() public whenPaused onlyOwner { _unpause(); } function setTokenMessengerContract(address _tokenMessengerContract) public override onlyOwner nonZeroAddress(_tokenMessengerContract) { tokenMessengerContract = _tokenMessengerContract; } function setRebalanceMessengerContract(address _rebalanceMessengerContract) public override onlyOwner nonZeroAddress(_rebalanceMessengerContract) { messageTransmitterContract = _rebalanceMessengerContract; } function rebalanceBurn(RebalanceTypes.RebalanceBurnCCData calldata data) external override onlyCrossChainManager { address burnToken = allowedToken[data.tokenHash]; if (burnToken == address(0)) revert AddressZero(); IERC20(burnToken).approve(tokenMessengerContract, data.amount); try ITokenMessenger(tokenMessengerContract).depositForBurn( data.amount, data.dstDomain, Utils.toBytes32(data.dstVaultAddress), burnToken ) { // send succ cross-chain tx to ledger // rebalanceId, amount, tokenHash, burnChainId, mintChainId | true IVaultCrossChainManager(crossChainManagerAddress).burnFinish( RebalanceTypes.RebalanceBurnCCFinishData({ rebalanceId: data.rebalanceId, amount: data.amount, tokenHash: data.tokenHash, burnChainId: data.burnChainId, mintChainId: data.mintChainId, success: true }) ); } catch { // send fail cross-chain tx to ledger // rebalanceId, amount, tokenHash, burnChainId, mintChainId | false IVaultCrossChainManager(crossChainManagerAddress).burnFinish( RebalanceTypes.RebalanceBurnCCFinishData({ rebalanceId: data.rebalanceId, amount: data.amount, tokenHash: data.tokenHash, burnChainId: data.burnChainId, mintChainId: data.mintChainId, success: false }) ); } } function rebalanceMint(RebalanceTypes.RebalanceMintCCData calldata data) external override onlyCrossChainManager { try IMessageTransmitter(messageTransmitterContract).receiveMessage(data.messageBytes, data.messageSignature) { // send succ cross-chain tx to ledger // rebalanceId, amount, tokenHash, burnChainId, mintChainId | true IVaultCrossChainManager(crossChainManagerAddress).mintFinish( RebalanceTypes.RebalanceMintCCFinishData({ rebalanceId: data.rebalanceId, amount: data.amount, tokenHash: data.tokenHash, burnChainId: data.burnChainId, mintChainId: data.mintChainId, success: true }) ); } catch { // send fail cross-chain tx to ledger // rebalanceId, amount, tokenHash, burnChainId, mintChainId | false IVaultCrossChainManager(crossChainManagerAddress).mintFinish( RebalanceTypes.RebalanceMintCCFinishData({ rebalanceId: data.rebalanceId, amount: data.amount, tokenHash: data.tokenHash, burnChainId: data.burnChainId, mintChainId: data.mintChainId, success: false }) ); } } }
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.18; import "./../library/types/VaultTypes.sol"; import "./../library/types/RebalanceTypes.sol"; interface IVault { error OnlyCrossChainManagerCanCall(); error AccountIdInvalid(); error TokenNotAllowed(); error BrokerNotAllowed(); error BalanceNotEnough(uint256 balance, uint128 amount); error AddressZero(); error EnumerableSetError(); error ZeroDepositFee(); error ZeroDeposit(); error ZeroCodeLength(); error NotZeroCodeLength(); error DepositExceedLimit(); // @deprecated event AccountDeposit( bytes32 indexed accountId, address indexed userAddress, uint64 indexed depositNonce, bytes32 tokenHash, uint128 tokenAmount ); event AccountDepositTo( bytes32 indexed accountId, address indexed userAddress, uint64 indexed depositNonce, bytes32 tokenHash, uint128 tokenAmount ); event AccountWithdraw( bytes32 indexed accountId, uint64 indexed withdrawNonce, bytes32 brokerHash, address sender, address receiver, bytes32 tokenHash, uint128 tokenAmount, uint128 fee ); event AccountDelegate( address indexed delegateContract, bytes32 indexed brokerHash, address indexed delegateSigner, uint256 chainId, uint256 blockNumber ); event SetAllowedToken(bytes32 indexed _tokenHash, bool _allowed); event SetAllowedBroker(bytes32 indexed _brokerHash, bool _allowed); event ChangeTokenAddressAndAllow(bytes32 indexed _tokenHash, address _tokenAddress); event ChangeCrossChainManager(address oldAddress, address newAddress); event ChangeDepositLimit(address indexed _tokenAddress, uint256 _limit); event WithdrawFailed(address indexed token, address indexed receiver, uint256 amount); function initialize() external; function deposit(VaultTypes.VaultDepositFE calldata data) external payable; function depositTo(address receiver, VaultTypes.VaultDepositFE calldata data) external payable; function getDepositFee(address recevier, VaultTypes.VaultDepositFE calldata data) external view returns (uint256); function enableDepositFee(bool _enabled) external; function withdraw(VaultTypes.VaultWithdraw calldata data) external; function delegateSigner(VaultTypes.VaultDelegate calldata data) external; // CCTP: functions for receive rebalance msg function rebalanceMint(RebalanceTypes.RebalanceMintCCData calldata data) external; function rebalanceBurn(RebalanceTypes.RebalanceBurnCCData calldata data) external; function setTokenMessengerContract(address _tokenMessengerContract) external; function setRebalanceMessengerContract(address _rebalanceMessengerContract) external; // admin call function setCrossChainManager(address _crossChainManagerAddress) external; function setDepositLimit(address _tokenAddress, uint256 _limit) external; function emergencyPause() external; function emergencyUnpause() external; // whitelist function setAllowedToken(bytes32 _tokenHash, bool _allowed) external; function setAllowedBroker(bytes32 _brokerHash, bool _allowed) external; function changeTokenAddressAndAllow(bytes32 _tokenHash, address _tokenAddress) external; function getAllowedToken(bytes32 _tokenHash) external view returns (address); function getAllowedBroker(bytes32 _brokerHash) external view returns (bool); function getAllAllowedToken() external view returns (bytes32[] memory); function getAllAllowedBroker() external view returns (bytes32[] memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.18; // Importing necessary utility libraries and types import "../library/types/AccountTypes.sol"; import "../library/types/VaultTypes.sol"; import "../library/types/RebalanceTypes.sol"; /// @title IVaultCrossChainManager Interface /// @notice Interface for managing cross-chain activities related to the vault. interface IVaultCrossChainManager { /// @notice Triggers a withdrawal from the ledger. /// @param withdraw Struct containing withdrawal data. function withdraw(VaultTypes.VaultWithdraw memory withdraw) external; /// @notice Triggers a finish msg from vault to ledger to inform the status of burn /// @param data Struct containing burn data. function burnFinish(RebalanceTypes.RebalanceBurnCCFinishData memory data) external; /// @notice Triggers a finish msg from vault to ledger to inform the status of mint /// @param data Struct containing mint data. function mintFinish(RebalanceTypes.RebalanceMintCCFinishData memory data) external; /// @notice Initiates a deposit to the vault. /// @param data Struct containing deposit data. function deposit(VaultTypes.VaultDeposit memory data) external; /// @notice Initiates a deposit to the vault along with native fees. /// @param data Struct containing deposit data. function depositWithFee(VaultTypes.VaultDeposit memory data) external payable; /// @notice Initiates a deposit to the vault along with native fees. /// @param refundReceiver Address of the receiver for the deposit fee refund. /// @param data Struct containing deposit data. function depositWithFeeRefund(address refundReceiver, VaultTypes.VaultDeposit memory data) external payable; /// @notice Fetches the deposit fee based on deposit data. /// @param data Struct containing deposit data. /// @return fee The calculated deposit fee. function getDepositFee(VaultTypes.VaultDeposit memory data) external view returns (uint256); /// @notice Sets the vault address. /// @param vault Address of the new vault. function setVault(address vault) external; /// @notice Sets the cross-chain relay address. /// @param crossChainRelay Address of the new cross-chain relay. function setCrossChainRelay(address crossChainRelay) external; }
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.18; /// @title Utils library /// @author Orderly_Rubick Orderly_Zion library Utils { function getAccountId(address _userAddr, string memory _brokerId) internal pure returns (bytes32) { return keccak256(abi.encode(_userAddr, calculateStringHash(_brokerId))); } function calculateAccountId(address _userAddr, bytes32 _brokerHash) internal pure returns (bytes32) { return keccak256(abi.encode(_userAddr, _brokerHash)); } function calculateStringHash(string memory _str) internal pure returns (bytes32) { return keccak256(abi.encodePacked(_str)); } function validateAccountId(bytes32 _accountId, bytes32 _brokerHash, address _userAddress) internal pure returns (bool) { return keccak256(abi.encode(_userAddress, _brokerHash)) == _accountId; } function validateAccountId(bytes32 _accountId, bytes32 _brokerHash, bytes32 _userAddress) internal pure returns (bool) { return keccak256(abi.encode(_userAddress, _brokerHash)) == _accountId; } function toBytes32(address addr) internal pure returns (bytes32) { return bytes32(abi.encode(addr)); } function bytes32ToBytes(bytes32 _bytes32) internal pure returns (bytes memory) { return abi.encodePacked(_bytes32); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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); /** * @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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract PausableUpgradeable is Initializable, ContextUpgradeable { /** * @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. */ function __Pausable_init() internal onlyInitializing { __Pausable_init_unchained(); } function __Pausable_init_unchained() internal onlyInitializing { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/structs/EnumerableSet.sol) // This file was procedurally generated from scripts/generate/templates/EnumerableSet.js. pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. * * [WARNING] * ==== * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure * unusable. * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info. * * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an * array of EnumerableSet. * ==== */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastValue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastValue; // Update the index for the moved value set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { bytes32[] memory store = _values(set._inner); bytes32[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values in the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/draft-IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.18; interface ITokenMessenger { function depositForBurn(uint256 amount, uint32 destinationDomain, bytes32 mintRecipient, address burnToken) external returns (uint64 _nonce); }
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.18; interface IMessageTransmitter { function receiveMessage(bytes calldata message, bytes calldata attestation) external returns (bool success); }
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.18; /// @title VaultTypes library /// @author Orderly_Rubick library VaultTypes { struct VaultDepositFE { bytes32 accountId; bytes32 brokerHash; bytes32 tokenHash; uint128 tokenAmount; } struct VaultDeposit { bytes32 accountId; address userAddress; bytes32 brokerHash; bytes32 tokenHash; uint128 tokenAmount; uint64 depositNonce; // deposit nonce } struct VaultWithdraw { bytes32 accountId; bytes32 brokerHash; bytes32 tokenHash; uint128 tokenAmount; uint128 fee; address sender; address receiver; uint64 withdrawNonce; // withdraw nonce } struct VaultDelegate { bytes32 brokerHash; address delegateSigner; } }
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.18; /// @title RebalanceTypes library /// @author Orderly_Rubick library RebalanceTypes { enum RebalanceStatusEnum { None, Pending, Succ, Fail } // RebalanceStatus struct RebalanceStatus { uint64 rebalanceId; // Because the mapping key rebalanceId is mod, so we need to record the real rebalanceId RebalanceStatusEnum burnStatus; RebalanceStatusEnum mintStatus; } // RebalanceBurnUploadData struct RebalanceBurnUploadData { bytes32 r; bytes32 s; uint8 v; uint64 rebalanceId; uint128 amount; bytes32 tokenHash; uint256 burnChainId; uint256 mintChainId; } struct RebalanceBurnCCData { uint32 dstDomain; uint64 rebalanceId; uint128 amount; bytes32 tokenHash; uint256 burnChainId; uint256 mintChainId; address dstVaultAddress; } struct RebalanceBurnCCFinishData { bool success; uint64 rebalanceId; uint128 amount; bytes32 tokenHash; uint256 burnChainId; uint256 mintChainId; } // RebalanceMintUploadData struct RebalanceMintUploadData { bytes32 r; bytes32 s; uint8 v; uint64 rebalanceId; uint128 amount; bytes32 tokenHash; uint256 burnChainId; uint256 mintChainId; bytes messageBytes; bytes messageSignature; } struct RebalanceMintCCData { uint64 rebalanceId; uint128 amount; bytes32 tokenHash; uint256 burnChainId; uint256 mintChainId; bytes messageBytes; bytes messageSignature; } struct RebalanceMintCCFinishData { bool success; uint64 rebalanceId; uint128 amount; bytes32 tokenHash; uint256 burnChainId; uint256 mintChainId; } }
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.18; /// @title AccountTypes library /// @author Orderly_Rubick library AccountTypes { struct PerpPosition { int128 positionQty; int128 costPosition; int128 lastSumUnitaryFundings; uint128 lastExecutedPrice; uint128 lastSettledPrice; uint128 averageEntryPrice; int128 openingCost; uint128 lastAdlPrice; } // account id, unique for each account, should be accountId -> {addr, brokerId} // and keccak256(addr, brokerID) == accountId struct Account { // user's broker id bytes32 brokerHash; // primary address address userAddress; // mapping symbol => balance mapping(bytes32 => uint128) balances; // mapping symbol => totalFrozenBalance mapping(bytes32 => uint128) totalFrozenBalances; // mapping withdrawNonce => symbol => balance mapping(uint64 => mapping(bytes32 => uint128)) frozenBalances; // perp position mapping(bytes32 => PerpPosition) perpPositions; // lastwithdraw nonce uint64 lastWithdrawNonce; // last perp trade id uint64 lastPerpTradeId; // last engine event id uint64 lastEngineEventId; // @deprecated last deposit event id uint64 lastDepositEventId; // last deposit src chain id uint64 lastDepositSrcChainId; // last deposit src chain nonce uint64 lastDepositSrcChainNonce; // solana account public key bytes32 solAccountPubKey; } struct AccountDeposit { bytes32 accountId; bytes32 brokerHash; address userAddress; bytes32 tokenHash; uint256 srcChainId; uint128 tokenAmount; uint64 srcChainDepositNonce; } struct AccountDepositSol { bytes32 accountId; bytes32 brokerHash; bytes32 pubkey; bytes32 tokenHash; uint256 srcChainId; uint128 tokenAmount; uint64 srcChainDepositNonce; } // for accountWithdrawFinish struct AccountWithdraw { bytes32 accountId; address sender; address receiver; bytes32 brokerHash; bytes32 tokenHash; uint128 tokenAmount; uint128 fee; uint256 chainId; uint64 withdrawNonce; } struct AccountTokenBalances { // token hash bytes32 tokenHash; // balance & frozenBalance uint128 balance; uint128 frozenBalance; } struct AccountPerpPositions { // symbol hash bytes32 symbolHash; // perp position int128 positionQty; int128 costPosition; int128 lastSumUnitaryFundings; uint128 lastExecutedPrice; uint128 lastSettledPrice; uint128 averageEntryPrice; int128 openingCost; uint128 lastAdlPrice; } // for batch get struct AccountSnapshot { bytes32 accountId; bytes32 brokerHash; address userAddress; uint64 lastWithdrawNonce; uint64 lastPerpTradeId; uint64 lastEngineEventId; uint64 lastDepositEventId; AccountTokenBalances[] tokenBalances; AccountPerpPositions[] perpPositions; uint64 lastDepositSrcChainId; uint64 lastDepositSrcChainNonce; } struct AccountDelegateSigner { uint256 chainId; address signer; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; import "../../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ```solidity * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. * * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a * constructor. * * Emits an {Initialized} event. */ modifier initializer() { bool isTopLevelCall = !_initializing; require( (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1), "Initializable: contract is already initialized" ); _initialized = 1; if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * A reinitializer may be used after the original initialization step. This is essential to configure modules that * are added through upgrades and that require initialization. * * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer` * cannot be nested. If one is invoked in the context of another, execution will revert. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. * * WARNING: setting the version to 255 will prevent any future reinitialization. * * Emits an {Initialized} event. */ modifier reinitializer(uint8 version) { require(!_initializing && _initialized < version, "Initializable: contract is already initialized"); _initialized = version; _initializing = true; _; _initializing = false; emit Initialized(version); } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. * * Emits an {Initialized} event the first time it is successfully executed. */ function _disableInitializers() internal virtual { require(!_initializing, "Initializable: contract is initializing"); if (_initialized != type(uint8).max) { _initialized = type(uint8).max; emit Initialized(type(uint8).max); } } /** * @dev Returns the highest version that has been initialized. See {reinitializer}. */ function _getInitializedVersion() internal view returns (uint8) { return _initialized; } /** * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}. */ function _isInitializing() internal view returns (bool) { return _initializing; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @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 * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/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.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
{ "remappings": [ "ds-test/=lib/forge-std/lib/ds-test/src/", "forge-std/=lib/forge-std/src/", "openzeppelin-contracts/=lib/openzeppelin-contracts/", "openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/", "contract-evm/=/", "erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/", "openzeppelin/=lib/openzeppelin-contracts-upgradeable/contracts/" ], "optimizer": { "enabled": true, "runs": 1000 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "ipfs", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "evmVersion": "cancun", "viaIR": false, "libraries": {} }
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccountIdInvalid","type":"error"},{"inputs":[],"name":"AddressZero","type":"error"},{"inputs":[{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint128","name":"amount","type":"uint128"}],"name":"BalanceNotEnough","type":"error"},{"inputs":[],"name":"BrokerNotAllowed","type":"error"},{"inputs":[],"name":"DepositExceedLimit","type":"error"},{"inputs":[],"name":"EnumerableSetError","type":"error"},{"inputs":[],"name":"NotZeroCodeLength","type":"error"},{"inputs":[],"name":"OnlyCrossChainManagerCanCall","type":"error"},{"inputs":[],"name":"TokenNotAllowed","type":"error"},{"inputs":[],"name":"ZeroCodeLength","type":"error"},{"inputs":[],"name":"ZeroDeposit","type":"error"},{"inputs":[],"name":"ZeroDepositFee","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegateContract","type":"address"},{"indexed":true,"internalType":"bytes32","name":"brokerHash","type":"bytes32"},{"indexed":true,"internalType":"address","name":"delegateSigner","type":"address"},{"indexed":false,"internalType":"uint256","name":"chainId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"AccountDelegate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"accountId","type":"bytes32"},{"indexed":true,"internalType":"address","name":"userAddress","type":"address"},{"indexed":true,"internalType":"uint64","name":"depositNonce","type":"uint64"},{"indexed":false,"internalType":"bytes32","name":"tokenHash","type":"bytes32"},{"indexed":false,"internalType":"uint128","name":"tokenAmount","type":"uint128"}],"name":"AccountDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"accountId","type":"bytes32"},{"indexed":true,"internalType":"address","name":"userAddress","type":"address"},{"indexed":true,"internalType":"uint64","name":"depositNonce","type":"uint64"},{"indexed":false,"internalType":"bytes32","name":"tokenHash","type":"bytes32"},{"indexed":false,"internalType":"uint128","name":"tokenAmount","type":"uint128"}],"name":"AccountDepositTo","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"accountId","type":"bytes32"},{"indexed":true,"internalType":"uint64","name":"withdrawNonce","type":"uint64"},{"indexed":false,"internalType":"bytes32","name":"brokerHash","type":"bytes32"},{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"bytes32","name":"tokenHash","type":"bytes32"},{"indexed":false,"internalType":"uint128","name":"tokenAmount","type":"uint128"},{"indexed":false,"internalType":"uint128","name":"fee","type":"uint128"}],"name":"AccountWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldAddress","type":"address"},{"indexed":false,"internalType":"address","name":"newAddress","type":"address"}],"name":"ChangeCrossChainManager","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_tokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"ChangeDepositLimit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"_tokenHash","type":"bytes32"},{"indexed":false,"internalType":"address","name":"_tokenAddress","type":"address"}],"name":"ChangeTokenAddressAndAllow","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"_brokerHash","type":"bytes32"},{"indexed":false,"internalType":"bool","name":"_allowed","type":"bool"}],"name":"SetAllowedBroker","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"_tokenHash","type":"bytes32"},{"indexed":false,"internalType":"bool","name":"_allowed","type":"bool"}],"name":"SetAllowedToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawFailed","type":"event"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"allowedToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_tokenHash","type":"bytes32"},{"internalType":"address","name":"_tokenAddress","type":"address"}],"name":"changeTokenAddressAndAllow","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"crossChainManagerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"bytes32","name":"brokerHash","type":"bytes32"},{"internalType":"address","name":"delegateSigner","type":"address"}],"internalType":"struct VaultTypes.VaultDelegate","name":"data","type":"tuple"}],"name":"delegateSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"bytes32","name":"accountId","type":"bytes32"},{"internalType":"bytes32","name":"brokerHash","type":"bytes32"},{"internalType":"bytes32","name":"tokenHash","type":"bytes32"},{"internalType":"uint128","name":"tokenAmount","type":"uint128"}],"internalType":"struct VaultTypes.VaultDepositFE","name":"data","type":"tuple"}],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"depositFeeEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"depositId","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"components":[{"internalType":"bytes32","name":"accountId","type":"bytes32"},{"internalType":"bytes32","name":"brokerHash","type":"bytes32"},{"internalType":"bytes32","name":"tokenHash","type":"bytes32"},{"internalType":"uint128","name":"tokenAmount","type":"uint128"}],"internalType":"struct VaultTypes.VaultDepositFE","name":"data","type":"tuple"}],"name":"depositTo","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"emergencyPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyUnpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"enableDepositFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAllAllowedBroker","outputs":[{"internalType":"bytes32[]","name":"","type":"bytes32[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllAllowedToken","outputs":[{"internalType":"bytes32[]","name":"","type":"bytes32[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_brokerHash","type":"bytes32"}],"name":"getAllowedBroker","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_tokenHash","type":"bytes32"}],"name":"getAllowedToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"components":[{"internalType":"bytes32","name":"accountId","type":"bytes32"},{"internalType":"bytes32","name":"brokerHash","type":"bytes32"},{"internalType":"bytes32","name":"tokenHash","type":"bytes32"},{"internalType":"uint128","name":"tokenAmount","type":"uint128"}],"internalType":"struct VaultTypes.VaultDepositFE","name":"data","type":"tuple"}],"name":"getDepositFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"messageTransmitterContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"dstDomain","type":"uint32"},{"internalType":"uint64","name":"rebalanceId","type":"uint64"},{"internalType":"uint128","name":"amount","type":"uint128"},{"internalType":"bytes32","name":"tokenHash","type":"bytes32"},{"internalType":"uint256","name":"burnChainId","type":"uint256"},{"internalType":"uint256","name":"mintChainId","type":"uint256"},{"internalType":"address","name":"dstVaultAddress","type":"address"}],"internalType":"struct RebalanceTypes.RebalanceBurnCCData","name":"data","type":"tuple"}],"name":"rebalanceBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint64","name":"rebalanceId","type":"uint64"},{"internalType":"uint128","name":"amount","type":"uint128"},{"internalType":"bytes32","name":"tokenHash","type":"bytes32"},{"internalType":"uint256","name":"burnChainId","type":"uint256"},{"internalType":"uint256","name":"mintChainId","type":"uint256"},{"internalType":"bytes","name":"messageBytes","type":"bytes"},{"internalType":"bytes","name":"messageSignature","type":"bytes"}],"internalType":"struct RebalanceTypes.RebalanceMintCCData","name":"data","type":"tuple"}],"name":"rebalanceMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_brokerHash","type":"bytes32"},{"internalType":"bool","name":"_allowed","type":"bool"}],"name":"setAllowedBroker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_tokenHash","type":"bytes32"},{"internalType":"bool","name":"_allowed","type":"bool"}],"name":"setAllowedToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_crossChainManagerAddress","type":"address"}],"name":"setCrossChainManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setDepositLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rebalanceMessengerContract","type":"address"}],"name":"setRebalanceMessengerContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenMessengerContract","type":"address"}],"name":"setTokenMessengerContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tokenAddress2DepositLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenMessengerContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"bytes32","name":"accountId","type":"bytes32"},{"internalType":"bytes32","name":"brokerHash","type":"bytes32"},{"internalType":"bytes32","name":"tokenHash","type":"bytes32"},{"internalType":"uint128","name":"tokenAmount","type":"uint128"},{"internalType":"uint128","name":"fee","type":"uint128"},{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint64","name":"withdrawNonce","type":"uint64"}],"internalType":"struct VaultTypes.VaultWithdraw","name":"data","type":"tuple"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Deployed Bytecode
0x6080604052600436106101f4575f3560e01c80638da5cb5b11610117578063c7eeb9c2116100ac578063d6aeb4311161007c578063e6b40bf211610062578063e6b40bf2146105c7578063f2fde38b146105e0578063f649e01b146105ff575f80fd5b8063d6aeb43114610594578063df0f4ae7146105a8575f80fd5b8063c7eeb9c214610518578063c9fc879714610537578063cb76efdf14610556578063d2c493fd14610575575f80fd5b806398c2d086116100e757806398c2d086146104a8578063b182dc69146104c7578063b1f6c868146104e6578063ba46a17714610505575f80fd5b80638da5cb5b1461040b5780639305a91a1461042857806394936b3d146104495780639852099c14610468575f80fd5b806351858e271161018d578063715018a61161015d578063715018a6146103945780638129fc1c146103a85780638b5ce46d146103bc5780638bc2714e146103e7575f80fd5b806351858e27146103165780635c975abb1461032a5780635e1eb4ce14610341578063681d527c14610360575f80fd5b80632df4869b116101c85780632df4869b14610299578063322dda6d146102b85780633d8afb53146102cb5780634a4e3bd514610302575f80fd5b806274f419146101f857806311e2e8c21461022a578063258082f51461024b578063272d177d1461027a575b5f80fd5b348015610203575f80fd5b50610217610212366004612644565b61061e565b6040519081526020015b60405180910390f35b348015610235575f80fd5b50610249610244366004612676565b61074b565b005b348015610256575f80fd5b5061026a610265366004612697565b6107fe565b6040519015158152602001610221565b348015610285575f80fd5b506102496102943660046126ae565b61080a565b3480156102a4575f80fd5b506102496102b33660046126d6565b61086a565b6102496102c63660046126ef565b61097b565b3480156102d6575f80fd5b50609e546102ea906001600160a01b031681565b6040516001600160a01b039091168152602001610221565b34801561030d575f80fd5b50610249610990565b348015610321575f80fd5b506102496109aa565b348015610335575f80fd5b5060335460ff1661026a565b34801561034c575f80fd5b5061024961035b366004612709565b6109c2565b34801561036b575f80fd5b506102ea61037a366004612697565b609c6020525f90815260409020546001600160a01b031681565b34801561039f575f80fd5b50610249610a69565b3480156103b3575f80fd5b50610249610a7a565b3480156103c7575f80fd5b506102176103d6366004612709565b609f6020525f908152604090205481565b3480156103f2575f80fd5b50609d546102ea9061010090046001600160a01b031681565b348015610416575f80fd5b506065546001600160a01b03166102ea565b348015610433575f80fd5b5061043c610ba0565b6040516102219190612722565b348015610454575f80fd5b50610249610463366004612709565b610bb1565b348015610473575f80fd5b5060975461048f90600160a01b900467ffffffffffffffff1681565b60405167ffffffffffffffff9091168152602001610221565b3480156104b3575f80fd5b506102496104c2366004612764565b610c11565b3480156104d2575f80fd5b506097546102ea906001600160a01b031681565b3480156104f1575f80fd5b50610249610500366004612786565b610f42565b610249610513366004612644565b611255565b348015610523575f80fd5b506102ea610532366004612697565b611267565b348015610542575f80fd5b506102496105513660046127ad565b61129f565b348015610561575f80fd5b506102496105703660046127db565b611354565b348015610580575f80fd5b5061024961058f3660046127f6565b611377565b34801561059f575f80fd5b5061043c61152e565b3480156105b3575f80fd5b506102496105c23660046127ad565b61153a565b3480156105d2575f80fd5b50609d5461026a9060ff1681565b3480156105eb575f80fd5b506102496105fa366004612709565b6115bb565b34801561060a575f80fd5b50610249610619366004612709565b611648565b5f6106276116b8565b610631838361170b565b5f6040518060c00160405280845f01358152602001856001600160a01b03168152602001846020013581526020018460400135815260200184606001602081019061067c919061283e565b6001600160801b031681526097546020909101906106ac90600160a01b900467ffffffffffffffff16600161286b565b67ffffffffffffffff1690526097546040517f2690952b0000000000000000000000000000000000000000000000000000000081529192506001600160a01b031690632690952b9061070290849060040161288b565b602060405180830381865afa15801561071d573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061074191906128ea565b9150505b92915050565b61075361183b565b806001600160a01b03811661077b57604051639fabe1c160e01b815260040160405180910390fd5b5f838152609c60205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384161790556107b9609a84611895565b506040516001600160a01b038316815283907fdd5c3f86e468e8e3d0da2fcfd07779497eec7c153f181f4859a704d66e2444f8906020015b60405180910390a2505050565b5f6107456098836118a7565b61081261183b565b6001600160a01b0382165f818152609f602052604090819020839055517f5e93e2a54705c57ed67fc9650a3b1753179b163ce4881d3964205a708eaef2fc9061085e9084815260200190565b60405180910390a25050565b333b5f036108a4576040517f30773dbb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6108b46040820160208301612709565b6001600160a01b03163b156108f5576040517f623793c900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610901609882356118a7565b61091e576040516359d9b86360e01b815260040160405180910390fd5b61092e6040820160208301612709565b604080514681524360208201526001600160a01b03929092169183359133917f1e236eed9d7e9ca81e25a438791ca7f69cf43cdcc537a0fd4f74f0697da0460b910160405180910390a450565b6109836116b8565b61098d33826118be565b50565b610998611c2d565b6109a061183b565b6109a8611c7f565b565b6109b26116b8565b6109ba61183b565b6109a8611cd1565b6109ca61183b565b806001600160a01b0381166109f257604051639fabe1c160e01b815260040160405180910390fd5b609754604080516001600160a01b03928316815291841660208301527f171f28064de7df65eb845ec06e0161ab312efa47a10fee262fab3dac2f33e80a910160405180910390a1506097805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b610a7161183b565b6109a85f611d0e565b5f54610100900460ff1615808015610a9857505f54600160ff909116105b80610ab15750303b158015610ab157505f5460ff166001145b610b285760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084015b60405180910390fd5b5f805460ff191660011790558015610b49575f805461ff0019166101001790555b610b51611d6c565b610b59611dde565b801561098d575f805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a150565b6060610bac609a611e50565b905090565b610bb961183b565b806001600160a01b038116610be157604051639fabe1c160e01b815260040160405180910390fd5b50609e805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6097546001600160a01b03163314610c3c5760405163833d33e760e01b815260040160405180910390fd5b610c446116b8565b6097546040517f98c2d0860000000000000000000000000000000000000000000000000000000081526001600160a01b03909116906398c2d08690610c8d908490600401612921565b5f604051808303815f87803b158015610ca4575f80fd5b505af1158015610cb6573d5f803e3d5ffd5b505050506040808201355f908152609c602052908120546001600160a01b031690610ce760a084016080850161283e565b610cf7608085016060860161283e565b610d0191906129c7565b6040516370a0823160e01b81523060048201529091506001600160801b038216906001600160a01b038416906370a0823190602401602060405180830381865afa158015610d51573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d7591906128ea565b1015610dc35760405162461bcd60e51b815260206004820152601b60248201527f5661756c743a20696e73756666696369656e742062616c616e636500000000006044820152606401610b1f565b610ddc610dd660e0850160c08601612709565b83611e5c565b610e4057610df060e0840160c08501612709565b6040516001600160801b03831681526001600160a01b03918216918416907f53d65f1c22313c10a5012cd91dc9444f0f6dd09d7887d1a8894a2f4dbae84e149060200160405180910390a3610e6d565b610e6d610e5360e0850160c08601612709565b6001600160a01b038416906001600160801b038416611e90565b610e7e610100840160e085016129e6565b67ffffffffffffffff1683357f732a6fe7863c74cbd74d2f2b1e3c27304465e354a9d38f03bf10c8436a70aa276020860135610ec060c0880160a08901612709565b610ed060e0890160c08a01612709565b6040890135610ee560808b0160608c0161283e565b610ef560a08c0160808d0161283e565b604080519687526001600160a01b039586166020880152949093169385019390935260608401526001600160801b0391821660808401521660a082015260c00160405180910390a3505050565b6097546001600160a01b03163314610f6d5760405163833d33e760e01b815260040160405180910390fd5b60608101355f908152609c60205260409020546001600160a01b031680610fa757604051639fabe1c160e01b815260040160405180910390fd5b609d546001600160a01b038083169163095ea7b39161010090910416610fd3606086016040870161283e565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b0390921660048301526001600160801b031660248201526044016020604051808303815f875af115801561103c573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110609190612a01565b50609d5461010090046001600160a01b0316636fd3504e611087606085016040860161283e565b6110946020860186612a1c565b6110ac6110a760e0880160c08901612709565b611f3e565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160801b03909316600484015263ffffffff91909116602483015260448201526001600160a01b03841660648201526084016020604051808303815f875af1925050508015611147575060408051601f3d908101601f1916820190925261114491810190612a3f565b60015b611218576097546040805160c0810182525f81526001600160a01b0390921691633a8c589991602080830191611182919088019088016129e6565b67ffffffffffffffff1681526020016111a1606087016040880161283e565b6001600160801b0316815260200185606001358152602001856080013581526020018560a001358152506040518263ffffffff1660e01b81526004016111e79190612a5a565b5f604051808303815f87803b1580156111fe575f80fd5b505af1158015611210573d5f803e3d5ffd5b505050505050565b506097546040805160c081018252600181526001600160a01b0390921691633a8c589991602080830191611182919088019088016129e6565b5050565b61125d6116b8565b61125182826118be565b5f611273609a836118a7565b1561129357505f908152609c60205260409020546001600160a01b031690565b505f919050565b919050565b6112a761183b565b5f81156112f4575f838152609c60205260409020546001600160a01b03166112e257604051639fabe1c160e01b815260040160405180910390fd5b6112ed609a84611895565b9050611302565b6112ff609a84611f6c565b90505b806113205760405163a65b249b60e01b815260040160405180910390fd5b827f75982e4722797db7bbfd209216413b5edd134de5cd687de171dd12deeee642ff836040516107f1911515815260200190565b61135c61183b565b6113646116b8565b609d805460ff1916911515919091179055565b6097546001600160a01b031633146113a25760405163833d33e760e01b815260040160405180910390fd5b609e546001600160a01b03166357ecfd286113c060a0840184612ab2565b6113cd60c0860186612ab2565b6040518563ffffffff1660e01b81526004016113ec9493929190612b24565b6020604051808303815f875af1925050508015611426575060408051601f3d908101601f1916820190925261142391810190612a01565b60015b6114f7576097546040805160c081019091525f81526001600160a01b03909116906358a126709060208082019061145f908601866129e6565b67ffffffffffffffff168152602001846020016020810190611481919061283e565b6001600160801b03168152602001846040013581526020018460600135815260200184608001358152506040518263ffffffff1660e01b81526004016114c79190612a5a565b5f604051808303815f87803b1580156114de575f80fd5b505af11580156114f0573d5f803e3d5ffd5b5050505050565b506097546040805160c08101909152600181526001600160a01b03909116906358a126709060208082019061145f908601866129e6565b6060610bac6098611e50565b61154261183b565b5f811561155b57611554609884611895565b9050611569565b611566609884611f6c565b90505b806115875760405163a65b249b60e01b815260040160405180910390fd5b827fe2004c296ac9fa6b9b57d55d8bbe257982d1111c229081bb672d5ddbec7f2606836040516107f1911515815260200190565b6115c361183b565b6001600160a01b03811661163f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b1f565b61098d81611d0e565b61165061183b565b806001600160a01b03811661167857604051639fabe1c160e01b815260040160405180910390fd5b50609d80546001600160a01b03909216610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff909216919091179055565b60335460ff16156109a85760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610b1f565b61171a609a60408301356118a7565b611750576040517fa29c498600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61175f609860208301356118a7565b61177c576040516359d9b86360e01b815260040160405180910390fd5b604080516001600160a01b0384166020828101919091528084013582840152825180830384018152606090920190925280519101208135146117ea576040517fc7ee9ce600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6117fa608082016060830161283e565b6001600160801b03165f03611251576040517f56316e8700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6065546001600160a01b031633146109a85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b1f565b5f6118a08383611f77565b9392505050565b5f81815260018301602052604081205415156118a0565b6118c66116b8565b6118d0828261170b565b6040808201355f908152609c6020908152828220546001600160a01b0316808352609f909152919020541580159061199f57506001600160a01b0381165f818152609f6020526040908190205490516370a0823160e01b81523060048201529091906370a0823190602401602060405180830381865afa158015611956573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061197a91906128ea565b61198a608085016060860161283e565b6001600160801b031661199d9190612b4a565b115b156119d6576040517fd969df2400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611a0633306119eb608086016060870161283e565b6001600160a01b0385169291906001600160801b0316611fc3565b5f6040518060c00160405280845f01358152602001856001600160a01b031681526020018460200135815260200184604001358152602001846060016020810190611a51919061283e565b6001600160801b03168152602001611a6761201a565b67ffffffffffffffff169052609d5490915060ff1615611b3a57345f03611aba576040517f93d3bb4d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6097546040517f4645c9620000000000000000000000000000000000000000000000000000000081526001600160a01b0390911690634645c962903490611b079033908690600401612b5d565b5f604051808303818588803b158015611b1e575f80fd5b505af1158015611b30573d5f803e3d5ffd5b5050505050611bb1565b6097546040517fa8f0d0700000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063a8f0d07090611b8390849060040161288b565b5f604051808303815f87803b158015611b9a575f80fd5b505af1158015611bac573d5f803e3d5ffd5b505050505b609754600160a01b900467ffffffffffffffff166001600160a01b03851684357f11f843b2ed43e9b4b568b4dff0c777a6c5ca538b4115a6149f28bce4bea901486040870135611c076080890160608a0161283e565b604080519283526001600160801b0390911660208301520160405180910390a450505050565b60335460ff166109a85760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610b1f565b611c87611c2d565b6033805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b611cd96116b8565b6033805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611cb43390565b606580546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b5f54610100900460ff16611dd65760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610b1f565b6109a8612067565b5f54610100900460ff16611e485760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610b1f565b6109a86120da565b60605f6118a083612150565b5f6001600160a01b038316611e7257505f610745565b611e7c83836121a9565b15611e8857505f610745565b506001610745565b6040516001600160a01b038316602482015260448101829052611f399084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526122a9565b505050565b604080516001600160a01b03831660208201525f910160405160208183030381529060405261074590612bcb565b5f6118a0838361238d565b5f818152600183016020526040812054611fbc57508154600181810184555f848152602080822090930184905584548482528286019093526040902091909155610745565b505f610745565b6040516001600160a01b03808516602483015283166044820152606481018290526120149085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611ed5565b50505050565b5f6097601481819054906101000a900467ffffffffffffffff1661203d90612bee565b91906101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055905090565b5f54610100900460ff166120d15760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610b1f565b6109a833611d0e565b5f54610100900460ff166121445760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610b1f565b6033805460ff19169055565b6060815f0180548060200260200160405190810160405280929190818152602001828054801561219d57602002820191905f5260205f20905b815481526020019060010190808311612189575b50505050509050919050565b6040516001600160a01b03831660248201525f90819060440160408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167ffe575a8700000000000000000000000000000000000000000000000000000000179052519091505f9081906001600160a01b03861690612238908590612c1a565b5f60405180830381855afa9150503d805f8114612270576040519150601f19603f3d011682016040523d82523d5f602084013e612275565b606091505b5091509150811561229e57808060200190518101906122949190612a01565b9350505050610745565b5f9350505050610745565b5f6122fd826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166124779092919063ffffffff16565b805190915015611f39578080602001905181019061231b9190612a01565b611f395760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610b1f565b5f8181526001830160205260408120548015612467575f6123af600183612c30565b85549091505f906123c290600190612c30565b9050818114612421575f865f0182815481106123e0576123e0612c43565b905f5260205f200154905080875f01848154811061240057612400612c43565b5f918252602080832090910192909255918252600188019052604090208390555b855486908061243257612432612c57565b600190038181905f5260205f20015f90559055856001015f8681526020019081526020015f205f905560019350505050610745565b5f915050610745565b5092915050565b606061248584845f8561248d565b949350505050565b6060824710156125055760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610b1f565b5f80866001600160a01b031685876040516125209190612c1a565b5f6040518083038185875af1925050503d805f811461255a576040519150601f19603f3d011682016040523d82523d5f602084013e61255f565b606091505b50915091506125708783838761257b565b979650505050505050565b606083156125e95782515f036125e2576001600160a01b0385163b6125e25760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610b1f565b5081612485565b61248583838151156125fe5781518083602001fd5b8060405162461bcd60e51b8152600401610b1f9190612c6b565b80356001600160a01b038116811461129a575f80fd5b5f6080828403121561263e575f80fd5b50919050565b5f8060a08385031215612655575f80fd5b61265e83612618565b915061266d846020850161262e565b90509250929050565b5f8060408385031215612687575f80fd5b8235915061266d60208401612618565b5f602082840312156126a7575f80fd5b5035919050565b5f80604083850312156126bf575f80fd5b6126c883612618565b946020939093013593505050565b5f60408284031280156126e7575f80fd5b509092915050565b5f608082840312156126ff575f80fd5b6118a0838361262e565b5f60208284031215612719575f80fd5b6118a082612618565b602080825282518282018190525f918401906040840190835b8181101561275957835183526020938401939092019160010161273b565b509095945050505050565b5f6101008284031280156126e7575f80fd5b5f60e0828403121561263e575f80fd5b5f60e08284031215612796575f80fd5b6118a08383612776565b801515811461098d575f80fd5b5f80604083850312156127be575f80fd5b8235915060208301356127d0816127a0565b809150509250929050565b5f602082840312156127eb575f80fd5b81356118a0816127a0565b5f60208284031215612806575f80fd5b813567ffffffffffffffff81111561281c575f80fd5b61074184828501612776565b80356001600160801b038116811461129a575f80fd5b5f6020828403121561284e575f80fd5b6118a082612828565b634e487b7160e01b5f52601160045260245ffd5b67ffffffffffffffff818116838216019081111561074557610745612857565b60c081016107458284805182526001600160a01b03602082015116602083015260408101516040830152606081015160608301526001600160801b03608082015116608083015267ffffffffffffffff60a08201511660a08301525050565b5f602082840312156128fa575f80fd5b5051919050565b67ffffffffffffffff8116811461098d575f80fd5b803561129a81612901565b81358152602080830135908201526040808301359082015261010081016001600160801b0361295260608501612828565b1660608301526001600160801b0361296c60808501612828565b1660808301526001600160a01b0361298660a08501612618565b1660a083015261299860c08401612618565b6001600160a01b031660c08301526129b260e08401612916565b67ffffffffffffffff811660e0840152612470565b6001600160801b03828116828216039081111561074557610745612857565b5f602082840312156129f6575f80fd5b81356118a081612901565b5f60208284031215612a11575f80fd5b81516118a0816127a0565b5f60208284031215612a2c575f80fd5b813563ffffffff811681146118a0575f80fd5b5f60208284031215612a4f575f80fd5b81516118a081612901565b60c08101610745828480511515825267ffffffffffffffff60208201511660208301526001600160801b036040820151166040830152606081015160608301526080810151608083015260a081015160a08301525050565b5f808335601e19843603018112612ac7575f80fd5b83018035915067ffffffffffffffff821115612ae1575f80fd5b602001915036819003821315612af5575f80fd5b9250929050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b604081525f612b37604083018688612afc565b8281036020840152612570818587612afc565b8082018082111561074557610745612857565b6001600160a01b038316815260e081016118a06020830184805182526001600160a01b03602082015116602083015260408101516040830152606081015160608301526001600160801b03608082015116608083015267ffffffffffffffff60a08201511660a08301525050565b8051602080830151919081101561263e575f1960209190910360031b1b16919050565b5f67ffffffffffffffff821667ffffffffffffffff8103612c1157612c11612857565b60010192915050565b5f82518060208501845e5f920191825250919050565b8181038181111561074557610745612857565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52603160045260245ffd5b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f8301168401019150509291505056fea2646970667358221220b99bfa084fcd8aeac47b5044f4989baba888c210affce409bf8ab51aa93eb3d564736f6c634300081a0033
Deployed Bytecode Sourcemap
952:15264:18:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6708:515;;;;;;;;;;-1:-1:-1;6708:515:18;;;;;:::i;:::-;;:::i;:::-;;;861:25:19;;;849:2;834:18;6708:515:18;;;;;;;;4750:360;;;;;;;;;;-1:-1:-1;4750:360:18;;;;;:::i;:::-;;:::i;:::-;;5503:145;;;;;;;;;;-1:-1:-1;5503:145:18;;;;;:::i;:::-;;:::i;:::-;;;1598:14:19;;1591:22;1573:41;;1561:2;1546:18;5503:145:18;1433:187:19;3212:212:18;;;;;;;;;;-1:-1:-1;3212:212:18;;;;;:::i;:::-;;:::i;11872:460::-;;;;;;;;;;-1:-1:-1;11872:460:18;;;;;:::i;:::-;;:::i;6144:139::-;;;;;;:::i;:::-;;:::i;2050:41::-;;;;;;;;;;-1:-1:-1;2050:41:18;;;;-1:-1:-1;;;;;2050:41:18;;;;;;-1:-1:-1;;;;;2679:55:19;;;2661:74;;2649:2;2634:18;2050:41:18;2515:226:19;12555:83:18;;;;;;;;;;;;;:::i;12467:82::-;;;;;;;;;;;;;:::i;1858:84:2:-;;;;;;;;;;-1:-1:-1;1928:7:2;;;;1858:84;;2831:329:18;;;;;;;;;;-1:-1:-1;2831:329:18;;;;;:::i;:::-;;:::i;1694:47::-;;;;;;;;;;-1:-1:-1;1694:47:18;;;;;:::i;:::-;;;;;;;;;;;;-1:-1:-1;;;;;1694:47:18;;;2064:101:0;;;;;;;;;;;;;:::i;2664:112:18:-;;;;;;;;;;;;;:::i;2169:60::-;;;;;;;;;;-1:-1:-1;2169:60:18;;;;;:::i;:::-;;;;;;;;;;;;;;1964:37;;;;;;;;;;-1:-1:-1;1964:37:18;;;;;;;-1:-1:-1;;;;;1964:37:18;;;1441:85:0;;;;;;;;;;-1:-1:-1;1513:6:0;;-1:-1:-1;;;;;1513:6:0;1441:85;;5712:126:18;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;12885:255::-;;;;;;;;;;-1:-1:-1;12885:255:18;;;;;:::i;:::-;;:::i;1262:23::-;;;;;;;;;;-1:-1:-1;1262:23:18;;;;-1:-1:-1;;;1262:23:18;;;;;;;;;3834:18:19;3822:31;;;3804:50;;3792:2;3777:18;1262:23:18;3660:200:19;9799:1193:18;;;;;;;;;;-1:-1:-1;9799:1193:18;;;;;:::i;:::-;;:::i;1164:39::-;;;;;;;;;;-1:-1:-1;1164:39:18;;;;-1:-1:-1;;;;;1164:39:18;;;13146:1651;;;;;;;;;;-1:-1:-1;13146:1651:18;;;;;:::i;:::-;;:::i;6425:193::-;;;;;;:::i;:::-;;:::i;5186:246::-;;;;;;;;;;-1:-1:-1;5186:246:18;;;;;:::i;:::-;;:::i;3611:498::-;;;;;;;;;;-1:-1:-1;3611:498:18;;;;;:::i;:::-;;:::i;7288:126::-;;;;;;;;;;-1:-1:-1;7288:126:18;;;;;:::i;:::-;;:::i;14803:1411::-;;;;;;;;;;-1:-1:-1;14803:1411:18;;;;;:::i;:::-;;:::i;5907:128::-;;;;;;;;;;;;;:::i;4174:386::-;;;;;;;;;;-1:-1:-1;4174:386:18;;;;;:::i;:::-;;:::i;1799:29::-;;;;;;;;;;-1:-1:-1;1799:29:18;;;;;;;;2314:198:0;;;;;;;;;;-1:-1:-1;2314:198:0;;;;;:::i;:::-;;:::i;12644:235:18:-;;;;;;;;;;-1:-1:-1;12644:235:18;;;;;:::i;:::-;;:::i;6708:515::-;6874:7;1482:19:2;:17;:19::i;:::-;6897:32:18::1;6914:8;6924:4;6897:16;:32::i;:::-;6939:42;6984:137;;;;;;;;7021:4;:14;;;6984:137;;;;7037:8;-1:-1:-1::0;;;;;6984:137:18::1;;;;;7047:4;:15;;;6984:137;;;;7064:4;:14;;;6984:137;;;;7080:4;:16;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;6984:137:18::1;::::0;;7098:9:::1;::::0;6984:137:::1;::::0;;::::1;::::0;7098:13:::1;::::0;-1:-1:-1;;;7098:9:18;::::1;;;7110:1;7098:13;:::i;:::-;6984:137;;::::0;;7163:24:::1;::::0;7139:76:::1;::::0;;;;6939:182;;-1:-1:-1;;;;;;7163:24:18::1;::::0;7139:63:::1;::::0;:76:::1;::::0;6939:182;;7139:76:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;7131:85;;;1511:1:2;6708:515:18::0;;;;:::o;4750:360::-;1334:13:0;:11;:13::i;:::-;4902::18;-1:-1:-1;;;;;2537:22:18;::::1;2533:48;;2568:13;;-1:-1:-1::0;;;2568:13:18::1;;;;;;;;;;;2533:48;4931:24:::2;::::0;;;:12:::2;:24;::::0;;;;:40;;-1:-1:-1;;4931:40:18::2;-1:-1:-1::0;;;;;4931:40:18;::::2;;::::0;;4981:31:::2;:15;4931:24:::0;4981:19:::2;:31::i;:::-;-1:-1:-1::0;5050:53:18::2;::::0;-1:-1:-1;;;;;2679:55:19;;2661:74;;5077:10:18;;5050:53:::2;::::0;2649:2:19;2634:18;5050:53:18::2;;;;;;;;1357:1:0::1;4750:360:18::0;;:::o;5503:145::-;5580:4;5603:38;:16;5629:11;5603:25;:38::i;3212:212::-;1334:13:0;:11;:13::i;:::-;-1:-1:-1;;;;;3312:40:18;::::1;;::::0;;;:25:::1;:40;::::0;;;;;;:49;;;3376:41;::::1;::::0;::::1;::::0;3355:6;861:25:19;;849:2;834:18;;715:177;3376:41:18::1;;;;;;;;3212:212:::0;;:::o;11872:460::-;11967:10;11966:24;11994:1;11966:29;11962:58;;12004:16;;;;;;;;;;;;;;11962:58;12035:19;;;;;;;;:::i;:::-;-1:-1:-1;;;;;12034:33:18;;:38;12030:70;;12081:19;;;;;;;;;;;;;;12030:70;12115:42;:16;12141:15;;12115:25;:42::i;:::-;12110:74;;12166:18;;-1:-1:-1;;;12166:18:18;;;;;;;;;;;12110:74;12276:19;;;;;;;;:::i;:::-;12231:94;;;12297:13;7564:25:19;;12312:12:18;7620:2:19;7605:18;;7598:34;-1:-1:-1;;;;;12231:94:18;;;;;12259:15;;;12247:10;;12231:94;;7537:18:19;12231:94:18;;;;;;;11872:460;:::o;6144:139::-;1482:19:2;:17;:19::i;:::-;6250:26:18::1;6259:10;6271:4;6250:8;:26::i;:::-;6144:139:::0;:::o;12555:83::-;1729:16:2;:14;:16::i;:::-;1334:13:0::1;:11;:13::i;:::-;12621:10:18::2;:8;:10::i;:::-;12555:83::o:0;12467:82::-;1482:19:2;:17;:19::i;:::-;1334:13:0::1;:11;:13::i;:::-;12534:8:18::2;:6;:8::i;2831:329::-:0;1334:13:0;:11;:13::i;:::-;2969:25:18;-1:-1:-1;;;;;2537:22:18;::::1;2533:48;;2568:13;;-1:-1:-1::0;;;2568:13:18::1;;;;;;;;;;;2533:48;3039:24:::2;::::0;3015:76:::2;::::0;;-1:-1:-1;;;;;3039:24:18;;::::2;7817:74:19::0;;7927:55;;;7922:2;7907:18;;7900:83;3015:76:18::2;::::0;7790:18:19;3015:76:18::2;;;;;;;-1:-1:-1::0;3101:24:18::2;:52:::0;;-1:-1:-1;;3101:52:18::2;-1:-1:-1::0;;;;;3101:52:18;;;::::2;::::0;;;::::2;::::0;;2831:329::o;2064:101:0:-;1334:13;:11;:13::i;:::-;2128:30:::1;2155:1;2128:18;:30::i;2664:112:18:-:0;3279:19:1;3302:13;;;;;;3301:14;;3347:34;;;;-1:-1:-1;3365:12:1;;3380:1;3365:12;;;;:16;3347:34;3346:108;;;-1:-1:-1;3426:4:1;1713:19:3;:23;;;3387:66:1;;-1:-1:-1;3436:12:1;;;;;:17;3387:66;3325:201;;;;-1:-1:-1;;;3325:201:1;;8196:2:19;3325:201:1;;;8178:21:19;8235:2;8215:18;;;8208:30;8274:34;8254:18;;;8247:62;8345:16;8325:18;;;8318:44;8379:19;;3325:201:1;;;;;;;;;3536:12;:16;;-1:-1:-1;;3536:16:1;3551:1;3536:16;;;3562:65;;;;3596:13;:20;;-1:-1:-1;;3596:20:1;;;;;3562:65;2726:16:18::1;:14;:16::i;:::-;2752:17;:15;:17::i;:::-;3651:14:1::0;3647:99;;;3697:5;3681:21;;-1:-1:-1;;3681:21:1;;;3721:14;;-1:-1:-1;8561:36:19;;3721:14:1;;8549:2:19;8534:18;3721:14:1;;;;;;;3269:483;2664:112:18:o;5712:126::-;5772:16;5807:24;:15;:22;:24::i;:::-;5800:31;;5712:126;:::o;12885:255::-;1334:13:0;:11;:13::i;:::-;13034:27:18;-1:-1:-1;;;;;2537:22:18;::::1;2533:48;;2568:13;;-1:-1:-1::0;;;2568:13:18::1;;;;;;;;;;;2533:48;-1:-1:-1::0;13077:26:18::2;:56:::0;;-1:-1:-1;;13077:56:18::2;-1:-1:-1::0;;;;;13077:56:18;;;::::2;::::0;;;::::2;::::0;;12885:255::o;9799:1193::-;2355:24;;-1:-1:-1;;;;;2355:24:18;2341:10;:38;2337:81;;2388:30;;-1:-1:-1;;;2388:30:18;;;;;;;;;;;2337:81;1482:19:2::1;:17;:19::i;:::-;9984:24:18::2;::::0;9960:64:::2;::::0;;;;-1:-1:-1;;;;;9984:24:18;;::::2;::::0;9960:58:::2;::::0;:64:::2;::::0;10019:4;;9960:64:::2;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;-1:-1:-1::0;;;;10136:14:18::2;::::0;;::::2;;10094:19;10123:28:::0;;;:12:::2;:28;::::0;;;;;-1:-1:-1;;;;;10123:28:18::2;::::0;10198:8:::2;::::0;;;::::2;::::0;::::2;;:::i;:::-;10179:16;::::0;;;::::2;::::0;::::2;;:::i;:::-;:27;;;;:::i;:::-;10224:37;::::0;-1:-1:-1;;;10224:37:18;;10255:4:::2;10224:37;::::0;::::2;2661:74:19::0;10162:44:18;;-1:-1:-1;;;;;;10224:47:18;::::2;::::0;-1:-1:-1;;;;;10224:22:18;::::2;::::0;::::2;::::0;2634:18:19;;10224:37:18::2;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:47;;10216:87;;;::::0;-1:-1:-1;;;10216:87:18;;10499:2:19;10216:87:18::2;::::0;::::2;10481:21:19::0;10538:2;10518:18;;;10511:30;10577:29;10557:18;;;10550:57;10624:18;;10216:87:18::2;10297:351:19::0;10216:87:18::2;10471:52;10486:13;::::0;;;::::2;::::0;::::2;;:::i;:::-;10509:12;10471:14;:52::i;:::-;10466:228;;10582:13;::::0;;;::::2;::::0;::::2;;:::i;:::-;10544:60;::::0;-1:-1:-1;;;;;10817:47:19;;10799:66;;-1:-1:-1;;;;;10544:60:18;;::::2;::::0;;::::2;::::0;::::2;::::0;10787:2:19;10772:18;10544:60:18::2;;;;;;;10466:228;;;10635:48;10661:13;::::0;;;::::2;::::0;::::2;;:::i;:::-;-1:-1:-1::0;;;;;10635:25:18;::::2;::::0;-1:-1:-1;;;;;10635:48:18;::::2;:25;:48::i;:::-;10796:18;::::0;;;::::2;::::0;::::2;;:::i;:::-;10739:246;;10768:14:::0;::::2;10739:246;10828:15;::::0;::::2;;10857:11;::::0;;;::::2;::::0;::::2;;:::i;:::-;10882:13;::::0;;;::::2;::::0;::::2;;:::i;:::-;10909:14;::::0;::::2;;10937:16;::::0;;;::::2;::::0;::::2;;:::i;:::-;10967:8;::::0;;;::::2;::::0;::::2;;:::i;:::-;10739:246;::::0;;11413:25:19;;;-1:-1:-1;;;;;11474:55:19;;;11469:2;11454:18;;11447:83;11566:55;;;;11546:18;;;11539:83;;;;11653:2;11638:18;;11631:34;-1:-1:-1;;;;;11702:47:19;;;11696:3;11681:19;;11674:76;11787:47;11781:3;11766:19;;11759:76;11400:3;11385:19;10739:246:18::2;;;;;;;9909:1083;;9799:1193:::0;:::o;13146:1651::-;2355:24;;-1:-1:-1;;;;;2355:24:18;2341:10;:38;2337:81;;2388:30;;-1:-1:-1;;;2388:30:18;;;;;;;;;;;2337:81;13302:14:::1;::::0;::::1;;13269:17;13289:28:::0;;;:12:::1;:28;::::0;;;;;-1:-1:-1;;;;;13289:28:18::1;::::0;13327:49:::1;;13363:13;;-1:-1:-1::0;;;13363:13:18::1;;;;;;;;;;;13327:49;13412:22;::::0;-1:-1:-1;;;;;13386:25:18;;::::1;::::0;::::1;::::0;13412:22:::1;::::0;;::::1;;13436:11;::::0;;;::::1;::::0;::::1;;:::i;:::-;13386:62;::::0;;::::1;::::0;;;;;;-1:-1:-1;;;;;12038:55:19;;;13386:62:18::1;::::0;::::1;12020:74:19::0;-1:-1:-1;;;;;12130:47:19;12110:18;;;12103:75;11993:18;;13386:62:18::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;13478:22:18::1;::::0;::::1;::::0;::::1;-1:-1:-1::0;;;;;13478:22:18::1;13462:54;13530:11;::::0;;;::::1;::::0;::::1;;:::i;:::-;13543:14;;::::0;::::1;:4:::0;:14:::1;:::i;:::-;13559:37;13575:20;::::0;;;::::1;::::0;::::1;;:::i;:::-;13559:15;:37::i;:::-;13462:155;::::0;;::::1;::::0;;;;;;-1:-1:-1;;;;;12967:47:19;;;13462:155:18::1;::::0;::::1;12949:66:19::0;13462:155:18::1;13051:23:19::0;;;;13031:18;;;13024:51;13091:18;;;13084:34;-1:-1:-1;;;;;13154:55:19;;13134:18;;;13127:83;12921:19;;13462:155:18::1;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;13462:155:18::1;::::0;;::::1;;::::0;;::::1;-1:-1:-1::0;;13462:155:18::1;::::0;::::1;::::0;;;::::1;::::0;;::::1;::::0;::::1;:::i;:::-;;;13458:1333;;14375:24;::::0;14429:337:::1;::::0;;::::1;::::0;::::1;::::0;;14375:24:::1;14429:337:::0;;-1:-1:-1;;;;;14375:24:18;;::::1;::::0;14351:60:::1;::::0;14429:337:::1;::::0;;::::1;::::0;14505:16:::1;::::0;;;;;;::::1;;:::i;:::-;14429:337;;::::0;;::::1;;14551:11;::::0;;;::::1;::::0;::::1;;:::i;:::-;-1:-1:-1::0;;;;;14429:337:18::1;;;;;14595:4;:14;;;14429:337;;;;14644:4;:16;;;14429:337;;;;14695:4;:16;;;14429:337;;::::0;14351:429:::1;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;13259:1538;13146:1651:::0;:::o;13458:1333::-:1;-1:-1:-1::0;13785:24:18::1;::::0;13839:336:::1;::::0;;::::1;::::0;::::1;::::0;;13785:24;13839:336;;-1:-1:-1;;;;;13785:24:18;;::::1;::::0;13761:60:::1;::::0;13839:336:::1;::::0;;::::1;::::0;13915:16:::1;::::0;;;;;;::::1;;:::i;13458:1333::-;13259:1538;13146:1651:::0;:::o;6425:193::-;1482:19:2;:17;:19::i;:::-;6587:24:18::1;6596:8;6606:4;6587:8;:24::i;5186:246::-:0;5261:7;5284:36;:15;5309:10;5284:24;:36::i;:::-;5280:146;;;-1:-1:-1;5343:24:18;;;;:12;:24;;;;;;-1:-1:-1;;;;;5343:24:18;;5186:246::o;5280:146::-;-1:-1:-1;5413:1:18;;5186:246;-1:-1:-1;5186:246:18:o;5280:146::-;5186:246;;;:::o;3611:498::-;1334:13:0;:11;:13::i;:::-;3707:9:18::1;3738:8;3734:269;;;3844:1;3808:24:::0;;;:12:::1;:24;::::0;;;;;-1:-1:-1;;;;;3808:24:18::1;3804:64;;3855:13;;-1:-1:-1::0;;;3855:13:18::1;;;;;;;;;;;3804:64;3889:31;:15;3909:10:::0;3889:19:::1;:31::i;:::-;3882:38;;3734:269;;;3958:34;:15;3981:10:::0;3958:22:::1;:34::i;:::-;3951:41;;3734:269;4017:4;4012:38;;4030:20;;-1:-1:-1::0;;;4030:20:18::1;;;;;;;;;;;4012:38;4081:10;4065:37;4093:8;4065:37;;;;1598:14:19::0;1591:22;1573:41;;1561:2;1546:18;;1433:187;7288:126:18;1334:13:0;:11;:13::i;:::-;1482:19:2::1;:17;:19::i;:::-;7379:17:18::2;:28:::0;;-1:-1:-1;;7379:28:18::2;::::0;::::2;;::::0;;;::::2;::::0;;7288:126::o;14803:1411::-;2355:24;;-1:-1:-1;;;;;2355:24:18;2341:10;:38;2337:81;;2388:30;;-1:-1:-1;;;2388:30:18;;;;;;;;;;;2337:81;14950:26:::1;::::0;-1:-1:-1;;;;;14950:26:18::1;14930:62;14993:17;;::::0;::::1;:4:::0;:17:::1;:::i;:::-;15012:21;;::::0;::::1;:4:::0;:21:::1;:::i;:::-;14930:104;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;14930:104:18::1;::::0;;::::1;;::::0;;::::1;-1:-1:-1::0;;14930:104:18::1;::::0;::::1;::::0;;;::::1;::::0;;::::1;::::0;::::1;:::i;:::-;;;14926:1282;;15792:24;::::0;15846:337:::1;::::0;;::::1;::::0;::::1;::::0;;;15792:24:::1;15846:337:::0;;-1:-1:-1;;;;;15792:24:18;;::::1;::::0;15768:60:::1;::::0;15846:337:::1;::::0;;::::1;::::0;15922:16:::1;::::0;;::::1;:4:::0;:16:::1;:::i;:::-;15846:337;;;;;;15968:4;:11;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;15846:337:18::1;;;;;16012:4;:14;;;15846:337;;;;16061:4;:16;;;15846:337;;;;16112:4;:16;;;15846:337;;::::0;15768:429:::1;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;6144:139:::0;:::o;14926:1282::-:1;-1:-1:-1::0;15202:24:18::1;::::0;15256:336:::1;::::0;;::::1;::::0;::::1;::::0;;;15202:24;15256:336;;-1:-1:-1;;;;;15202:24:18;;::::1;::::0;15178:60:::1;::::0;15256:336:::1;::::0;;::::1;::::0;15332:16:::1;::::0;;::::1;:4:::0;:16:::1;:::i;5907:128::-:0;5968:16;6003:25;:16;:23;:25::i;4174:386::-;1334:13:0;:11;:13::i;:::-;4272:9:18::1;4303:8;4299:153;;;4334:33;:16;4355:11:::0;4334:20:::1;:33::i;:::-;4327:40;;4299:153;;;4405:36;:16;4429:11:::0;4405:23:::1;:36::i;:::-;4398:43;;4299:153;4466:4;4461:38;;4479:20;;-1:-1:-1::0;;;4479:20:18::1;;;;;;;;;;;4461:38;4531:11;4514:39;4544:8;4514:39;;;;1598:14:19::0;1591:22;1573:41;;1561:2;1546:18;;1433:187;2314:198:0;1334:13;:11;:13::i;:::-;-1:-1:-1;;;;;2402:22:0;::::1;2394:73;;;::::0;-1:-1:-1;;;2394:73:0;;15999:2:19;2394:73:0::1;::::0;::::1;15981:21:19::0;16038:2;16018:18;;;16011:30;16077:34;16057:18;;;16050:62;16148:8;16128:18;;;16121:36;16174:19;;2394:73:0::1;15797:402:19::0;2394:73:0::1;2477:28;2496:8;2477:18;:28::i;12644:235:18:-:0;1334:13:0;:11;:13::i;:::-;12785:23:18;-1:-1:-1;;;;;2537:22:18;::::1;2533:48;;2568:13;;-1:-1:-1::0;;;2568:13:18::1;;;;;;;;;;;2533:48;-1:-1:-1::0;12824:22:18::2;:48:::0;;-1:-1:-1;;;;;12824:48:18;;::::2;;;::::0;;;::::2;::::0;;;::::2;::::0;;12644:235::o;2010:106:2:-;1928:7;;;;2079:9;2071:38;;;;-1:-1:-1;;;2071:38:2;;16406:2:19;2071:38:2;;;16388:21:19;16445:2;16425:18;;;16418:30;16484:18;16464;;;16457:46;16520:18;;2071:38:2;16204:340:19;9152:611:18;9323:40;:15;9348:14;;;;9323:24;:40::i;:::-;9318:71;;9372:17;;;;;;;;;;;;;;9318:71;9404:42;:16;9430:15;;;;9404:25;:42::i;:::-;9399:74;;9455:18;;-1:-1:-1;;;9455:18:18;;;;;;;;;;;9399:74;835:37:14;;;-1:-1:-1;;;;;18674:55:19;;9610:15:18;835:37:14;;;18656:74:19;;;;9610:15:18;;;;18746:18:19;;;18739:34;835:37:14;;;;;;;;;18629:18:19;;;;835:37:14;;;825:48;;;;;9594:14:18;;825:62:14;9565:98:18;;9645:18;;;;;;;;;;;;;;9565:98;9713:16;;;;;;;;:::i;:::-;-1:-1:-1;;;;;9713:21:18;9733:1;9713:21;9709:47;;9743:13;;;;;;;;;;;;;;1599:130:0;1513:6;;-1:-1:-1;;;;;1513:6:0;929:10:4;1662:23:0;1654:68;;;;-1:-1:-1;;;1654:68:0;;16751:2:19;1654:68:0;;;16733:21:19;;;16770:18;;;16763:30;16829:34;16809:18;;;16802:62;16881:18;;1654:68:0;16549:356:19;5911:123:9;5981:4;6004:23;6009:3;6021:5;6004:4;:23::i;:::-;5997:30;5911:123;-1:-1:-1;;;5911:123:9:o;6412:138::-;6492:4;4343:19;;;:12;;;:19;;;;;;:24;;6515:28;4247:127;7487:1605:18;1482:19:2;:17;:19::i;:::-;7597:32:18::1;7614:8;7624:4;7597:16;:32::i;:::-;7751:14;::::0;;::::1;;7709:19;7738:28:::0;;;:12:::1;:28;::::0;;;;;;;-1:-1:-1;;;;;7738:28:18::1;7825:48:::0;;;:25:::1;:48:::0;;;;;;;:53;;::::1;::::0;:200:::1;;-1:-1:-1::0;;;;;;7977:48:18;::::1;;::::0;;;:25:::1;:48;::::0;;;;;;;7917:37;;-1:-1:-1;;;7917:37:18;;7948:4:::1;7917:37;::::0;::::1;2661:74:19::0;7977:48:18;;;7917:22:::1;::::0;2634:18:19;;7917:37:18::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;7898:16;::::0;;;::::1;::::0;::::1;;:::i;:::-;-1:-1:-1::0;;;;;7898:56:18::1;;;;;:::i;:::-;:127;7825:200;7808:280;;;8057:20;;;;;;;;;;;;;;7808:280;8149:74;8179:10;8199:4;8206:16;::::0;;;::::1;::::0;::::1;;:::i;:::-;-1:-1:-1::0;;;;;8149:29:18;::::1;::::0;:74;;-1:-1:-1;;;;;8149:74:18::1;:29;:74::i;:::-;8269:42;8314:139;;;;;;;;8351:4;:14;;;8314:139;;;;8367:8;-1:-1:-1::0;;;;;8314:139:18::1;;;;;8377:4;:15;;;8314:139;;;;8394:4;:14;;;8314:139;;;;8410:4;:16;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;8314:139:18::1;;;;;8428:15;:13;:15::i;:::-;8314:139;;::::0;;8639:17:::1;::::0;8269:184;;-1:-1:-1;8639:17:18::1;;8635:349;;;8676:9;8689:1;8676:14:::0;8672:43:::1;;8699:16;;;;;;;;;;;;;;8672:43;8753:24;::::0;8729:143:::1;::::0;;;;-1:-1:-1;;;;;8753:24:18;;::::1;::::0;8729:70:::1;::::0;8807:9:::1;::::0;8729:143:::1;::::0;8835:10:::1;::::0;8847:11;;8729:143:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;8635:349;;;8927:24;::::0;8903:70:::1;::::0;;;;-1:-1:-1;;;;;8927:24:18;;::::1;::::0;8903:57:::1;::::0;:70:::1;::::0;8961:11;;8903:70:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;8635:349;9041:9;::::0;-1:-1:-1;;;9041:9:18;::::1;;;-1:-1:-1::0;;;;;8998:87:18;::::1;9015:14:::0;::::1;8998:87;9052:14;::::0;::::1;;9068:16;::::0;;;::::1;::::0;::::1;;:::i;:::-;8998:87;::::0;;17601:25:19;;;-1:-1:-1;;;;;17662:47:19;;;17657:2;17642:18;;17635:75;17574:18;8998:87:18::1;;;;;;;7587:1505;;7487:1605:::0;;:::o;2188:106:2:-;1928:7;;;;2246:41;;;;-1:-1:-1;;;2246:41:2;;17923:2:19;2246:41:2;;;17905:21:19;17962:2;17942:18;;;17935:30;18001:22;17981:18;;;17974:50;18041:18;;2246:41:2;17721:344:19;2676:117:2;1729:16;:14;:16::i;:::-;2734:7:::1;:15:::0;;-1:-1:-1;;2734:15:2::1;::::0;;2764:22:::1;929:10:4::0;2773:12:2::1;2764:22;::::0;-1:-1:-1;;;;;2679:55:19;;;2661:74;;2649:2;2634:18;2764:22:2::1;;;;;;;2676:117::o:0;2429:115::-;1482:19;:17;:19::i;:::-;2488:7:::1;:14:::0;;-1:-1:-1;;2488:14:2::1;2498:4;2488:14;::::0;;2517:20:::1;2524:12;929:10:4::0;;850:96;2666:187:0;2758:6;;;-1:-1:-1;;;;;2774:17:0;;;-1:-1:-1;;2774:17:0;;;;;;;2806:40;;2758:6;;;2774:17;2758:6;;2806:40;;2739:16;;2806:40;2729:124;2666:187;:::o;1003:95::-;5374:13:1;;;;;;;5366:69;;;;-1:-1:-1;;;5366:69:1;;18272:2:19;5366:69:1;;;18254:21:19;18311:2;18291:18;;;18284:30;18350:34;18330:18;;;18323:62;-1:-1:-1;;;18401:18:19;;;18394:41;18452:19;;5366:69:1;18070:407:19;5366:69:1;1065:26:0::1;:24;:26::i;1063:97:2:-:0;5374:13:1;;;;;;;5366:69;;;;-1:-1:-1;;;5366:69:1;;18272:2:19;5366:69:1;;;18254:21:19;18311:2;18291:18;;;18284:30;18350:34;18330:18;;;18323:62;-1:-1:-1;;;18401:18:19;;;18394:41;18452:19;;5366:69:1;18070:407:19;5366:69:1;1126:27:2::1;:25;:27::i;7757:300:9:-:0;7820:16;7848:22;7873:19;7881:3;7873:7;:19::i;11075:294:18:-;11157:4;-1:-1:-1;;;;;11177:23:18;;11173:190;;-1:-1:-1;11223:5:18;11216:12;;11173:190;11249:33;11264:9;11275:6;11249:14;:33::i;:::-;11245:118;;;-1:-1:-1;11305:5:18;11298:12;;11245:118;-1:-1:-1;11348:4:18;11341:11;;763:205:7;902:58;;-1:-1:-1;;;;;18674:55:19;;902:58:7;;;18656:74:19;18746:18;;;18739:34;;;875:86:7;;895:5;;925:23;;18629:18:19;;902:58:7;;;;-1:-1:-1;;902:58:7;;;;;;;;;;;;;;;;;;;;;;;;;;;875:19;:86::i;:::-;763:205;;;:::o;1139:114:14:-;1229:16;;;-1:-1:-1;;;;;2679:55:19;;1229:16:14;;;2661:74:19;1195:7:14;;2634:18:19;1229:16:14;;;;;;;;;;;;1221:25;;;:::i;6202:129:9:-;6275:4;6298:26;6306:3;6318:5;6298:7;:26::i;2206:404::-;2269:4;4343:19;;;:12;;;:19;;;;;;2285:319;;-1:-1:-1;2327:23:9;;;;;;;;:11;:23;;;;;;;;;;;;;2507:18;;2485:19;;;:12;;;:19;;;;;;:40;;;;2539:11;;2285:319;-1:-1:-1;2588:5:9;2581:12;;974:241:7;1139:68;;-1:-1:-1;;;;;19608:55:19;;;1139:68:7;;;19590:74:19;19700:55;;19680:18;;;19673:83;19772:18;;;19765:34;;;1112:96:7;;1132:5;;1162:27;;19563:18:19;;1139:68:7;19388:417:19;1112:96:7;974:241;;;;:::o;12375:86:18:-;12418:6;12445:9;;12443:11;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;12436:18;;12375:86;:::o;1104:111:0:-;5374:13:1;;;;;;;5366:69;;;;-1:-1:-1;;;5366:69:1;;18272:2:19;5366:69:1;;;18254:21:19;18311:2;18291:18;;;18284:30;18350:34;18330:18;;;18323:62;-1:-1:-1;;;18401:18:19;;;18394:41;18452:19;;5366:69:1;18070:407:19;5366:69:1;1176:32:0::1;929:10:4::0;1176:18:0::1;:32::i;1166:95:2:-:0;5374:13:1;;;;;;;5366:69;;;;-1:-1:-1;;;5366:69:1;;18272:2:19;5366:69:1;;;18254:21:19;18311:2;18291:18;;;18284:30;18350:34;18330:18;;;18323:62;-1:-1:-1;;;18401:18:19;;;18394:41;18452:19;;5366:69:1;18070:407:19;5366:69:1;1239:7:2::1;:15:::0;;-1:-1:-1;;1239:15:2::1;::::0;;1166:95::o;5562:109:9:-;5618:16;5653:3;:11;;5646:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5562:109;;;:::o;11487:379:18:-;11605:60;;-1:-1:-1;;;;;2679:55:19;;11605:60:18;;;2661:74:19;11569:4:18;;;;2634:18:19;;11605:60:18;;;-1:-1:-1;;11605:60:18;;;;;;;;;;;;;;;;;;;;11713:23;11605:60;;-1:-1:-1;;;;;;;;;;11713:17:18;;;:23;;11605:60;;11713:23;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11675:61;;;;11750:7;11746:114;;;11791:6;11780:26;;;;;;;;;;;;:::i;:::-;11773:33;;;;;;;11746:114;11844:5;11837:12;;;;;;;3747:706:7;4166:23;4192:69;4220:4;4192:69;;;;;;;;;;;;;;;;;4200:5;-1:-1:-1;;;;;4192:27:7;;;:69;;;;;:::i;:::-;4275:17;;4166:95;;-1:-1:-1;4275:21:7;4271:176;;4370:10;4359:30;;;;;;;;;;;;:::i;:::-;4351:85;;;;-1:-1:-1;;;4351:85:7;;20527:2:19;4351:85:7;;;20509:21:19;20566:2;20546:18;;;20539:30;20605:34;20585:18;;;20578:62;20676:12;20656:18;;;20649:40;20706:19;;4351:85:7;20325:406:19;2778:1388:9;2844:4;2981:19;;;:12;;;:19;;;;;;3015:15;;3011:1149;;3384:21;3408:14;3421:1;3408:10;:14;:::i;:::-;3456:18;;3384:38;;-1:-1:-1;3436:17:9;;3456:22;;3477:1;;3456:22;:::i;:::-;3436:42;;3510:13;3497:9;:26;3493:398;;3543:17;3563:3;:11;;3575:9;3563:22;;;;;;;;:::i;:::-;;;;;;;;;3543:42;;3714:9;3685:3;:11;;3697:13;3685:26;;;;;;;;:::i;:::-;;;;;;;;;;;;:38;;;;3797:23;;;:12;;;:23;;;;;:36;;;3493:398;3969:17;;:3;;:17;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;4061:3;:12;;:19;4074:5;4061:19;;;;;;;;;;;4054:26;;;4102:4;4095:11;;;;;;;3011:1149;4144:5;4137:12;;;;;3011:1149;2850:1316;2778:1388;;;;:::o;3873:223:8:-;4006:12;4037:52;4059:6;4067:4;4073:1;4076:12;4037:21;:52::i;:::-;4030:59;3873:223;-1:-1:-1;;;;3873:223:8:o;4960:446::-;5125:12;5182:5;5157:21;:30;;5149:81;;;;-1:-1:-1;;;5149:81:8;;21449:2:19;5149:81:8;;;21431:21:19;21488:2;21468:18;;;21461:30;21527:34;21507:18;;;21500:62;21598:8;21578:18;;;21571:36;21624:19;;5149:81:8;21247:402:19;5149:81:8;5241:12;5255:23;5282:6;-1:-1:-1;;;;;5282:11:8;5301:5;5308:4;5282:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5240:73;;;;5330:69;5357:6;5365:7;5374:10;5386:12;5330:26;:69::i;:::-;5323:76;4960:446;-1:-1:-1;;;;;;;4960:446:8:o;7466:628::-;7646:12;7674:7;7670:418;;;7701:10;:17;7722:1;7701:22;7697:286;;-1:-1:-1;;;;;1713:19:3;;;7908:60:8;;;;-1:-1:-1;;;7908:60:8;;21856:2:19;7908:60:8;;;21838:21:19;21895:2;21875:18;;;21868:30;21934:31;21914:18;;;21907:59;21983:18;;7908:60:8;21654:353:19;7908:60:8;-1:-1:-1;8003:10:8;7996:17;;7670:418;8044:33;8052:10;8064:12;8775:17;;:21;8771:379;;9003:10;8997:17;9059:15;9046:10;9042:2;9038:19;9031:44;8771:379;9126:12;9119:20;;-1:-1:-1;;;9119:20:8;;;;;;;;:::i;14:196:19:-;82:20;;-1:-1:-1;;;;;131:54:19;;121:65;;111:93;;200:1;197;190:12;215:163;282:5;327:3;318:6;313:3;309:16;305:26;302:46;;;344:1;341;334:12;302:46;-1:-1:-1;366:6:19;215:163;-1:-1:-1;215:163:19:o;383:327::-;485:6;493;546:3;534:9;525:7;521:23;517:33;514:53;;;563:1;560;553:12;514:53;586:29;605:9;586:29;:::i;:::-;576:39;;634:70;696:7;691:2;680:9;676:18;634:70;:::i;:::-;624:80;;383:327;;;;;:::o;897:300::-;965:6;973;1026:2;1014:9;1005:7;1001:23;997:32;994:52;;;1042:1;1039;1032:12;994:52;1087:23;;;-1:-1:-1;1153:38:19;1187:2;1172:18;;1153:38;:::i;1202:226::-;1261:6;1314:2;1302:9;1293:7;1289:23;1285:32;1282:52;;;1330:1;1327;1320:12;1282:52;-1:-1:-1;1375:23:19;;1202:226;-1:-1:-1;1202:226:19:o;1625:254::-;1693:6;1701;1754:2;1742:9;1733:7;1729:23;1725:32;1722:52;;;1770:1;1767;1760:12;1722:52;1793:29;1812:9;1793:29;:::i;:::-;1783:39;1869:2;1854:18;;;;1841:32;;-1:-1:-1;;;1625:254:19:o;1884:236::-;1976:6;2036:2;2024:9;2015:7;2011:23;2007:32;2051:2;2048:22;;;2066:1;2063;2056:12;2048:22;-1:-1:-1;2105:9:19;;1884:236;-1:-1:-1;;1884:236:19:o;2125:253::-;2218:6;2271:3;2259:9;2250:7;2246:23;2242:33;2239:53;;;2288:1;2285;2278:12;2239:53;2311:61;2364:7;2353:9;2311:61;:::i;2746:186::-;2805:6;2858:2;2846:9;2837:7;2833:23;2829:32;2826:52;;;2874:1;2871;2864:12;2826:52;2897:29;2916:9;2897:29;:::i;2937:611::-;3127:2;3139:21;;;3209:13;;3112:18;;;3231:22;;;3079:4;;3310:15;;;3284:2;3269:18;;;3079:4;3353:169;3367:6;3364:1;3361:13;3353:169;;;3428:13;;3416:26;;3471:2;3497:15;;;;3462:12;;;;3389:1;3382:9;3353:169;;;-1:-1:-1;3539:3:19;;2937:611;-1:-1:-1;;;;;2937:611:19:o;3865:237::-;3957:6;4017:3;4005:9;3996:7;3992:23;3988:33;4033:2;4030:22;;;4048:1;4045;4038:12;4107:168;4179:5;4224:3;4215:6;4210:3;4206:16;4202:26;4199:46;;;4241:1;4238;4231:12;4280:263;4378:6;4431:3;4419:9;4410:7;4406:23;4402:33;4399:53;;;4448:1;4445;4438:12;4399:53;4471:66;4529:7;4518:9;4471:66;:::i;4548:118::-;4634:5;4627:13;4620:21;4613:5;4610:32;4600:60;;4656:1;4653;4646:12;4671:361;4736:6;4744;4797:2;4785:9;4776:7;4772:23;4768:32;4765:52;;;4813:1;4810;4803:12;4765:52;4858:23;;;-1:-1:-1;4957:2:19;4942:18;;4929:32;4970:30;4929:32;4970:30;:::i;:::-;5019:7;5009:17;;;4671:361;;;;;:::o;5037:241::-;5093:6;5146:2;5134:9;5125:7;5121:23;5117:32;5114:52;;;5162:1;5159;5152:12;5114:52;5201:9;5188:23;5220:28;5242:5;5220:28;:::i;5283:380::-;5381:6;5434:2;5422:9;5413:7;5409:23;5405:32;5402:52;;;5450:1;5447;5440:12;5402:52;5490:9;5477:23;5523:18;5515:6;5512:30;5509:50;;;5555:1;5552;5545:12;5509:50;5578:79;5649:7;5640:6;5629:9;5625:22;5578:79;:::i;5668:188::-;5736:20;;-1:-1:-1;;;;;5785:46:19;;5775:57;;5765:85;;5846:1;5843;5836:12;5861:186;5920:6;5973:2;5961:9;5952:7;5948:23;5944:32;5941:52;;;5989:1;5986;5979:12;5941:52;6012:29;6031:9;6012:29;:::i;6052:184::-;-1:-1:-1;;;6101:1:19;6094:88;6201:4;6198:1;6191:15;6225:4;6222:1;6215:15;6241:191;6344:18;6309:26;;;6337;;;6305:59;;6376:27;;6373:53;;;6406:18;;:::i;6934:262::-;7128:3;7113:19;;7141:49;7117:9;7172:6;6521:5;6515:12;6510:3;6503:25;-1:-1:-1;;;;;6581:4:19;6574:5;6570:16;6564:23;6560:72;6553:4;6548:3;6544:14;6537:96;6682:4;6675:5;6671:16;6665:23;6658:4;6653:3;6649:14;6642:47;6738:4;6731:5;6727:16;6721:23;6714:4;6709:3;6705:14;6698:47;-1:-1:-1;;;;;6798:4:19;6791:5;6787:16;6781:23;6777:64;6770:4;6765:3;6761:14;6754:88;6903:18;6895:4;6888:5;6884:16;6878:23;6874:48;6867:4;6862:3;6858:14;6851:72;;;6437:492;7201:184;7271:6;7324:2;7312:9;7303:7;7299:23;7295:32;7292:52;;;7340:1;7337;7330:12;7292:52;-1:-1:-1;7363:16:19;;7201:184;-1:-1:-1;7201:184:19:o;8608:129::-;8693:18;8686:5;8682:30;8675:5;8672:41;8662:69;;8727:1;8724;8717:12;8742:132;8809:20;;8838:30;8809:20;8838:30;:::i;8879:1165::-;9122:20;;9151:24;;9245:4;9233:17;;;9220:31;9267:20;;;9260:37;9367:4;9355:17;;;9342:31;9389:20;;;9382:37;9077:3;9062:19;;-1:-1:-1;;;;;9461:37:19;9492:4;9480:17;;9461:37;:::i;:::-;9457:78;9450:4;9439:9;9435:20;9428:108;-1:-1:-1;;;;;9578:37:19;9609:4;9601:6;9597:17;9578:37;:::i;:::-;9574:78;9567:4;9556:9;9552:20;9545:108;-1:-1:-1;;;;;9695:37:19;9726:4;9718:6;9714:17;9695:37;:::i;:::-;9691:86;9684:4;9673:9;9669:20;9662:116;9807:37;9838:4;9830:6;9826:17;9807:37;:::i;:::-;-1:-1:-1;;;;;2449:54:19;9901:4;9886:20;;2437:67;9938:36;9968:4;9956:17;;9938:36;:::i;:::-;3629:18;3618:30;;10032:4;10017:20;;3606:43;9983:55;3553:102;10049:243;-1:-1:-1;;;;;10164:42:19;;;10120;;;10116:91;;10219:44;;10216:70;;;10266:18;;:::i;10876:245::-;10934:6;10987:2;10975:9;10966:7;10962:23;10958:32;10955:52;;;11003:1;11000;10993:12;10955:52;11042:9;11029:23;11061:30;11085:5;11061:30;:::i;12189:245::-;12256:6;12309:2;12297:9;12288:7;12284:23;12280:32;12277:52;;;12325:1;12322;12315:12;12277:52;12357:9;12351:16;12376:28;12398:5;12376:28;:::i;12439:276::-;12497:6;12550:2;12538:9;12529:7;12525:23;12521:32;12518:52;;;12566:1;12563;12556:12;12518:52;12605:9;12592:23;12655:10;12648:5;12644:22;12637:5;12634:33;12624:61;;12681:1;12678;12671:12;13221:249;13290:6;13343:2;13331:9;13322:7;13318:23;13314:32;13311:52;;;13359:1;13356;13349:12;13311:52;13391:9;13385:16;13410:30;13434:5;13410:30;:::i;13952:301::-;14172:3;14157:19;;14185:62;14161:9;14229:6;13586:5;13580:12;13573:20;13566:28;13561:3;13554:41;13656:18;13648:4;13641:5;13637:16;13631:23;13627:48;13620:4;13615:3;13611:14;13604:72;-1:-1:-1;;;;;13729:4:19;13722:5;13718:16;13712:23;13708:64;13701:4;13696:3;13692:14;13685:88;13822:4;13815:5;13811:16;13805:23;13798:4;13793:3;13789:14;13782:47;13878:4;13871:5;13867:16;13861:23;13854:4;13849:3;13845:14;13838:47;13934:4;13927:5;13923:16;13917:23;13910:4;13905:3;13901:14;13894:47;;;13475:472;14258:521;14335:4;14341:6;14401:11;14388:25;14495:2;14491:7;14480:8;14464:14;14460:29;14456:43;14436:18;14432:68;14422:96;;14514:1;14511;14504:12;14422:96;14541:33;;14593:20;;;-1:-1:-1;14636:18:19;14625:30;;14622:50;;;14668:1;14665;14658:12;14622:50;14701:4;14689:17;;-1:-1:-1;14732:14:19;14728:27;;;14718:38;;14715:58;;;14769:1;14766;14759:12;14715:58;14258:521;;;;;:::o;14784:266::-;14872:6;14867:3;14860:19;14924:6;14917:5;14910:4;14905:3;14901:14;14888:43;-1:-1:-1;14976:1:19;14951:16;;;14969:4;14947:27;;;14940:38;;;;15032:2;15011:15;;;-1:-1:-1;;15007:29:19;14998:39;;;14994:50;;14784:266::o;15055:431::-;15268:2;15257:9;15250:21;15231:4;15294:61;15351:2;15340:9;15336:18;15328:6;15320;15294:61;:::i;:::-;15403:9;15395:6;15391:22;15386:2;15375:9;15371:18;15364:50;15431:49;15473:6;15465;15457;15431:49;:::i;16910:125::-;16975:9;;;16996:10;;;16993:36;;;17009:18;;:::i;17040:382::-;-1:-1:-1;;;;;17293:55:19;;17275:74;;17262:3;17247:19;;17358:58;17412:2;17397:18;;17389:6;6521:5;6515:12;6510:3;6503:25;-1:-1:-1;;;;;6581:4:19;6574:5;6570:16;6564:23;6560:72;6553:4;6548:3;6544:14;6537:96;6682:4;6675:5;6671:16;6665:23;6658:4;6653:3;6649:14;6642:47;6738:4;6731:5;6727:16;6721:23;6714:4;6709:3;6705:14;6698:47;-1:-1:-1;;;;;6798:4:19;6791:5;6787:16;6781:23;6777:64;6770:4;6765:3;6761:14;6754:88;6903:18;6895:4;6888:5;6884:16;6878:23;6874:48;6867:4;6862:3;6858:14;6851:72;;;6437:492;18784:297;18902:12;;18949:4;18938:16;;;18932:23;;18902:12;18967:16;;18964:111;;;-1:-1:-1;;19041:4:19;19037:17;;;;19034:1;19030:25;19026:38;19015:50;;18784:297;-1:-1:-1;18784:297:19:o;19810:204::-;19848:3;19892:18;19885:5;19881:30;19935:18;19926:7;19923:31;19920:57;;19957:18;;:::i;:::-;20006:1;19993:15;;19810:204;-1:-1:-1;;19810:204:19:o;20019:301::-;20148:3;20186:6;20180:13;20232:6;20225:4;20217:6;20213:17;20208:3;20202:37;20294:1;20258:16;;20283:13;;;-1:-1:-1;20258:16:19;20019:301;-1:-1:-1;20019:301:19:o;20736:128::-;20803:9;;;20824:11;;;20821:37;;;20838:18;;:::i;20869:184::-;-1:-1:-1;;;20918:1:19;20911:88;21018:4;21015:1;21008:15;21042:4;21039:1;21032:15;21058:184;-1:-1:-1;;;21107:1:19;21100:88;21207:4;21204:1;21197:15;21231:4;21228:1;21221:15;22012:418;22161:2;22150:9;22143:21;22124:4;22193:6;22187:13;22236:6;22231:2;22220:9;22216:18;22209:34;22295:6;22290:2;22282:6;22278:15;22273:2;22262:9;22258:18;22252:50;22351:1;22346:2;22337:6;22326:9;22322:22;22318:31;22311:42;22421:2;22414;22410:7;22405:2;22397:6;22393:15;22389:29;22378:9;22374:45;22370:54;22362:62;;;22012:418;;;;:::o
Swarm Source
ipfs://b99bfa084fcd8aeac47b5044f4989baba888c210affce409bf8ab51aa93eb3d5
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.