-
-
Save dedsec991-sm9/34cd3b5574df6b0072719c81e9109f4a to your computer and use it in GitHub Desktop.
{ | |
"name": "Presale", | |
"address": "0x08c82d1bd92ea4f157508f74dda6de49c2a73836", | |
"abi": [ | |
{ | |
"inputs": [], | |
"name": "buyWithMatic", | |
"outputs": [], | |
"stateMutability": "payable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "usdtAmount", | |
"type": "uint256" | |
} | |
], | |
"name": "buyWithUSDT", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "user", | |
"type": "address" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "amount", | |
"type": "uint256" | |
} | |
], | |
"name": "migrateUser", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "_sm9Token", | |
"type": "address" | |
}, | |
{ | |
"internalType": "address", | |
"name": "_usdtToken", | |
"type": "address" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "_phase1Start", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "_phase2Start", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "_phase3Start", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "_saleEnd", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "_minBuyUsdt", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "_minBuyMatic", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "address", | |
"name": "_recipient", | |
"type": "address" | |
}, | |
{ | |
"internalType": "address", | |
"name": "_priceFeed", | |
"type": "address" | |
} | |
], | |
"stateMutability": "nonpayable", | |
"type": "constructor" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "owner", | |
"type": "address" | |
} | |
], | |
"name": "OwnableInvalidOwner", | |
"type": "error" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "account", | |
"type": "address" | |
} | |
], | |
"name": "OwnableUnauthorizedAccount", | |
"type": "error" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "previousOwner", | |
"type": "address" | |
}, | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "newOwner", | |
"type": "address" | |
} | |
], | |
"name": "OwnershipTransferred", | |
"type": "event" | |
}, | |
{ | |
"inputs": [], | |
"name": "renounceOwnership", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "_minUsdt", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "_minMatic", | |
"type": "uint256" | |
} | |
], | |
"name": "setMinBuyAmounts", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "newOwner", | |
"type": "address" | |
} | |
], | |
"name": "transferOwnership", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "withdrawMatic", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "withdrawUSDT", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"stateMutability": "payable", | |
"type": "receive" | |
}, | |
{ | |
"inputs": [], | |
"name": "getCurrentPrice", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "getMaticPriceInUsd", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "", | |
"type": "address" | |
} | |
], | |
"name": "migrated", | |
"outputs": [ | |
{ | |
"internalType": "bool", | |
"name": "", | |
"type": "bool" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "minBuyMatic", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "minBuyUsdt", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "owner", | |
"outputs": [ | |
{ | |
"internalType": "address", | |
"name": "", | |
"type": "address" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "PHASE1_PRICE", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "phase1Start", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "PHASE2_PRICE", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "phase2Start", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "PHASE3_PRICE", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "phase3Start", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "priceFeed", | |
"outputs": [ | |
{ | |
"internalType": "contract AggregatorV3Interface", | |
"name": "", | |
"type": "address" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "recipient", | |
"outputs": [ | |
{ | |
"internalType": "address", | |
"name": "", | |
"type": "address" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "saleEnd", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "sm9Token", | |
"outputs": [ | |
{ | |
"internalType": "contract IERC20", | |
"name": "", | |
"type": "address" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "usdtToken", | |
"outputs": [ | |
{ | |
"internalType": "contract IERC20", | |
"name": "", | |
"type": "address" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
} | |
], | |
"filePath": "Basic - 1/Presale.sol", | |
"pinnedAt": 1749100231557 | |
} |
{ | |
"name": "SM9Token", | |
"address": "0xc848e0b524c648d38951f30a06af09057894535c", | |
"abi": [ | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "spender", | |
"type": "address" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "value", | |
"type": "uint256" | |
} | |
], | |
"name": "approve", | |
"outputs": [ | |
{ | |
"internalType": "bool", | |
"name": "", | |
"type": "bool" | |
} | |
], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "value", | |
"type": "uint256" | |
} | |
], | |
"name": "burn", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "account", | |
"type": "address" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "value", | |
"type": "uint256" | |
} | |
], | |
"name": "burnFrom", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"stateMutability": "nonpayable", | |
"type": "constructor" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "spender", | |
"type": "address" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "allowance", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "needed", | |
"type": "uint256" | |
} | |
], | |
"name": "ERC20InsufficientAllowance", | |
"type": "error" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "sender", | |
"type": "address" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "balance", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "needed", | |
"type": "uint256" | |
} | |
], | |
"name": "ERC20InsufficientBalance", | |
"type": "error" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "approver", | |
"type": "address" | |
} | |
], | |
"name": "ERC20InvalidApprover", | |
"type": "error" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "receiver", | |
"type": "address" | |
} | |
], | |
"name": "ERC20InvalidReceiver", | |
"type": "error" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "sender", | |
"type": "address" | |
} | |
], | |
"name": "ERC20InvalidSender", | |
"type": "error" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "spender", | |
"type": "address" | |
} | |
], | |
"name": "ERC20InvalidSpender", | |
"type": "error" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "owner", | |
"type": "address" | |
} | |
], | |
"name": "OwnableInvalidOwner", | |
"type": "error" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "account", | |
"type": "address" | |
} | |
], | |
"name": "OwnableUnauthorizedAccount", | |
"type": "error" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "owner", | |
"type": "address" | |
}, | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "spender", | |
"type": "address" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "value", | |
"type": "uint256" | |
} | |
], | |
"name": "Approval", | |
"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" | |
}, | |
{ | |
"inputs": [], | |
"name": "pause", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": false, | |
"internalType": "address", | |
"name": "account", | |
"type": "address" | |
} | |
], | |
"name": "Paused", | |
"type": "event" | |
}, | |
{ | |
"inputs": [], | |
"name": "renounceOwnership", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "to", | |
"type": "address" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "value", | |
"type": "uint256" | |
} | |
], | |
"name": "transfer", | |
"outputs": [ | |
{ | |
"internalType": "bool", | |
"name": "", | |
"type": "bool" | |
} | |
], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "from", | |
"type": "address" | |
}, | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "to", | |
"type": "address" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "value", | |
"type": "uint256" | |
} | |
], | |
"name": "Transfer", | |
"type": "event" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "from", | |
"type": "address" | |
}, | |
{ | |
"internalType": "address", | |
"name": "to", | |
"type": "address" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "value", | |
"type": "uint256" | |
} | |
], | |
"name": "transferFrom", | |
"outputs": [ | |
{ | |
"internalType": "bool", | |
"name": "", | |
"type": "bool" | |
} | |
], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "newOwner", | |
"type": "address" | |
} | |
], | |
"name": "transferOwnership", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "unpause", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": false, | |
"internalType": "address", | |
"name": "account", | |
"type": "address" | |
} | |
], | |
"name": "Unpaused", | |
"type": "event" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "owner", | |
"type": "address" | |
}, | |
{ | |
"internalType": "address", | |
"name": "spender", | |
"type": "address" | |
} | |
], | |
"name": "allowance", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "account", | |
"type": "address" | |
} | |
], | |
"name": "balanceOf", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "decimals", | |
"outputs": [ | |
{ | |
"internalType": "uint8", | |
"name": "", | |
"type": "uint8" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "name", | |
"outputs": [ | |
{ | |
"internalType": "string", | |
"name": "", | |
"type": "string" | |
} | |
], | |
"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": [], | |
"name": "symbol", | |
"outputs": [ | |
{ | |
"internalType": "string", | |
"name": "", | |
"type": "string" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "totalSupply", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
} | |
], | |
"filePath": "Basic - 1/SM9Coin.sol", | |
"pinnedAt": 1749100230685 | |
} |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) | |
pragma solidity ^0.8.0; | |
import "../utils/Context.sol"; | |
/** | |
* @dev Contract module which provides a basic access control mechanism, where | |
* there is an account (an owner) that can be granted exclusive access to | |
* specific functions. | |
* | |
* By default, the owner account will be the one that deploys the contract. This | |
* can later be changed with {transferOwnership}. | |
* | |
* This module is used through inheritance. It will make available the modifier | |
* `onlyOwner`, which can be applied to your functions to restrict their use to | |
* the owner. | |
*/ | |
abstract contract Ownable is Context { | |
address private _owner; | |
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); | |
/** | |
* @dev Initializes the contract setting the deployer as the initial owner. | |
*/ | |
constructor() { | |
_transferOwnership(_msgSender()); | |
} | |
/** | |
* @dev Throws if called by any account other than the owner. | |
*/ | |
modifier onlyOwner() { | |
_checkOwner(); | |
_; | |
} | |
/** | |
* @dev Returns the address of the current owner. | |
*/ | |
function owner() public view virtual returns (address) { | |
return _owner; | |
} | |
/** | |
* @dev Throws if the sender is not the owner. | |
*/ | |
function _checkOwner() internal view virtual { | |
require(owner() == _msgSender(), "Ownable: caller is not the owner"); | |
} | |
/** | |
* @dev Leaves the contract without owner. It will not be possible to call | |
* `onlyOwner` functions. 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); | |
} | |
} |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) | |
pragma solidity ^0.8.0; | |
import "../utils/Context.sol"; | |
/** | |
* @dev Contract module which allows children to implement an emergency stop | |
* mechanism that can be triggered by an authorized account. | |
* | |
* This module is used through inheritance. It will make available the | |
* modifiers `whenNotPaused` and `whenPaused`, which can be applied to | |
* the functions of your contract. Note that they will not be pausable by | |
* simply including this module, only once the modifiers are put in place. | |
*/ | |
abstract contract Pausable is Context { | |
/** | |
* @dev Emitted when the pause is triggered by `account`. | |
*/ | |
event Paused(address account); | |
/** | |
* @dev Emitted when the pause is lifted by `account`. | |
*/ | |
event Unpaused(address account); | |
bool private _paused; | |
/** | |
* @dev Initializes the contract in unpaused state. | |
*/ | |
constructor() { | |
_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()); | |
} | |
} |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol) | |
pragma solidity ^0.8.0; | |
import "./IERC20.sol"; | |
import "./extensions/IERC20Metadata.sol"; | |
import "../../utils/Context.sol"; | |
/** | |
* @dev Implementation of the {IERC20} interface. | |
* | |
* This implementation is agnostic to the way tokens are created. This means | |
* that a supply mechanism has to be added in a derived contract using {_mint}. | |
* For a generic mechanism see {ERC20PresetMinterPauser}. | |
* | |
* TIP: For a detailed writeup see our guide | |
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How | |
* to implement supply mechanisms]. | |
* | |
* The default value of {decimals} is 18. To change this, you should override | |
* this function so it returns a different value. | |
* | |
* We have followed general OpenZeppelin Contracts guidelines: functions revert | |
* instead returning `false` on failure. This behavior is nonetheless | |
* conventional and does not conflict with the expectations of ERC20 | |
* applications. | |
* | |
* Additionally, an {Approval} event is emitted on calls to {transferFrom}. | |
* This allows applications to reconstruct the allowance for all accounts just | |
* by listening to said events. Other implementations of the EIP may not emit | |
* these events, as it isn't required by the specification. | |
* | |
* Finally, the non-standard {decreaseAllowance} and {increaseAllowance} | |
* functions have been added to mitigate the well-known issues around setting | |
* allowances. See {IERC20-approve}. | |
*/ | |
contract ERC20 is Context, IERC20, IERC20Metadata { | |
mapping(address => uint256) private _balances; | |
mapping(address => mapping(address => uint256)) private _allowances; | |
uint256 private _totalSupply; | |
string private _name; | |
string private _symbol; | |
/** | |
* @dev Sets the values for {name} and {symbol}. | |
* | |
* All two of these values are immutable: they can only be set once during | |
* construction. | |
*/ | |
constructor(string memory name_, string memory symbol_) { | |
_name = name_; | |
_symbol = symbol_; | |
} | |
/** | |
* @dev Returns the name of the token. | |
*/ | |
function name() public view virtual override returns (string memory) { | |
return _name; | |
} | |
/** | |
* @dev Returns the symbol of the token, usually a shorter version of the | |
* name. | |
*/ | |
function symbol() public view virtual override returns (string memory) { | |
return _symbol; | |
} | |
/** | |
* @dev Returns the number of decimals used to get its user representation. | |
* For example, if `decimals` equals `2`, a balance of `505` tokens should | |
* be displayed to a user as `5.05` (`505 / 10 ** 2`). | |
* | |
* Tokens usually opt for a value of 18, imitating the relationship between | |
* Ether and Wei. This is the default value returned by this function, unless | |
* it's overridden. | |
* | |
* NOTE: This information is only used for _display_ purposes: it in | |
* no way affects any of the arithmetic of the contract, including | |
* {IERC20-balanceOf} and {IERC20-transfer}. | |
*/ | |
function decimals() public view virtual override returns (uint8) { | |
return 18; | |
} | |
/** | |
* @dev See {IERC20-totalSupply}. | |
*/ | |
function totalSupply() public view virtual override returns (uint256) { | |
return _totalSupply; | |
} | |
/** | |
* @dev See {IERC20-balanceOf}. | |
*/ | |
function balanceOf(address account) public view virtual override returns (uint256) { | |
return _balances[account]; | |
} | |
/** | |
* @dev See {IERC20-transfer}. | |
* | |
* Requirements: | |
* | |
* - `to` cannot be the zero address. | |
* - the caller must have a balance of at least `amount`. | |
*/ | |
function transfer(address to, uint256 amount) public virtual override returns (bool) { | |
address owner = _msgSender(); | |
_transfer(owner, to, amount); | |
return true; | |
} | |
/** | |
* @dev See {IERC20-allowance}. | |
*/ | |
function allowance(address owner, address spender) public view virtual override returns (uint256) { | |
return _allowances[owner][spender]; | |
} | |
/** | |
* @dev See {IERC20-approve}. | |
* | |
* NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on | |
* `transferFrom`. This is semantically equivalent to an infinite approval. | |
* | |
* Requirements: | |
* | |
* - `spender` cannot be the zero address. | |
*/ | |
function approve(address spender, uint256 amount) public virtual override returns (bool) { | |
address owner = _msgSender(); | |
_approve(owner, spender, amount); | |
return true; | |
} | |
/** | |
* @dev See {IERC20-transferFrom}. | |
* | |
* Emits an {Approval} event indicating the updated allowance. This is not | |
* required by the EIP. See the note at the beginning of {ERC20}. | |
* | |
* NOTE: Does not update the allowance if the current allowance | |
* is the maximum `uint256`. | |
* | |
* Requirements: | |
* | |
* - `from` and `to` cannot be the zero address. | |
* - `from` must have a balance of at least `amount`. | |
* - the caller must have allowance for ``from``'s tokens of at least | |
* `amount`. | |
*/ | |
function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) { | |
address spender = _msgSender(); | |
_spendAllowance(from, spender, amount); | |
_transfer(from, to, amount); | |
return true; | |
} | |
/** | |
* @dev Atomically increases the allowance granted to `spender` by the caller. | |
* | |
* This is an alternative to {approve} that can be used as a mitigation for | |
* problems described in {IERC20-approve}. | |
* | |
* Emits an {Approval} event indicating the updated allowance. | |
* | |
* Requirements: | |
* | |
* - `spender` cannot be the zero address. | |
*/ | |
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { | |
address owner = _msgSender(); | |
_approve(owner, spender, allowance(owner, spender) + addedValue); | |
return true; | |
} | |
/** | |
* @dev Atomically decreases the allowance granted to `spender` by the caller. | |
* | |
* This is an alternative to {approve} that can be used as a mitigation for | |
* problems described in {IERC20-approve}. | |
* | |
* Emits an {Approval} event indicating the updated allowance. | |
* | |
* Requirements: | |
* | |
* - `spender` cannot be the zero address. | |
* - `spender` must have allowance for the caller of at least | |
* `subtractedValue`. | |
*/ | |
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { | |
address owner = _msgSender(); | |
uint256 currentAllowance = allowance(owner, spender); | |
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); | |
unchecked { | |
_approve(owner, spender, currentAllowance - subtractedValue); | |
} | |
return true; | |
} | |
/** | |
* @dev Moves `amount` of tokens from `from` to `to`. | |
* | |
* This internal function is equivalent to {transfer}, and can be used to | |
* e.g. implement automatic token fees, slashing mechanisms, etc. | |
* | |
* Emits a {Transfer} event. | |
* | |
* Requirements: | |
* | |
* - `from` cannot be the zero address. | |
* - `to` cannot be the zero address. | |
* - `from` must have a balance of at least `amount`. | |
*/ | |
function _transfer(address from, address to, uint256 amount) internal virtual { | |
require(from != address(0), "ERC20: transfer from the zero address"); | |
require(to != address(0), "ERC20: transfer to the zero address"); | |
_beforeTokenTransfer(from, to, amount); | |
uint256 fromBalance = _balances[from]; | |
require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); | |
unchecked { | |
_balances[from] = fromBalance - amount; | |
// Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by | |
// decrementing then incrementing. | |
_balances[to] += amount; | |
} | |
emit Transfer(from, to, amount); | |
_afterTokenTransfer(from, to, amount); | |
} | |
/** @dev Creates `amount` tokens and assigns them to `account`, increasing | |
* the total supply. | |
* | |
* Emits a {Transfer} event with `from` set to the zero address. | |
* | |
* Requirements: | |
* | |
* - `account` cannot be the zero address. | |
*/ | |
function _mint(address account, uint256 amount) internal virtual { | |
require(account != address(0), "ERC20: mint to the zero address"); | |
_beforeTokenTransfer(address(0), account, amount); | |
_totalSupply += amount; | |
unchecked { | |
// Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. | |
_balances[account] += amount; | |
} | |
emit Transfer(address(0), account, amount); | |
_afterTokenTransfer(address(0), account, amount); | |
} | |
/** | |
* @dev Destroys `amount` tokens from `account`, reducing the | |
* total supply. | |
* | |
* Emits a {Transfer} event with `to` set to the zero address. | |
* | |
* Requirements: | |
* | |
* - `account` cannot be the zero address. | |
* - `account` must have at least `amount` tokens. | |
*/ | |
function _burn(address account, uint256 amount) internal virtual { | |
require(account != address(0), "ERC20: burn from the zero address"); | |
_beforeTokenTransfer(account, address(0), amount); | |
uint256 accountBalance = _balances[account]; | |
require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); | |
unchecked { | |
_balances[account] = accountBalance - amount; | |
// Overflow not possible: amount <= accountBalance <= totalSupply. | |
_totalSupply -= amount; | |
} | |
emit Transfer(account, address(0), amount); | |
_afterTokenTransfer(account, address(0), amount); | |
} | |
/** | |
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. | |
* | |
* This internal function is equivalent to `approve`, and can be used to | |
* e.g. set automatic allowances for certain subsystems, etc. | |
* | |
* Emits an {Approval} event. | |
* | |
* Requirements: | |
* | |
* - `owner` cannot be the zero address. | |
* - `spender` cannot be the zero address. | |
*/ | |
function _approve(address owner, address spender, uint256 amount) internal virtual { | |
require(owner != address(0), "ERC20: approve from the zero address"); | |
require(spender != address(0), "ERC20: approve to the zero address"); | |
_allowances[owner][spender] = amount; | |
emit Approval(owner, spender, amount); | |
} | |
/** | |
* @dev Updates `owner` s allowance for `spender` based on spent `amount`. | |
* | |
* Does not update the allowance amount in case of infinite allowance. | |
* Revert if not enough allowance is available. | |
* | |
* Might emit an {Approval} event. | |
*/ | |
function _spendAllowance(address owner, address spender, uint256 amount) internal virtual { | |
uint256 currentAllowance = allowance(owner, spender); | |
if (currentAllowance != type(uint256).max) { | |
require(currentAllowance >= amount, "ERC20: insufficient allowance"); | |
unchecked { | |
_approve(owner, spender, currentAllowance - amount); | |
} | |
} | |
} | |
/** | |
* @dev Hook that is called before any transfer of tokens. This includes | |
* minting and burning. | |
* | |
* Calling conditions: | |
* | |
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens | |
* will be transferred to `to`. | |
* - when `from` is zero, `amount` tokens will be minted for `to`. | |
* - when `to` is zero, `amount` of ``from``'s tokens will be burned. | |
* - `from` and `to` are never both zero. | |
* | |
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. | |
*/ | |
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {} | |
/** | |
* @dev Hook that is called after any transfer of tokens. This includes | |
* minting and burning. | |
* | |
* Calling conditions: | |
* | |
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens | |
* has been transferred to `to`. | |
* - when `from` is zero, `amount` tokens have been minted for `to`. | |
* - when `to` is zero, `amount` of ``from``'s tokens have been burned. | |
* - `from` and `to` are never both zero. | |
* | |
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. | |
*/ | |
function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {} | |
} |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol) | |
pragma solidity ^0.8.0; | |
import "../ERC20.sol"; | |
import "../../../utils/Context.sol"; | |
/** | |
* @dev Extension of {ERC20} that allows token holders to destroy both their own | |
* tokens and those that they have an allowance for, in a way that can be | |
* recognized off-chain (via event analysis). | |
*/ | |
abstract contract ERC20Burnable is Context, ERC20 { | |
/** | |
* @dev Destroys `amount` tokens from the caller. | |
* | |
* See {ERC20-_burn}. | |
*/ | |
function burn(uint256 amount) public virtual { | |
_burn(_msgSender(), amount); | |
} | |
/** | |
* @dev Destroys `amount` tokens from `account`, deducting from the caller's | |
* allowance. | |
* | |
* See {ERC20-_burn} and {ERC20-allowance}. | |
* | |
* Requirements: | |
* | |
* - the caller must have allowance for ``accounts``'s tokens of at least | |
* `amount`. | |
*/ | |
function burnFrom(address account, uint256 amount) public virtual { | |
_spendAllowance(account, _msgSender(), amount); | |
_burn(account, amount); | |
} | |
} |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Capped.sol) | |
pragma solidity ^0.8.0; | |
import "../ERC20.sol"; | |
/** | |
* @dev Extension of {ERC20} that adds a cap to the supply of tokens. | |
*/ | |
abstract contract ERC20Capped is ERC20 { | |
uint256 private immutable _cap; | |
/** | |
* @dev Sets the value of the `cap`. This value is immutable, it can only be | |
* set once during construction. | |
*/ | |
constructor(uint256 cap_) { | |
require(cap_ > 0, "ERC20Capped: cap is 0"); | |
_cap = cap_; | |
} | |
/** | |
* @dev Returns the cap on the token's total supply. | |
*/ | |
function cap() public view virtual returns (uint256) { | |
return _cap; | |
} | |
/** | |
* @dev See {ERC20-_mint}. | |
*/ | |
function _mint(address account, uint256 amount) internal virtual override { | |
require(ERC20.totalSupply() + amount <= cap(), "ERC20Capped: cap exceeded"); | |
super._mint(account, amount); | |
} | |
} |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) | |
pragma solidity ^0.8.0; | |
import "../IERC20.sol"; | |
/** | |
* @dev Interface for the optional metadata functions from the ERC20 standard. | |
* | |
* _Available since v4.1._ | |
*/ | |
interface IERC20Metadata is IERC20 { | |
/** | |
* @dev Returns the name of the token. | |
*/ | |
function name() external view returns (string memory); | |
/** | |
* @dev Returns the symbol of the token. | |
*/ | |
function symbol() external view returns (string memory); | |
/** | |
* @dev Returns the decimals places of the token. | |
*/ | |
function decimals() external view returns (uint8); | |
} |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts (last updated v4.9.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 v4.4.1 (utils/Context.sol) | |
pragma solidity ^0.8.0; | |
/** | |
* @dev Provides information about the current execution context, including the | |
* sender of the transaction and its data. While these are generally available | |
* via msg.sender and msg.data, they should not be accessed in such a direct | |
* manner, since when dealing with meta-transactions the account sending and | |
* paying for execution may not be the actual sender (as far as an application | |
* is concerned). | |
* | |
* This contract is only required for intermediate, library-like contracts. | |
*/ | |
abstract contract Context { | |
function _msgSender() internal view virtual returns (address) { | |
return msg.sender; | |
} | |
function _msgData() internal view virtual returns (bytes calldata) { | |
return msg.data; | |
} | |
} |
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
interface AggregatorV3Interface { | |
function decimals() external view returns (uint8); | |
function description() external view returns (string memory); | |
function version() external view returns (uint256); | |
function getRoundData( | |
uint80 _roundId | |
) external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound); | |
function latestRoundData() | |
external | |
view | |
returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound); | |
} |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) | |
pragma solidity ^0.8.20; | |
import {Context} from "../utils/Context.sol"; | |
/** | |
* @dev Contract module which provides a basic access control mechanism, where | |
* there is an account (an owner) that can be granted exclusive access to | |
* specific functions. | |
* | |
* The initial owner is set to the address provided by the deployer. This can | |
* later be changed with {transferOwnership}. | |
* | |
* This module is used through inheritance. It will make available the modifier | |
* `onlyOwner`, which can be applied to your functions to restrict their use to | |
* the owner. | |
*/ | |
abstract contract Ownable is Context { | |
address private _owner; | |
/** | |
* @dev The caller account is not authorized to perform an operation. | |
*/ | |
error OwnableUnauthorizedAccount(address account); | |
/** | |
* @dev The owner is not a valid owner account. (eg. `address(0)`) | |
*/ | |
error OwnableInvalidOwner(address owner); | |
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); | |
/** | |
* @dev Initializes the contract setting the address provided by the deployer as the initial owner. | |
*/ | |
constructor(address initialOwner) { | |
if (initialOwner == address(0)) { | |
revert OwnableInvalidOwner(address(0)); | |
} | |
_transferOwnership(initialOwner); | |
} | |
/** | |
* @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 { | |
if (owner() != _msgSender()) { | |
revert OwnableUnauthorizedAccount(_msgSender()); | |
} | |
} | |
/** | |
* @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 { | |
if (newOwner == address(0)) { | |
revert OwnableInvalidOwner(address(0)); | |
} | |
_transferOwnership(newOwner); | |
} | |
/** | |
* @dev Transfers ownership of the contract to a new account (`newOwner`). | |
* Internal function without access restriction. | |
*/ | |
function _transferOwnership(address newOwner) internal virtual { | |
address oldOwner = _owner; | |
_owner = newOwner; | |
emit OwnershipTransferred(oldOwner, newOwner); | |
} | |
} |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/draft-IERC6093.sol) | |
pragma solidity ^0.8.20; | |
/** | |
* @dev Standard ERC-20 Errors | |
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens. | |
*/ | |
interface IERC20Errors { | |
/** | |
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. | |
* @param sender Address whose tokens are being transferred. | |
* @param balance Current balance for the interacting account. | |
* @param needed Minimum amount required to perform a transfer. | |
*/ | |
error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); | |
/** | |
* @dev Indicates a failure with the token `sender`. Used in transfers. | |
* @param sender Address whose tokens are being transferred. | |
*/ | |
error ERC20InvalidSender(address sender); | |
/** | |
* @dev Indicates a failure with the token `receiver`. Used in transfers. | |
* @param receiver Address to which tokens are being transferred. | |
*/ | |
error ERC20InvalidReceiver(address receiver); | |
/** | |
* @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. | |
* @param spender Address that may be allowed to operate on tokens without being their owner. | |
* @param allowance Amount of tokens a `spender` is allowed to operate with. | |
* @param needed Minimum amount required to perform a transfer. | |
*/ | |
error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); | |
/** | |
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. | |
* @param approver Address initiating an approval operation. | |
*/ | |
error ERC20InvalidApprover(address approver); | |
/** | |
* @dev Indicates a failure with the `spender` to be approved. Used in approvals. | |
* @param spender Address that may be allowed to operate on tokens without being their owner. | |
*/ | |
error ERC20InvalidSpender(address spender); | |
} | |
/** | |
* @dev Standard ERC-721 Errors | |
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens. | |
*/ | |
interface IERC721Errors { | |
/** | |
* @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-20. | |
* Used in balance queries. | |
* @param owner Address of the current owner of a token. | |
*/ | |
error ERC721InvalidOwner(address owner); | |
/** | |
* @dev Indicates a `tokenId` whose `owner` is the zero address. | |
* @param tokenId Identifier number of a token. | |
*/ | |
error ERC721NonexistentToken(uint256 tokenId); | |
/** | |
* @dev Indicates an error related to the ownership over a particular token. Used in transfers. | |
* @param sender Address whose tokens are being transferred. | |
* @param tokenId Identifier number of a token. | |
* @param owner Address of the current owner of a token. | |
*/ | |
error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); | |
/** | |
* @dev Indicates a failure with the token `sender`. Used in transfers. | |
* @param sender Address whose tokens are being transferred. | |
*/ | |
error ERC721InvalidSender(address sender); | |
/** | |
* @dev Indicates a failure with the token `receiver`. Used in transfers. | |
* @param receiver Address to which tokens are being transferred. | |
*/ | |
error ERC721InvalidReceiver(address receiver); | |
/** | |
* @dev Indicates a failure with the `operator`’s approval. Used in transfers. | |
* @param operator Address that may be allowed to operate on tokens without being their owner. | |
* @param tokenId Identifier number of a token. | |
*/ | |
error ERC721InsufficientApproval(address operator, uint256 tokenId); | |
/** | |
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. | |
* @param approver Address initiating an approval operation. | |
*/ | |
error ERC721InvalidApprover(address approver); | |
/** | |
* @dev Indicates a failure with the `operator` to be approved. Used in approvals. | |
* @param operator Address that may be allowed to operate on tokens without being their owner. | |
*/ | |
error ERC721InvalidOperator(address operator); | |
} | |
/** | |
* @dev Standard ERC-1155 Errors | |
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens. | |
*/ | |
interface IERC1155Errors { | |
/** | |
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. | |
* @param sender Address whose tokens are being transferred. | |
* @param balance Current balance for the interacting account. | |
* @param needed Minimum amount required to perform a transfer. | |
* @param tokenId Identifier number of a token. | |
*/ | |
error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); | |
/** | |
* @dev Indicates a failure with the token `sender`. Used in transfers. | |
* @param sender Address whose tokens are being transferred. | |
*/ | |
error ERC1155InvalidSender(address sender); | |
/** | |
* @dev Indicates a failure with the token `receiver`. Used in transfers. | |
* @param receiver Address to which tokens are being transferred. | |
*/ | |
error ERC1155InvalidReceiver(address receiver); | |
/** | |
* @dev Indicates a failure with the `operator`’s approval. Used in transfers. | |
* @param operator Address that may be allowed to operate on tokens without being their owner. | |
* @param owner Address of the current owner of a token. | |
*/ | |
error ERC1155MissingApprovalForAll(address operator, address owner); | |
/** | |
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. | |
* @param approver Address initiating an approval operation. | |
*/ | |
error ERC1155InvalidApprover(address approver); | |
/** | |
* @dev Indicates a failure with the `operator` to be approved. Used in approvals. | |
* @param operator Address that may be allowed to operate on tokens without being their owner. | |
*/ | |
error ERC1155InvalidOperator(address operator); | |
/** | |
* @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. | |
* Used in batch transfers. | |
* @param idsLength Length of the array of token identifiers | |
* @param valuesLength Length of the array of token amounts | |
*/ | |
error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); | |
} |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC5267.sol) | |
pragma solidity ^0.8.20; | |
interface IERC5267 { | |
/** | |
* @dev MAY be emitted to signal that the domain could have changed. | |
*/ | |
event EIP712DomainChanged(); | |
/** | |
* @dev returns the fields and values that describe the domain separator used by this contract for EIP-712 | |
* signature. | |
*/ | |
function eip712Domain() | |
external | |
view | |
returns ( | |
bytes1 fields, | |
string memory name, | |
string memory version, | |
uint256 chainId, | |
address verifyingContract, | |
bytes32 salt, | |
uint256[] memory extensions | |
); | |
} |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) | |
pragma solidity ^0.8.0; | |
import "../utils/Context.sol"; | |
/** | |
* @dev Contract module which allows children to implement an emergency stop | |
* mechanism that can be triggered by an authorized account. | |
* | |
* This module is used through inheritance. It will make available the | |
* modifiers `whenNotPaused` and `whenPaused`, which can be applied to | |
* the functions of your contract. Note that they will not be pausable by | |
* simply including this module, only once the modifiers are put in place. | |
*/ | |
abstract contract Pausable is Context { | |
/** | |
* @dev Emitted when the pause is triggered by `account`. | |
*/ | |
event Paused(address account); | |
/** | |
* @dev Emitted when the pause is lifted by `account`. | |
*/ | |
event Unpaused(address account); | |
bool private _paused; | |
/** | |
* @dev Initializes the contract in unpaused state. | |
*/ | |
constructor() { | |
_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()); | |
} | |
} |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol) | |
pragma solidity ^0.8.0; | |
/** | |
* @dev Contract module that helps prevent reentrant calls to a function. | |
* | |
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier | |
* available, which can be applied to functions to make sure there are no nested | |
* (reentrant) calls to them. | |
* | |
* Note that because there is a single `nonReentrant` guard, functions marked as | |
* `nonReentrant` may not call one another. This can be worked around by making | |
* those functions `private`, and then adding `external` `nonReentrant` entry | |
* points to them. | |
* | |
* TIP: If you would like to learn more about reentrancy and alternative ways | |
* to protect against it, check out our blog post | |
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. | |
*/ | |
abstract contract ReentrancyGuard { | |
// Booleans are more expensive than uint256 or any type that takes up a full | |
// word because each write operation emits an extra SLOAD to first read the | |
// slot's contents, replace the bits taken up by the boolean, and then write | |
// back. This is the compiler's defense against contract upgrades and | |
// pointer aliasing, and it cannot be disabled. | |
// The values being non-zero value makes deployment a bit more expensive, | |
// but in exchange the refund on every call to nonReentrant will be lower in | |
// amount. Since refunds are capped to a percentage of the total | |
// transaction's gas, it is best to keep them low in cases like this one, to | |
// increase the likelihood of the full refund coming into effect. | |
uint256 private constant _NOT_ENTERED = 1; | |
uint256 private constant _ENTERED = 2; | |
uint256 private _status; | |
constructor() { | |
_status = _NOT_ENTERED; | |
} | |
/** | |
* @dev Prevents a contract from calling itself, directly or indirectly. | |
* Calling a `nonReentrant` function from another `nonReentrant` | |
* function is not supported. It is possible to prevent this from happening | |
* by making the `nonReentrant` function external, and making it call a | |
* `private` function that does the actual work. | |
*/ | |
modifier nonReentrant() { | |
_nonReentrantBefore(); | |
_; | |
_nonReentrantAfter(); | |
} | |
function _nonReentrantBefore() private { | |
// On the first call to nonReentrant, _status will be _NOT_ENTERED | |
require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); | |
// Any calls to nonReentrant after this point will fail | |
_status = _ENTERED; | |
} | |
function _nonReentrantAfter() private { | |
// By storing the original value once again, a refund is triggered (see | |
// https://eips.ethereum.org/EIPS/eip-2200) | |
_status = _NOT_ENTERED; | |
} | |
/** | |
* @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a | |
* `nonReentrant` function in the call stack. | |
*/ | |
function _reentrancyGuardEntered() internal view returns (bool) { | |
return _status == _ENTERED; | |
} | |
} |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/ERC20.sol) | |
pragma solidity ^0.8.20; | |
import {IERC20} from "./IERC20.sol"; | |
import {IERC20Metadata} from "./extensions/IERC20Metadata.sol"; | |
import {Context} from "../../utils/Context.sol"; | |
import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol"; | |
/** | |
* @dev Implementation of the {IERC20} interface. | |
* | |
* This implementation is agnostic to the way tokens are created. This means | |
* that a supply mechanism has to be added in a derived contract using {_mint}. | |
* | |
* TIP: For a detailed writeup see our guide | |
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How | |
* to implement supply mechanisms]. | |
* | |
* The default value of {decimals} is 18. To change this, you should override | |
* this function so it returns a different value. | |
* | |
* We have followed general OpenZeppelin Contracts guidelines: functions revert | |
* instead returning `false` on failure. This behavior is nonetheless | |
* conventional and does not conflict with the expectations of ERC-20 | |
* applications. | |
*/ | |
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors { | |
mapping(address account => uint256) private _balances; | |
mapping(address account => mapping(address spender => uint256)) private _allowances; | |
uint256 private _totalSupply; | |
string private _name; | |
string private _symbol; | |
/** | |
* @dev Sets the values for {name} and {symbol}. | |
* | |
* Both values are immutable: they can only be set once during construction. | |
*/ | |
constructor(string memory name_, string memory symbol_) { | |
_name = name_; | |
_symbol = symbol_; | |
} | |
/** | |
* @dev Returns the name of the token. | |
*/ | |
function name() public view virtual returns (string memory) { | |
return _name; | |
} | |
/** | |
* @dev Returns the symbol of the token, usually a shorter version of the | |
* name. | |
*/ | |
function symbol() public view virtual returns (string memory) { | |
return _symbol; | |
} | |
/** | |
* @dev Returns the number of decimals used to get its user representation. | |
* For example, if `decimals` equals `2`, a balance of `505` tokens should | |
* be displayed to a user as `5.05` (`505 / 10 ** 2`). | |
* | |
* Tokens usually opt for a value of 18, imitating the relationship between | |
* Ether and Wei. This is the default value returned by this function, unless | |
* it's overridden. | |
* | |
* NOTE: This information is only used for _display_ purposes: it in | |
* no way affects any of the arithmetic of the contract, including | |
* {IERC20-balanceOf} and {IERC20-transfer}. | |
*/ | |
function decimals() public view virtual returns (uint8) { | |
return 18; | |
} | |
/** | |
* @dev See {IERC20-totalSupply}. | |
*/ | |
function totalSupply() public view virtual returns (uint256) { | |
return _totalSupply; | |
} | |
/** | |
* @dev See {IERC20-balanceOf}. | |
*/ | |
function balanceOf(address account) public view virtual returns (uint256) { | |
return _balances[account]; | |
} | |
/** | |
* @dev See {IERC20-transfer}. | |
* | |
* Requirements: | |
* | |
* - `to` cannot be the zero address. | |
* - the caller must have a balance of at least `value`. | |
*/ | |
function transfer(address to, uint256 value) public virtual returns (bool) { | |
address owner = _msgSender(); | |
_transfer(owner, to, value); | |
return true; | |
} | |
/** | |
* @dev See {IERC20-allowance}. | |
*/ | |
function allowance(address owner, address spender) public view virtual returns (uint256) { | |
return _allowances[owner][spender]; | |
} | |
/** | |
* @dev See {IERC20-approve}. | |
* | |
* NOTE: If `value` is the maximum `uint256`, the allowance is not updated on | |
* `transferFrom`. This is semantically equivalent to an infinite approval. | |
* | |
* Requirements: | |
* | |
* - `spender` cannot be the zero address. | |
*/ | |
function approve(address spender, uint256 value) public virtual returns (bool) { | |
address owner = _msgSender(); | |
_approve(owner, spender, value); | |
return true; | |
} | |
/** | |
* @dev See {IERC20-transferFrom}. | |
* | |
* Skips emitting an {Approval} event indicating an allowance update. This is not | |
* required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve]. | |
* | |
* NOTE: Does not update the allowance if the current allowance | |
* is the maximum `uint256`. | |
* | |
* Requirements: | |
* | |
* - `from` and `to` cannot be the zero address. | |
* - `from` must have a balance of at least `value`. | |
* - the caller must have allowance for ``from``'s tokens of at least | |
* `value`. | |
*/ | |
function transferFrom(address from, address to, uint256 value) public virtual returns (bool) { | |
address spender = _msgSender(); | |
_spendAllowance(from, spender, value); | |
_transfer(from, to, value); | |
return true; | |
} | |
/** | |
* @dev Moves a `value` amount of tokens from `from` to `to`. | |
* | |
* This internal function is equivalent to {transfer}, and can be used to | |
* e.g. implement automatic token fees, slashing mechanisms, etc. | |
* | |
* Emits a {Transfer} event. | |
* | |
* NOTE: This function is not virtual, {_update} should be overridden instead. | |
*/ | |
function _transfer(address from, address to, uint256 value) internal { | |
if (from == address(0)) { | |
revert ERC20InvalidSender(address(0)); | |
} | |
if (to == address(0)) { | |
revert ERC20InvalidReceiver(address(0)); | |
} | |
_update(from, to, value); | |
} | |
/** | |
* @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from` | |
* (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding | |
* this function. | |
* | |
* Emits a {Transfer} event. | |
*/ | |
function _update(address from, address to, uint256 value) internal virtual { | |
if (from == address(0)) { | |
// Overflow check required: The rest of the code assumes that totalSupply never overflows | |
_totalSupply += value; | |
} else { | |
uint256 fromBalance = _balances[from]; | |
if (fromBalance < value) { | |
revert ERC20InsufficientBalance(from, fromBalance, value); | |
} | |
unchecked { | |
// Overflow not possible: value <= fromBalance <= totalSupply. | |
_balances[from] = fromBalance - value; | |
} | |
} | |
if (to == address(0)) { | |
unchecked { | |
// Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply. | |
_totalSupply -= value; | |
} | |
} else { | |
unchecked { | |
// Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256. | |
_balances[to] += value; | |
} | |
} | |
emit Transfer(from, to, value); | |
} | |
/** | |
* @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0). | |
* Relies on the `_update` mechanism | |
* | |
* Emits a {Transfer} event with `from` set to the zero address. | |
* | |
* NOTE: This function is not virtual, {_update} should be overridden instead. | |
*/ | |
function _mint(address account, uint256 value) internal { | |
if (account == address(0)) { | |
revert ERC20InvalidReceiver(address(0)); | |
} | |
_update(address(0), account, value); | |
} | |
/** | |
* @dev Destroys a `value` amount of tokens from `account`, lowering the total supply. | |
* Relies on the `_update` mechanism. | |
* | |
* Emits a {Transfer} event with `to` set to the zero address. | |
* | |
* NOTE: This function is not virtual, {_update} should be overridden instead | |
*/ | |
function _burn(address account, uint256 value) internal { | |
if (account == address(0)) { | |
revert ERC20InvalidSender(address(0)); | |
} | |
_update(account, address(0), value); | |
} | |
/** | |
* @dev Sets `value` as the allowance of `spender` over the `owner`'s tokens. | |
* | |
* This internal function is equivalent to `approve`, and can be used to | |
* e.g. set automatic allowances for certain subsystems, etc. | |
* | |
* Emits an {Approval} event. | |
* | |
* Requirements: | |
* | |
* - `owner` cannot be the zero address. | |
* - `spender` cannot be the zero address. | |
* | |
* Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. | |
*/ | |
function _approve(address owner, address spender, uint256 value) internal { | |
_approve(owner, spender, value, true); | |
} | |
/** | |
* @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event. | |
* | |
* By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by | |
* `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any | |
* `Approval` event during `transferFrom` operations. | |
* | |
* Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to | |
* true using the following override: | |
* | |
* ```solidity | |
* function _approve(address owner, address spender, uint256 value, bool) internal virtual override { | |
* super._approve(owner, spender, value, true); | |
* } | |
* ``` | |
* | |
* Requirements are the same as {_approve}. | |
*/ | |
function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual { | |
if (owner == address(0)) { | |
revert ERC20InvalidApprover(address(0)); | |
} | |
if (spender == address(0)) { | |
revert ERC20InvalidSpender(address(0)); | |
} | |
_allowances[owner][spender] = value; | |
if (emitEvent) { | |
emit Approval(owner, spender, value); | |
} | |
} | |
/** | |
* @dev Updates `owner`'s allowance for `spender` based on spent `value`. | |
* | |
* Does not update the allowance value in case of infinite allowance. | |
* Revert if not enough allowance is available. | |
* | |
* Does not emit an {Approval} event. | |
*/ | |
function _spendAllowance(address owner, address spender, uint256 value) internal virtual { | |
uint256 currentAllowance = allowance(owner, spender); | |
if (currentAllowance < type(uint256).max) { | |
if (currentAllowance < value) { | |
revert ERC20InsufficientAllowance(spender, currentAllowance, value); | |
} | |
unchecked { | |
_approve(owner, spender, currentAllowance - value, false); | |
} | |
} | |
} | |
} |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/draft-ERC20Permit.sol) | |
pragma solidity ^0.8.0; | |
// EIP-2612 is Final as of 2022-11-01. This file is deprecated. | |
import "./ERC20Permit.sol"; |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/ERC20Burnable.sol) | |
pragma solidity ^0.8.20; | |
import {ERC20} from "../ERC20.sol"; | |
import {Context} from "../../../utils/Context.sol"; | |
/** | |
* @dev Extension of {ERC20} that allows token holders to destroy both their own | |
* tokens and those that they have an allowance for, in a way that can be | |
* recognized off-chain (via event analysis). | |
*/ | |
abstract contract ERC20Burnable is Context, ERC20 { | |
/** | |
* @dev Destroys a `value` amount of tokens from the caller. | |
* | |
* See {ERC20-_burn}. | |
*/ | |
function burn(uint256 value) public virtual { | |
_burn(_msgSender(), value); | |
} | |
/** | |
* @dev Destroys a `value` amount of tokens from `account`, deducting from | |
* the caller's allowance. | |
* | |
* See {ERC20-_burn} and {ERC20-allowance}. | |
* | |
* Requirements: | |
* | |
* - the caller must have allowance for ``accounts``'s tokens of at least | |
* `value`. | |
*/ | |
function burnFrom(address account, uint256 value) public virtual { | |
_spendAllowance(account, _msgSender(), value); | |
_burn(account, value); | |
} | |
} |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/ERC20Permit.sol) | |
pragma solidity ^0.8.20; | |
import {IERC20Permit} from "./IERC20Permit.sol"; | |
import {ERC20} from "../ERC20.sol"; | |
import {ECDSA} from "../../../utils/cryptography/ECDSA.sol"; | |
import {EIP712} from "../../../utils/cryptography/EIP712.sol"; | |
import {Nonces} from "../../../utils/Nonces.sol"; | |
/** | |
* @dev Implementation of the ERC-20 Permit extension allowing approvals to be made via signatures, as defined in | |
* https://eips.ethereum.org/EIPS/eip-2612[ERC-2612]. | |
* | |
* Adds the {permit} method, which can be used to change an account's ERC-20 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. | |
*/ | |
abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712, Nonces { | |
bytes32 private constant PERMIT_TYPEHASH = | |
keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); | |
/** | |
* @dev Permit deadline has expired. | |
*/ | |
error ERC2612ExpiredSignature(uint256 deadline); | |
/** | |
* @dev Mismatched signature. | |
*/ | |
error ERC2612InvalidSigner(address signer, address owner); | |
/** | |
* @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`. | |
* | |
* It's a good idea to use the same `name` that is defined as the ERC-20 token name. | |
*/ | |
constructor(string memory name) EIP712(name, "1") {} | |
/** | |
* @inheritdoc IERC20Permit | |
*/ | |
function permit( | |
address owner, | |
address spender, | |
uint256 value, | |
uint256 deadline, | |
uint8 v, | |
bytes32 r, | |
bytes32 s | |
) public virtual { | |
if (block.timestamp > deadline) { | |
revert ERC2612ExpiredSignature(deadline); | |
} | |
bytes32 structHash = keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline)); | |
bytes32 hash = _hashTypedDataV4(structHash); | |
address signer = ECDSA.recover(hash, v, r, s); | |
if (signer != owner) { | |
revert ERC2612InvalidSigner(signer, owner); | |
} | |
_approve(owner, spender, value); | |
} | |
/** | |
* @inheritdoc IERC20Permit | |
*/ | |
function nonces(address owner) public view virtual override(IERC20Permit, Nonces) returns (uint256) { | |
return super.nonces(owner); | |
} | |
/** | |
* @inheritdoc IERC20Permit | |
*/ | |
// solhint-disable-next-line func-name-mixedcase | |
function DOMAIN_SEPARATOR() external view virtual returns (bytes32) { | |
return _domainSeparatorV4(); | |
} | |
} |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/IERC20Metadata.sol) | |
pragma solidity ^0.8.20; | |
import {IERC20} from "../IERC20.sol"; | |
/** | |
* @dev Interface for the optional metadata functions from the ERC-20 standard. | |
*/ | |
interface IERC20Metadata is IERC20 { | |
/** | |
* @dev Returns the name of the token. | |
*/ | |
function name() external view returns (string memory); | |
/** | |
* @dev Returns the symbol of the token. | |
*/ | |
function symbol() external view returns (string memory); | |
/** | |
* @dev Returns the decimals places of the token. | |
*/ | |
function decimals() external view returns (uint8); | |
} |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/IERC20Permit.sol) | |
pragma solidity ^0.8.20; | |
/** | |
* @dev Interface of the ERC-20 Permit extension allowing approvals to be made via signatures, as defined in | |
* https://eips.ethereum.org/EIPS/eip-2612[ERC-2612]. | |
* | |
* Adds the {permit} method, which can be used to change an account's ERC-20 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. | |
* | |
* ==== Security Considerations | |
* | |
* There are two important considerations concerning the use of `permit`. The first is that a valid permit signature | |
* expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be | |
* considered as an intention to spend the allowance in any specific way. The second is that because permits have | |
* built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should | |
* take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be | |
* generally recommended is: | |
* | |
* ```solidity | |
* function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public { | |
* try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {} | |
* doThing(..., value); | |
* } | |
* | |
* function doThing(..., uint256 value) public { | |
* token.safeTransferFrom(msg.sender, address(this), value); | |
* ... | |
* } | |
* ``` | |
* | |
* Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of | |
* `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also | |
* {SafeERC20-safeTransferFrom}). | |
* | |
* Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so | |
* contracts should have entry points that don't rely on permit. | |
*/ | |
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]. | |
* | |
* CAUTION: See Security Considerations above. | |
*/ | |
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 v5.1.0) (token/ERC20/IERC20.sol) | |
pragma solidity ^0.8.20; | |
/** | |
* @dev Interface of the ERC-20 standard as defined in the ERC. | |
*/ | |
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 value of tokens in existence. | |
*/ | |
function totalSupply() external view returns (uint256); | |
/** | |
* @dev Returns the value of tokens owned by `account`. | |
*/ | |
function balanceOf(address account) external view returns (uint256); | |
/** | |
* @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool); | |
/** | |
* @dev Moves a `value` amount of tokens from `from` to `to` using the | |
* allowance mechanism. `value` 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 value) external returns (bool); | |
} |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) | |
pragma solidity ^0.8.20; | |
/** | |
* @dev Provides information about the current execution context, including the | |
* sender of the transaction and its data. While these are generally available | |
* via msg.sender and msg.data, they should not be accessed in such a direct | |
* manner, since when dealing with meta-transactions the account sending and | |
* paying for execution may not be the actual sender (as far as an application | |
* is concerned). | |
* | |
* This contract is only required for intermediate, library-like contracts. | |
*/ | |
abstract contract Context { | |
function _msgSender() internal view virtual returns (address) { | |
return msg.sender; | |
} | |
function _msgData() internal view virtual returns (bytes calldata) { | |
return msg.data; | |
} | |
function _contextSuffixLength() internal view virtual returns (uint256) { | |
return 0; | |
} | |
} |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts (last updated v5.1.0) (utils/cryptography/ECDSA.sol) | |
pragma solidity ^0.8.20; | |
/** | |
* @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. | |
* | |
* These functions can be used to verify that a message was signed by the holder | |
* of the private keys of a given address. | |
*/ | |
library ECDSA { | |
enum RecoverError { | |
NoError, | |
InvalidSignature, | |
InvalidSignatureLength, | |
InvalidSignatureS | |
} | |
/** | |
* @dev The signature derives the `address(0)`. | |
*/ | |
error ECDSAInvalidSignature(); | |
/** | |
* @dev The signature has an invalid length. | |
*/ | |
error ECDSAInvalidSignatureLength(uint256 length); | |
/** | |
* @dev The signature has an S value that is in the upper half order. | |
*/ | |
error ECDSAInvalidSignatureS(bytes32 s); | |
/** | |
* @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not | |
* return address(0) without also returning an error description. Errors are documented using an enum (error type) | |
* and a bytes32 providing additional information about the error. | |
* | |
* If no error is returned, then the address can be used for verification purposes. | |
* | |
* The `ecrecover` EVM precompile allows for malleable (non-unique) signatures: | |
* this function rejects them by requiring the `s` value to be in the lower | |
* half order, and the `v` value to be either 27 or 28. | |
* | |
* IMPORTANT: `hash` _must_ be the result of a hash operation for the | |
* verification to be secure: it is possible to craft signatures that | |
* recover to arbitrary addresses for non-hashed data. A safe way to ensure | |
* this is by receiving a hash of the original message (which may otherwise | |
* be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it. | |
* | |
* Documentation for signature generation: | |
* - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] | |
* - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] | |
*/ | |
function tryRecover( | |
bytes32 hash, | |
bytes memory signature | |
) internal pure returns (address recovered, RecoverError err, bytes32 errArg) { | |
if (signature.length == 65) { | |
bytes32 r; | |
bytes32 s; | |
uint8 v; | |
// ecrecover takes the signature parameters, and the only way to get them | |
// currently is to use assembly. | |
assembly ("memory-safe") { | |
r := mload(add(signature, 0x20)) | |
s := mload(add(signature, 0x40)) | |
v := byte(0, mload(add(signature, 0x60))) | |
} | |
return tryRecover(hash, v, r, s); | |
} else { | |
return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length)); | |
} | |
} | |
/** | |
* @dev Returns the address that signed a hashed message (`hash`) with | |
* `signature`. This address can then be used for verification purposes. | |
* | |
* The `ecrecover` EVM precompile allows for malleable (non-unique) signatures: | |
* this function rejects them by requiring the `s` value to be in the lower | |
* half order, and the `v` value to be either 27 or 28. | |
* | |
* IMPORTANT: `hash` _must_ be the result of a hash operation for the | |
* verification to be secure: it is possible to craft signatures that | |
* recover to arbitrary addresses for non-hashed data. A safe way to ensure | |
* this is by receiving a hash of the original message (which may otherwise | |
* be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it. | |
*/ | |
function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { | |
(address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature); | |
_throwError(error, errorArg); | |
return recovered; | |
} | |
/** | |
* @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. | |
* | |
* See https://eips.ethereum.org/EIPS/eip-2098[ERC-2098 short signatures] | |
*/ | |
function tryRecover( | |
bytes32 hash, | |
bytes32 r, | |
bytes32 vs | |
) internal pure returns (address recovered, RecoverError err, bytes32 errArg) { | |
unchecked { | |
bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); | |
// We do not check for an overflow here since the shift operation results in 0 or 1. | |
uint8 v = uint8((uint256(vs) >> 255) + 27); | |
return tryRecover(hash, v, r, s); | |
} | |
} | |
/** | |
* @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. | |
*/ | |
function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) { | |
(address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs); | |
_throwError(error, errorArg); | |
return recovered; | |
} | |
/** | |
* @dev Overload of {ECDSA-tryRecover} that receives the `v`, | |
* `r` and `s` signature fields separately. | |
*/ | |
function tryRecover( | |
bytes32 hash, | |
uint8 v, | |
bytes32 r, | |
bytes32 s | |
) internal pure returns (address recovered, RecoverError err, bytes32 errArg) { | |
// EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature | |
// unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines | |
// the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most | |
// signatures from current libraries generate a unique signature with an s-value in the lower half order. | |
// | |
// If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value | |
// with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or | |
// vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept | |
// these malleable signatures as well. | |
if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { | |
return (address(0), RecoverError.InvalidSignatureS, s); | |
} | |
// If the signature is valid (and not malleable), return the signer address | |
address signer = ecrecover(hash, v, r, s); | |
if (signer == address(0)) { | |
return (address(0), RecoverError.InvalidSignature, bytes32(0)); | |
} | |
return (signer, RecoverError.NoError, bytes32(0)); | |
} | |
/** | |
* @dev Overload of {ECDSA-recover} that receives the `v`, | |
* `r` and `s` signature fields separately. | |
*/ | |
function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) { | |
(address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s); | |
_throwError(error, errorArg); | |
return recovered; | |
} | |
/** | |
* @dev Optionally reverts with the corresponding custom error according to the `error` argument provided. | |
*/ | |
function _throwError(RecoverError error, bytes32 errorArg) private pure { | |
if (error == RecoverError.NoError) { | |
return; // no error: do nothing | |
} else if (error == RecoverError.InvalidSignature) { | |
revert ECDSAInvalidSignature(); | |
} else if (error == RecoverError.InvalidSignatureLength) { | |
revert ECDSAInvalidSignatureLength(uint256(errorArg)); | |
} else if (error == RecoverError.InvalidSignatureS) { | |
revert ECDSAInvalidSignatureS(errorArg); | |
} | |
} | |
} |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts (last updated v5.3.0) (utils/cryptography/EIP712.sol) | |
pragma solidity ^0.8.20; | |
import {MessageHashUtils} from "./MessageHashUtils.sol"; | |
import {ShortStrings, ShortString} from "../ShortStrings.sol"; | |
import {IERC5267} from "../../interfaces/IERC5267.sol"; | |
/** | |
* @dev https://eips.ethereum.org/EIPS/eip-712[EIP-712] is a standard for hashing and signing of typed structured data. | |
* | |
* The encoding scheme specified in the EIP requires a domain separator and a hash of the typed structured data, whose | |
* encoding is very generic and therefore its implementation in Solidity is not feasible, thus this contract | |
* does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in order to | |
* produce the hash of their typed data using a combination of `abi.encode` and `keccak256`. | |
* | |
* This contract implements the EIP-712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding | |
* scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA | |
* ({_hashTypedDataV4}). | |
* | |
* The implementation of the domain separator was designed to be as efficient as possible while still properly updating | |
* the chain id to protect against replay attacks on an eventual fork of the chain. | |
* | |
* NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method | |
* https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. | |
* | |
* NOTE: In the upgradeable version of this contract, the cached values will correspond to the address, and the domain | |
* separator of the implementation contract. This will cause the {_domainSeparatorV4} function to always rebuild the | |
* separator from the immutable values, which is cheaper than accessing a cached version in cold storage. | |
* | |
* @custom:oz-upgrades-unsafe-allow state-variable-immutable | |
*/ | |
abstract contract EIP712 is IERC5267 { | |
using ShortStrings for *; | |
bytes32 private constant TYPE_HASH = | |
keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"); | |
// Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to | |
// invalidate the cached domain separator if the chain id changes. | |
bytes32 private immutable _cachedDomainSeparator; | |
uint256 private immutable _cachedChainId; | |
address private immutable _cachedThis; | |
bytes32 private immutable _hashedName; | |
bytes32 private immutable _hashedVersion; | |
ShortString private immutable _name; | |
ShortString private immutable _version; | |
// slither-disable-next-line constable-states | |
string private _nameFallback; | |
// slither-disable-next-line constable-states | |
string private _versionFallback; | |
/** | |
* @dev Initializes the domain separator and parameter caches. | |
* | |
* The meaning of `name` and `version` is specified in | |
* https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP-712]: | |
* | |
* - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. | |
* - `version`: the current major version of the signing domain. | |
* | |
* NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart | |
* contract upgrade]. | |
*/ | |
constructor(string memory name, string memory version) { | |
_name = name.toShortStringWithFallback(_nameFallback); | |
_version = version.toShortStringWithFallback(_versionFallback); | |
_hashedName = keccak256(bytes(name)); | |
_hashedVersion = keccak256(bytes(version)); | |
_cachedChainId = block.chainid; | |
_cachedDomainSeparator = _buildDomainSeparator(); | |
_cachedThis = address(this); | |
} | |
/** | |
* @dev Returns the domain separator for the current chain. | |
*/ | |
function _domainSeparatorV4() internal view returns (bytes32) { | |
if (address(this) == _cachedThis && block.chainid == _cachedChainId) { | |
return _cachedDomainSeparator; | |
} else { | |
return _buildDomainSeparator(); | |
} | |
} | |
function _buildDomainSeparator() private view returns (bytes32) { | |
return keccak256(abi.encode(TYPE_HASH, _hashedName, _hashedVersion, block.chainid, address(this))); | |
} | |
/** | |
* @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this | |
* function returns the hash of the fully encoded EIP712 message for this domain. | |
* | |
* This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: | |
* | |
* ```solidity | |
* bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( | |
* keccak256("Mail(address to,string contents)"), | |
* mailTo, | |
* keccak256(bytes(mailContents)) | |
* ))); | |
* address signer = ECDSA.recover(digest, signature); | |
* ``` | |
*/ | |
function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { | |
return MessageHashUtils.toTypedDataHash(_domainSeparatorV4(), structHash); | |
} | |
/** | |
* @inheritdoc IERC5267 | |
*/ | |
function eip712Domain() | |
public | |
view | |
virtual | |
returns ( | |
bytes1 fields, | |
string memory name, | |
string memory version, | |
uint256 chainId, | |
address verifyingContract, | |
bytes32 salt, | |
uint256[] memory extensions | |
) | |
{ | |
return ( | |
hex"0f", // 01111 | |
_EIP712Name(), | |
_EIP712Version(), | |
block.chainid, | |
address(this), | |
bytes32(0), | |
new uint256[](0) | |
); | |
} | |
/** | |
* @dev The name parameter for the EIP712 domain. | |
* | |
* NOTE: By default this function reads _name which is an immutable value. | |
* It only reads from storage if necessary (in case the value is too large to fit in a ShortString). | |
*/ | |
// solhint-disable-next-line func-name-mixedcase | |
function _EIP712Name() internal view returns (string memory) { | |
return _name.toStringWithFallback(_nameFallback); | |
} | |
/** | |
* @dev The version parameter for the EIP712 domain. | |
* | |
* NOTE: By default this function reads _version which is an immutable value. | |
* It only reads from storage if necessary (in case the value is too large to fit in a ShortString). | |
*/ | |
// solhint-disable-next-line func-name-mixedcase | |
function _EIP712Version() internal view returns (string memory) { | |
return _version.toStringWithFallback(_versionFallback); | |
} | |
} |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts (last updated v5.3.0) (utils/cryptography/MessageHashUtils.sol) | |
pragma solidity ^0.8.20; | |
import {Strings} from "../Strings.sol"; | |
/** | |
* @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing. | |
* | |
* The library provides methods for generating a hash of a message that conforms to the | |
* https://eips.ethereum.org/EIPS/eip-191[ERC-191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712] | |
* specifications. | |
*/ | |
library MessageHashUtils { | |
/** | |
* @dev Returns the keccak256 digest of an ERC-191 signed data with version | |
* `0x45` (`personal_sign` messages). | |
* | |
* The digest is calculated by prefixing a bytes32 `messageHash` with | |
* `"\x19Ethereum Signed Message:\n32"` and hashing the result. It corresponds with the | |
* hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method. | |
* | |
* NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with | |
* keccak256, although any bytes32 value can be safely used because the final digest will | |
* be re-hashed. | |
* | |
* See {ECDSA-recover}. | |
*/ | |
function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) { | |
assembly ("memory-safe") { | |
mstore(0x00, "\x19Ethereum Signed Message:\n32") // 32 is the bytes-length of messageHash | |
mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix | |
digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20) | |
} | |
} | |
/** | |
* @dev Returns the keccak256 digest of an ERC-191 signed data with version | |
* `0x45` (`personal_sign` messages). | |
* | |
* The digest is calculated by prefixing an arbitrary `message` with | |
* `"\x19Ethereum Signed Message:\n" + len(message)` and hashing the result. It corresponds with the | |
* hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method. | |
* | |
* See {ECDSA-recover}. | |
*/ | |
function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) { | |
return | |
keccak256(bytes.concat("\x19Ethereum Signed Message:\n", bytes(Strings.toString(message.length)), message)); | |
} | |
/** | |
* @dev Returns the keccak256 digest of an ERC-191 signed data with version | |
* `0x00` (data with intended validator). | |
* | |
* The digest is calculated by prefixing an arbitrary `data` with `"\x19\x00"` and the intended | |
* `validator` address. Then hashing the result. | |
* | |
* See {ECDSA-recover}. | |
*/ | |
function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) { | |
return keccak256(abi.encodePacked(hex"19_00", validator, data)); | |
} | |
/** | |
* @dev Variant of {toDataWithIntendedValidatorHash-address-bytes} optimized for cases where `data` is a bytes32. | |
*/ | |
function toDataWithIntendedValidatorHash( | |
address validator, | |
bytes32 messageHash | |
) internal pure returns (bytes32 digest) { | |
assembly ("memory-safe") { | |
mstore(0x00, hex"19_00") | |
mstore(0x02, shl(96, validator)) | |
mstore(0x16, messageHash) | |
digest := keccak256(0x00, 0x36) | |
} | |
} | |
/** | |
* @dev Returns the keccak256 digest of an EIP-712 typed data (ERC-191 version `0x01`). | |
* | |
* The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with | |
* `\x19\x01` and hashing the result. It corresponds to the hash signed by the | |
* https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712. | |
* | |
* See {ECDSA-recover}. | |
*/ | |
function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) { | |
assembly ("memory-safe") { | |
let ptr := mload(0x40) | |
mstore(ptr, hex"19_01") | |
mstore(add(ptr, 0x02), domainSeparator) | |
mstore(add(ptr, 0x22), structHash) | |
digest := keccak256(ptr, 0x42) | |
} | |
} | |
} |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts (last updated v5.3.0) (utils/math/Math.sol) | |
pragma solidity ^0.8.20; | |
import {Panic} from "../Panic.sol"; | |
import {SafeCast} from "./SafeCast.sol"; | |
/** | |
* @dev Standard math utilities missing in the Solidity language. | |
*/ | |
library Math { | |
enum Rounding { | |
Floor, // Toward negative infinity | |
Ceil, // Toward positive infinity | |
Trunc, // Toward zero | |
Expand // Away from zero | |
} | |
/** | |
* @dev Return the 512-bit addition of two uint256. | |
* | |
* The result is stored in two 256 variables such that sum = high * 2²⁵⁶ + low. | |
*/ | |
function add512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) { | |
assembly ("memory-safe") { | |
low := add(a, b) | |
high := lt(low, a) | |
} | |
} | |
/** | |
* @dev Return the 512-bit multiplication of two uint256. | |
* | |
* The result is stored in two 256 variables such that product = high * 2²⁵⁶ + low. | |
*/ | |
function mul512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) { | |
// 512-bit multiply [high low] = x * y. Compute the product mod 2²⁵⁶ and mod 2²⁵⁶ - 1, then use | |
// the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 | |
// variables such that product = high * 2²⁵⁶ + low. | |
assembly ("memory-safe") { | |
let mm := mulmod(a, b, not(0)) | |
low := mul(a, b) | |
high := sub(sub(mm, low), lt(mm, low)) | |
} | |
} | |
/** | |
* @dev Returns the addition of two unsigned integers, with a success flag (no overflow). | |
*/ | |
function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { | |
unchecked { | |
uint256 c = a + b; | |
success = c >= a; | |
result = c * SafeCast.toUint(success); | |
} | |
} | |
/** | |
* @dev Returns the subtraction of two unsigned integers, with a success flag (no overflow). | |
*/ | |
function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { | |
unchecked { | |
uint256 c = a - b; | |
success = c <= a; | |
result = c * SafeCast.toUint(success); | |
} | |
} | |
/** | |
* @dev Returns the multiplication of two unsigned integers, with a success flag (no overflow). | |
*/ | |
function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { | |
unchecked { | |
uint256 c = a * b; | |
assembly ("memory-safe") { | |
// Only true when the multiplication doesn't overflow | |
// (c / a == b) || (a == 0) | |
success := or(eq(div(c, a), b), iszero(a)) | |
} | |
// equivalent to: success ? c : 0 | |
result = c * SafeCast.toUint(success); | |
} | |
} | |
/** | |
* @dev Returns the division of two unsigned integers, with a success flag (no division by zero). | |
*/ | |
function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { | |
unchecked { | |
success = b > 0; | |
assembly ("memory-safe") { | |
// The `DIV` opcode returns zero when the denominator is 0. | |
result := div(a, b) | |
} | |
} | |
} | |
/** | |
* @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero). | |
*/ | |
function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { | |
unchecked { | |
success = b > 0; | |
assembly ("memory-safe") { | |
// The `MOD` opcode returns zero when the denominator is 0. | |
result := mod(a, b) | |
} | |
} | |
} | |
/** | |
* @dev Unsigned saturating addition, bounds to `2²⁵⁶ - 1` instead of overflowing. | |
*/ | |
function saturatingAdd(uint256 a, uint256 b) internal pure returns (uint256) { | |
(bool success, uint256 result) = tryAdd(a, b); | |
return ternary(success, result, type(uint256).max); | |
} | |
/** | |
* @dev Unsigned saturating subtraction, bounds to zero instead of overflowing. | |
*/ | |
function saturatingSub(uint256 a, uint256 b) internal pure returns (uint256) { | |
(, uint256 result) = trySub(a, b); | |
return result; | |
} | |
/** | |
* @dev Unsigned saturating multiplication, bounds to `2²⁵⁶ - 1` instead of overflowing. | |
*/ | |
function saturatingMul(uint256 a, uint256 b) internal pure returns (uint256) { | |
(bool success, uint256 result) = tryMul(a, b); | |
return ternary(success, result, type(uint256).max); | |
} | |
/** | |
* @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant. | |
* | |
* IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone. | |
* However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute | |
* one branch when needed, making this function more expensive. | |
*/ | |
function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) { | |
unchecked { | |
// branchless ternary works because: | |
// b ^ (a ^ b) == a | |
// b ^ 0 == b | |
return b ^ ((a ^ b) * SafeCast.toUint(condition)); | |
} | |
} | |
/** | |
* @dev Returns the largest of two numbers. | |
*/ | |
function max(uint256 a, uint256 b) internal pure returns (uint256) { | |
return ternary(a > b, a, b); | |
} | |
/** | |
* @dev Returns the smallest of two numbers. | |
*/ | |
function min(uint256 a, uint256 b) internal pure returns (uint256) { | |
return ternary(a < b, a, b); | |
} | |
/** | |
* @dev Returns the average of two numbers. The result is rounded towards | |
* zero. | |
*/ | |
function average(uint256 a, uint256 b) internal pure returns (uint256) { | |
// (a + b) / 2 can overflow. | |
return (a & b) + (a ^ b) / 2; | |
} | |
/** | |
* @dev Returns the ceiling of the division of two numbers. | |
* | |
* This differs from standard division with `/` in that it rounds towards infinity instead | |
* of rounding towards zero. | |
*/ | |
function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { | |
if (b == 0) { | |
// Guarantee the same behavior as in a regular Solidity division. | |
Panic.panic(Panic.DIVISION_BY_ZERO); | |
} | |
// The following calculation ensures accurate ceiling division without overflow. | |
// Since a is non-zero, (a - 1) / b will not overflow. | |
// The largest possible result occurs when (a - 1) / b is type(uint256).max, | |
// but the largest value we can obtain is type(uint256).max - 1, which happens | |
// when a = type(uint256).max and b = 1. | |
unchecked { | |
return SafeCast.toUint(a > 0) * ((a - 1) / b + 1); | |
} | |
} | |
/** | |
* @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or | |
* denominator == 0. | |
* | |
* Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by | |
* Uniswap Labs also under MIT license. | |
*/ | |
function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { | |
unchecked { | |
(uint256 high, uint256 low) = mul512(x, y); | |
// Handle non-overflow cases, 256 by 256 division. | |
if (high == 0) { | |
// Solidity will revert if denominator == 0, unlike the div opcode on its own. | |
// The surrounding unchecked block does not change this fact. | |
// See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. | |
return low / denominator; | |
} | |
// Make sure the result is less than 2²⁵⁶. Also prevents denominator == 0. | |
if (denominator <= high) { | |
Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_OVERFLOW)); | |
} | |
/////////////////////////////////////////////// | |
// 512 by 256 division. | |
/////////////////////////////////////////////// | |
// Make division exact by subtracting the remainder from [high low]. | |
uint256 remainder; | |
assembly ("memory-safe") { | |
// Compute remainder using mulmod. | |
remainder := mulmod(x, y, denominator) | |
// Subtract 256 bit number from 512 bit number. | |
high := sub(high, gt(remainder, low)) | |
low := sub(low, remainder) | |
} | |
// Factor powers of two out of denominator and compute largest power of two divisor of denominator. | |
// Always >= 1. See https://cs.stackexchange.com/q/138556/92363. | |
uint256 twos = denominator & (0 - denominator); | |
assembly ("memory-safe") { | |
// Divide denominator by twos. | |
denominator := div(denominator, twos) | |
// Divide [high low] by twos. | |
low := div(low, twos) | |
// Flip twos such that it is 2²⁵⁶ / twos. If twos is zero, then it becomes one. | |
twos := add(div(sub(0, twos), twos), 1) | |
} | |
// Shift in bits from high into low. | |
low |= high * twos; | |
// Invert denominator mod 2²⁵⁶. Now that denominator is an odd number, it has an inverse modulo 2²⁵⁶ such | |
// that denominator * inv ≡ 1 mod 2²⁵⁶. Compute the inverse by starting with a seed that is correct for | |
// four bits. That is, denominator * inv ≡ 1 mod 2⁴. | |
uint256 inverse = (3 * denominator) ^ 2; | |
// Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also | |
// works in modular arithmetic, doubling the correct bits in each step. | |
inverse *= 2 - denominator * inverse; // inverse mod 2⁸ | |
inverse *= 2 - denominator * inverse; // inverse mod 2¹⁶ | |
inverse *= 2 - denominator * inverse; // inverse mod 2³² | |
inverse *= 2 - denominator * inverse; // inverse mod 2⁶⁴ | |
inverse *= 2 - denominator * inverse; // inverse mod 2¹²⁸ | |
inverse *= 2 - denominator * inverse; // inverse mod 2²⁵⁶ | |
// Because the division is now exact we can divide by multiplying with the modular inverse of denominator. | |
// This will give us the correct result modulo 2²⁵⁶. Since the preconditions guarantee that the outcome is | |
// less than 2²⁵⁶, this is the final result. We don't need to compute the high bits of the result and high | |
// is no longer required. | |
result = low * inverse; | |
return result; | |
} | |
} | |
/** | |
* @dev Calculates x * y / denominator with full precision, following the selected rounding direction. | |
*/ | |
function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { | |
return mulDiv(x, y, denominator) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0); | |
} | |
/** | |
* @dev Calculates floor(x * y >> n) with full precision. Throws if result overflows a uint256. | |
*/ | |
function mulShr(uint256 x, uint256 y, uint8 n) internal pure returns (uint256 result) { | |
unchecked { | |
(uint256 high, uint256 low) = mul512(x, y); | |
if (high >= 1 << n) { | |
Panic.panic(Panic.UNDER_OVERFLOW); | |
} | |
return (high << (256 - n)) | (low >> n); | |
} | |
} | |
/** | |
* @dev Calculates x * y >> n with full precision, following the selected rounding direction. | |
*/ | |
function mulShr(uint256 x, uint256 y, uint8 n, Rounding rounding) internal pure returns (uint256) { | |
return mulShr(x, y, n) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, 1 << n) > 0); | |
} | |
/** | |
* @dev Calculate the modular multiplicative inverse of a number in Z/nZ. | |
* | |
* If n is a prime, then Z/nZ is a field. In that case all elements are inversible, except 0. | |
* If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible. | |
* | |
* If the input value is not inversible, 0 is returned. | |
* | |
* NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Fermat's little theorem and get the | |
* inverse using `Math.modExp(a, n - 2, n)`. See {invModPrime}. | |
*/ | |
function invMod(uint256 a, uint256 n) internal pure returns (uint256) { | |
unchecked { | |
if (n == 0) return 0; | |
// The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version) | |
// Used to compute integers x and y such that: ax + ny = gcd(a, n). | |
// When the gcd is 1, then the inverse of a modulo n exists and it's x. | |
// ax + ny = 1 | |
// ax = 1 + (-y)n | |
// ax ≡ 1 (mod n) # x is the inverse of a modulo n | |
// If the remainder is 0 the gcd is n right away. | |
uint256 remainder = a % n; | |
uint256 gcd = n; | |
// Therefore the initial coefficients are: | |
// ax + ny = gcd(a, n) = n | |
// 0a + 1n = n | |
int256 x = 0; | |
int256 y = 1; | |
while (remainder != 0) { | |
uint256 quotient = gcd / remainder; | |
(gcd, remainder) = ( | |
// The old remainder is the next gcd to try. | |
remainder, | |
// Compute the next remainder. | |
// Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd | |
// where gcd is at most n (capped to type(uint256).max) | |
gcd - remainder * quotient | |
); | |
(x, y) = ( | |
// Increment the coefficient of a. | |
y, | |
// Decrement the coefficient of n. | |
// Can overflow, but the result is casted to uint256 so that the | |
// next value of y is "wrapped around" to a value between 0 and n - 1. | |
x - y * int256(quotient) | |
); | |
} | |
if (gcd != 1) return 0; // No inverse exists. | |
return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative. | |
} | |
} | |
/** | |
* @dev Variant of {invMod}. More efficient, but only works if `p` is known to be a prime greater than `2`. | |
* | |
* From https://en.wikipedia.org/wiki/Fermat%27s_little_theorem[Fermat's little theorem], we know that if p is | |
* prime, then `a**(p-1) ≡ 1 mod p`. As a consequence, we have `a * a**(p-2) ≡ 1 mod p`, which means that | |
* `a**(p-2)` is the modular multiplicative inverse of a in Fp. | |
* | |
* NOTE: this function does NOT check that `p` is a prime greater than `2`. | |
*/ | |
function invModPrime(uint256 a, uint256 p) internal view returns (uint256) { | |
unchecked { | |
return Math.modExp(a, p - 2, p); | |
} | |
} | |
/** | |
* @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m) | |
* | |
* Requirements: | |
* - modulus can't be zero | |
* - underlying staticcall to precompile must succeed | |
* | |
* IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make | |
* sure the chain you're using it on supports the precompiled contract for modular exponentiation | |
* at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, | |
* the underlying function will succeed given the lack of a revert, but the result may be incorrectly | |
* interpreted as 0. | |
*/ | |
function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) { | |
(bool success, uint256 result) = tryModExp(b, e, m); | |
if (!success) { | |
Panic.panic(Panic.DIVISION_BY_ZERO); | |
} | |
return result; | |
} | |
/** | |
* @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m). | |
* It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying | |
* to operate modulo 0 or if the underlying precompile reverted. | |
* | |
* IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain | |
* you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in | |
* https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack | |
* of a revert, but the result may be incorrectly interpreted as 0. | |
*/ | |
function tryModExp(uint256 b, uint256 e, uint256 m) internal view returns (bool success, uint256 result) { | |
if (m == 0) return (false, 0); | |
assembly ("memory-safe") { | |
let ptr := mload(0x40) | |
// | Offset | Content | Content (Hex) | | |
// |-----------|------------|--------------------------------------------------------------------| | |
// | 0x00:0x1f | size of b | 0x0000000000000000000000000000000000000000000000000000000000000020 | | |
// | 0x20:0x3f | size of e | 0x0000000000000000000000000000000000000000000000000000000000000020 | | |
// | 0x40:0x5f | size of m | 0x0000000000000000000000000000000000000000000000000000000000000020 | | |
// | 0x60:0x7f | value of b | 0x<.............................................................b> | | |
// | 0x80:0x9f | value of e | 0x<.............................................................e> | | |
// | 0xa0:0xbf | value of m | 0x<.............................................................m> | | |
mstore(ptr, 0x20) | |
mstore(add(ptr, 0x20), 0x20) | |
mstore(add(ptr, 0x40), 0x20) | |
mstore(add(ptr, 0x60), b) | |
mstore(add(ptr, 0x80), e) | |
mstore(add(ptr, 0xa0), m) | |
// Given the result < m, it's guaranteed to fit in 32 bytes, | |
// so we can use the memory scratch space located at offset 0. | |
success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20) | |
result := mload(0x00) | |
} | |
} | |
/** | |
* @dev Variant of {modExp} that supports inputs of arbitrary length. | |
*/ | |
function modExp(bytes memory b, bytes memory e, bytes memory m) internal view returns (bytes memory) { | |
(bool success, bytes memory result) = tryModExp(b, e, m); | |
if (!success) { | |
Panic.panic(Panic.DIVISION_BY_ZERO); | |
} | |
return result; | |
} | |
/** | |
* @dev Variant of {tryModExp} that supports inputs of arbitrary length. | |
*/ | |
function tryModExp( | |
bytes memory b, | |
bytes memory e, | |
bytes memory m | |
) internal view returns (bool success, bytes memory result) { | |
if (_zeroBytes(m)) return (false, new bytes(0)); | |
uint256 mLen = m.length; | |
// Encode call args in result and move the free memory pointer | |
result = abi.encodePacked(b.length, e.length, mLen, b, e, m); | |
assembly ("memory-safe") { | |
let dataPtr := add(result, 0x20) | |
// Write result on top of args to avoid allocating extra memory. | |
success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen) | |
// Overwrite the length. | |
// result.length > returndatasize() is guaranteed because returndatasize() == m.length | |
mstore(result, mLen) | |
// Set the memory pointer after the returned data. | |
mstore(0x40, add(dataPtr, mLen)) | |
} | |
} | |
/** | |
* @dev Returns whether the provided byte array is zero. | |
*/ | |
function _zeroBytes(bytes memory byteArray) private pure returns (bool) { | |
for (uint256 i = 0; i < byteArray.length; ++i) { | |
if (byteArray[i] != 0) { | |
return false; | |
} | |
} | |
return true; | |
} | |
/** | |
* @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded | |
* towards zero. | |
* | |
* This method is based on Newton's method for computing square roots; the algorithm is restricted to only | |
* using integer operations. | |
*/ | |
function sqrt(uint256 a) internal pure returns (uint256) { | |
unchecked { | |
// Take care of easy edge cases when a == 0 or a == 1 | |
if (a <= 1) { | |
return a; | |
} | |
// In this function, we use Newton's method to get a root of `f(x) := x² - a`. It involves building a | |
// sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between | |
// the current value as `ε_n = | x_n - sqrt(a) |`. | |
// | |
// For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root | |
// of the target. (i.e. `2**(e-1) ≤ sqrt(a) < 2**e`). We know that `e ≤ 128` because `(2¹²⁸)² = 2²⁵⁶` is | |
// bigger than any uint256. | |
// | |
// By noticing that | |
// `2**(e-1) ≤ sqrt(a) < 2**e → (2**(e-1))² ≤ a < (2**e)² → 2**(2*e-2) ≤ a < 2**(2*e)` | |
// we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar | |
// to the msb function. | |
uint256 aa = a; | |
uint256 xn = 1; | |
if (aa >= (1 << 128)) { | |
aa >>= 128; | |
xn <<= 64; | |
} | |
if (aa >= (1 << 64)) { | |
aa >>= 64; | |
xn <<= 32; | |
} | |
if (aa >= (1 << 32)) { | |
aa >>= 32; | |
xn <<= 16; | |
} | |
if (aa >= (1 << 16)) { | |
aa >>= 16; | |
xn <<= 8; | |
} | |
if (aa >= (1 << 8)) { | |
aa >>= 8; | |
xn <<= 4; | |
} | |
if (aa >= (1 << 4)) { | |
aa >>= 4; | |
xn <<= 2; | |
} | |
if (aa >= (1 << 2)) { | |
xn <<= 1; | |
} | |
// We now have x_n such that `x_n = 2**(e-1) ≤ sqrt(a) < 2**e = 2 * x_n`. This implies ε_n ≤ 2**(e-1). | |
// | |
// We can refine our estimation by noticing that the middle of that interval minimizes the error. | |
// If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to ε_n ≤ 2**(e-2). | |
// This is going to be our x_0 (and ε_0) | |
xn = (3 * xn) >> 1; // ε_0 := | x_0 - sqrt(a) | ≤ 2**(e-2) | |
// From here, Newton's method give us: | |
// x_{n+1} = (x_n + a / x_n) / 2 | |
// | |
// One should note that: | |
// x_{n+1}² - a = ((x_n + a / x_n) / 2)² - a | |
// = ((x_n² + a) / (2 * x_n))² - a | |
// = (x_n⁴ + 2 * a * x_n² + a²) / (4 * x_n²) - a | |
// = (x_n⁴ + 2 * a * x_n² + a² - 4 * a * x_n²) / (4 * x_n²) | |
// = (x_n⁴ - 2 * a * x_n² + a²) / (4 * x_n²) | |
// = (x_n² - a)² / (2 * x_n)² | |
// = ((x_n² - a) / (2 * x_n))² | |
// ≥ 0 | |
// Which proves that for all n ≥ 1, sqrt(a) ≤ x_n | |
// | |
// This gives us the proof of quadratic convergence of the sequence: | |
// ε_{n+1} = | x_{n+1} - sqrt(a) | | |
// = | (x_n + a / x_n) / 2 - sqrt(a) | | |
// = | (x_n² + a - 2*x_n*sqrt(a)) / (2 * x_n) | | |
// = | (x_n - sqrt(a))² / (2 * x_n) | | |
// = | ε_n² / (2 * x_n) | | |
// = ε_n² / | (2 * x_n) | | |
// | |
// For the first iteration, we have a special case where x_0 is known: | |
// ε_1 = ε_0² / | (2 * x_0) | | |
// ≤ (2**(e-2))² / (2 * (2**(e-1) + 2**(e-2))) | |
// ≤ 2**(2*e-4) / (3 * 2**(e-1)) | |
// ≤ 2**(e-3) / 3 | |
// ≤ 2**(e-3-log2(3)) | |
// ≤ 2**(e-4.5) | |
// | |
// For the following iterations, we use the fact that, 2**(e-1) ≤ sqrt(a) ≤ x_n: | |
// ε_{n+1} = ε_n² / | (2 * x_n) | | |
// ≤ (2**(e-k))² / (2 * 2**(e-1)) | |
// ≤ 2**(2*e-2*k) / 2**e | |
// ≤ 2**(e-2*k) | |
xn = (xn + a / xn) >> 1; // ε_1 := | x_1 - sqrt(a) | ≤ 2**(e-4.5) -- special case, see above | |
xn = (xn + a / xn) >> 1; // ε_2 := | x_2 - sqrt(a) | ≤ 2**(e-9) -- general case with k = 4.5 | |
xn = (xn + a / xn) >> 1; // ε_3 := | x_3 - sqrt(a) | ≤ 2**(e-18) -- general case with k = 9 | |
xn = (xn + a / xn) >> 1; // ε_4 := | x_4 - sqrt(a) | ≤ 2**(e-36) -- general case with k = 18 | |
xn = (xn + a / xn) >> 1; // ε_5 := | x_5 - sqrt(a) | ≤ 2**(e-72) -- general case with k = 36 | |
xn = (xn + a / xn) >> 1; // ε_6 := | x_6 - sqrt(a) | ≤ 2**(e-144) -- general case with k = 72 | |
// Because e ≤ 128 (as discussed during the first estimation phase), we know have reached a precision | |
// ε_6 ≤ 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either | |
// sqrt(a) or sqrt(a) + 1. | |
return xn - SafeCast.toUint(xn > a / xn); | |
} | |
} | |
/** | |
* @dev Calculates sqrt(a), following the selected rounding direction. | |
*/ | |
function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { | |
unchecked { | |
uint256 result = sqrt(a); | |
return result + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a); | |
} | |
} | |
/** | |
* @dev Return the log in base 2 of a positive value rounded towards zero. | |
* Returns 0 if given 0. | |
*/ | |
function log2(uint256 x) internal pure returns (uint256 r) { | |
// If value has upper 128 bits set, log2 result is at least 128 | |
r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7; | |
// If upper 64 bits of 128-bit half set, add 64 to result | |
r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6; | |
// If upper 32 bits of 64-bit half set, add 32 to result | |
r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5; | |
// If upper 16 bits of 32-bit half set, add 16 to result | |
r |= SafeCast.toUint((x >> r) > 0xffff) << 4; | |
// If upper 8 bits of 16-bit half set, add 8 to result | |
r |= SafeCast.toUint((x >> r) > 0xff) << 3; | |
// If upper 4 bits of 8-bit half set, add 4 to result | |
r |= SafeCast.toUint((x >> r) > 0xf) << 2; | |
// Shifts value right by the current result and use it as an index into this lookup table: | |
// | |
// | x (4 bits) | index | table[index] = MSB position | | |
// |------------|---------|-----------------------------| | |
// | 0000 | 0 | table[0] = 0 | | |
// | 0001 | 1 | table[1] = 0 | | |
// | 0010 | 2 | table[2] = 1 | | |
// | 0011 | 3 | table[3] = 1 | | |
// | 0100 | 4 | table[4] = 2 | | |
// | 0101 | 5 | table[5] = 2 | | |
// | 0110 | 6 | table[6] = 2 | | |
// | 0111 | 7 | table[7] = 2 | | |
// | 1000 | 8 | table[8] = 3 | | |
// | 1001 | 9 | table[9] = 3 | | |
// | 1010 | 10 | table[10] = 3 | | |
// | 1011 | 11 | table[11] = 3 | | |
// | 1100 | 12 | table[12] = 3 | | |
// | 1101 | 13 | table[13] = 3 | | |
// | 1110 | 14 | table[14] = 3 | | |
// | 1111 | 15 | table[15] = 3 | | |
// | |
// The lookup table is represented as a 32-byte value with the MSB positions for 0-15 in the last 16 bytes. | |
assembly ("memory-safe") { | |
r := or(r, byte(shr(r, x), 0x0000010102020202030303030303030300000000000000000000000000000000)) | |
} | |
} | |
/** | |
* @dev Return the log in base 2, following the selected rounding direction, of a positive value. | |
* Returns 0 if given 0. | |
*/ | |
function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { | |
unchecked { | |
uint256 result = log2(value); | |
return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value); | |
} | |
} | |
/** | |
* @dev Return the log in base 10 of a positive value rounded towards zero. | |
* Returns 0 if given 0. | |
*/ | |
function log10(uint256 value) internal pure returns (uint256) { | |
uint256 result = 0; | |
unchecked { | |
if (value >= 10 ** 64) { | |
value /= 10 ** 64; | |
result += 64; | |
} | |
if (value >= 10 ** 32) { | |
value /= 10 ** 32; | |
result += 32; | |
} | |
if (value >= 10 ** 16) { | |
value /= 10 ** 16; | |
result += 16; | |
} | |
if (value >= 10 ** 8) { | |
value /= 10 ** 8; | |
result += 8; | |
} | |
if (value >= 10 ** 4) { | |
value /= 10 ** 4; | |
result += 4; | |
} | |
if (value >= 10 ** 2) { | |
value /= 10 ** 2; | |
result += 2; | |
} | |
if (value >= 10 ** 1) { | |
result += 1; | |
} | |
} | |
return result; | |
} | |
/** | |
* @dev Return the log in base 10, following the selected rounding direction, of a positive value. | |
* Returns 0 if given 0. | |
*/ | |
function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { | |
unchecked { | |
uint256 result = log10(value); | |
return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 10 ** result < value); | |
} | |
} | |
/** | |
* @dev Return the log in base 256 of a positive value rounded towards zero. | |
* Returns 0 if given 0. | |
* | |
* Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. | |
*/ | |
function log256(uint256 x) internal pure returns (uint256 r) { | |
// If value has upper 128 bits set, log2 result is at least 128 | |
r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7; | |
// If upper 64 bits of 128-bit half set, add 64 to result | |
r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6; | |
// If upper 32 bits of 64-bit half set, add 32 to result | |
r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5; | |
// If upper 16 bits of 32-bit half set, add 16 to result | |
r |= SafeCast.toUint((x >> r) > 0xffff) << 4; | |
// Add 1 if upper 8 bits of 16-bit half set, and divide accumulated result by 8 | |
return (r >> 3) | SafeCast.toUint((x >> r) > 0xff); | |
} | |
/** | |
* @dev Return the log in base 256, following the selected rounding direction, of a positive value. | |
* Returns 0 if given 0. | |
*/ | |
function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { | |
unchecked { | |
uint256 result = log256(value); | |
return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << (result << 3) < value); | |
} | |
} | |
/** | |
* @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers. | |
*/ | |
function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) { | |
return uint8(rounding) % 2 == 1; | |
} | |
} |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SafeCast.sol) | |
// This file was procedurally generated from scripts/generate/templates/SafeCast.js. | |
pragma solidity ^0.8.20; | |
/** | |
* @dev Wrappers over Solidity's uintXX/intXX/bool casting operators with added overflow | |
* checks. | |
* | |
* Downcasting from uint256/int256 in Solidity does not revert on overflow. This can | |
* easily result in undesired exploitation or bugs, since developers usually | |
* assume that overflows raise errors. `SafeCast` restores this intuition by | |
* reverting the transaction when such an operation overflows. | |
* | |
* Using this library instead of the unchecked operations eliminates an entire | |
* class of bugs, so it's recommended to use it always. | |
*/ | |
library SafeCast { | |
/** | |
* @dev Value doesn't fit in an uint of `bits` size. | |
*/ | |
error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value); | |
/** | |
* @dev An int value doesn't fit in an uint of `bits` size. | |
*/ | |
error SafeCastOverflowedIntToUint(int256 value); | |
/** | |
* @dev Value doesn't fit in an int of `bits` size. | |
*/ | |
error SafeCastOverflowedIntDowncast(uint8 bits, int256 value); | |
/** | |
* @dev An uint value doesn't fit in an int of `bits` size. | |
*/ | |
error SafeCastOverflowedUintToInt(uint256 value); | |
/** | |
* @dev Returns the downcasted uint248 from uint256, reverting on | |
* overflow (when the input is greater than largest uint248). | |
* | |
* Counterpart to Solidity's `uint248` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 248 bits | |
*/ | |
function toUint248(uint256 value) internal pure returns (uint248) { | |
if (value > type(uint248).max) { | |
revert SafeCastOverflowedUintDowncast(248, value); | |
} | |
return uint248(value); | |
} | |
/** | |
* @dev Returns the downcasted uint240 from uint256, reverting on | |
* overflow (when the input is greater than largest uint240). | |
* | |
* Counterpart to Solidity's `uint240` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 240 bits | |
*/ | |
function toUint240(uint256 value) internal pure returns (uint240) { | |
if (value > type(uint240).max) { | |
revert SafeCastOverflowedUintDowncast(240, value); | |
} | |
return uint240(value); | |
} | |
/** | |
* @dev Returns the downcasted uint232 from uint256, reverting on | |
* overflow (when the input is greater than largest uint232). | |
* | |
* Counterpart to Solidity's `uint232` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 232 bits | |
*/ | |
function toUint232(uint256 value) internal pure returns (uint232) { | |
if (value > type(uint232).max) { | |
revert SafeCastOverflowedUintDowncast(232, value); | |
} | |
return uint232(value); | |
} | |
/** | |
* @dev Returns the downcasted uint224 from uint256, reverting on | |
* overflow (when the input is greater than largest uint224). | |
* | |
* Counterpart to Solidity's `uint224` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 224 bits | |
*/ | |
function toUint224(uint256 value) internal pure returns (uint224) { | |
if (value > type(uint224).max) { | |
revert SafeCastOverflowedUintDowncast(224, value); | |
} | |
return uint224(value); | |
} | |
/** | |
* @dev Returns the downcasted uint216 from uint256, reverting on | |
* overflow (when the input is greater than largest uint216). | |
* | |
* Counterpart to Solidity's `uint216` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 216 bits | |
*/ | |
function toUint216(uint256 value) internal pure returns (uint216) { | |
if (value > type(uint216).max) { | |
revert SafeCastOverflowedUintDowncast(216, value); | |
} | |
return uint216(value); | |
} | |
/** | |
* @dev Returns the downcasted uint208 from uint256, reverting on | |
* overflow (when the input is greater than largest uint208). | |
* | |
* Counterpart to Solidity's `uint208` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 208 bits | |
*/ | |
function toUint208(uint256 value) internal pure returns (uint208) { | |
if (value > type(uint208).max) { | |
revert SafeCastOverflowedUintDowncast(208, value); | |
} | |
return uint208(value); | |
} | |
/** | |
* @dev Returns the downcasted uint200 from uint256, reverting on | |
* overflow (when the input is greater than largest uint200). | |
* | |
* Counterpart to Solidity's `uint200` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 200 bits | |
*/ | |
function toUint200(uint256 value) internal pure returns (uint200) { | |
if (value > type(uint200).max) { | |
revert SafeCastOverflowedUintDowncast(200, value); | |
} | |
return uint200(value); | |
} | |
/** | |
* @dev Returns the downcasted uint192 from uint256, reverting on | |
* overflow (when the input is greater than largest uint192). | |
* | |
* Counterpart to Solidity's `uint192` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 192 bits | |
*/ | |
function toUint192(uint256 value) internal pure returns (uint192) { | |
if (value > type(uint192).max) { | |
revert SafeCastOverflowedUintDowncast(192, value); | |
} | |
return uint192(value); | |
} | |
/** | |
* @dev Returns the downcasted uint184 from uint256, reverting on | |
* overflow (when the input is greater than largest uint184). | |
* | |
* Counterpart to Solidity's `uint184` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 184 bits | |
*/ | |
function toUint184(uint256 value) internal pure returns (uint184) { | |
if (value > type(uint184).max) { | |
revert SafeCastOverflowedUintDowncast(184, value); | |
} | |
return uint184(value); | |
} | |
/** | |
* @dev Returns the downcasted uint176 from uint256, reverting on | |
* overflow (when the input is greater than largest uint176). | |
* | |
* Counterpart to Solidity's `uint176` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 176 bits | |
*/ | |
function toUint176(uint256 value) internal pure returns (uint176) { | |
if (value > type(uint176).max) { | |
revert SafeCastOverflowedUintDowncast(176, value); | |
} | |
return uint176(value); | |
} | |
/** | |
* @dev Returns the downcasted uint168 from uint256, reverting on | |
* overflow (when the input is greater than largest uint168). | |
* | |
* Counterpart to Solidity's `uint168` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 168 bits | |
*/ | |
function toUint168(uint256 value) internal pure returns (uint168) { | |
if (value > type(uint168).max) { | |
revert SafeCastOverflowedUintDowncast(168, value); | |
} | |
return uint168(value); | |
} | |
/** | |
* @dev Returns the downcasted uint160 from uint256, reverting on | |
* overflow (when the input is greater than largest uint160). | |
* | |
* Counterpart to Solidity's `uint160` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 160 bits | |
*/ | |
function toUint160(uint256 value) internal pure returns (uint160) { | |
if (value > type(uint160).max) { | |
revert SafeCastOverflowedUintDowncast(160, value); | |
} | |
return uint160(value); | |
} | |
/** | |
* @dev Returns the downcasted uint152 from uint256, reverting on | |
* overflow (when the input is greater than largest uint152). | |
* | |
* Counterpart to Solidity's `uint152` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 152 bits | |
*/ | |
function toUint152(uint256 value) internal pure returns (uint152) { | |
if (value > type(uint152).max) { | |
revert SafeCastOverflowedUintDowncast(152, value); | |
} | |
return uint152(value); | |
} | |
/** | |
* @dev Returns the downcasted uint144 from uint256, reverting on | |
* overflow (when the input is greater than largest uint144). | |
* | |
* Counterpart to Solidity's `uint144` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 144 bits | |
*/ | |
function toUint144(uint256 value) internal pure returns (uint144) { | |
if (value > type(uint144).max) { | |
revert SafeCastOverflowedUintDowncast(144, value); | |
} | |
return uint144(value); | |
} | |
/** | |
* @dev Returns the downcasted uint136 from uint256, reverting on | |
* overflow (when the input is greater than largest uint136). | |
* | |
* Counterpart to Solidity's `uint136` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 136 bits | |
*/ | |
function toUint136(uint256 value) internal pure returns (uint136) { | |
if (value > type(uint136).max) { | |
revert SafeCastOverflowedUintDowncast(136, value); | |
} | |
return uint136(value); | |
} | |
/** | |
* @dev Returns the downcasted uint128 from uint256, reverting on | |
* overflow (when the input is greater than largest uint128). | |
* | |
* Counterpart to Solidity's `uint128` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 128 bits | |
*/ | |
function toUint128(uint256 value) internal pure returns (uint128) { | |
if (value > type(uint128).max) { | |
revert SafeCastOverflowedUintDowncast(128, value); | |
} | |
return uint128(value); | |
} | |
/** | |
* @dev Returns the downcasted uint120 from uint256, reverting on | |
* overflow (when the input is greater than largest uint120). | |
* | |
* Counterpart to Solidity's `uint120` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 120 bits | |
*/ | |
function toUint120(uint256 value) internal pure returns (uint120) { | |
if (value > type(uint120).max) { | |
revert SafeCastOverflowedUintDowncast(120, value); | |
} | |
return uint120(value); | |
} | |
/** | |
* @dev Returns the downcasted uint112 from uint256, reverting on | |
* overflow (when the input is greater than largest uint112). | |
* | |
* Counterpart to Solidity's `uint112` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 112 bits | |
*/ | |
function toUint112(uint256 value) internal pure returns (uint112) { | |
if (value > type(uint112).max) { | |
revert SafeCastOverflowedUintDowncast(112, value); | |
} | |
return uint112(value); | |
} | |
/** | |
* @dev Returns the downcasted uint104 from uint256, reverting on | |
* overflow (when the input is greater than largest uint104). | |
* | |
* Counterpart to Solidity's `uint104` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 104 bits | |
*/ | |
function toUint104(uint256 value) internal pure returns (uint104) { | |
if (value > type(uint104).max) { | |
revert SafeCastOverflowedUintDowncast(104, value); | |
} | |
return uint104(value); | |
} | |
/** | |
* @dev Returns the downcasted uint96 from uint256, reverting on | |
* overflow (when the input is greater than largest uint96). | |
* | |
* Counterpart to Solidity's `uint96` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 96 bits | |
*/ | |
function toUint96(uint256 value) internal pure returns (uint96) { | |
if (value > type(uint96).max) { | |
revert SafeCastOverflowedUintDowncast(96, value); | |
} | |
return uint96(value); | |
} | |
/** | |
* @dev Returns the downcasted uint88 from uint256, reverting on | |
* overflow (when the input is greater than largest uint88). | |
* | |
* Counterpart to Solidity's `uint88` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 88 bits | |
*/ | |
function toUint88(uint256 value) internal pure returns (uint88) { | |
if (value > type(uint88).max) { | |
revert SafeCastOverflowedUintDowncast(88, value); | |
} | |
return uint88(value); | |
} | |
/** | |
* @dev Returns the downcasted uint80 from uint256, reverting on | |
* overflow (when the input is greater than largest uint80). | |
* | |
* Counterpart to Solidity's `uint80` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 80 bits | |
*/ | |
function toUint80(uint256 value) internal pure returns (uint80) { | |
if (value > type(uint80).max) { | |
revert SafeCastOverflowedUintDowncast(80, value); | |
} | |
return uint80(value); | |
} | |
/** | |
* @dev Returns the downcasted uint72 from uint256, reverting on | |
* overflow (when the input is greater than largest uint72). | |
* | |
* Counterpart to Solidity's `uint72` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 72 bits | |
*/ | |
function toUint72(uint256 value) internal pure returns (uint72) { | |
if (value > type(uint72).max) { | |
revert SafeCastOverflowedUintDowncast(72, value); | |
} | |
return uint72(value); | |
} | |
/** | |
* @dev Returns the downcasted uint64 from uint256, reverting on | |
* overflow (when the input is greater than largest uint64). | |
* | |
* Counterpart to Solidity's `uint64` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 64 bits | |
*/ | |
function toUint64(uint256 value) internal pure returns (uint64) { | |
if (value > type(uint64).max) { | |
revert SafeCastOverflowedUintDowncast(64, value); | |
} | |
return uint64(value); | |
} | |
/** | |
* @dev Returns the downcasted uint56 from uint256, reverting on | |
* overflow (when the input is greater than largest uint56). | |
* | |
* Counterpart to Solidity's `uint56` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 56 bits | |
*/ | |
function toUint56(uint256 value) internal pure returns (uint56) { | |
if (value > type(uint56).max) { | |
revert SafeCastOverflowedUintDowncast(56, value); | |
} | |
return uint56(value); | |
} | |
/** | |
* @dev Returns the downcasted uint48 from uint256, reverting on | |
* overflow (when the input is greater than largest uint48). | |
* | |
* Counterpart to Solidity's `uint48` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 48 bits | |
*/ | |
function toUint48(uint256 value) internal pure returns (uint48) { | |
if (value > type(uint48).max) { | |
revert SafeCastOverflowedUintDowncast(48, value); | |
} | |
return uint48(value); | |
} | |
/** | |
* @dev Returns the downcasted uint40 from uint256, reverting on | |
* overflow (when the input is greater than largest uint40). | |
* | |
* Counterpart to Solidity's `uint40` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 40 bits | |
*/ | |
function toUint40(uint256 value) internal pure returns (uint40) { | |
if (value > type(uint40).max) { | |
revert SafeCastOverflowedUintDowncast(40, value); | |
} | |
return uint40(value); | |
} | |
/** | |
* @dev Returns the downcasted uint32 from uint256, reverting on | |
* overflow (when the input is greater than largest uint32). | |
* | |
* Counterpart to Solidity's `uint32` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 32 bits | |
*/ | |
function toUint32(uint256 value) internal pure returns (uint32) { | |
if (value > type(uint32).max) { | |
revert SafeCastOverflowedUintDowncast(32, value); | |
} | |
return uint32(value); | |
} | |
/** | |
* @dev Returns the downcasted uint24 from uint256, reverting on | |
* overflow (when the input is greater than largest uint24). | |
* | |
* Counterpart to Solidity's `uint24` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 24 bits | |
*/ | |
function toUint24(uint256 value) internal pure returns (uint24) { | |
if (value > type(uint24).max) { | |
revert SafeCastOverflowedUintDowncast(24, value); | |
} | |
return uint24(value); | |
} | |
/** | |
* @dev Returns the downcasted uint16 from uint256, reverting on | |
* overflow (when the input is greater than largest uint16). | |
* | |
* Counterpart to Solidity's `uint16` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 16 bits | |
*/ | |
function toUint16(uint256 value) internal pure returns (uint16) { | |
if (value > type(uint16).max) { | |
revert SafeCastOverflowedUintDowncast(16, value); | |
} | |
return uint16(value); | |
} | |
/** | |
* @dev Returns the downcasted uint8 from uint256, reverting on | |
* overflow (when the input is greater than largest uint8). | |
* | |
* Counterpart to Solidity's `uint8` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 8 bits | |
*/ | |
function toUint8(uint256 value) internal pure returns (uint8) { | |
if (value > type(uint8).max) { | |
revert SafeCastOverflowedUintDowncast(8, value); | |
} | |
return uint8(value); | |
} | |
/** | |
* @dev Converts a signed int256 into an unsigned uint256. | |
* | |
* Requirements: | |
* | |
* - input must be greater than or equal to 0. | |
*/ | |
function toUint256(int256 value) internal pure returns (uint256) { | |
if (value < 0) { | |
revert SafeCastOverflowedIntToUint(value); | |
} | |
return uint256(value); | |
} | |
/** | |
* @dev Returns the downcasted int248 from int256, reverting on | |
* overflow (when the input is less than smallest int248 or | |
* greater than largest int248). | |
* | |
* Counterpart to Solidity's `int248` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 248 bits | |
*/ | |
function toInt248(int256 value) internal pure returns (int248 downcasted) { | |
downcasted = int248(value); | |
if (downcasted != value) { | |
revert SafeCastOverflowedIntDowncast(248, value); | |
} | |
} | |
/** | |
* @dev Returns the downcasted int240 from int256, reverting on | |
* overflow (when the input is less than smallest int240 or | |
* greater than largest int240). | |
* | |
* Counterpart to Solidity's `int240` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 240 bits | |
*/ | |
function toInt240(int256 value) internal pure returns (int240 downcasted) { | |
downcasted = int240(value); | |
if (downcasted != value) { | |
revert SafeCastOverflowedIntDowncast(240, value); | |
} | |
} | |
/** | |
* @dev Returns the downcasted int232 from int256, reverting on | |
* overflow (when the input is less than smallest int232 or | |
* greater than largest int232). | |
* | |
* Counterpart to Solidity's `int232` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 232 bits | |
*/ | |
function toInt232(int256 value) internal pure returns (int232 downcasted) { | |
downcasted = int232(value); | |
if (downcasted != value) { | |
revert SafeCastOverflowedIntDowncast(232, value); | |
} | |
} | |
/** | |
* @dev Returns the downcasted int224 from int256, reverting on | |
* overflow (when the input is less than smallest int224 or | |
* greater than largest int224). | |
* | |
* Counterpart to Solidity's `int224` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 224 bits | |
*/ | |
function toInt224(int256 value) internal pure returns (int224 downcasted) { | |
downcasted = int224(value); | |
if (downcasted != value) { | |
revert SafeCastOverflowedIntDowncast(224, value); | |
} | |
} | |
/** | |
* @dev Returns the downcasted int216 from int256, reverting on | |
* overflow (when the input is less than smallest int216 or | |
* greater than largest int216). | |
* | |
* Counterpart to Solidity's `int216` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 216 bits | |
*/ | |
function toInt216(int256 value) internal pure returns (int216 downcasted) { | |
downcasted = int216(value); | |
if (downcasted != value) { | |
revert SafeCastOverflowedIntDowncast(216, value); | |
} | |
} | |
/** | |
* @dev Returns the downcasted int208 from int256, reverting on | |
* overflow (when the input is less than smallest int208 or | |
* greater than largest int208). | |
* | |
* Counterpart to Solidity's `int208` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 208 bits | |
*/ | |
function toInt208(int256 value) internal pure returns (int208 downcasted) { | |
downcasted = int208(value); | |
if (downcasted != value) { | |
revert SafeCastOverflowedIntDowncast(208, value); | |
} | |
} | |
/** | |
* @dev Returns the downcasted int200 from int256, reverting on | |
* overflow (when the input is less than smallest int200 or | |
* greater than largest int200). | |
* | |
* Counterpart to Solidity's `int200` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 200 bits | |
*/ | |
function toInt200(int256 value) internal pure returns (int200 downcasted) { | |
downcasted = int200(value); | |
if (downcasted != value) { | |
revert SafeCastOverflowedIntDowncast(200, value); | |
} | |
} | |
/** | |
* @dev Returns the downcasted int192 from int256, reverting on | |
* overflow (when the input is less than smallest int192 or | |
* greater than largest int192). | |
* | |
* Counterpart to Solidity's `int192` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 192 bits | |
*/ | |
function toInt192(int256 value) internal pure returns (int192 downcasted) { | |
downcasted = int192(value); | |
if (downcasted != value) { | |
revert SafeCastOverflowedIntDowncast(192, value); | |
} | |
} | |
/** | |
* @dev Returns the downcasted int184 from int256, reverting on | |
* overflow (when the input is less than smallest int184 or | |
* greater than largest int184). | |
* | |
* Counterpart to Solidity's `int184` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 184 bits | |
*/ | |
function toInt184(int256 value) internal pure returns (int184 downcasted) { | |
downcasted = int184(value); | |
if (downcasted != value) { | |
revert SafeCastOverflowedIntDowncast(184, value); | |
} | |
} | |
/** | |
* @dev Returns the downcasted int176 from int256, reverting on | |
* overflow (when the input is less than smallest int176 or | |
* greater than largest int176). | |
* | |
* Counterpart to Solidity's `int176` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 176 bits | |
*/ | |
function toInt176(int256 value) internal pure returns (int176 downcasted) { | |
downcasted = int176(value); | |
if (downcasted != value) { | |
revert SafeCastOverflowedIntDowncast(176, value); | |
} | |
} | |
/** | |
* @dev Returns the downcasted int168 from int256, reverting on | |
* overflow (when the input is less than smallest int168 or | |
* greater than largest int168). | |
* | |
* Counterpart to Solidity's `int168` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 168 bits | |
*/ | |
function toInt168(int256 value) internal pure returns (int168 downcasted) { | |
downcasted = int168(value); | |
if (downcasted != value) { | |
revert SafeCastOverflowedIntDowncast(168, value); | |
} | |
} | |
/** | |
* @dev Returns the downcasted int160 from int256, reverting on | |
* overflow (when the input is less than smallest int160 or | |
* greater than largest int160). | |
* | |
* Counterpart to Solidity's `int160` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 160 bits | |
*/ | |
function toInt160(int256 value) internal pure returns (int160 downcasted) { | |
downcasted = int160(value); | |
if (downcasted != value) { | |
revert SafeCastOverflowedIntDowncast(160, value); | |
} | |
} | |
/** | |
* @dev Returns the downcasted int152 from int256, reverting on | |
* overflow (when the input is less than smallest int152 or | |
* greater than largest int152). | |
* | |
* Counterpart to Solidity's `int152` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 152 bits | |
*/ | |
function toInt152(int256 value) internal pure returns (int152 downcasted) { | |
downcasted = int152(value); | |
if (downcasted != value) { | |
revert SafeCastOverflowedIntDowncast(152, value); | |
} | |
} | |
/** | |
* @dev Returns the downcasted int144 from int256, reverting on | |
* overflow (when the input is less than smallest int144 or | |
* greater than largest int144). | |
* | |
* Counterpart to Solidity's `int144` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 144 bits | |
*/ | |
function toInt144(int256 value) internal pure returns (int144 downcasted) { | |
downcasted = int144(value); | |
if (downcasted != value) { | |
revert SafeCastOverflowedIntDowncast(144, value); | |
} | |
} | |
/** | |
* @dev Returns the downcasted int136 from int256, reverting on | |
* overflow (when the input is less than smallest int136 or | |
* greater than largest int136). | |
* | |
* Counterpart to Solidity's `int136` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 136 bits | |
*/ | |
function toInt136(int256 value) internal pure returns (int136 downcasted) { | |
downcasted = int136(value); | |
if (downcasted != value) { | |
revert SafeCastOverflowedIntDowncast(136, value); | |
} | |
} | |
/** | |
* @dev Returns the downcasted int128 from int256, reverting on | |
* overflow (when the input is less than smallest int128 or | |
* greater than largest int128). | |
* | |
* Counterpart to Solidity's `int128` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 128 bits | |
*/ | |
function toInt128(int256 value) internal pure returns (int128 downcasted) { | |
downcasted = int128(value); | |
if (downcasted != value) { | |
revert SafeCastOverflowedIntDowncast(128, value); | |
} | |
} | |
/** | |
* @dev Returns the downcasted int120 from int256, reverting on | |
* overflow (when the input is less than smallest int120 or | |
* greater than largest int120). | |
* | |
* Counterpart to Solidity's `int120` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 120 bits | |
*/ | |
function toInt120(int256 value) internal pure returns (int120 downcasted) { | |
downcasted = int120(value); | |
if (downcasted != value) { | |
revert SafeCastOverflowedIntDowncast(120, value); | |
} | |
} | |
/** | |
* @dev Returns the downcasted int112 from int256, reverting on | |
* overflow (when the input is less than smallest int112 or | |
* greater than largest int112). | |
* | |
* Counterpart to Solidity's `int112` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 112 bits | |
*/ | |
function toInt112(int256 value) internal pure returns (int112 downcasted) { | |
downcasted = int112(value); | |
if (downcasted != value) { | |
revert SafeCastOverflowedIntDowncast(112, value); | |
} | |
} | |
/** | |
* @dev Returns the downcasted int104 from int256, reverting on | |
* overflow (when the input is less than smallest int104 or | |
* greater than largest int104). | |
* | |
* Counterpart to Solidity's `int104` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 104 bits | |
*/ | |
function toInt104(int256 value) internal pure returns (int104 downcasted) { | |
downcasted = int104(value); | |
if (downcasted != value) { | |
revert SafeCastOverflowedIntDowncast(104, value); | |
} | |
} | |
/** | |
* @dev Returns the downcasted int96 from int256, reverting on | |
* overflow (when the input is less than smallest int96 or | |
* greater than largest int96). | |
* | |
* Counterpart to Solidity's `int96` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 96 bits | |
*/ | |
function toInt96(int256 value) internal pure returns (int96 downcasted) { | |
downcasted = int96(value); | |
if (downcasted != value) { | |
revert SafeCastOverflowedIntDowncast(96, value); | |
} | |
} | |
/** | |
* @dev Returns the downcasted int88 from int256, reverting on | |
* overflow (when the input is less than smallest int88 or | |
* greater than largest int88). | |
* | |
* Counterpart to Solidity's `int88` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 88 bits | |
*/ | |
function toInt88(int256 value) internal pure returns (int88 downcasted) { | |
downcasted = int88(value); | |
if (downcasted != value) { | |
revert SafeCastOverflowedIntDowncast(88, value); | |
} | |
} | |
/** | |
* @dev Returns the downcasted int80 from int256, reverting on | |
* overflow (when the input is less than smallest int80 or | |
* greater than largest int80). | |
* | |
* Counterpart to Solidity's `int80` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 80 bits | |
*/ | |
function toInt80(int256 value) internal pure returns (int80 downcasted) { | |
downcasted = int80(value); | |
if (downcasted != value) { | |
revert SafeCastOverflowedIntDowncast(80, value); | |
} | |
} | |
/** | |
* @dev Returns the downcasted int72 from int256, reverting on | |
* overflow (when the input is less than smallest int72 or | |
* greater than largest int72). | |
* | |
* Counterpart to Solidity's `int72` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 72 bits | |
*/ | |
function toInt72(int256 value) internal pure returns (int72 downcasted) { | |
downcasted = int72(value); | |
if (downcasted != value) { | |
revert SafeCastOverflowedIntDowncast(72, value); | |
} | |
} | |
/** | |
* @dev Returns the downcasted int64 from int256, reverting on | |
* overflow (when the input is less than smallest int64 or | |
* greater than largest int64). | |
* | |
* Counterpart to Solidity's `int64` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 64 bits | |
*/ | |
function toInt64(int256 value) internal pure returns (int64 downcasted) { | |
downcasted = int64(value); | |
if (downcasted != value) { | |
revert SafeCastOverflowedIntDowncast(64, value); | |
} | |
} | |
/** | |
* @dev Returns the downcasted int56 from int256, reverting on | |
* overflow (when the input is less than smallest int56 or | |
* greater than largest int56). | |
* | |
* Counterpart to Solidity's `int56` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 56 bits | |
*/ | |
function toInt56(int256 value) internal pure returns (int56 downcasted) { | |
downcasted = int56(value); | |
if (downcasted != value) { | |
revert SafeCastOverflowedIntDowncast(56, value); | |
} | |
} | |
/** | |
* @dev Returns the downcasted int48 from int256, reverting on | |
* overflow (when the input is less than smallest int48 or | |
* greater than largest int48). | |
* | |
* Counterpart to Solidity's `int48` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 48 bits | |
*/ | |
function toInt48(int256 value) internal pure returns (int48 downcasted) { | |
downcasted = int48(value); | |
if (downcasted != value) { | |
revert SafeCastOverflowedIntDowncast(48, value); | |
} | |
} | |
/** | |
* @dev Returns the downcasted int40 from int256, reverting on | |
* overflow (when the input is less than smallest int40 or | |
* greater than largest int40). | |
* | |
* Counterpart to Solidity's `int40` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 40 bits | |
*/ | |
function toInt40(int256 value) internal pure returns (int40 downcasted) { | |
downcasted = int40(value); | |
if (downcasted != value) { | |
revert SafeCastOverflowedIntDowncast(40, value); | |
} | |
} | |
/** | |
* @dev Returns the downcasted int32 from int256, reverting on | |
* overflow (when the input is less than smallest int32 or | |
* greater than largest int32). | |
* | |
* Counterpart to Solidity's `int32` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 32 bits | |
*/ | |
function toInt32(int256 value) internal pure returns (int32 downcasted) { | |
downcasted = int32(value); | |
if (downcasted != value) { | |
revert SafeCastOverflowedIntDowncast(32, value); | |
} | |
} | |
/** | |
* @dev Returns the downcasted int24 from int256, reverting on | |
* overflow (when the input is less than smallest int24 or | |
* greater than largest int24). | |
* | |
* Counterpart to Solidity's `int24` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 24 bits | |
*/ | |
function toInt24(int256 value) internal pure returns (int24 downcasted) { | |
downcasted = int24(value); | |
if (downcasted != value) { | |
revert SafeCastOverflowedIntDowncast(24, value); | |
} | |
} | |
/** | |
* @dev Returns the downcasted int16 from int256, reverting on | |
* overflow (when the input is less than smallest int16 or | |
* greater than largest int16). | |
* | |
* Counterpart to Solidity's `int16` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 16 bits | |
*/ | |
function toInt16(int256 value) internal pure returns (int16 downcasted) { | |
downcasted = int16(value); | |
if (downcasted != value) { | |
revert SafeCastOverflowedIntDowncast(16, value); | |
} | |
} | |
/** | |
* @dev Returns the downcasted int8 from int256, reverting on | |
* overflow (when the input is less than smallest int8 or | |
* greater than largest int8). | |
* | |
* Counterpart to Solidity's `int8` operator. | |
* | |
* Requirements: | |
* | |
* - input must fit into 8 bits | |
*/ | |
function toInt8(int256 value) internal pure returns (int8 downcasted) { | |
downcasted = int8(value); | |
if (downcasted != value) { | |
revert SafeCastOverflowedIntDowncast(8, value); | |
} | |
} | |
/** | |
* @dev Converts an unsigned uint256 into a signed int256. | |
* | |
* Requirements: | |
* | |
* - input must be less than or equal to maxInt256. | |
*/ | |
function toInt256(uint256 value) internal pure returns (int256) { | |
// Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive | |
if (value > uint256(type(int256).max)) { | |
revert SafeCastOverflowedUintToInt(value); | |
} | |
return int256(value); | |
} | |
/** | |
* @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump. | |
*/ | |
function toUint(bool b) internal pure returns (uint256 u) { | |
assembly ("memory-safe") { | |
u := iszero(iszero(b)) | |
} | |
} | |
} |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SignedMath.sol) | |
pragma solidity ^0.8.20; | |
import {SafeCast} from "./SafeCast.sol"; | |
/** | |
* @dev Standard signed math utilities missing in the Solidity language. | |
*/ | |
library SignedMath { | |
/** | |
* @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant. | |
* | |
* IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone. | |
* However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute | |
* one branch when needed, making this function more expensive. | |
*/ | |
function ternary(bool condition, int256 a, int256 b) internal pure returns (int256) { | |
unchecked { | |
// branchless ternary works because: | |
// b ^ (a ^ b) == a | |
// b ^ 0 == b | |
return b ^ ((a ^ b) * int256(SafeCast.toUint(condition))); | |
} | |
} | |
/** | |
* @dev Returns the largest of two signed numbers. | |
*/ | |
function max(int256 a, int256 b) internal pure returns (int256) { | |
return ternary(a > b, a, b); | |
} | |
/** | |
* @dev Returns the smallest of two signed numbers. | |
*/ | |
function min(int256 a, int256 b) internal pure returns (int256) { | |
return ternary(a < b, a, b); | |
} | |
/** | |
* @dev Returns the average of two signed numbers without overflow. | |
* The result is rounded towards zero. | |
*/ | |
function average(int256 a, int256 b) internal pure returns (int256) { | |
// Formula from the book "Hacker's Delight" | |
int256 x = (a & b) + ((a ^ b) >> 1); | |
return x + (int256(uint256(x) >> 255) & (a ^ b)); | |
} | |
/** | |
* @dev Returns the absolute unsigned value of a signed value. | |
*/ | |
function abs(int256 n) internal pure returns (uint256) { | |
unchecked { | |
// Formula from the "Bit Twiddling Hacks" by Sean Eron Anderson. | |
// Since `n` is a signed integer, the generated bytecode will use the SAR opcode to perform the right shift, | |
// taking advantage of the most significant (or "sign" bit) in two's complement representation. | |
// This opcode adds new most significant bits set to the value of the previous most significant bit. As a result, | |
// the mask will either be `bytes32(0)` (if n is positive) or `~bytes32(0)` (if n is negative). | |
int256 mask = n >> 255; | |
// A `bytes32(0)` mask leaves the input unchanged, while a `~bytes32(0)` mask complements it. | |
return uint256((n + mask) ^ mask); | |
} | |
} | |
} |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Nonces.sol) | |
pragma solidity ^0.8.20; | |
/** | |
* @dev Provides tracking nonces for addresses. Nonces will only increment. | |
*/ | |
abstract contract Nonces { | |
/** | |
* @dev The nonce used for an `account` is not the expected current nonce. | |
*/ | |
error InvalidAccountNonce(address account, uint256 currentNonce); | |
mapping(address account => uint256) private _nonces; | |
/** | |
* @dev Returns the next unused nonce for an address. | |
*/ | |
function nonces(address owner) public view virtual returns (uint256) { | |
return _nonces[owner]; | |
} | |
/** | |
* @dev Consumes a nonce. | |
* | |
* Returns the current value and increments nonce. | |
*/ | |
function _useNonce(address owner) internal virtual returns (uint256) { | |
// For each account, the nonce has an initial value of 0, can only be incremented by one, and cannot be | |
// decremented or reset. This guarantees that the nonce never overflows. | |
unchecked { | |
// It is important to do x++ and not ++x here. | |
return _nonces[owner]++; | |
} | |
} | |
/** | |
* @dev Same as {_useNonce} but checking that `nonce` is the next valid for `owner`. | |
*/ | |
function _useCheckedNonce(address owner, uint256 nonce) internal virtual { | |
uint256 current = _useNonce(owner); | |
if (nonce != current) { | |
revert InvalidAccountNonce(owner, current); | |
} | |
} | |
} |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol) | |
pragma solidity ^0.8.20; | |
/** | |
* @dev Helper library for emitting standardized panic codes. | |
* | |
* ```solidity | |
* contract Example { | |
* using Panic for uint256; | |
* | |
* // Use any of the declared internal constants | |
* function foo() { Panic.GENERIC.panic(); } | |
* | |
* // Alternatively | |
* function foo() { Panic.panic(Panic.GENERIC); } | |
* } | |
* ``` | |
* | |
* Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil]. | |
* | |
* _Available since v5.1._ | |
*/ | |
// slither-disable-next-line unused-state | |
library Panic { | |
/// @dev generic / unspecified error | |
uint256 internal constant GENERIC = 0x00; | |
/// @dev used by the assert() builtin | |
uint256 internal constant ASSERT = 0x01; | |
/// @dev arithmetic underflow or overflow | |
uint256 internal constant UNDER_OVERFLOW = 0x11; | |
/// @dev division or modulo by zero | |
uint256 internal constant DIVISION_BY_ZERO = 0x12; | |
/// @dev enum conversion error | |
uint256 internal constant ENUM_CONVERSION_ERROR = 0x21; | |
/// @dev invalid encoding in storage | |
uint256 internal constant STORAGE_ENCODING_ERROR = 0x22; | |
/// @dev empty array pop | |
uint256 internal constant EMPTY_ARRAY_POP = 0x31; | |
/// @dev array out of bounds access | |
uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32; | |
/// @dev resource error (too large allocation or too large array) | |
uint256 internal constant RESOURCE_ERROR = 0x41; | |
/// @dev calling invalid internal function | |
uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51; | |
/// @dev Reverts with a panic code. Recommended to use with | |
/// the internal constants with predefined codes. | |
function panic(uint256 code) internal pure { | |
assembly ("memory-safe") { | |
mstore(0x00, 0x4e487b71) | |
mstore(0x20, code) | |
revert(0x1c, 0x24) | |
} | |
} | |
} |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts (last updated v5.3.0) (utils/ShortStrings.sol) | |
pragma solidity ^0.8.20; | |
import {StorageSlot} from "./StorageSlot.sol"; | |
// | string | 0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | | |
// | length | 0x BB | | |
type ShortString is bytes32; | |
/** | |
* @dev This library provides functions to convert short memory strings | |
* into a `ShortString` type that can be used as an immutable variable. | |
* | |
* Strings of arbitrary length can be optimized using this library if | |
* they are short enough (up to 31 bytes) by packing them with their | |
* length (1 byte) in a single EVM word (32 bytes). Additionally, a | |
* fallback mechanism can be used for every other case. | |
* | |
* Usage example: | |
* | |
* ```solidity | |
* contract Named { | |
* using ShortStrings for *; | |
* | |
* ShortString private immutable _name; | |
* string private _nameFallback; | |
* | |
* constructor(string memory contractName) { | |
* _name = contractName.toShortStringWithFallback(_nameFallback); | |
* } | |
* | |
* function name() external view returns (string memory) { | |
* return _name.toStringWithFallback(_nameFallback); | |
* } | |
* } | |
* ``` | |
*/ | |
library ShortStrings { | |
// Used as an identifier for strings longer than 31 bytes. | |
bytes32 private constant FALLBACK_SENTINEL = 0x00000000000000000000000000000000000000000000000000000000000000FF; | |
error StringTooLong(string str); | |
error InvalidShortString(); | |
/** | |
* @dev Encode a string of at most 31 chars into a `ShortString`. | |
* | |
* This will trigger a `StringTooLong` error is the input string is too long. | |
*/ | |
function toShortString(string memory str) internal pure returns (ShortString) { | |
bytes memory bstr = bytes(str); | |
if (bstr.length > 31) { | |
revert StringTooLong(str); | |
} | |
return ShortString.wrap(bytes32(uint256(bytes32(bstr)) | bstr.length)); | |
} | |
/** | |
* @dev Decode a `ShortString` back to a "normal" string. | |
*/ | |
function toString(ShortString sstr) internal pure returns (string memory) { | |
uint256 len = byteLength(sstr); | |
// using `new string(len)` would work locally but is not memory safe. | |
string memory str = new string(32); | |
assembly ("memory-safe") { | |
mstore(str, len) | |
mstore(add(str, 0x20), sstr) | |
} | |
return str; | |
} | |
/** | |
* @dev Return the length of a `ShortString`. | |
*/ | |
function byteLength(ShortString sstr) internal pure returns (uint256) { | |
uint256 result = uint256(ShortString.unwrap(sstr)) & 0xFF; | |
if (result > 31) { | |
revert InvalidShortString(); | |
} | |
return result; | |
} | |
/** | |
* @dev Encode a string into a `ShortString`, or write it to storage if it is too long. | |
*/ | |
function toShortStringWithFallback(string memory value, string storage store) internal returns (ShortString) { | |
if (bytes(value).length < 32) { | |
return toShortString(value); | |
} else { | |
StorageSlot.getStringSlot(store).value = value; | |
return ShortString.wrap(FALLBACK_SENTINEL); | |
} | |
} | |
/** | |
* @dev Decode a string that was encoded to `ShortString` or written to storage using {toShortStringWithFallback}. | |
*/ | |
function toStringWithFallback(ShortString value, string storage store) internal pure returns (string memory) { | |
if (ShortString.unwrap(value) != FALLBACK_SENTINEL) { | |
return toString(value); | |
} else { | |
return store; | |
} | |
} | |
/** | |
* @dev Return the length of a string that was encoded to `ShortString` or written to storage using | |
* {toShortStringWithFallback}. | |
* | |
* WARNING: This will return the "byte length" of the string. This may not reflect the actual length in terms of | |
* actual characters as the UTF-8 encoding of a single character can span over multiple bytes. | |
*/ | |
function byteLengthWithFallback(ShortString value, string storage store) internal view returns (uint256) { | |
if (ShortString.unwrap(value) != FALLBACK_SENTINEL) { | |
return byteLength(value); | |
} else { | |
return bytes(store).length; | |
} | |
} | |
} |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol) | |
// This file was procedurally generated from scripts/generate/templates/StorageSlot.js. | |
pragma solidity ^0.8.20; | |
/** | |
* @dev Library for reading and writing primitive types to specific storage slots. | |
* | |
* Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. | |
* This library helps with reading and writing to such slots without the need for inline assembly. | |
* | |
* The functions in this library return Slot structs that contain a `value` member that can be used to read or write. | |
* | |
* Example usage to set ERC-1967 implementation slot: | |
* ```solidity | |
* contract ERC1967 { | |
* // Define the slot. Alternatively, use the SlotDerivation library to derive the slot. | |
* bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; | |
* | |
* function _getImplementation() internal view returns (address) { | |
* return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; | |
* } | |
* | |
* function _setImplementation(address newImplementation) internal { | |
* require(newImplementation.code.length > 0); | |
* StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; | |
* } | |
* } | |
* ``` | |
* | |
* TIP: Consider using this library along with {SlotDerivation}. | |
*/ | |
library StorageSlot { | |
struct AddressSlot { | |
address value; | |
} | |
struct BooleanSlot { | |
bool value; | |
} | |
struct Bytes32Slot { | |
bytes32 value; | |
} | |
struct Uint256Slot { | |
uint256 value; | |
} | |
struct Int256Slot { | |
int256 value; | |
} | |
struct StringSlot { | |
string value; | |
} | |
struct BytesSlot { | |
bytes value; | |
} | |
/** | |
* @dev Returns an `AddressSlot` with member `value` located at `slot`. | |
*/ | |
function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) { | |
assembly ("memory-safe") { | |
r.slot := slot | |
} | |
} | |
/** | |
* @dev Returns a `BooleanSlot` with member `value` located at `slot`. | |
*/ | |
function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) { | |
assembly ("memory-safe") { | |
r.slot := slot | |
} | |
} | |
/** | |
* @dev Returns a `Bytes32Slot` with member `value` located at `slot`. | |
*/ | |
function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) { | |
assembly ("memory-safe") { | |
r.slot := slot | |
} | |
} | |
/** | |
* @dev Returns a `Uint256Slot` with member `value` located at `slot`. | |
*/ | |
function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) { | |
assembly ("memory-safe") { | |
r.slot := slot | |
} | |
} | |
/** | |
* @dev Returns a `Int256Slot` with member `value` located at `slot`. | |
*/ | |
function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) { | |
assembly ("memory-safe") { | |
r.slot := slot | |
} | |
} | |
/** | |
* @dev Returns a `StringSlot` with member `value` located at `slot`. | |
*/ | |
function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) { | |
assembly ("memory-safe") { | |
r.slot := slot | |
} | |
} | |
/** | |
* @dev Returns an `StringSlot` representation of the string storage pointer `store`. | |
*/ | |
function getStringSlot(string storage store) internal pure returns (StringSlot storage r) { | |
assembly ("memory-safe") { | |
r.slot := store.slot | |
} | |
} | |
/** | |
* @dev Returns a `BytesSlot` with member `value` located at `slot`. | |
*/ | |
function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) { | |
assembly ("memory-safe") { | |
r.slot := slot | |
} | |
} | |
/** | |
* @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`. | |
*/ | |
function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) { | |
assembly ("memory-safe") { | |
r.slot := store.slot | |
} | |
} | |
} |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts (last updated v5.3.0) (utils/Strings.sol) | |
pragma solidity ^0.8.20; | |
import {Math} from "./math/Math.sol"; | |
import {SafeCast} from "./math/SafeCast.sol"; | |
import {SignedMath} from "./math/SignedMath.sol"; | |
/** | |
* @dev String operations. | |
*/ | |
library Strings { | |
using SafeCast for *; | |
bytes16 private constant HEX_DIGITS = "0123456789abcdef"; | |
uint8 private constant ADDRESS_LENGTH = 20; | |
uint256 private constant SPECIAL_CHARS_LOOKUP = | |
(1 << 0x08) | // backspace | |
(1 << 0x09) | // tab | |
(1 << 0x0a) | // newline | |
(1 << 0x0c) | // form feed | |
(1 << 0x0d) | // carriage return | |
(1 << 0x22) | // double quote | |
(1 << 0x5c); // backslash | |
/** | |
* @dev The `value` string doesn't fit in the specified `length`. | |
*/ | |
error StringsInsufficientHexLength(uint256 value, uint256 length); | |
/** | |
* @dev The string being parsed contains characters that are not in scope of the given base. | |
*/ | |
error StringsInvalidChar(); | |
/** | |
* @dev The string being parsed is not a properly formatted address. | |
*/ | |
error StringsInvalidAddressFormat(); | |
/** | |
* @dev Converts a `uint256` to its ASCII `string` decimal representation. | |
*/ | |
function toString(uint256 value) internal pure returns (string memory) { | |
unchecked { | |
uint256 length = Math.log10(value) + 1; | |
string memory buffer = new string(length); | |
uint256 ptr; | |
assembly ("memory-safe") { | |
ptr := add(buffer, add(32, length)) | |
} | |
while (true) { | |
ptr--; | |
assembly ("memory-safe") { | |
mstore8(ptr, byte(mod(value, 10), HEX_DIGITS)) | |
} | |
value /= 10; | |
if (value == 0) break; | |
} | |
return buffer; | |
} | |
} | |
/** | |
* @dev Converts a `int256` to its ASCII `string` decimal representation. | |
*/ | |
function toStringSigned(int256 value) internal pure returns (string memory) { | |
return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value))); | |
} | |
/** | |
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. | |
*/ | |
function toHexString(uint256 value) internal pure returns (string memory) { | |
unchecked { | |
return toHexString(value, Math.log256(value) + 1); | |
} | |
} | |
/** | |
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. | |
*/ | |
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { | |
uint256 localValue = value; | |
bytes memory buffer = new bytes(2 * length + 2); | |
buffer[0] = "0"; | |
buffer[1] = "x"; | |
for (uint256 i = 2 * length + 1; i > 1; --i) { | |
buffer[i] = HEX_DIGITS[localValue & 0xf]; | |
localValue >>= 4; | |
} | |
if (localValue != 0) { | |
revert StringsInsufficientHexLength(value, length); | |
} | |
return string(buffer); | |
} | |
/** | |
* @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal | |
* representation. | |
*/ | |
function toHexString(address addr) internal pure returns (string memory) { | |
return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH); | |
} | |
/** | |
* @dev Converts an `address` with fixed length of 20 bytes to its checksummed ASCII `string` hexadecimal | |
* representation, according to EIP-55. | |
*/ | |
function toChecksumHexString(address addr) internal pure returns (string memory) { | |
bytes memory buffer = bytes(toHexString(addr)); | |
// hash the hex part of buffer (skip length + 2 bytes, length 40) | |
uint256 hashValue; | |
assembly ("memory-safe") { | |
hashValue := shr(96, keccak256(add(buffer, 0x22), 40)) | |
} | |
for (uint256 i = 41; i > 1; --i) { | |
// possible values for buffer[i] are 48 (0) to 57 (9) and 97 (a) to 102 (f) | |
if (hashValue & 0xf > 7 && uint8(buffer[i]) > 96) { | |
// case shift by xoring with 0x20 | |
buffer[i] ^= 0x20; | |
} | |
hashValue >>= 4; | |
} | |
return string(buffer); | |
} | |
/** | |
* @dev Returns true if the two strings are equal. | |
*/ | |
function equal(string memory a, string memory b) internal pure returns (bool) { | |
return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b)); | |
} | |
/** | |
* @dev Parse a decimal string and returns the value as a `uint256`. | |
* | |
* Requirements: | |
* - The string must be formatted as `[0-9]*` | |
* - The result must fit into an `uint256` type | |
*/ | |
function parseUint(string memory input) internal pure returns (uint256) { | |
return parseUint(input, 0, bytes(input).length); | |
} | |
/** | |
* @dev Variant of {parseUint-string} that parses a substring of `input` located between position `begin` (included) and | |
* `end` (excluded). | |
* | |
* Requirements: | |
* - The substring must be formatted as `[0-9]*` | |
* - The result must fit into an `uint256` type | |
*/ | |
function parseUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) { | |
(bool success, uint256 value) = tryParseUint(input, begin, end); | |
if (!success) revert StringsInvalidChar(); | |
return value; | |
} | |
/** | |
* @dev Variant of {parseUint-string} that returns false if the parsing fails because of an invalid character. | |
* | |
* NOTE: This function will revert if the result does not fit in a `uint256`. | |
*/ | |
function tryParseUint(string memory input) internal pure returns (bool success, uint256 value) { | |
return _tryParseUintUncheckedBounds(input, 0, bytes(input).length); | |
} | |
/** | |
* @dev Variant of {parseUint-string-uint256-uint256} that returns false if the parsing fails because of an invalid | |
* character. | |
* | |
* NOTE: This function will revert if the result does not fit in a `uint256`. | |
*/ | |
function tryParseUint( | |
string memory input, | |
uint256 begin, | |
uint256 end | |
) internal pure returns (bool success, uint256 value) { | |
if (end > bytes(input).length || begin > end) return (false, 0); | |
return _tryParseUintUncheckedBounds(input, begin, end); | |
} | |
/** | |
* @dev Implementation of {tryParseUint-string-uint256-uint256} that does not check bounds. Caller should make sure that | |
* `begin <= end <= input.length`. Other inputs would result in undefined behavior. | |
*/ | |
function _tryParseUintUncheckedBounds( | |
string memory input, | |
uint256 begin, | |
uint256 end | |
) private pure returns (bool success, uint256 value) { | |
bytes memory buffer = bytes(input); | |
uint256 result = 0; | |
for (uint256 i = begin; i < end; ++i) { | |
uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i))); | |
if (chr > 9) return (false, 0); | |
result *= 10; | |
result += chr; | |
} | |
return (true, result); | |
} | |
/** | |
* @dev Parse a decimal string and returns the value as a `int256`. | |
* | |
* Requirements: | |
* - The string must be formatted as `[-+]?[0-9]*` | |
* - The result must fit in an `int256` type. | |
*/ | |
function parseInt(string memory input) internal pure returns (int256) { | |
return parseInt(input, 0, bytes(input).length); | |
} | |
/** | |
* @dev Variant of {parseInt-string} that parses a substring of `input` located between position `begin` (included) and | |
* `end` (excluded). | |
* | |
* Requirements: | |
* - The substring must be formatted as `[-+]?[0-9]*` | |
* - The result must fit in an `int256` type. | |
*/ | |
function parseInt(string memory input, uint256 begin, uint256 end) internal pure returns (int256) { | |
(bool success, int256 value) = tryParseInt(input, begin, end); | |
if (!success) revert StringsInvalidChar(); | |
return value; | |
} | |
/** | |
* @dev Variant of {parseInt-string} that returns false if the parsing fails because of an invalid character or if | |
* the result does not fit in a `int256`. | |
* | |
* NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`. | |
*/ | |
function tryParseInt(string memory input) internal pure returns (bool success, int256 value) { | |
return _tryParseIntUncheckedBounds(input, 0, bytes(input).length); | |
} | |
uint256 private constant ABS_MIN_INT256 = 2 ** 255; | |
/** | |
* @dev Variant of {parseInt-string-uint256-uint256} that returns false if the parsing fails because of an invalid | |
* character or if the result does not fit in a `int256`. | |
* | |
* NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`. | |
*/ | |
function tryParseInt( | |
string memory input, | |
uint256 begin, | |
uint256 end | |
) internal pure returns (bool success, int256 value) { | |
if (end > bytes(input).length || begin > end) return (false, 0); | |
return _tryParseIntUncheckedBounds(input, begin, end); | |
} | |
/** | |
* @dev Implementation of {tryParseInt-string-uint256-uint256} that does not check bounds. Caller should make sure that | |
* `begin <= end <= input.length`. Other inputs would result in undefined behavior. | |
*/ | |
function _tryParseIntUncheckedBounds( | |
string memory input, | |
uint256 begin, | |
uint256 end | |
) private pure returns (bool success, int256 value) { | |
bytes memory buffer = bytes(input); | |
// Check presence of a negative sign. | |
bytes1 sign = begin == end ? bytes1(0) : bytes1(_unsafeReadBytesOffset(buffer, begin)); // don't do out-of-bound (possibly unsafe) read if sub-string is empty | |
bool positiveSign = sign == bytes1("+"); | |
bool negativeSign = sign == bytes1("-"); | |
uint256 offset = (positiveSign || negativeSign).toUint(); | |
(bool absSuccess, uint256 absValue) = tryParseUint(input, begin + offset, end); | |
if (absSuccess && absValue < ABS_MIN_INT256) { | |
return (true, negativeSign ? -int256(absValue) : int256(absValue)); | |
} else if (absSuccess && negativeSign && absValue == ABS_MIN_INT256) { | |
return (true, type(int256).min); | |
} else return (false, 0); | |
} | |
/** | |
* @dev Parse a hexadecimal string (with or without "0x" prefix), and returns the value as a `uint256`. | |
* | |
* Requirements: | |
* - The string must be formatted as `(0x)?[0-9a-fA-F]*` | |
* - The result must fit in an `uint256` type. | |
*/ | |
function parseHexUint(string memory input) internal pure returns (uint256) { | |
return parseHexUint(input, 0, bytes(input).length); | |
} | |
/** | |
* @dev Variant of {parseHexUint-string} that parses a substring of `input` located between position `begin` (included) and | |
* `end` (excluded). | |
* | |
* Requirements: | |
* - The substring must be formatted as `(0x)?[0-9a-fA-F]*` | |
* - The result must fit in an `uint256` type. | |
*/ | |
function parseHexUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) { | |
(bool success, uint256 value) = tryParseHexUint(input, begin, end); | |
if (!success) revert StringsInvalidChar(); | |
return value; | |
} | |
/** | |
* @dev Variant of {parseHexUint-string} that returns false if the parsing fails because of an invalid character. | |
* | |
* NOTE: This function will revert if the result does not fit in a `uint256`. | |
*/ | |
function tryParseHexUint(string memory input) internal pure returns (bool success, uint256 value) { | |
return _tryParseHexUintUncheckedBounds(input, 0, bytes(input).length); | |
} | |
/** | |
* @dev Variant of {parseHexUint-string-uint256-uint256} that returns false if the parsing fails because of an | |
* invalid character. | |
* | |
* NOTE: This function will revert if the result does not fit in a `uint256`. | |
*/ | |
function tryParseHexUint( | |
string memory input, | |
uint256 begin, | |
uint256 end | |
) internal pure returns (bool success, uint256 value) { | |
if (end > bytes(input).length || begin > end) return (false, 0); | |
return _tryParseHexUintUncheckedBounds(input, begin, end); | |
} | |
/** | |
* @dev Implementation of {tryParseHexUint-string-uint256-uint256} that does not check bounds. Caller should make sure that | |
* `begin <= end <= input.length`. Other inputs would result in undefined behavior. | |
*/ | |
function _tryParseHexUintUncheckedBounds( | |
string memory input, | |
uint256 begin, | |
uint256 end | |
) private pure returns (bool success, uint256 value) { | |
bytes memory buffer = bytes(input); | |
// skip 0x prefix if present | |
bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(buffer, begin)) == bytes2("0x"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty | |
uint256 offset = hasPrefix.toUint() * 2; | |
uint256 result = 0; | |
for (uint256 i = begin + offset; i < end; ++i) { | |
uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i))); | |
if (chr > 15) return (false, 0); | |
result *= 16; | |
unchecked { | |
// Multiplying by 16 is equivalent to a shift of 4 bits (with additional overflow check). | |
// This guarantees that adding a value < 16 will not cause an overflow, hence the unchecked. | |
result += chr; | |
} | |
} | |
return (true, result); | |
} | |
/** | |
* @dev Parse a hexadecimal string (with or without "0x" prefix), and returns the value as an `address`. | |
* | |
* Requirements: | |
* - The string must be formatted as `(0x)?[0-9a-fA-F]{40}` | |
*/ | |
function parseAddress(string memory input) internal pure returns (address) { | |
return parseAddress(input, 0, bytes(input).length); | |
} | |
/** | |
* @dev Variant of {parseAddress-string} that parses a substring of `input` located between position `begin` (included) and | |
* `end` (excluded). | |
* | |
* Requirements: | |
* - The substring must be formatted as `(0x)?[0-9a-fA-F]{40}` | |
*/ | |
function parseAddress(string memory input, uint256 begin, uint256 end) internal pure returns (address) { | |
(bool success, address value) = tryParseAddress(input, begin, end); | |
if (!success) revert StringsInvalidAddressFormat(); | |
return value; | |
} | |
/** | |
* @dev Variant of {parseAddress-string} that returns false if the parsing fails because the input is not a properly | |
* formatted address. See {parseAddress-string} requirements. | |
*/ | |
function tryParseAddress(string memory input) internal pure returns (bool success, address value) { | |
return tryParseAddress(input, 0, bytes(input).length); | |
} | |
/** | |
* @dev Variant of {parseAddress-string-uint256-uint256} that returns false if the parsing fails because input is not a properly | |
* formatted address. See {parseAddress-string-uint256-uint256} requirements. | |
*/ | |
function tryParseAddress( | |
string memory input, | |
uint256 begin, | |
uint256 end | |
) internal pure returns (bool success, address value) { | |
if (end > bytes(input).length || begin > end) return (false, address(0)); | |
bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(bytes(input), begin)) == bytes2("0x"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty | |
uint256 expectedLength = 40 + hasPrefix.toUint() * 2; | |
// check that input is the correct length | |
if (end - begin == expectedLength) { | |
// length guarantees that this does not overflow, and value is at most type(uint160).max | |
(bool s, uint256 v) = _tryParseHexUintUncheckedBounds(input, begin, end); | |
return (s, address(uint160(v))); | |
} else { | |
return (false, address(0)); | |
} | |
} | |
function _tryParseChr(bytes1 chr) private pure returns (uint8) { | |
uint8 value = uint8(chr); | |
// Try to parse `chr`: | |
// - Case 1: [0-9] | |
// - Case 2: [a-f] | |
// - Case 3: [A-F] | |
// - otherwise not supported | |
unchecked { | |
if (value > 47 && value < 58) value -= 48; | |
else if (value > 96 && value < 103) value -= 87; | |
else if (value > 64 && value < 71) value -= 55; | |
else return type(uint8).max; | |
} | |
return value; | |
} | |
/** | |
* @dev Escape special characters in JSON strings. This can be useful to prevent JSON injection in NFT metadata. | |
* | |
* WARNING: This function should only be used in double quoted JSON strings. Single quotes are not escaped. | |
* | |
* NOTE: This function escapes all unicode characters, and not just the ones in ranges defined in section 2.5 of | |
* RFC-4627 (U+0000 to U+001F, U+0022 and U+005C). ECMAScript's `JSON.parse` does recover escaped unicode | |
* characters that are not in this range, but other tooling may provide different results. | |
*/ | |
function escapeJSON(string memory input) internal pure returns (string memory) { | |
bytes memory buffer = bytes(input); | |
bytes memory output = new bytes(2 * buffer.length); // worst case scenario | |
uint256 outputLength = 0; | |
for (uint256 i; i < buffer.length; ++i) { | |
bytes1 char = bytes1(_unsafeReadBytesOffset(buffer, i)); | |
if (((SPECIAL_CHARS_LOOKUP & (1 << uint8(char))) != 0)) { | |
output[outputLength++] = "\\"; | |
if (char == 0x08) output[outputLength++] = "b"; | |
else if (char == 0x09) output[outputLength++] = "t"; | |
else if (char == 0x0a) output[outputLength++] = "n"; | |
else if (char == 0x0c) output[outputLength++] = "f"; | |
else if (char == 0x0d) output[outputLength++] = "r"; | |
else if (char == 0x5c) output[outputLength++] = "\\"; | |
else if (char == 0x22) { | |
// solhint-disable-next-line quotes | |
output[outputLength++] = '"'; | |
} | |
} else { | |
output[outputLength++] = char; | |
} | |
} | |
// write the actual length and deallocate unused memory | |
assembly ("memory-safe") { | |
mstore(output, outputLength) | |
mstore(0x40, add(output, shl(5, shr(5, add(outputLength, 63))))) | |
} | |
return string(output); | |
} | |
/** | |
* @dev Reads a bytes32 from a bytes array without bounds checking. | |
* | |
* NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the | |
* assembly block as such would prevent some optimizations. | |
*/ | |
function _unsafeReadBytesOffset(bytes memory buffer, uint256 offset) private pure returns (bytes32 value) { | |
// This is not memory safe in the general case, but all calls to this private function are within bounds. | |
assembly ("memory-safe") { | |
value := mload(add(buffer, add(0x20, offset))) | |
} | |
} | |
} |
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.4.22 <0.9.0; | |
library TestsAccounts { | |
function getAccount(uint index) pure public returns (address) { | |
return address(0); | |
} | |
} |
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.4.22 <0.9.0; | |
library Assert { | |
event AssertionEvent( | |
bool passed, | |
string message, | |
string methodName | |
); | |
event AssertionEventUint( | |
bool passed, | |
string message, | |
string methodName, | |
uint256 returned, | |
uint256 expected | |
); | |
event AssertionEventInt( | |
bool passed, | |
string message, | |
string methodName, | |
int256 returned, | |
int256 expected | |
); | |
event AssertionEventBool( | |
bool passed, | |
string message, | |
string methodName, | |
bool returned, | |
bool expected | |
); | |
event AssertionEventAddress( | |
bool passed, | |
string message, | |
string methodName, | |
address returned, | |
address expected | |
); | |
event AssertionEventBytes32( | |
bool passed, | |
string message, | |
string methodName, | |
bytes32 returned, | |
bytes32 expected | |
); | |
event AssertionEventString( | |
bool passed, | |
string message, | |
string methodName, | |
string returned, | |
string expected | |
); | |
event AssertionEventUintInt( | |
bool passed, | |
string message, | |
string methodName, | |
uint256 returned, | |
int256 expected | |
); | |
event AssertionEventIntUint( | |
bool passed, | |
string message, | |
string methodName, | |
int256 returned, | |
uint256 expected | |
); | |
function ok(bool a, string memory message) public returns (bool result) { | |
result = a; | |
emit AssertionEvent(result, message, "ok"); | |
} | |
function equal(uint256 a, uint256 b, string memory message) public returns (bool result) { | |
result = (a == b); | |
emit AssertionEventUint(result, message, "equal", a, b); | |
} | |
function equal(int256 a, int256 b, string memory message) public returns (bool result) { | |
result = (a == b); | |
emit AssertionEventInt(result, message, "equal", a, b); | |
} | |
function equal(bool a, bool b, string memory message) public returns (bool result) { | |
result = (a == b); | |
emit AssertionEventBool(result, message, "equal", a, b); | |
} | |
// TODO: only for certain versions of solc | |
//function equal(fixed a, fixed b, string message) public returns (bool result) { | |
// result = (a == b); | |
// emit AssertionEvent(result, message); | |
//} | |
// TODO: only for certain versions of solc | |
//function equal(ufixed a, ufixed b, string message) public returns (bool result) { | |
// result = (a == b); | |
// emit AssertionEvent(result, message); | |
//} | |
function equal(address a, address b, string memory message) public returns (bool result) { | |
result = (a == b); | |
emit AssertionEventAddress(result, message, "equal", a, b); | |
} | |
function equal(bytes32 a, bytes32 b, string memory message) public returns (bool result) { | |
result = (a == b); | |
emit AssertionEventBytes32(result, message, "equal", a, b); | |
} | |
function equal(string memory a, string memory b, string memory message) public returns (bool result) { | |
result = (keccak256(abi.encodePacked(a)) == keccak256(abi.encodePacked(b))); | |
emit AssertionEventString(result, message, "equal", a, b); | |
} | |
function notEqual(uint256 a, uint256 b, string memory message) public returns (bool result) { | |
result = (a != b); | |
emit AssertionEventUint(result, message, "notEqual", a, b); | |
} | |
function notEqual(int256 a, int256 b, string memory message) public returns (bool result) { | |
result = (a != b); | |
emit AssertionEventInt(result, message, "notEqual", a, b); | |
} | |
function notEqual(bool a, bool b, string memory message) public returns (bool result) { | |
result = (a != b); | |
emit AssertionEventBool(result, message, "notEqual", a, b); | |
} | |
// TODO: only for certain versions of solc | |
//function notEqual(fixed a, fixed b, string message) public returns (bool result) { | |
// result = (a != b); | |
// emit AssertionEvent(result, message); | |
//} | |
// TODO: only for certain versions of solc | |
//function notEqual(ufixed a, ufixed b, string message) public returns (bool result) { | |
// result = (a != b); | |
// emit AssertionEvent(result, message); | |
//} | |
function notEqual(address a, address b, string memory message) public returns (bool result) { | |
result = (a != b); | |
emit AssertionEventAddress(result, message, "notEqual", a, b); | |
} | |
function notEqual(bytes32 a, bytes32 b, string memory message) public returns (bool result) { | |
result = (a != b); | |
emit AssertionEventBytes32(result, message, "notEqual", a, b); | |
} | |
function notEqual(string memory a, string memory b, string memory message) public returns (bool result) { | |
result = (keccak256(abi.encodePacked(a)) != keccak256(abi.encodePacked(b))); | |
emit AssertionEventString(result, message, "notEqual", a, b); | |
} | |
/*----------------- Greater than --------------------*/ | |
function greaterThan(uint256 a, uint256 b, string memory message) public returns (bool result) { | |
result = (a > b); | |
emit AssertionEventUint(result, message, "greaterThan", a, b); | |
} | |
function greaterThan(int256 a, int256 b, string memory message) public returns (bool result) { | |
result = (a > b); | |
emit AssertionEventInt(result, message, "greaterThan", a, b); | |
} | |
// TODO: safely compare between uint and int | |
function greaterThan(uint256 a, int256 b, string memory message) public returns (bool result) { | |
if(b < int(0)) { | |
// int is negative uint "a" always greater | |
result = true; | |
} else { | |
result = (a > uint(b)); | |
} | |
emit AssertionEventUintInt(result, message, "greaterThan", a, b); | |
} | |
function greaterThan(int256 a, uint256 b, string memory message) public returns (bool result) { | |
if(a < int(0)) { | |
// int is negative uint "b" always greater | |
result = false; | |
} else { | |
result = (uint(a) > b); | |
} | |
emit AssertionEventIntUint(result, message, "greaterThan", a, b); | |
} | |
/*----------------- Lesser than --------------------*/ | |
function lesserThan(uint256 a, uint256 b, string memory message) public returns (bool result) { | |
result = (a < b); | |
emit AssertionEventUint(result, message, "lesserThan", a, b); | |
} | |
function lesserThan(int256 a, int256 b, string memory message) public returns (bool result) { | |
result = (a < b); | |
emit AssertionEventInt(result, message, "lesserThan", a, b); | |
} | |
// TODO: safely compare between uint and int | |
function lesserThan(uint256 a, int256 b, string memory message) public returns (bool result) { | |
if(b < int(0)) { | |
// int is negative int "b" always lesser | |
result = false; | |
} else { | |
result = (a < uint(b)); | |
} | |
emit AssertionEventUintInt(result, message, "lesserThan", a, b); | |
} | |
function lesserThan(int256 a, uint256 b, string memory message) public returns (bool result) { | |
if(a < int(0)) { | |
// int is negative int "a" always lesser | |
result = true; | |
} else { | |
result = (uint(a) < b); | |
} | |
emit AssertionEventIntUint(result, message, "lesserThan", a, b); | |
} | |
} |
{ | |
"overrides": [ | |
{ | |
"files": "*.sol", | |
"options": { | |
"printWidth": 80, | |
"tabWidth": 4, | |
"useTabs": false, | |
"singleQuote": false, | |
"bracketSpacing": false | |
} | |
}, | |
{ | |
"files": "*.yml", | |
"options": {} | |
}, | |
{ | |
"files": "*.yaml", | |
"options": {} | |
}, | |
{ | |
"files": "*.toml", | |
"options": {} | |
}, | |
{ | |
"files": "*.json", | |
"options": {} | |
}, | |
{ | |
"files": "*.js", | |
"options": {} | |
}, | |
{ | |
"files": "*.ts", | |
"options": {} | |
} | |
] | |
} |
REMIX DEFAULT WORKSPACE | |
Remix default workspace is present when: | |
i. Remix loads for the very first time | |
ii. A new workspace is created with 'Default' template | |
iii. There are no files existing in the File Explorer | |
This workspace contains 3 directories: | |
1. 'contracts': Holds three contracts with increasing levels of complexity. | |
2. 'scripts': Contains four typescript files to deploy a contract. It is explained below. | |
3. 'tests': Contains one Solidity test file for 'Ballot' contract & one JS test file for 'Storage' contract. | |
SCRIPTS | |
The 'scripts' folder has four typescript files which help to deploy the 'Storage' contract using 'web3.js' and 'ethers.js' libraries. | |
For the deployment of any other contract, just update the contract name from 'Storage' to the desired contract and provide constructor arguments accordingly | |
in the file `deploy_with_ethers.ts` or `deploy_with_web3.ts` | |
In the 'tests' folder there is a script containing Mocha-Chai unit tests for 'Storage' contract. | |
To run a script, right click on file name in the file explorer and click 'Run'. Remember, Solidity file must already be compiled. | |
Output from script will appear in remix terminal. | |
Please note, require/import is supported in a limited manner for Remix supported modules. | |
For now, modules supported by Remix are ethers, web3, swarmgw, chai, multihashes, remix and hardhat only for hardhat.ethers object/plugin. | |
For unsupported modules, an error like this will be thrown: '<module_name> module require is not supported by Remix IDE' will be shown. |
{ | |
"deploy": { | |
"VM:-": { | |
"linkReferences": {}, | |
"autoDeployLib": true | |
}, | |
"main:1": { | |
"linkReferences": {}, | |
"autoDeployLib": true | |
}, | |
"ropsten:3": { | |
"linkReferences": {}, | |
"autoDeployLib": true | |
}, | |
"rinkeby:4": { | |
"linkReferences": {}, | |
"autoDeployLib": true | |
}, | |
"kovan:42": { | |
"linkReferences": {}, | |
"autoDeployLib": true | |
}, | |
"goerli:5": { | |
"linkReferences": {}, | |
"autoDeployLib": true | |
}, | |
"Custom": { | |
"linkReferences": {}, | |
"autoDeployLib": true | |
} | |
}, | |
"data": { | |
"bytecode": { | |
"functionDebugData": { | |
"@_212": { | |
"entryPoint": null, | |
"id": 212, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"@_497": { | |
"entryPoint": null, | |
"id": 497, | |
"parameterSlots": 10, | |
"returnSlots": 0 | |
}, | |
"@_96": { | |
"entryPoint": null, | |
"id": 96, | |
"parameterSlots": 1, | |
"returnSlots": 0 | |
}, | |
"@_transferOwnership_192": { | |
"entryPoint": 229, | |
"id": 192, | |
"parameterSlots": 1, | |
"returnSlots": 0 | |
}, | |
"abi_decode_address_fromMemory": { | |
"entryPoint": 309, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_decode_tuple_t_addresst_addresst_uint256t_uint256t_uint256t_uint256t_uint256t_uint256t_addresst_address_fromMemory": { | |
"entryPoint": 338, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 10 | |
}, | |
"abi_encode_tuple_t_address__to_t_address__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
} | |
}, | |
"generatedSources": [ | |
{ | |
"ast": { | |
"nodeType": "YulBlock", | |
"src": "0:1242:6", | |
"statements": [ | |
{ | |
"nodeType": "YulBlock", | |
"src": "6:3:6", | |
"statements": [] | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "74:117:6", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "84:22:6", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "99:6:6" | |
} | |
], | |
"functionName": { | |
"name": "mload", | |
"nodeType": "YulIdentifier", | |
"src": "93:5:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "93:13:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "84:5:6" | |
} | |
] | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "169:16:6", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "178:1:6", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "181:1:6", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "revert", | |
"nodeType": "YulIdentifier", | |
"src": "171:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "171:12:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "171:12:6" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "128:5:6" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "139:5:6" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "154:3:6", | |
"type": "", | |
"value": "160" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "159:1:6", | |
"type": "", | |
"value": "1" | |
} | |
], | |
"functionName": { | |
"name": "shl", | |
"nodeType": "YulIdentifier", | |
"src": "150:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "150:11:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "163:1:6", | |
"type": "", | |
"value": "1" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "146:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "146:19:6" | |
} | |
], | |
"functionName": { | |
"name": "and", | |
"nodeType": "YulIdentifier", | |
"src": "135:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "135:31:6" | |
} | |
], | |
"functionName": { | |
"name": "eq", | |
"nodeType": "YulIdentifier", | |
"src": "125:2:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "125:42:6" | |
} | |
], | |
"functionName": { | |
"name": "iszero", | |
"nodeType": "YulIdentifier", | |
"src": "118:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "118:50:6" | |
}, | |
"nodeType": "YulIf", | |
"src": "115:70:6" | |
} | |
] | |
}, | |
"name": "abi_decode_address_fromMemory", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulTypedName", | |
"src": "53:6:6", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "value", | |
"nodeType": "YulTypedName", | |
"src": "64:5:6", | |
"type": "" | |
} | |
], | |
"src": "14:177:6" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "430:602:6", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "477:16:6", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "486:1:6", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "489:1:6", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "revert", | |
"nodeType": "YulIdentifier", | |
"src": "479:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "479:12:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "479:12:6" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "451:7:6" | |
}, | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "460:9:6" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "447:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "447:23:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "472:3:6", | |
"type": "", | |
"value": "320" | |
} | |
], | |
"functionName": { | |
"name": "slt", | |
"nodeType": "YulIdentifier", | |
"src": "443:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "443:33:6" | |
}, | |
"nodeType": "YulIf", | |
"src": "440:53:6" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "502:50:6", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "542:9:6" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_address_fromMemory", | |
"nodeType": "YulIdentifier", | |
"src": "512:29:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "512:40:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulIdentifier", | |
"src": "502:6:6" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "561:59:6", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "605:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "616:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "601:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "601:18:6" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_address_fromMemory", | |
"nodeType": "YulIdentifier", | |
"src": "571:29:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "571:49:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value1", | |
"nodeType": "YulIdentifier", | |
"src": "561:6:6" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "629:35:6", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "649:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "660:2:6", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "645:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "645:18:6" | |
} | |
], | |
"functionName": { | |
"name": "mload", | |
"nodeType": "YulIdentifier", | |
"src": "639:5:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "639:25:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value2", | |
"nodeType": "YulIdentifier", | |
"src": "629:6:6" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "673:35:6", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "693:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "704:2:6", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "689:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "689:18:6" | |
} | |
], | |
"functionName": { | |
"name": "mload", | |
"nodeType": "YulIdentifier", | |
"src": "683:5:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "683:25:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value3", | |
"nodeType": "YulIdentifier", | |
"src": "673:6:6" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "717:36:6", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "737:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "748:3:6", | |
"type": "", | |
"value": "128" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "733:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "733:19:6" | |
} | |
], | |
"functionName": { | |
"name": "mload", | |
"nodeType": "YulIdentifier", | |
"src": "727:5:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "727:26:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value4", | |
"nodeType": "YulIdentifier", | |
"src": "717:6:6" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "762:36:6", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "782:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "793:3:6", | |
"type": "", | |
"value": "160" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "778:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "778:19:6" | |
} | |
], | |
"functionName": { | |
"name": "mload", | |
"nodeType": "YulIdentifier", | |
"src": "772:5:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "772:26:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value5", | |
"nodeType": "YulIdentifier", | |
"src": "762:6:6" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "807:36:6", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "827:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "838:3:6", | |
"type": "", | |
"value": "192" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "823:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "823:19:6" | |
} | |
], | |
"functionName": { | |
"name": "mload", | |
"nodeType": "YulIdentifier", | |
"src": "817:5:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "817:26:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value6", | |
"nodeType": "YulIdentifier", | |
"src": "807:6:6" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "852:36:6", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "872:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "883:3:6", | |
"type": "", | |
"value": "224" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "868:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "868:19:6" | |
} | |
], | |
"functionName": { | |
"name": "mload", | |
"nodeType": "YulIdentifier", | |
"src": "862:5:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "862:26:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value7", | |
"nodeType": "YulIdentifier", | |
"src": "852:6:6" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "897:60:6", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "941:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "952:3:6", | |
"type": "", | |
"value": "256" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "937:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "937:19:6" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_address_fromMemory", | |
"nodeType": "YulIdentifier", | |
"src": "907:29:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "907:50:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value8", | |
"nodeType": "YulIdentifier", | |
"src": "897:6:6" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "966:60:6", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "1010:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1021:3:6", | |
"type": "", | |
"value": "288" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "1006:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1006:19:6" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_address_fromMemory", | |
"nodeType": "YulIdentifier", | |
"src": "976:29:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "976:50:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value9", | |
"nodeType": "YulIdentifier", | |
"src": "966:6:6" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_decode_tuple_t_addresst_addresst_uint256t_uint256t_uint256t_uint256t_uint256t_uint256t_addresst_address_fromMemory", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "324:9:6", | |
"type": "" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulTypedName", | |
"src": "335:7:6", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulTypedName", | |
"src": "347:6:6", | |
"type": "" | |
}, | |
{ | |
"name": "value1", | |
"nodeType": "YulTypedName", | |
"src": "355:6:6", | |
"type": "" | |
}, | |
{ | |
"name": "value2", | |
"nodeType": "YulTypedName", | |
"src": "363:6:6", | |
"type": "" | |
}, | |
{ | |
"name": "value3", | |
"nodeType": "YulTypedName", | |
"src": "371:6:6", | |
"type": "" | |
}, | |
{ | |
"name": "value4", | |
"nodeType": "YulTypedName", | |
"src": "379:6:6", | |
"type": "" | |
}, | |
{ | |
"name": "value5", | |
"nodeType": "YulTypedName", | |
"src": "387:6:6", | |
"type": "" | |
}, | |
{ | |
"name": "value6", | |
"nodeType": "YulTypedName", | |
"src": "395:6:6", | |
"type": "" | |
}, | |
{ | |
"name": "value7", | |
"nodeType": "YulTypedName", | |
"src": "403:6:6", | |
"type": "" | |
}, | |
{ | |
"name": "value8", | |
"nodeType": "YulTypedName", | |
"src": "411:6:6", | |
"type": "" | |
}, | |
{ | |
"name": "value9", | |
"nodeType": "YulTypedName", | |
"src": "419:6:6", | |
"type": "" | |
} | |
], | |
"src": "196:836:6" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "1138:102:6", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "1148:26:6", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "1160:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1171:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "1156:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1156:18:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "1148:4:6" | |
} | |
] | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "1190:9:6" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulIdentifier", | |
"src": "1205:6:6" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1221:3:6", | |
"type": "", | |
"value": "160" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1226:1:6", | |
"type": "", | |
"value": "1" | |
} | |
], | |
"functionName": { | |
"name": "shl", | |
"nodeType": "YulIdentifier", | |
"src": "1217:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1217:11:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1230:1:6", | |
"type": "", | |
"value": "1" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "1213:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1213:19:6" | |
} | |
], | |
"functionName": { | |
"name": "and", | |
"nodeType": "YulIdentifier", | |
"src": "1201:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1201:32:6" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "1183:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1183:51:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "1183:51:6" | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_address__to_t_address__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "1107:9:6", | |
"type": "" | |
}, | |
{ | |
"name": "value0", | |
"nodeType": "YulTypedName", | |
"src": "1118:6:6", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "1129:4:6", | |
"type": "" | |
} | |
], | |
"src": "1037:203:6" | |
} | |
] | |
}, | |
"contents": "{\n { }\n function abi_decode_address_fromMemory(offset) -> value\n {\n value := mload(offset)\n if iszero(eq(value, and(value, sub(shl(160, 1), 1)))) { revert(0, 0) }\n }\n function abi_decode_tuple_t_addresst_addresst_uint256t_uint256t_uint256t_uint256t_uint256t_uint256t_addresst_address_fromMemory(headStart, dataEnd) -> value0, value1, value2, value3, value4, value5, value6, value7, value8, value9\n {\n if slt(sub(dataEnd, headStart), 320) { revert(0, 0) }\n value0 := abi_decode_address_fromMemory(headStart)\n value1 := abi_decode_address_fromMemory(add(headStart, 32))\n value2 := mload(add(headStart, 64))\n value3 := mload(add(headStart, 96))\n value4 := mload(add(headStart, 128))\n value5 := mload(add(headStart, 160))\n value6 := mload(add(headStart, 192))\n value7 := mload(add(headStart, 224))\n value8 := abi_decode_address_fromMemory(add(headStart, 256))\n value9 := abi_decode_address_fromMemory(add(headStart, 288))\n }\n function abi_encode_tuple_t_address__to_t_address__fromStack_reversed(headStart, value0) -> tail\n {\n tail := add(headStart, 32)\n mstore(headStart, and(value0, sub(shl(160, 1), 1)))\n }\n}", | |
"id": 6, | |
"language": "Yul", | |
"name": "#utility.yul" | |
} | |
], | |
"linkReferences": {}, | |
"object": "60806040523480156200001157600080fd5b506040516200130b3803806200130b833981016040819052620000349162000152565b816001600160a01b0381166200006457604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b6200006f81620000e5565b5060018055600280546001600160a01b039b8c166001600160a01b031991821617909155600380549a8c169a82169a909a17909955600697909755600795909555600893909355600991909155600455600555600a8054918516918416919091179055600c8054919093169116179055620001eb565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200014d57600080fd5b919050565b6000806000806000806000806000806101408b8d0312156200017357600080fd5b6200017e8b62000135565b99506200018e60208c0162000135565b985060408b0151975060608b0151965060808b0151955060a08b0151945060c08b0151935060e08b01519250620001c96101008c0162000135565b9150620001da6101208c0162000135565b90509295989b9194979a5092959850565b61111080620001fb6000396000f3fe60806040526004361061016a5760003560e01c8063a98ad46c116100d1578063ddd5fe721161008a578063eb91d37e11610064578063eb91d37e146103e2578063f2fde38b146103f7578063fd7de33b14610417578063ff57d8731461043757600080fd5b8063ddd5fe7214610391578063e497fca6146103a7578063e68c9e89146103c757600080fd5b8063a98ad46c1461030d578063bc2955151461032d578063c10b935814610343578063c317273714610359578063cda9442c1461036e578063d09d4abd1461037657600080fd5b8063741bef1a11610123578063741bef1a1461026e578063810074c61461028e57806386dca336146102a35780638da5cb5b146102b9578063a3005f8a146102d7578063a7c60160146102ed57600080fd5b8063362e496b1461017e5780634ba0a5ee146101935780635ee36f74146101d857806366d003ac146102015780636a0160f514610239578063715018a61461025957600080fd5b366101795761017761044d565b005b600080fd5b34801561018a57600080fd5b506101776106b7565b34801561019f57600080fd5b506101c36101ae366004610f61565b600b6020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b3480156101e457600080fd5b506101f3660e35fa931a000081565b6040519081526020016101cf565b34801561020d57600080fd5b50600a54610221906001600160a01b031681565b6040516001600160a01b0390911681526020016101cf565b34801561024557600080fd5b50610177610254366004610f83565b61083d565b34801561026557600080fd5b50610177610850565b34801561027a57600080fd5b50600c54610221906001600160a01b031681565b34801561029a57600080fd5b50610177610862565b3480156102af57600080fd5b506101f360085481565b3480156102c557600080fd5b506000546001600160a01b0316610221565b3480156102e357600080fd5b506101f360055481565b3480156102f957600080fd5b50610177610308366004610fa5565b6108e0565b34801561031957600080fd5b50600354610221906001600160a01b031681565b34801561033957600080fd5b506101f360045481565b34801561034f57600080fd5b506101f360095481565b34801561036557600080fd5b506101f3610bcc565b61017761044d565b34801561038257600080fd5b506101f366071afd498d000081565b34801561039d57600080fd5b506101f360065481565b3480156103b357600080fd5b506101776103c2366004610fbe565b610c51565b3480156103d357600080fd5b506101f3661550f7dca7000081565b3480156103ee57600080fd5b506101f3610d88565b34801561040357600080fd5b50610177610412366004610f61565b610e34565b34801561042357600080fd5b50600254610221906001600160a01b031681565b34801561044357600080fd5b506101f360075481565b610455610e6f565b600654421015801561046957506009544211155b6104ad5760405162461bcd60e51b815260206004820152601060248201526f50726573616c6520696e61637469766560801b60448201526064015b60405180910390fd5b6005543410156104f85760405162461bcd60e51b815260206004820152601660248201527510995b1bddc81b5a5b881350551250c8185b5bdd5b9d60521b60448201526064016104a4565b6000610502610bcc565b905060006305f5e1006105158334610fe8565b61051f9190611013565b9050600061052b610d88565b61053d83670de0b6b3a7640000610fe8565b6105479190611013565b6002546040516370a0823160e01b815230600482015291925082916001600160a01b03909116906370a0823190602401602060405180830381865afa158015610594573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b89190611035565b10156105f95760405162461bcd60e51b815260206004820152601060248201526f496e73756666696369656e7420534d3960801b60448201526064016104a4565b60025460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb906044016020604051808303816000875af115801561064a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061066e919061104e565b6106a95760405162461bcd60e51b815260206004820152600c60248201526b151bdad95b8819985a5b195960a21b60448201526064016104a4565b5050506106b560018055565b565b6106bf610ec8565b6003546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610708573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061072c9190611035565b9050600081116107685760405162461bcd60e51b8152602060048201526007602482015266139bc81554d11560ca1b60448201526064016104a4565b6003546001600160a01b031663a9059cbb61078b6000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af11580156107d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107fc919061104e565b61083a5760405162461bcd60e51b815260206004820152600f60248201526e15da5d1a191c985dc819985a5b1959608a1b60448201526064016104a4565b50565b610845610ec8565b600491909155600555565b610858610ec8565b6106b56000610ef5565b61086a610ec8565b47806108a35760405162461bcd60e51b81526020600482015260086024820152674e6f204d4154494360c01b60448201526064016104a4565b600080546040516001600160a01b039091169183156108fc02918491818181858888f193505050501580156108dc573d6000803e3d6000fd5b5050565b6108e8610e6f565b60065442101580156108fc57506009544211155b61093b5760405162461bcd60e51b815260206004820152601060248201526f50726573616c6520696e61637469766560801b60448201526064016104a4565b6004548110156109855760405162461bcd60e51b815260206004820152601560248201527410995b1bddc81b5a5b881554d11508185b5bdd5b9d605a1b60448201526064016104a4565b600061098f610d88565b6109a183670de0b6b3a7640000610fe8565b6109ab9190611013565b6002546040516370a0823160e01b815230600482015291925082916001600160a01b03909116906370a0823190602401602060405180830381865afa1580156109f8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a1c9190611035565b1015610a5d5760405162461bcd60e51b815260206004820152601060248201526f496e73756666696369656e7420534d3960801b60448201526064016104a4565b6003546040516323b872dd60e01b8152336004820152306024820152604481018490526001600160a01b03909116906323b872dd906064016020604051808303816000875af1158015610ab4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad8919061104e565b610b125760405162461bcd60e51b815260206004820152600b60248201526a1554d1150819985a5b195960aa1b60448201526064016104a4565b60025460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb906044016020604051808303816000875af1158015610b63573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b87919061104e565b610bc25760405162461bcd60e51b815260206004820152600c60248201526b151bdad95b8819985a5b195960a21b60448201526064016104a4565b5061083a60018055565b600080600c60009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015610c22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c46919061108a565b509195945050505050565b610c59610ec8565b6001600160a01b0382166000908152600b602052604090205460ff1615610cb55760405162461bcd60e51b815260206004820152601060248201526f105b1c9958591e481b5a59dc985d195960821b60448201526064016104a4565b6001600160a01b038281166000818152600b602052604090819020805460ff19166001179055600254905163a9059cbb60e01b81526004810192909252602482018490529091169063a9059cbb906044016020604051808303816000875af1158015610d25573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d49919061104e565b6108dc5760405162461bcd60e51b815260206004820152601060248201526f135a59dc985d1a5bdb8819985a5b195960821b60448201526064016104a4565b60006006544210158015610d9d575060075442105b15610dae575066071afd498d000090565b6007544210158015610dc1575060085442105b15610dd25750660e35fa931a000090565b6008544210158015610de657506009544211155b15610df75750661550f7dca7000090565b60405162461bcd60e51b815260206004820152601260248201527150726573616c65206e6f742061637469766560701b60448201526064016104a4565b610e3c610ec8565b6001600160a01b038116610e6657604051631e4fbdf760e01b8152600060048201526024016104a4565b61083a81610ef5565b600260015403610ec15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104a4565b6002600155565b6000546001600160a01b031633146106b55760405163118cdaa760e01b81523360048201526024016104a4565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b0381168114610f5c57600080fd5b919050565b600060208284031215610f7357600080fd5b610f7c82610f45565b9392505050565b60008060408385031215610f9657600080fd5b50508035926020909101359150565b600060208284031215610fb757600080fd5b5035919050565b60008060408385031215610fd157600080fd5b610fda83610f45565b946020939093013593505050565b808202811582820484141761100d57634e487b7160e01b600052601160045260246000fd5b92915050565b60008261103057634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561104757600080fd5b5051919050565b60006020828403121561106057600080fd5b81518015158114610f7c57600080fd5b805169ffffffffffffffffffff81168114610f5c57600080fd5b600080600080600060a086880312156110a257600080fd5b6110ab86611070565b94506020860151935060408601519250606086015191506110ce60808701611070565b9050929550929590935056fea26469706673582212205ed59bfe42e1c12b75199101d821dd1929c5c3da4cb47dd35b7877a72cfb39a864736f6c63430008140033", | |
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH3 0x11 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD PUSH3 0x130B CODESIZE SUB DUP1 PUSH3 0x130B DUP4 CODECOPY DUP2 ADD PUSH1 0x40 DUP2 SWAP1 MSTORE PUSH3 0x34 SWAP2 PUSH3 0x152 JUMP JUMPDEST DUP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH3 0x64 JUMPI PUSH1 0x40 MLOAD PUSH4 0x1E4FBDF7 PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x0 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x24 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH3 0x6F DUP2 PUSH3 0xE5 JUMP JUMPDEST POP PUSH1 0x1 DUP1 SSTORE PUSH1 0x2 DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP12 DUP13 AND PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT SWAP2 DUP3 AND OR SWAP1 SWAP2 SSTORE PUSH1 0x3 DUP1 SLOAD SWAP11 DUP13 AND SWAP11 DUP3 AND SWAP11 SWAP1 SWAP11 OR SWAP1 SWAP10 SSTORE PUSH1 0x6 SWAP8 SWAP1 SWAP8 SSTORE PUSH1 0x7 SWAP6 SWAP1 SWAP6 SSTORE PUSH1 0x8 SWAP4 SWAP1 SWAP4 SSTORE PUSH1 0x9 SWAP2 SWAP1 SWAP2 SSTORE PUSH1 0x4 SSTORE PUSH1 0x5 SSTORE PUSH1 0xA DUP1 SLOAD SWAP2 DUP6 AND SWAP2 DUP5 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE PUSH1 0xC DUP1 SLOAD SWAP2 SWAP1 SWAP4 AND SWAP2 AND OR SWAP1 SSTORE PUSH3 0x1EB JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 DUP2 AND PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT DUP4 AND DUP2 OR DUP5 SSTORE PUSH1 0x40 MLOAD SWAP2 SWAP1 SWAP3 AND SWAP3 DUP4 SWAP2 PUSH32 0x8BE0079C531659141344CD1FD0A4F28419497F9722A3DAAFE3B4186F6B6457E0 SWAP2 SWAP1 LOG3 POP POP JUMP JUMPDEST DUP1 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND DUP2 EQ PUSH3 0x14D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH2 0x140 DUP12 DUP14 SUB SLT ISZERO PUSH3 0x173 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH3 0x17E DUP12 PUSH3 0x135 JUMP JUMPDEST SWAP10 POP PUSH3 0x18E PUSH1 0x20 DUP13 ADD PUSH3 0x135 JUMP JUMPDEST SWAP9 POP PUSH1 0x40 DUP12 ADD MLOAD SWAP8 POP PUSH1 0x60 DUP12 ADD MLOAD SWAP7 POP PUSH1 0x80 DUP12 ADD MLOAD SWAP6 POP PUSH1 0xA0 DUP12 ADD MLOAD SWAP5 POP PUSH1 0xC0 DUP12 ADD MLOAD SWAP4 POP PUSH1 0xE0 DUP12 ADD MLOAD SWAP3 POP PUSH3 0x1C9 PUSH2 0x100 DUP13 ADD PUSH3 0x135 JUMP JUMPDEST SWAP2 POP PUSH3 0x1DA PUSH2 0x120 DUP13 ADD PUSH3 0x135 JUMP JUMPDEST SWAP1 POP SWAP3 SWAP6 SWAP9 SWAP12 SWAP2 SWAP5 SWAP8 SWAP11 POP SWAP3 SWAP6 SWAP9 POP JUMP JUMPDEST PUSH2 0x1110 DUP1 PUSH3 0x1FB PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT PUSH2 0x16A JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0xA98AD46C GT PUSH2 0xD1 JUMPI DUP1 PUSH4 0xDDD5FE72 GT PUSH2 0x8A JUMPI DUP1 PUSH4 0xEB91D37E GT PUSH2 0x64 JUMPI DUP1 PUSH4 0xEB91D37E EQ PUSH2 0x3E2 JUMPI DUP1 PUSH4 0xF2FDE38B EQ PUSH2 0x3F7 JUMPI DUP1 PUSH4 0xFD7DE33B EQ PUSH2 0x417 JUMPI DUP1 PUSH4 0xFF57D873 EQ PUSH2 0x437 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0xDDD5FE72 EQ PUSH2 0x391 JUMPI DUP1 PUSH4 0xE497FCA6 EQ PUSH2 0x3A7 JUMPI DUP1 PUSH4 0xE68C9E89 EQ PUSH2 0x3C7 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0xA98AD46C EQ PUSH2 0x30D JUMPI DUP1 PUSH4 0xBC295515 EQ PUSH2 0x32D JUMPI DUP1 PUSH4 0xC10B9358 EQ PUSH2 0x343 JUMPI DUP1 PUSH4 0xC3172737 EQ PUSH2 0x359 JUMPI DUP1 PUSH4 0xCDA9442C EQ PUSH2 0x36E JUMPI DUP1 PUSH4 0xD09D4ABD EQ PUSH2 0x376 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x741BEF1A GT PUSH2 0x123 JUMPI DUP1 PUSH4 0x741BEF1A EQ PUSH2 0x26E JUMPI DUP1 PUSH4 0x810074C6 EQ PUSH2 0x28E JUMPI DUP1 PUSH4 0x86DCA336 EQ PUSH2 0x2A3 JUMPI DUP1 PUSH4 0x8DA5CB5B EQ PUSH2 0x2B9 JUMPI DUP1 PUSH4 0xA3005F8A EQ PUSH2 0x2D7 JUMPI DUP1 PUSH4 0xA7C60160 EQ PUSH2 0x2ED JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x362E496B EQ PUSH2 0x17E JUMPI DUP1 PUSH4 0x4BA0A5EE EQ PUSH2 0x193 JUMPI DUP1 PUSH4 0x5EE36F74 EQ PUSH2 0x1D8 JUMPI DUP1 PUSH4 0x66D003AC EQ PUSH2 0x201 JUMPI DUP1 PUSH4 0x6A0160F5 EQ PUSH2 0x239 JUMPI DUP1 PUSH4 0x715018A6 EQ PUSH2 0x259 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST CALLDATASIZE PUSH2 0x179 JUMPI PUSH2 0x177 PUSH2 0x44D JUMP JUMPDEST STOP JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x18A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x177 PUSH2 0x6B7 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x19F JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x1C3 PUSH2 0x1AE CALLDATASIZE PUSH1 0x4 PUSH2 0xF61 JUMP JUMPDEST PUSH1 0xB PUSH1 0x20 MSTORE PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0xFF AND DUP2 JUMP JUMPDEST PUSH1 0x40 MLOAD SWAP1 ISZERO ISZERO DUP2 MSTORE PUSH1 0x20 ADD JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x1E4 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x1F3 PUSH7 0xE35FA931A0000 DUP2 JUMP JUMPDEST PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x1CF JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x20D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0xA SLOAD PUSH2 0x221 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x1CF JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x245 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x177 PUSH2 0x254 CALLDATASIZE PUSH1 0x4 PUSH2 0xF83 JUMP JUMPDEST PUSH2 0x83D JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x265 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x177 PUSH2 0x850 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x27A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0xC SLOAD PUSH2 0x221 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x29A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x177 PUSH2 0x862 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x2AF JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x1F3 PUSH1 0x8 SLOAD DUP2 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x2C5 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x0 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x221 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x2E3 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x1F3 PUSH1 0x5 SLOAD DUP2 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x2F9 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x177 PUSH2 0x308 CALLDATASIZE PUSH1 0x4 PUSH2 0xFA5 JUMP JUMPDEST PUSH2 0x8E0 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x319 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x3 SLOAD PUSH2 0x221 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x339 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x1F3 PUSH1 0x4 SLOAD DUP2 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x34F JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x1F3 PUSH1 0x9 SLOAD DUP2 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x365 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x1F3 PUSH2 0xBCC JUMP JUMPDEST PUSH2 0x177 PUSH2 0x44D JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x382 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x1F3 PUSH7 0x71AFD498D0000 DUP2 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x39D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x1F3 PUSH1 0x6 SLOAD DUP2 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x3B3 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x177 PUSH2 0x3C2 CALLDATASIZE PUSH1 0x4 PUSH2 0xFBE JUMP JUMPDEST PUSH2 0xC51 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x3D3 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x1F3 PUSH7 0x1550F7DCA70000 DUP2 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x3EE JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x1F3 PUSH2 0xD88 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x403 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x177 PUSH2 0x412 CALLDATASIZE PUSH1 0x4 PUSH2 0xF61 JUMP JUMPDEST PUSH2 0xE34 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x423 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x2 SLOAD PUSH2 0x221 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x443 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x1F3 PUSH1 0x7 SLOAD DUP2 JUMP JUMPDEST PUSH2 0x455 PUSH2 0xE6F JUMP JUMPDEST PUSH1 0x6 SLOAD TIMESTAMP LT ISZERO DUP1 ISZERO PUSH2 0x469 JUMPI POP PUSH1 0x9 SLOAD TIMESTAMP GT ISZERO JUMPDEST PUSH2 0x4AD JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x10 PUSH1 0x24 DUP3 ADD MSTORE PUSH16 0x50726573616C6520696E616374697665 PUSH1 0x80 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH1 0x5 SLOAD CALLVALUE LT ISZERO PUSH2 0x4F8 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x16 PUSH1 0x24 DUP3 ADD MSTORE PUSH22 0x10995B1BDDC81B5A5B881350551250C8185B5BDD5B9D PUSH1 0x52 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x4A4 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x502 PUSH2 0xBCC JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH4 0x5F5E100 PUSH2 0x515 DUP4 CALLVALUE PUSH2 0xFE8 JUMP JUMPDEST PUSH2 0x51F SWAP2 SWAP1 PUSH2 0x1013 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x52B PUSH2 0xD88 JUMP JUMPDEST PUSH2 0x53D DUP4 PUSH8 0xDE0B6B3A7640000 PUSH2 0xFE8 JUMP JUMPDEST PUSH2 0x547 SWAP2 SWAP1 PUSH2 0x1013 JUMP JUMPDEST PUSH1 0x2 SLOAD PUSH1 0x40 MLOAD PUSH4 0x70A08231 PUSH1 0xE0 SHL DUP2 MSTORE ADDRESS PUSH1 0x4 DUP3 ADD MSTORE SWAP2 SWAP3 POP DUP3 SWAP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP2 AND SWAP1 PUSH4 0x70A08231 SWAP1 PUSH1 0x24 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x594 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0x5B8 SWAP2 SWAP1 PUSH2 0x1035 JUMP JUMPDEST LT ISZERO PUSH2 0x5F9 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x10 PUSH1 0x24 DUP3 ADD MSTORE PUSH16 0x496E73756666696369656E7420534D39 PUSH1 0x80 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x4A4 JUMP JUMPDEST PUSH1 0x2 SLOAD PUSH1 0x40 MLOAD PUSH4 0xA9059CBB PUSH1 0xE0 SHL DUP2 MSTORE CALLER PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x24 DUP2 ADD DUP4 SWAP1 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP2 AND SWAP1 PUSH4 0xA9059CBB SWAP1 PUSH1 0x44 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 GAS CALL ISZERO DUP1 ISZERO PUSH2 0x64A JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0x66E SWAP2 SWAP1 PUSH2 0x104E JUMP JUMPDEST PUSH2 0x6A9 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0xC PUSH1 0x24 DUP3 ADD MSTORE PUSH12 0x151BDAD95B8819985A5B1959 PUSH1 0xA2 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x4A4 JUMP JUMPDEST POP POP POP PUSH2 0x6B5 PUSH1 0x1 DUP1 SSTORE JUMP JUMPDEST JUMP JUMPDEST PUSH2 0x6BF PUSH2 0xEC8 JUMP JUMPDEST PUSH1 0x3 SLOAD PUSH1 0x40 MLOAD PUSH4 0x70A08231 PUSH1 0xE0 SHL DUP2 MSTORE ADDRESS PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x0 SWAP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND SWAP1 PUSH4 0x70A08231 SWAP1 PUSH1 0x24 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x708 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0x72C SWAP2 SWAP1 PUSH2 0x1035 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 DUP2 GT PUSH2 0x768 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x7 PUSH1 0x24 DUP3 ADD MSTORE PUSH7 0x139BC81554D115 PUSH1 0xCA SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x4A4 JUMP JUMPDEST PUSH1 0x3 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0xA9059CBB PUSH2 0x78B PUSH1 0x0 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND SWAP1 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT PUSH1 0xE0 DUP5 SWAP1 SHL AND DUP2 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP2 AND PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x24 DUP2 ADD DUP5 SWAP1 MSTORE PUSH1 0x44 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 GAS CALL ISZERO DUP1 ISZERO PUSH2 0x7D8 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0x7FC SWAP2 SWAP1 PUSH2 0x104E JUMP JUMPDEST PUSH2 0x83A JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0xF PUSH1 0x24 DUP3 ADD MSTORE PUSH15 0x15DA5D1A191C985DC819985A5B1959 PUSH1 0x8A SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x4A4 JUMP JUMPDEST POP JUMP JUMPDEST PUSH2 0x845 PUSH2 0xEC8 JUMP JUMPDEST PUSH1 0x4 SWAP2 SWAP1 SWAP2 SSTORE PUSH1 0x5 SSTORE JUMP JUMPDEST PUSH2 0x858 PUSH2 0xEC8 JUMP JUMPDEST PUSH2 0x6B5 PUSH1 0x0 PUSH2 0xEF5 JUMP JUMPDEST PUSH2 0x86A PUSH2 0xEC8 JUMP JUMPDEST SELFBALANCE DUP1 PUSH2 0x8A3 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x8 PUSH1 0x24 DUP3 ADD MSTORE PUSH8 0x4E6F204D41544943 PUSH1 0xC0 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x4A4 JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD PUSH1 0x40 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP2 AND SWAP2 DUP4 ISZERO PUSH2 0x8FC MUL SWAP2 DUP5 SWAP2 DUP2 DUP2 DUP2 DUP6 DUP9 DUP9 CALL SWAP4 POP POP POP POP ISZERO DUP1 ISZERO PUSH2 0x8DC JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP JUMP JUMPDEST PUSH2 0x8E8 PUSH2 0xE6F JUMP JUMPDEST PUSH1 0x6 SLOAD TIMESTAMP LT ISZERO DUP1 ISZERO PUSH2 0x8FC JUMPI POP PUSH1 0x9 SLOAD TIMESTAMP GT ISZERO JUMPDEST PUSH2 0x93B JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x10 PUSH1 0x24 DUP3 ADD MSTORE PUSH16 0x50726573616C6520696E616374697665 PUSH1 0x80 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x4A4 JUMP JUMPDEST PUSH1 0x4 SLOAD DUP2 LT ISZERO PUSH2 0x985 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x15 PUSH1 0x24 DUP3 ADD MSTORE PUSH21 0x10995B1BDDC81B5A5B881554D11508185B5BDD5B9D PUSH1 0x5A SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x4A4 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x98F PUSH2 0xD88 JUMP JUMPDEST PUSH2 0x9A1 DUP4 PUSH8 0xDE0B6B3A7640000 PUSH2 0xFE8 JUMP JUMPDEST PUSH2 0x9AB SWAP2 SWAP1 PUSH2 0x1013 JUMP JUMPDEST PUSH1 0x2 SLOAD PUSH1 0x40 MLOAD PUSH4 0x70A08231 PUSH1 0xE0 SHL DUP2 MSTORE ADDRESS PUSH1 0x4 DUP3 ADD MSTORE SWAP2 SWAP3 POP DUP3 SWAP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP2 AND SWAP1 PUSH4 0x70A08231 SWAP1 PUSH1 0x24 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x9F8 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0xA1C SWAP2 SWAP1 PUSH2 0x1035 JUMP JUMPDEST LT ISZERO PUSH2 0xA5D JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x10 PUSH1 0x24 DUP3 ADD MSTORE PUSH16 0x496E73756666696369656E7420534D39 PUSH1 0x80 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x4A4 JUMP JUMPDEST PUSH1 0x3 SLOAD PUSH1 0x40 MLOAD PUSH4 0x23B872DD PUSH1 0xE0 SHL DUP2 MSTORE CALLER PUSH1 0x4 DUP3 ADD MSTORE ADDRESS PUSH1 0x24 DUP3 ADD MSTORE PUSH1 0x44 DUP2 ADD DUP5 SWAP1 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP2 AND SWAP1 PUSH4 0x23B872DD SWAP1 PUSH1 0x64 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 GAS CALL ISZERO DUP1 ISZERO PUSH2 0xAB4 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0xAD8 SWAP2 SWAP1 PUSH2 0x104E JUMP JUMPDEST PUSH2 0xB12 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0xB PUSH1 0x24 DUP3 ADD MSTORE PUSH11 0x1554D1150819985A5B1959 PUSH1 0xAA SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x4A4 JUMP JUMPDEST PUSH1 0x2 SLOAD PUSH1 0x40 MLOAD PUSH4 0xA9059CBB PUSH1 0xE0 SHL DUP2 MSTORE CALLER PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x24 DUP2 ADD DUP4 SWAP1 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP2 AND SWAP1 PUSH4 0xA9059CBB SWAP1 PUSH1 0x44 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 GAS CALL ISZERO DUP1 ISZERO PUSH2 0xB63 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0xB87 SWAP2 SWAP1 PUSH2 0x104E JUMP JUMPDEST PUSH2 0xBC2 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0xC PUSH1 0x24 DUP3 ADD MSTORE PUSH12 0x151BDAD95B8819985A5B1959 PUSH1 0xA2 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x4A4 JUMP JUMPDEST POP PUSH2 0x83A PUSH1 0x1 DUP1 SSTORE JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0xC PUSH1 0x0 SWAP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0xFEAF968C PUSH1 0x40 MLOAD DUP2 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0xA0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0xC22 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0xC46 SWAP2 SWAP1 PUSH2 0x108A JUMP JUMPDEST POP SWAP2 SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH2 0xC59 PUSH2 0xEC8 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0xB PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0xFF AND ISZERO PUSH2 0xCB5 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x10 PUSH1 0x24 DUP3 ADD MSTORE PUSH16 0x105B1C9958591E481B5A59DC985D1959 PUSH1 0x82 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x4A4 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 DUP2 AND PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0xB PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 DUP2 SWAP1 KECCAK256 DUP1 SLOAD PUSH1 0xFF NOT AND PUSH1 0x1 OR SWAP1 SSTORE PUSH1 0x2 SLOAD SWAP1 MLOAD PUSH4 0xA9059CBB PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 DUP2 ADD SWAP3 SWAP1 SWAP3 MSTORE PUSH1 0x24 DUP3 ADD DUP5 SWAP1 MSTORE SWAP1 SWAP2 AND SWAP1 PUSH4 0xA9059CBB SWAP1 PUSH1 0x44 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 GAS CALL ISZERO DUP1 ISZERO PUSH2 0xD25 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0xD49 SWAP2 SWAP1 PUSH2 0x104E JUMP JUMPDEST PUSH2 0x8DC JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x10 PUSH1 0x24 DUP3 ADD MSTORE PUSH16 0x135A59DC985D1A5BDB8819985A5B1959 PUSH1 0x82 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x4A4 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x6 SLOAD TIMESTAMP LT ISZERO DUP1 ISZERO PUSH2 0xD9D JUMPI POP PUSH1 0x7 SLOAD TIMESTAMP LT JUMPDEST ISZERO PUSH2 0xDAE JUMPI POP PUSH7 0x71AFD498D0000 SWAP1 JUMP JUMPDEST PUSH1 0x7 SLOAD TIMESTAMP LT ISZERO DUP1 ISZERO PUSH2 0xDC1 JUMPI POP PUSH1 0x8 SLOAD TIMESTAMP LT JUMPDEST ISZERO PUSH2 0xDD2 JUMPI POP PUSH7 0xE35FA931A0000 SWAP1 JUMP JUMPDEST PUSH1 0x8 SLOAD TIMESTAMP LT ISZERO DUP1 ISZERO PUSH2 0xDE6 JUMPI POP PUSH1 0x9 SLOAD TIMESTAMP GT ISZERO JUMPDEST ISZERO PUSH2 0xDF7 JUMPI POP PUSH7 0x1550F7DCA70000 SWAP1 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x12 PUSH1 0x24 DUP3 ADD MSTORE PUSH18 0x50726573616C65206E6F7420616374697665 PUSH1 0x70 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x4A4 JUMP JUMPDEST PUSH2 0xE3C PUSH2 0xEC8 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH2 0xE66 JUMPI PUSH1 0x40 MLOAD PUSH4 0x1E4FBDF7 PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x0 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x24 ADD PUSH2 0x4A4 JUMP JUMPDEST PUSH2 0x83A DUP2 PUSH2 0xEF5 JUMP JUMPDEST PUSH1 0x2 PUSH1 0x1 SLOAD SUB PUSH2 0xEC1 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x1F PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x5265656E7472616E637947756172643A207265656E7472616E742063616C6C00 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x4A4 JUMP JUMPDEST PUSH1 0x2 PUSH1 0x1 SSTORE JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND CALLER EQ PUSH2 0x6B5 JUMPI PUSH1 0x40 MLOAD PUSH4 0x118CDAA7 PUSH1 0xE0 SHL DUP2 MSTORE CALLER PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x24 ADD PUSH2 0x4A4 JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 DUP2 AND PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT DUP4 AND DUP2 OR DUP5 SSTORE PUSH1 0x40 MLOAD SWAP2 SWAP1 SWAP3 AND SWAP3 DUP4 SWAP2 PUSH32 0x8BE0079C531659141344CD1FD0A4F28419497F9722A3DAAFE3B4186F6B6457E0 SWAP2 SWAP1 LOG3 POP POP JUMP JUMPDEST DUP1 CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND DUP2 EQ PUSH2 0xF5C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0xF73 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0xF7C DUP3 PUSH2 0xF45 JUMP JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0xF96 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP POP DUP1 CALLDATALOAD SWAP3 PUSH1 0x20 SWAP1 SWAP2 ADD CALLDATALOAD SWAP2 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0xFB7 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP CALLDATALOAD SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0xFD1 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0xFDA DUP4 PUSH2 0xF45 JUMP JUMPDEST SWAP5 PUSH1 0x20 SWAP4 SWAP1 SWAP4 ADD CALLDATALOAD SWAP4 POP POP POP JUMP JUMPDEST DUP1 DUP3 MUL DUP2 ISZERO DUP3 DUP3 DIV DUP5 EQ OR PUSH2 0x100D JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH2 0x1030 JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x12 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST POP DIV SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x1047 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP MLOAD SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x1060 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 MLOAD DUP1 ISZERO ISZERO DUP2 EQ PUSH2 0xF7C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 MLOAD PUSH10 0xFFFFFFFFFFFFFFFFFFFF DUP2 AND DUP2 EQ PUSH2 0xF5C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0xA0 DUP7 DUP9 SUB SLT ISZERO PUSH2 0x10A2 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x10AB DUP7 PUSH2 0x1070 JUMP JUMPDEST SWAP5 POP PUSH1 0x20 DUP7 ADD MLOAD SWAP4 POP PUSH1 0x40 DUP7 ADD MLOAD SWAP3 POP PUSH1 0x60 DUP7 ADD MLOAD SWAP2 POP PUSH2 0x10CE PUSH1 0x80 DUP8 ADD PUSH2 0x1070 JUMP JUMPDEST SWAP1 POP SWAP3 SWAP6 POP SWAP3 SWAP6 SWAP1 SWAP4 POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0x5E 0xD5 SWAP12 INVALID TIMESTAMP 0xE1 0xC1 0x2B PUSH22 0x199101D821DD1929C5C3DA4CB47DD35B7877A72CFB39 0xA8 PUSH5 0x736F6C6343 STOP ADDMOD EQ STOP CALLER ", | |
"sourceMap": "317:4205:5:-:0;;;961:724;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1284:10;-1:-1:-1;;;;;1273:26:1;;1269:95;;1322:31;;-1:-1:-1;;;1322:31:1;;1350:1;1322:31;;;1183:51:6;1156:18;;1322:31:1;;;;;;;1269:95;1373:32;1392:12;1373:18;:32::i;:::-;-1:-1:-1;1716:1:2;1821:22;;1307:8:5::1;:28:::0;;-1:-1:-1;;;;;1307:28:5;;::::1;-1:-1:-1::0;;;;;;1307:28:5;;::::1;;::::0;;;1346:9:::1;:30:::0;;;;::::1;::::0;;::::1;::::0;;;::::1;::::0;;;1387:11:::1;:26:::0;;;;1424:11:::1;:26:::0;;;;1461:11:::1;:26:::0;;;;1498:7:::1;:18:::0;;;;1527:10:::1;:24:::0;-1:-1:-1;1562:26:5;1599:9:::1;:22:::0;;;;::::1;::::0;;::::1;::::0;;;::::1;::::0;;1632:9:::1;:45:::0;;;;;::::1;::::0;::::1;;::::0;;317:4205;;2912:187:1;2985:16;3004:6;;-1:-1:-1;;;;;3020:17:1;;;-1:-1:-1;;;;;;3020:17:1;;;;;;3052:40;;3004:6;;;;;;;3052:40;;2985:16;3052:40;2975:124;2912:187;:::o;14:177:6:-;93:13;;-1:-1:-1;;;;;135:31:6;;125:42;;115:70;;181:1;178;171:12;115:70;14:177;;;:::o;196:836::-;347:6;355;363;371;379;387;395;403;411;419;472:3;460:9;451:7;447:23;443:33;440:53;;;489:1;486;479:12;440:53;512:40;542:9;512:40;:::i;:::-;502:50;;571:49;616:2;605:9;601:18;571:49;:::i;:::-;561:59;;660:2;649:9;645:18;639:25;629:35;;704:2;693:9;689:18;683:25;673:35;;748:3;737:9;733:19;727:26;717:36;;793:3;782:9;778:19;772:26;762:36;;838:3;827:9;823:19;817:26;807:36;;883:3;872:9;868:19;862:26;852:36;;907:50;952:3;941:9;937:19;907:50;:::i;:::-;897:60;;976:50;1021:3;1010:9;1006:19;976:50;:::i;:::-;966:60;;196:836;;;;;;;;;;;;;:::o;1037:203::-;317:4205:5;;;;;;" | |
}, | |
"deployedBytecode": { | |
"functionDebugData": { | |
"@PHASE1_PRICE_407": { | |
"entryPoint": null, | |
"id": 407, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"@PHASE2_PRICE_414": { | |
"entryPoint": null, | |
"id": 414, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"@PHASE3_PRICE_421": { | |
"entryPoint": null, | |
"id": 421, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"@_721": { | |
"entryPoint": null, | |
"id": 721, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"@_checkOwner_130": { | |
"entryPoint": 3784, | |
"id": 130, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"@_msgSender_348": { | |
"entryPoint": null, | |
"id": 348, | |
"parameterSlots": 0, | |
"returnSlots": 1 | |
}, | |
"@_nonReentrantAfter_246": { | |
"entryPoint": null, | |
"id": 246, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"@_nonReentrantBefore_238": { | |
"entryPoint": 3695, | |
"id": 238, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"@_transferOwnership_192": { | |
"entryPoint": 3829, | |
"id": 192, | |
"parameterSlots": 1, | |
"returnSlots": 0 | |
}, | |
"@buyWithMatic_714": { | |
"entryPoint": 1101, | |
"id": 714, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"@buyWithUSDT_639": { | |
"entryPoint": 2272, | |
"id": 639, | |
"parameterSlots": 1, | |
"returnSlots": 0 | |
}, | |
"@getCurrentPrice_547": { | |
"entryPoint": 3464, | |
"id": 547, | |
"parameterSlots": 0, | |
"returnSlots": 1 | |
}, | |
"@getMaticPriceInUsd_564": { | |
"entryPoint": 3020, | |
"id": 564, | |
"parameterSlots": 0, | |
"returnSlots": 1 | |
}, | |
"@migrateUser_817": { | |
"entryPoint": 3153, | |
"id": 817, | |
"parameterSlots": 2, | |
"returnSlots": 0 | |
}, | |
"@migrated_400": { | |
"entryPoint": null, | |
"id": 400, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"@minBuyMatic_386": { | |
"entryPoint": null, | |
"id": 386, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"@minBuyUsdt_384": { | |
"entryPoint": null, | |
"id": 384, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"@owner_113": { | |
"entryPoint": null, | |
"id": 113, | |
"parameterSlots": 0, | |
"returnSlots": 1 | |
}, | |
"@phase1Start_388": { | |
"entryPoint": null, | |
"id": 388, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"@phase2Start_390": { | |
"entryPoint": null, | |
"id": 390, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"@phase3Start_392": { | |
"entryPoint": null, | |
"id": 392, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"@priceFeed_424": { | |
"entryPoint": null, | |
"id": 424, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"@recipient_396": { | |
"entryPoint": null, | |
"id": 396, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"@renounceOwnership_144": { | |
"entryPoint": 2128, | |
"id": 144, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"@saleEnd_394": { | |
"entryPoint": null, | |
"id": 394, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"@setMinBuyAmounts_835": { | |
"entryPoint": 2109, | |
"id": 835, | |
"parameterSlots": 2, | |
"returnSlots": 0 | |
}, | |
"@sm9Token_379": { | |
"entryPoint": null, | |
"id": 379, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"@transferOwnership_172": { | |
"entryPoint": 3636, | |
"id": 172, | |
"parameterSlots": 1, | |
"returnSlots": 0 | |
}, | |
"@usdtToken_382": { | |
"entryPoint": null, | |
"id": 382, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"@withdrawMatic_784": { | |
"entryPoint": 2146, | |
"id": 784, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"@withdrawUSDT_754": { | |
"entryPoint": 1719, | |
"id": 754, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"abi_decode_address": { | |
"entryPoint": 3909, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_decode_tuple_t_address": { | |
"entryPoint": 3937, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"abi_decode_tuple_t_addresst_uint256": { | |
"entryPoint": 4030, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 2 | |
}, | |
"abi_decode_tuple_t_bool_fromMemory": { | |
"entryPoint": 4174, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"abi_decode_tuple_t_uint256": { | |
"entryPoint": 4005, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"abi_decode_tuple_t_uint256_fromMemory": { | |
"entryPoint": 4149, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"abi_decode_tuple_t_uint256t_uint256": { | |
"entryPoint": 3971, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 2 | |
}, | |
"abi_decode_tuple_t_uint80t_int256t_uint256t_uint256t_uint80_fromMemory": { | |
"entryPoint": 4234, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 5 | |
}, | |
"abi_decode_uint80_fromMemory": { | |
"entryPoint": 4208, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_address__to_t_address__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_address_t_address_t_uint256__to_t_address_t_address_t_uint256__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 4, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_address_t_uint256__to_t_address_t_uint256__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 3, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_bool__to_t_bool__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_contract$_AggregatorV3Interface_$45__to_t_address__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_contract$_IERC20_$336__to_t_address__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_stringliteral_0e6fbb793fe76889de0122de056cea4808e203e02e8c25bd71af0868d2156a5c__to_t_string_memory_ptr__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_stringliteral_1cb2d31968ece1e6572f56b7076ee047a83f8fb9b5fb7b27c90de5728e8399e5__to_t_string_memory_ptr__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_stringliteral_2bbe70e6500e9642f2862dc923170a5f09b5a43a51b0f2c3488a318564bb6925__to_t_string_memory_ptr__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_stringliteral_3046da18323814338b17fe41abb0bbf23ad6e3aa98946fc254d6360361bd3281__to_t_string_memory_ptr__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_stringliteral_367a67e62d39129317db29652746d36e88e24f36aa7fb72c5f557a693a8245be__to_t_string_memory_ptr__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_stringliteral_4ae210a7f0ccf9a0d6c2d9f7a38120a6c20d1bea6b0c7f8e714732cf24add96e__to_t_string_memory_ptr__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_stringliteral_5f229293c33e01f57f1146ee2dd55f05cd246eab6f5a7cdb56d57cdfb918bbf1__to_t_string_memory_ptr__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_stringliteral_c286fae3d86ae27028536505e7e8ccee40ab33e2bcd73316c5c1afe2896efc7c__to_t_string_memory_ptr__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_stringliteral_c6551c82f1c4ee89ae7ef548b7aea9ad6a82a7dd2cd5c741efb37bb611c5afe8__to_t_string_memory_ptr__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_stringliteral_d2687d2fce7817d6cc57a8f60a6a3437122c96f931015181efae54b93f9d4897__to_t_string_memory_ptr__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_stringliteral_d5fca36f3766c605852762abb57702ea98ada3762f6ae6699617edb0ac274678__to_t_string_memory_ptr__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_stringliteral_e0dd85ff16168ba1badd5b30b5c4aa904759a33544a5ebd9fa4a509fe129d755__to_t_string_memory_ptr__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_stringliteral_ebf73bba305590e4764d5cb53b69bffd6d4d092d1a67551cb346f8cfcdab8619__to_t_string_memory_ptr__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"checked_div_t_uint256": { | |
"entryPoint": 4115, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"checked_mul_t_uint256": { | |
"entryPoint": 4072, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
} | |
}, | |
"generatedSources": [ | |
{ | |
"ast": { | |
"nodeType": "YulBlock", | |
"src": "0:8885:6", | |
"statements": [ | |
{ | |
"nodeType": "YulBlock", | |
"src": "6:3:6", | |
"statements": [] | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "63:124:6", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "73:29:6", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "95:6:6" | |
} | |
], | |
"functionName": { | |
"name": "calldataload", | |
"nodeType": "YulIdentifier", | |
"src": "82:12:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "82:20:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "73:5:6" | |
} | |
] | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "165:16:6", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "174:1:6", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "177:1:6", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "revert", | |
"nodeType": "YulIdentifier", | |
"src": "167:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "167:12:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "167:12:6" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "124:5:6" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "135:5:6" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "150:3:6", | |
"type": "", | |
"value": "160" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "155:1:6", | |
"type": "", | |
"value": "1" | |
} | |
], | |
"functionName": { | |
"name": "shl", | |
"nodeType": "YulIdentifier", | |
"src": "146:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "146:11:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "159:1:6", | |
"type": "", | |
"value": "1" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "142:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "142:19:6" | |
} | |
], | |
"functionName": { | |
"name": "and", | |
"nodeType": "YulIdentifier", | |
"src": "131:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "131:31:6" | |
} | |
], | |
"functionName": { | |
"name": "eq", | |
"nodeType": "YulIdentifier", | |
"src": "121:2:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "121:42:6" | |
} | |
], | |
"functionName": { | |
"name": "iszero", | |
"nodeType": "YulIdentifier", | |
"src": "114:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "114:50:6" | |
}, | |
"nodeType": "YulIf", | |
"src": "111:70:6" | |
} | |
] | |
}, | |
"name": "abi_decode_address", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulTypedName", | |
"src": "42:6:6", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "value", | |
"nodeType": "YulTypedName", | |
"src": "53:5:6", | |
"type": "" | |
} | |
], | |
"src": "14:173:6" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "262:116:6", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "308:16:6", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "317:1:6", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "320:1:6", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "revert", | |
"nodeType": "YulIdentifier", | |
"src": "310:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "310:12:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "310:12:6" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "283:7:6" | |
}, | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "292:9:6" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "279:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "279:23:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "304:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "slt", | |
"nodeType": "YulIdentifier", | |
"src": "275:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "275:32:6" | |
}, | |
"nodeType": "YulIf", | |
"src": "272:52:6" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "333:39:6", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "362:9:6" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_address", | |
"nodeType": "YulIdentifier", | |
"src": "343:18:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "343:29:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulIdentifier", | |
"src": "333:6:6" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_decode_tuple_t_address", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "228:9:6", | |
"type": "" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulTypedName", | |
"src": "239:7:6", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulTypedName", | |
"src": "251:6:6", | |
"type": "" | |
} | |
], | |
"src": "192:186:6" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "478:92:6", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "488:26:6", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "500:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "511:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "496:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "496:18:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "488:4:6" | |
} | |
] | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "530:9:6" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulIdentifier", | |
"src": "555:6:6" | |
} | |
], | |
"functionName": { | |
"name": "iszero", | |
"nodeType": "YulIdentifier", | |
"src": "548:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "548:14:6" | |
} | |
], | |
"functionName": { | |
"name": "iszero", | |
"nodeType": "YulIdentifier", | |
"src": "541:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "541:22:6" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "523:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "523:41:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "523:41:6" | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_bool__to_t_bool__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "447:9:6", | |
"type": "" | |
}, | |
{ | |
"name": "value0", | |
"nodeType": "YulTypedName", | |
"src": "458:6:6", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "469:4:6", | |
"type": "" | |
} | |
], | |
"src": "383:187:6" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "676:76:6", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "686:26:6", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "698:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "709:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "694:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "694:18:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "686:4:6" | |
} | |
] | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "728:9:6" | |
}, | |
{ | |
"name": "value0", | |
"nodeType": "YulIdentifier", | |
"src": "739:6:6" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "721:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "721:25:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "721:25:6" | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "645:9:6", | |
"type": "" | |
}, | |
{ | |
"name": "value0", | |
"nodeType": "YulTypedName", | |
"src": "656:6:6", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "667:4:6", | |
"type": "" | |
} | |
], | |
"src": "575:177:6" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "858:102:6", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "868:26:6", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "880:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "891:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "876:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "876:18:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "868:4:6" | |
} | |
] | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "910:9:6" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulIdentifier", | |
"src": "925:6:6" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "941:3:6", | |
"type": "", | |
"value": "160" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "946:1:6", | |
"type": "", | |
"value": "1" | |
} | |
], | |
"functionName": { | |
"name": "shl", | |
"nodeType": "YulIdentifier", | |
"src": "937:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "937:11:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "950:1:6", | |
"type": "", | |
"value": "1" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "933:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "933:19:6" | |
} | |
], | |
"functionName": { | |
"name": "and", | |
"nodeType": "YulIdentifier", | |
"src": "921:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "921:32:6" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "903:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "903:51:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "903:51:6" | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_address__to_t_address__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "827:9:6", | |
"type": "" | |
}, | |
{ | |
"name": "value0", | |
"nodeType": "YulTypedName", | |
"src": "838:6:6", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "849:4:6", | |
"type": "" | |
} | |
], | |
"src": "757:203:6" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "1052:161:6", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "1098:16:6", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1107:1:6", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1110:1:6", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "revert", | |
"nodeType": "YulIdentifier", | |
"src": "1100:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1100:12:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "1100:12:6" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "1073:7:6" | |
}, | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "1082:9:6" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "1069:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1069:23:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1094:2:6", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "slt", | |
"nodeType": "YulIdentifier", | |
"src": "1065:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1065:32:6" | |
}, | |
"nodeType": "YulIf", | |
"src": "1062:52:6" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "1123:33:6", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "1146:9:6" | |
} | |
], | |
"functionName": { | |
"name": "calldataload", | |
"nodeType": "YulIdentifier", | |
"src": "1133:12:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1133:23:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulIdentifier", | |
"src": "1123:6:6" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "1165:42:6", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "1192:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1203:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "1188:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1188:18:6" | |
} | |
], | |
"functionName": { | |
"name": "calldataload", | |
"nodeType": "YulIdentifier", | |
"src": "1175:12:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1175:32:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value1", | |
"nodeType": "YulIdentifier", | |
"src": "1165:6:6" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_decode_tuple_t_uint256t_uint256", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "1010:9:6", | |
"type": "" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulTypedName", | |
"src": "1021:7:6", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulTypedName", | |
"src": "1033:6:6", | |
"type": "" | |
}, | |
{ | |
"name": "value1", | |
"nodeType": "YulTypedName", | |
"src": "1041:6:6", | |
"type": "" | |
} | |
], | |
"src": "965:248:6" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "1347:102:6", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "1357:26:6", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "1369:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1380:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "1365:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1365:18:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "1357:4:6" | |
} | |
] | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "1399:9:6" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulIdentifier", | |
"src": "1414:6:6" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1430:3:6", | |
"type": "", | |
"value": "160" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1435:1:6", | |
"type": "", | |
"value": "1" | |
} | |
], | |
"functionName": { | |
"name": "shl", | |
"nodeType": "YulIdentifier", | |
"src": "1426:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1426:11:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1439:1:6", | |
"type": "", | |
"value": "1" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "1422:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1422:19:6" | |
} | |
], | |
"functionName": { | |
"name": "and", | |
"nodeType": "YulIdentifier", | |
"src": "1410:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1410:32:6" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "1392:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1392:51:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "1392:51:6" | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_contract$_AggregatorV3Interface_$45__to_t_address__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "1316:9:6", | |
"type": "" | |
}, | |
{ | |
"name": "value0", | |
"nodeType": "YulTypedName", | |
"src": "1327:6:6", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "1338:4:6", | |
"type": "" | |
} | |
], | |
"src": "1218:231:6" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "1524:110:6", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "1570:16:6", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1579:1:6", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1582:1:6", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "revert", | |
"nodeType": "YulIdentifier", | |
"src": "1572:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1572:12:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "1572:12:6" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "1545:7:6" | |
}, | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "1554:9:6" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "1541:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1541:23:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1566:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "slt", | |
"nodeType": "YulIdentifier", | |
"src": "1537:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1537:32:6" | |
}, | |
"nodeType": "YulIf", | |
"src": "1534:52:6" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "1595:33:6", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "1618:9:6" | |
} | |
], | |
"functionName": { | |
"name": "calldataload", | |
"nodeType": "YulIdentifier", | |
"src": "1605:12:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1605:23:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulIdentifier", | |
"src": "1595:6:6" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_decode_tuple_t_uint256", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "1490:9:6", | |
"type": "" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulTypedName", | |
"src": "1501:7:6", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulTypedName", | |
"src": "1513:6:6", | |
"type": "" | |
} | |
], | |
"src": "1454:180:6" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "1754:102:6", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "1764:26:6", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "1776:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1787:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "1772:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1772:18:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "1764:4:6" | |
} | |
] | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "1806:9:6" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulIdentifier", | |
"src": "1821:6:6" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1837:3:6", | |
"type": "", | |
"value": "160" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1842:1:6", | |
"type": "", | |
"value": "1" | |
} | |
], | |
"functionName": { | |
"name": "shl", | |
"nodeType": "YulIdentifier", | |
"src": "1833:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1833:11:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1846:1:6", | |
"type": "", | |
"value": "1" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "1829:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1829:19:6" | |
} | |
], | |
"functionName": { | |
"name": "and", | |
"nodeType": "YulIdentifier", | |
"src": "1817:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1817:32:6" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "1799:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1799:51:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "1799:51:6" | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_contract$_IERC20_$336__to_t_address__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "1723:9:6", | |
"type": "" | |
}, | |
{ | |
"name": "value0", | |
"nodeType": "YulTypedName", | |
"src": "1734:6:6", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "1745:4:6", | |
"type": "" | |
} | |
], | |
"src": "1639:217:6" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "1948:167:6", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "1994:16:6", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2003:1:6", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2006:1:6", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "revert", | |
"nodeType": "YulIdentifier", | |
"src": "1996:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1996:12:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "1996:12:6" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "1969:7:6" | |
}, | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "1978:9:6" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "1965:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1965:23:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1990:2:6", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "slt", | |
"nodeType": "YulIdentifier", | |
"src": "1961:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1961:32:6" | |
}, | |
"nodeType": "YulIf", | |
"src": "1958:52:6" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "2019:39:6", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "2048:9:6" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_address", | |
"nodeType": "YulIdentifier", | |
"src": "2029:18:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2029:29:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulIdentifier", | |
"src": "2019:6:6" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "2067:42:6", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "2094:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2105:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "2090:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2090:18:6" | |
} | |
], | |
"functionName": { | |
"name": "calldataload", | |
"nodeType": "YulIdentifier", | |
"src": "2077:12:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2077:32:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value1", | |
"nodeType": "YulIdentifier", | |
"src": "2067:6:6" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_decode_tuple_t_addresst_uint256", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "1906:9:6", | |
"type": "" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulTypedName", | |
"src": "1917:7:6", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulTypedName", | |
"src": "1929:6:6", | |
"type": "" | |
}, | |
{ | |
"name": "value1", | |
"nodeType": "YulTypedName", | |
"src": "1937:6:6", | |
"type": "" | |
} | |
], | |
"src": "1861:254:6" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "2294:166:6", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "2311:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2322:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "2304:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2304:21:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "2304:21:6" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "2345:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2356:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "2341:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2341:18:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2361:2:6", | |
"type": "", | |
"value": "16" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "2334:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2334:30:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "2334:30:6" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "2384:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2395:2:6", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "2380:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2380:18:6" | |
}, | |
{ | |
"hexValue": "50726573616c6520696e616374697665", | |
"kind": "string", | |
"nodeType": "YulLiteral", | |
"src": "2400:18:6", | |
"type": "", | |
"value": "Presale inactive" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "2373:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2373:46:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "2373:46:6" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "2428:26:6", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "2440:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2451:2:6", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "2436:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2436:18:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "2428:4:6" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_stringliteral_c286fae3d86ae27028536505e7e8ccee40ab33e2bcd73316c5c1afe2896efc7c__to_t_string_memory_ptr__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "2271:9:6", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "2285:4:6", | |
"type": "" | |
} | |
], | |
"src": "2120:340:6" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "2639:172:6", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "2656:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2667:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "2649:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2649:21:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "2649:21:6" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "2690:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2701:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "2686:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2686:18:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2706:2:6", | |
"type": "", | |
"value": "22" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "2679:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2679:30:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "2679:30:6" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "2729:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2740:2:6", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "2725:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2725:18:6" | |
}, | |
{ | |
"hexValue": "42656c6f77206d696e204d4154494320616d6f756e74", | |
"kind": "string", | |
"nodeType": "YulLiteral", | |
"src": "2745:24:6", | |
"type": "", | |
"value": "Below min MATIC amount" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "2718:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2718:52:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "2718:52:6" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "2779:26:6", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "2791:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2802:2:6", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "2787:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2787:18:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "2779:4:6" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_stringliteral_0e6fbb793fe76889de0122de056cea4808e203e02e8c25bd71af0868d2156a5c__to_t_string_memory_ptr__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "2616:9:6", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "2630:4:6", | |
"type": "" | |
} | |
], | |
"src": "2465:346:6" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "2868:213:6", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "2878:20:6", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "x", | |
"nodeType": "YulIdentifier", | |
"src": "2893:1:6" | |
}, | |
{ | |
"name": "y", | |
"nodeType": "YulIdentifier", | |
"src": "2896:1:6" | |
} | |
], | |
"functionName": { | |
"name": "mul", | |
"nodeType": "YulIdentifier", | |
"src": "2889:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2889:9:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "product", | |
"nodeType": "YulIdentifier", | |
"src": "2878:7:6" | |
} | |
] | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "2964:111:6", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2985:1:6", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2992:3:6", | |
"type": "", | |
"value": "224" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2997:10:6", | |
"type": "", | |
"value": "0x4e487b71" | |
} | |
], | |
"functionName": { | |
"name": "shl", | |
"nodeType": "YulIdentifier", | |
"src": "2988:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2988:20:6" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "2978:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2978:31:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "2978:31:6" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3029:1:6", | |
"type": "", | |
"value": "4" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3032:4:6", | |
"type": "", | |
"value": "0x11" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "3022:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3022:15:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "3022:15:6" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3057:1:6", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3060:4:6", | |
"type": "", | |
"value": "0x24" | |
} | |
], | |
"functionName": { | |
"name": "revert", | |
"nodeType": "YulIdentifier", | |
"src": "3050:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3050:15:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "3050:15:6" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "x", | |
"nodeType": "YulIdentifier", | |
"src": "2927:1:6" | |
} | |
], | |
"functionName": { | |
"name": "iszero", | |
"nodeType": "YulIdentifier", | |
"src": "2920:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2920:9:6" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"name": "y", | |
"nodeType": "YulIdentifier", | |
"src": "2934:1:6" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"name": "product", | |
"nodeType": "YulIdentifier", | |
"src": "2941:7:6" | |
}, | |
{ | |
"name": "x", | |
"nodeType": "YulIdentifier", | |
"src": "2950:1:6" | |
} | |
], | |
"functionName": { | |
"name": "div", | |
"nodeType": "YulIdentifier", | |
"src": "2937:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2937:15:6" | |
} | |
], | |
"functionName": { | |
"name": "eq", | |
"nodeType": "YulIdentifier", | |
"src": "2931:2:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2931:22:6" | |
} | |
], | |
"functionName": { | |
"name": "or", | |
"nodeType": "YulIdentifier", | |
"src": "2917:2:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2917:37:6" | |
} | |
], | |
"functionName": { | |
"name": "iszero", | |
"nodeType": "YulIdentifier", | |
"src": "2910:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2910:45:6" | |
}, | |
"nodeType": "YulIf", | |
"src": "2907:168:6" | |
} | |
] | |
}, | |
"name": "checked_mul_t_uint256", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "x", | |
"nodeType": "YulTypedName", | |
"src": "2847:1:6", | |
"type": "" | |
}, | |
{ | |
"name": "y", | |
"nodeType": "YulTypedName", | |
"src": "2850:1:6", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "product", | |
"nodeType": "YulTypedName", | |
"src": "2856:7:6", | |
"type": "" | |
} | |
], | |
"src": "2816:265:6" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "3132:171:6", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "3163:111:6", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3184:1:6", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3191:3:6", | |
"type": "", | |
"value": "224" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3196:10:6", | |
"type": "", | |
"value": "0x4e487b71" | |
} | |
], | |
"functionName": { | |
"name": "shl", | |
"nodeType": "YulIdentifier", | |
"src": "3187:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3187:20:6" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "3177:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3177:31:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "3177:31:6" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3228:1:6", | |
"type": "", | |
"value": "4" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3231:4:6", | |
"type": "", | |
"value": "0x12" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "3221:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3221:15:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "3221:15:6" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3256:1:6", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3259:4:6", | |
"type": "", | |
"value": "0x24" | |
} | |
], | |
"functionName": { | |
"name": "revert", | |
"nodeType": "YulIdentifier", | |
"src": "3249:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3249:15:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "3249:15:6" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"name": "y", | |
"nodeType": "YulIdentifier", | |
"src": "3152:1:6" | |
} | |
], | |
"functionName": { | |
"name": "iszero", | |
"nodeType": "YulIdentifier", | |
"src": "3145:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3145:9:6" | |
}, | |
"nodeType": "YulIf", | |
"src": "3142:132:6" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "3283:14:6", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "x", | |
"nodeType": "YulIdentifier", | |
"src": "3292:1:6" | |
}, | |
{ | |
"name": "y", | |
"nodeType": "YulIdentifier", | |
"src": "3295:1:6" | |
} | |
], | |
"functionName": { | |
"name": "div", | |
"nodeType": "YulIdentifier", | |
"src": "3288:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3288:9:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "r", | |
"nodeType": "YulIdentifier", | |
"src": "3283:1:6" | |
} | |
] | |
} | |
] | |
}, | |
"name": "checked_div_t_uint256", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "x", | |
"nodeType": "YulTypedName", | |
"src": "3117:1:6", | |
"type": "" | |
}, | |
{ | |
"name": "y", | |
"nodeType": "YulTypedName", | |
"src": "3120:1:6", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "r", | |
"nodeType": "YulTypedName", | |
"src": "3126:1:6", | |
"type": "" | |
} | |
], | |
"src": "3086:217:6" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "3389:103:6", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "3435:16:6", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3444:1:6", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3447:1:6", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "revert", | |
"nodeType": "YulIdentifier", | |
"src": "3437:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3437:12:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "3437:12:6" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "3410:7:6" | |
}, | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "3419:9:6" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "3406:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3406:23:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3431:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "slt", | |
"nodeType": "YulIdentifier", | |
"src": "3402:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3402:32:6" | |
}, | |
"nodeType": "YulIf", | |
"src": "3399:52:6" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "3460:26:6", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "3476:9:6" | |
} | |
], | |
"functionName": { | |
"name": "mload", | |
"nodeType": "YulIdentifier", | |
"src": "3470:5:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3470:16:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulIdentifier", | |
"src": "3460:6:6" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_decode_tuple_t_uint256_fromMemory", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "3355:9:6", | |
"type": "" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulTypedName", | |
"src": "3366:7:6", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulTypedName", | |
"src": "3378:6:6", | |
"type": "" | |
} | |
], | |
"src": "3308:184:6" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "3671:166:6", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "3688:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3699:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "3681:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3681:21:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "3681:21:6" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "3722:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3733:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "3718:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3718:18:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3738:2:6", | |
"type": "", | |
"value": "16" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "3711:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3711:30:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "3711:30:6" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "3761:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3772:2:6", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "3757:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3757:18:6" | |
}, | |
{ | |
"hexValue": "496e73756666696369656e7420534d39", | |
"kind": "string", | |
"nodeType": "YulLiteral", | |
"src": "3777:18:6", | |
"type": "", | |
"value": "Insufficient SM9" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "3750:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3750:46:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "3750:46:6" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "3805:26:6", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "3817:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3828:2:6", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "3813:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3813:18:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "3805:4:6" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_stringliteral_e0dd85ff16168ba1badd5b30b5c4aa904759a33544a5ebd9fa4a509fe129d755__to_t_string_memory_ptr__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "3648:9:6", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "3662:4:6", | |
"type": "" | |
} | |
], | |
"src": "3497:340:6" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "3971:145:6", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "3981:26:6", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "3993:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4004:2:6", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "3989:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3989:18:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "3981:4:6" | |
} | |
] | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "4023:9:6" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulIdentifier", | |
"src": "4038:6:6" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4054:3:6", | |
"type": "", | |
"value": "160" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4059:1:6", | |
"type": "", | |
"value": "1" | |
} | |
], | |
"functionName": { | |
"name": "shl", | |
"nodeType": "YulIdentifier", | |
"src": "4050:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4050:11:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4063:1:6", | |
"type": "", | |
"value": "1" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "4046:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4046:19:6" | |
} | |
], | |
"functionName": { | |
"name": "and", | |
"nodeType": "YulIdentifier", | |
"src": "4034:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4034:32:6" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "4016:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4016:51:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "4016:51:6" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "4087:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4098:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "4083:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4083:18:6" | |
}, | |
{ | |
"name": "value1", | |
"nodeType": "YulIdentifier", | |
"src": "4103:6:6" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "4076:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4076:34:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "4076:34:6" | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_address_t_uint256__to_t_address_t_uint256__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "3932:9:6", | |
"type": "" | |
}, | |
{ | |
"name": "value1", | |
"nodeType": "YulTypedName", | |
"src": "3943:6:6", | |
"type": "" | |
}, | |
{ | |
"name": "value0", | |
"nodeType": "YulTypedName", | |
"src": "3951:6:6", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "3962:4:6", | |
"type": "" | |
} | |
], | |
"src": "3842:274:6" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "4199:199:6", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "4245:16:6", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4254:1:6", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4257:1:6", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "revert", | |
"nodeType": "YulIdentifier", | |
"src": "4247:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4247:12:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "4247:12:6" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "4220:7:6" | |
}, | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "4229:9:6" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "4216:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4216:23:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4241:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "slt", | |
"nodeType": "YulIdentifier", | |
"src": "4212:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4212:32:6" | |
}, | |
"nodeType": "YulIf", | |
"src": "4209:52:6" | |
}, | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "4270:29:6", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "4289:9:6" | |
} | |
], | |
"functionName": { | |
"name": "mload", | |
"nodeType": "YulIdentifier", | |
"src": "4283:5:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4283:16:6" | |
}, | |
"variables": [ | |
{ | |
"name": "value", | |
"nodeType": "YulTypedName", | |
"src": "4274:5:6", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "4352:16:6", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4361:1:6", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4364:1:6", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "revert", | |
"nodeType": "YulIdentifier", | |
"src": "4354:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4354:12:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "4354:12:6" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "4321:5:6" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "4342:5:6" | |
} | |
], | |
"functionName": { | |
"name": "iszero", | |
"nodeType": "YulIdentifier", | |
"src": "4335:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4335:13:6" | |
} | |
], | |
"functionName": { | |
"name": "iszero", | |
"nodeType": "YulIdentifier", | |
"src": "4328:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4328:21:6" | |
} | |
], | |
"functionName": { | |
"name": "eq", | |
"nodeType": "YulIdentifier", | |
"src": "4318:2:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4318:32:6" | |
} | |
], | |
"functionName": { | |
"name": "iszero", | |
"nodeType": "YulIdentifier", | |
"src": "4311:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4311:40:6" | |
}, | |
"nodeType": "YulIf", | |
"src": "4308:60:6" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "4377:15:6", | |
"value": { | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "4387:5:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulIdentifier", | |
"src": "4377:6:6" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_decode_tuple_t_bool_fromMemory", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "4165:9:6", | |
"type": "" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulTypedName", | |
"src": "4176:7:6", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulTypedName", | |
"src": "4188:6:6", | |
"type": "" | |
} | |
], | |
"src": "4121:277:6" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "4577:162:6", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "4594:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4605:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "4587:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4587:21:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "4587:21:6" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "4628:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4639:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "4624:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4624:18:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4644:2:6", | |
"type": "", | |
"value": "12" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "4617:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4617:30:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "4617:30:6" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "4667:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4678:2:6", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "4663:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4663:18:6" | |
}, | |
{ | |
"hexValue": "546f6b656e206661696c6564", | |
"kind": "string", | |
"nodeType": "YulLiteral", | |
"src": "4683:14:6", | |
"type": "", | |
"value": "Token failed" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "4656:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4656:42:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "4656:42:6" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "4707:26:6", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "4719:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4730:2:6", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "4715:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4715:18:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "4707:4:6" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_stringliteral_d2687d2fce7817d6cc57a8f60a6a3437122c96f931015181efae54b93f9d4897__to_t_string_memory_ptr__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "4554:9:6", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "4568:4:6", | |
"type": "" | |
} | |
], | |
"src": "4403:336:6" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "4918:156:6", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "4935:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4946:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "4928:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4928:21:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "4928:21:6" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "4969:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4980:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "4965:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4965:18:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4985:1:6", | |
"type": "", | |
"value": "7" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "4958:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4958:29:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "4958:29:6" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "5007:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5018:2:6", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "5003:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5003:18:6" | |
}, | |
{ | |
"hexValue": "4e6f2055534454", | |
"kind": "string", | |
"nodeType": "YulLiteral", | |
"src": "5023:9:6", | |
"type": "", | |
"value": "No USDT" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "4996:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4996:37:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "4996:37:6" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "5042:26:6", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "5054:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5065:2:6", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "5050:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5050:18:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "5042:4:6" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_stringliteral_d5fca36f3766c605852762abb57702ea98ada3762f6ae6699617edb0ac274678__to_t_string_memory_ptr__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "4895:9:6", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "4909:4:6", | |
"type": "" | |
} | |
], | |
"src": "4744:330:6" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "5253:165:6", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "5270:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5281:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "5263:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5263:21:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "5263:21:6" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "5304:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5315:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "5300:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5300:18:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5320:2:6", | |
"type": "", | |
"value": "15" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "5293:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5293:30:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "5293:30:6" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "5343:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5354:2:6", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "5339:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5339:18:6" | |
}, | |
{ | |
"hexValue": "5769746864726177206661696c6564", | |
"kind": "string", | |
"nodeType": "YulLiteral", | |
"src": "5359:17:6", | |
"type": "", | |
"value": "Withdraw failed" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "5332:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5332:45:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "5332:45:6" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "5386:26:6", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "5398:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5409:2:6", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "5394:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5394:18:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "5386:4:6" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_stringliteral_2bbe70e6500e9642f2862dc923170a5f09b5a43a51b0f2c3488a318564bb6925__to_t_string_memory_ptr__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "5230:9:6", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "5244:4:6", | |
"type": "" | |
} | |
], | |
"src": "5079:339:6" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "5597:157:6", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "5614:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5625:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "5607:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5607:21:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "5607:21:6" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "5648:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5659:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "5644:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5644:18:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5664:1:6", | |
"type": "", | |
"value": "8" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "5637:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5637:29:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "5637:29:6" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "5686:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5697:2:6", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "5682:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5682:18:6" | |
}, | |
{ | |
"hexValue": "4e6f204d41544943", | |
"kind": "string", | |
"nodeType": "YulLiteral", | |
"src": "5702:10:6", | |
"type": "", | |
"value": "No MATIC" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "5675:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5675:38:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "5675:38:6" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "5722:26:6", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "5734:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5745:2:6", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "5730:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5730:18:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "5722:4:6" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_stringliteral_1cb2d31968ece1e6572f56b7076ee047a83f8fb9b5fb7b27c90de5728e8399e5__to_t_string_memory_ptr__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "5574:9:6", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "5588:4:6", | |
"type": "" | |
} | |
], | |
"src": "5423:331:6" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "5933:171:6", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "5950:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5961:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "5943:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5943:21:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "5943:21:6" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "5984:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5995:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "5980:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5980:18:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6000:2:6", | |
"type": "", | |
"value": "21" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "5973:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5973:30:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "5973:30:6" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "6023:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6034:2:6", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "6019:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6019:18:6" | |
}, | |
{ | |
"hexValue": "42656c6f77206d696e205553445420616d6f756e74", | |
"kind": "string", | |
"nodeType": "YulLiteral", | |
"src": "6039:23:6", | |
"type": "", | |
"value": "Below min USDT amount" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "6012:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6012:51:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "6012:51:6" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "6072:26:6", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "6084:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6095:2:6", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "6080:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6080:18:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "6072:4:6" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_stringliteral_367a67e62d39129317db29652746d36e88e24f36aa7fb72c5f557a693a8245be__to_t_string_memory_ptr__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "5910:9:6", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "5924:4:6", | |
"type": "" | |
} | |
], | |
"src": "5759:345:6" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "6266:218:6", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "6276:26:6", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "6288:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6299:2:6", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "6284:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6284:18:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "6276:4:6" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "6311:29:6", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6329:3:6", | |
"type": "", | |
"value": "160" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6334:1:6", | |
"type": "", | |
"value": "1" | |
} | |
], | |
"functionName": { | |
"name": "shl", | |
"nodeType": "YulIdentifier", | |
"src": "6325:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6325:11:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6338:1:6", | |
"type": "", | |
"value": "1" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "6321:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6321:19:6" | |
}, | |
"variables": [ | |
{ | |
"name": "_1", | |
"nodeType": "YulTypedName", | |
"src": "6315:2:6", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "6356:9:6" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulIdentifier", | |
"src": "6371:6:6" | |
}, | |
{ | |
"name": "_1", | |
"nodeType": "YulIdentifier", | |
"src": "6379:2:6" | |
} | |
], | |
"functionName": { | |
"name": "and", | |
"nodeType": "YulIdentifier", | |
"src": "6367:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6367:15:6" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "6349:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6349:34:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "6349:34:6" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "6403:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6414:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "6399:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6399:18:6" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"name": "value1", | |
"nodeType": "YulIdentifier", | |
"src": "6423:6:6" | |
}, | |
{ | |
"name": "_1", | |
"nodeType": "YulIdentifier", | |
"src": "6431:2:6" | |
} | |
], | |
"functionName": { | |
"name": "and", | |
"nodeType": "YulIdentifier", | |
"src": "6419:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6419:15:6" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "6392:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6392:43:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "6392:43:6" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "6455:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6466:2:6", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "6451:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6451:18:6" | |
}, | |
{ | |
"name": "value2", | |
"nodeType": "YulIdentifier", | |
"src": "6471:6:6" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "6444:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6444:34:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "6444:34:6" | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_address_t_address_t_uint256__to_t_address_t_address_t_uint256__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "6219:9:6", | |
"type": "" | |
}, | |
{ | |
"name": "value2", | |
"nodeType": "YulTypedName", | |
"src": "6230:6:6", | |
"type": "" | |
}, | |
{ | |
"name": "value1", | |
"nodeType": "YulTypedName", | |
"src": "6238:6:6", | |
"type": "" | |
}, | |
{ | |
"name": "value0", | |
"nodeType": "YulTypedName", | |
"src": "6246:6:6", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "6257:4:6", | |
"type": "" | |
} | |
], | |
"src": "6109:375:6" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "6663:161:6", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "6680:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6691:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "6673:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6673:21:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "6673:21:6" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "6714:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6725:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "6710:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6710:18:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6730:2:6", | |
"type": "", | |
"value": "11" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "6703:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6703:30:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "6703:30:6" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "6753:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6764:2:6", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "6749:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6749:18:6" | |
}, | |
{ | |
"hexValue": "55534454206661696c6564", | |
"kind": "string", | |
"nodeType": "YulLiteral", | |
"src": "6769:13:6", | |
"type": "", | |
"value": "USDT failed" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "6742:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6742:41:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "6742:41:6" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "6792:26:6", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "6804:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6815:2:6", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "6800:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6800:18:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "6792:4:6" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_stringliteral_3046da18323814338b17fe41abb0bbf23ad6e3aa98946fc254d6360361bd3281__to_t_string_memory_ptr__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "6640:9:6", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "6654:4:6", | |
"type": "" | |
} | |
], | |
"src": "6489:335:6" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "6888:120:6", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "6898:22:6", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "6913:6:6" | |
} | |
], | |
"functionName": { | |
"name": "mload", | |
"nodeType": "YulIdentifier", | |
"src": "6907:5:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6907:13:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "6898:5:6" | |
} | |
] | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "6986:16:6", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6995:1:6", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6998:1:6", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "revert", | |
"nodeType": "YulIdentifier", | |
"src": "6988:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6988:12:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "6988:12:6" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "6942:5:6" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "6953:5:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6960:22:6", | |
"type": "", | |
"value": "0xffffffffffffffffffff" | |
} | |
], | |
"functionName": { | |
"name": "and", | |
"nodeType": "YulIdentifier", | |
"src": "6949:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6949:34:6" | |
} | |
], | |
"functionName": { | |
"name": "eq", | |
"nodeType": "YulIdentifier", | |
"src": "6939:2:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6939:45:6" | |
} | |
], | |
"functionName": { | |
"name": "iszero", | |
"nodeType": "YulIdentifier", | |
"src": "6932:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6932:53:6" | |
}, | |
"nodeType": "YulIf", | |
"src": "6929:73:6" | |
} | |
] | |
}, | |
"name": "abi_decode_uint80_fromMemory", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulTypedName", | |
"src": "6867:6:6", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "value", | |
"nodeType": "YulTypedName", | |
"src": "6878:5:6", | |
"type": "" | |
} | |
], | |
"src": "6829:179:6" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "7159:327:6", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "7206:16:6", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "7215:1:6", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "7218:1:6", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "revert", | |
"nodeType": "YulIdentifier", | |
"src": "7208:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7208:12:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "7208:12:6" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "7180:7:6" | |
}, | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "7189:9:6" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "7176:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7176:23:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "7201:3:6", | |
"type": "", | |
"value": "160" | |
} | |
], | |
"functionName": { | |
"name": "slt", | |
"nodeType": "YulIdentifier", | |
"src": "7172:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7172:33:6" | |
}, | |
"nodeType": "YulIf", | |
"src": "7169:53:6" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "7231:49:6", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "7270:9:6" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_uint80_fromMemory", | |
"nodeType": "YulIdentifier", | |
"src": "7241:28:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7241:39:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulIdentifier", | |
"src": "7231:6:6" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "7289:35:6", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "7309:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "7320:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "7305:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7305:18:6" | |
} | |
], | |
"functionName": { | |
"name": "mload", | |
"nodeType": "YulIdentifier", | |
"src": "7299:5:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7299:25:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value1", | |
"nodeType": "YulIdentifier", | |
"src": "7289:6:6" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "7333:35:6", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "7353:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "7364:2:6", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "7349:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7349:18:6" | |
} | |
], | |
"functionName": { | |
"name": "mload", | |
"nodeType": "YulIdentifier", | |
"src": "7343:5:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7343:25:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value2", | |
"nodeType": "YulIdentifier", | |
"src": "7333:6:6" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "7377:35:6", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "7397:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "7408:2:6", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "7393:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7393:18:6" | |
} | |
], | |
"functionName": { | |
"name": "mload", | |
"nodeType": "YulIdentifier", | |
"src": "7387:5:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7387:25:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value3", | |
"nodeType": "YulIdentifier", | |
"src": "7377:6:6" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "7421:59:6", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "7464:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "7475:3:6", | |
"type": "", | |
"value": "128" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "7460:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7460:19:6" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_uint80_fromMemory", | |
"nodeType": "YulIdentifier", | |
"src": "7431:28:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7431:49:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value4", | |
"nodeType": "YulIdentifier", | |
"src": "7421:6:6" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_decode_tuple_t_uint80t_int256t_uint256t_uint256t_uint80_fromMemory", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "7093:9:6", | |
"type": "" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulTypedName", | |
"src": "7104:7:6", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulTypedName", | |
"src": "7116:6:6", | |
"type": "" | |
}, | |
{ | |
"name": "value1", | |
"nodeType": "YulTypedName", | |
"src": "7124:6:6", | |
"type": "" | |
}, | |
{ | |
"name": "value2", | |
"nodeType": "YulTypedName", | |
"src": "7132:6:6", | |
"type": "" | |
}, | |
{ | |
"name": "value3", | |
"nodeType": "YulTypedName", | |
"src": "7140:6:6", | |
"type": "" | |
}, | |
{ | |
"name": "value4", | |
"nodeType": "YulTypedName", | |
"src": "7148:6:6", | |
"type": "" | |
} | |
], | |
"src": "7013:473:6" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "7665:166:6", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "7682:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "7693:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "7675:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7675:21:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "7675:21:6" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "7716:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "7727:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "7712:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7712:18:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "7732:2:6", | |
"type": "", | |
"value": "16" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "7705:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7705:30:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "7705:30:6" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "7755:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "7766:2:6", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "7751:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7751:18:6" | |
}, | |
{ | |
"hexValue": "416c7265616479206d69677261746564", | |
"kind": "string", | |
"nodeType": "YulLiteral", | |
"src": "7771:18:6", | |
"type": "", | |
"value": "Already migrated" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "7744:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7744:46:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "7744:46:6" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "7799:26:6", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "7811:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "7822:2:6", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "7807:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7807:18:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "7799:4:6" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_stringliteral_5f229293c33e01f57f1146ee2dd55f05cd246eab6f5a7cdb56d57cdfb918bbf1__to_t_string_memory_ptr__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "7642:9:6", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "7656:4:6", | |
"type": "" | |
} | |
], | |
"src": "7491:340:6" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "8010:166:6", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "8027:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "8038:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "8020:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8020:21:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "8020:21:6" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "8061:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "8072:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "8057:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8057:18:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "8077:2:6", | |
"type": "", | |
"value": "16" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "8050:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8050:30:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "8050:30:6" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "8100:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "8111:2:6", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "8096:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8096:18:6" | |
}, | |
{ | |
"hexValue": "4d6967726174696f6e206661696c6564", | |
"kind": "string", | |
"nodeType": "YulLiteral", | |
"src": "8116:18:6", | |
"type": "", | |
"value": "Migration failed" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "8089:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8089:46:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "8089:46:6" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "8144:26:6", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "8156:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "8167:2:6", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "8152:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8152:18:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "8144:4:6" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_stringliteral_c6551c82f1c4ee89ae7ef548b7aea9ad6a82a7dd2cd5c741efb37bb611c5afe8__to_t_string_memory_ptr__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "7987:9:6", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "8001:4:6", | |
"type": "" | |
} | |
], | |
"src": "7836:340:6" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "8355:168:6", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "8372:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "8383:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "8365:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8365:21:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "8365:21:6" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "8406:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "8417:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "8402:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8402:18:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "8422:2:6", | |
"type": "", | |
"value": "18" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "8395:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8395:30:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "8395:30:6" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "8445:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "8456:2:6", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "8441:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8441:18:6" | |
}, | |
{ | |
"hexValue": "50726573616c65206e6f7420616374697665", | |
"kind": "string", | |
"nodeType": "YulLiteral", | |
"src": "8461:20:6", | |
"type": "", | |
"value": "Presale not active" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "8434:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8434:48:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "8434:48:6" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "8491:26:6", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "8503:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "8514:2:6", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "8499:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8499:18:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "8491:4:6" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_stringliteral_4ae210a7f0ccf9a0d6c2d9f7a38120a6c20d1bea6b0c7f8e714732cf24add96e__to_t_string_memory_ptr__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "8332:9:6", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "8346:4:6", | |
"type": "" | |
} | |
], | |
"src": "8181:342:6" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "8702:181:6", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "8719:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "8730:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "8712:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8712:21:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "8712:21:6" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "8753:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "8764:2:6", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "8749:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8749:18:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "8769:2:6", | |
"type": "", | |
"value": "31" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "8742:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8742:30:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "8742:30:6" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "8792:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "8803:2:6", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "8788:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8788:18:6" | |
}, | |
{ | |
"hexValue": "5265656e7472616e637947756172643a207265656e7472616e742063616c6c", | |
"kind": "string", | |
"nodeType": "YulLiteral", | |
"src": "8808:33:6", | |
"type": "", | |
"value": "ReentrancyGuard: reentrant call" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "8781:6:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8781:61:6" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "8781:61:6" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "8851:26:6", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "8863:9:6" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "8874:2:6", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "8859:3:6" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8859:18:6" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "8851:4:6" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_stringliteral_ebf73bba305590e4764d5cb53b69bffd6d4d092d1a67551cb346f8cfcdab8619__to_t_string_memory_ptr__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "8679:9:6", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "8693:4:6", | |
"type": "" | |
} | |
], | |
"src": "8528:355:6" | |
} | |
] | |
}, | |
"contents": "{\n { }\n function abi_decode_address(offset) -> value\n {\n value := calldataload(offset)\n if iszero(eq(value, and(value, sub(shl(160, 1), 1)))) { revert(0, 0) }\n }\n function abi_decode_tuple_t_address(headStart, dataEnd) -> value0\n {\n if slt(sub(dataEnd, headStart), 32) { revert(0, 0) }\n value0 := abi_decode_address(headStart)\n }\n function abi_encode_tuple_t_bool__to_t_bool__fromStack_reversed(headStart, value0) -> tail\n {\n tail := add(headStart, 32)\n mstore(headStart, iszero(iszero(value0)))\n }\n function abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed(headStart, value0) -> tail\n {\n tail := add(headStart, 32)\n mstore(headStart, value0)\n }\n function abi_encode_tuple_t_address__to_t_address__fromStack_reversed(headStart, value0) -> tail\n {\n tail := add(headStart, 32)\n mstore(headStart, and(value0, sub(shl(160, 1), 1)))\n }\n function abi_decode_tuple_t_uint256t_uint256(headStart, dataEnd) -> value0, value1\n {\n if slt(sub(dataEnd, headStart), 64) { revert(0, 0) }\n value0 := calldataload(headStart)\n value1 := calldataload(add(headStart, 32))\n }\n function abi_encode_tuple_t_contract$_AggregatorV3Interface_$45__to_t_address__fromStack_reversed(headStart, value0) -> tail\n {\n tail := add(headStart, 32)\n mstore(headStart, and(value0, sub(shl(160, 1), 1)))\n }\n function abi_decode_tuple_t_uint256(headStart, dataEnd) -> value0\n {\n if slt(sub(dataEnd, headStart), 32) { revert(0, 0) }\n value0 := calldataload(headStart)\n }\n function abi_encode_tuple_t_contract$_IERC20_$336__to_t_address__fromStack_reversed(headStart, value0) -> tail\n {\n tail := add(headStart, 32)\n mstore(headStart, and(value0, sub(shl(160, 1), 1)))\n }\n function abi_decode_tuple_t_addresst_uint256(headStart, dataEnd) -> value0, value1\n {\n if slt(sub(dataEnd, headStart), 64) { revert(0, 0) }\n value0 := abi_decode_address(headStart)\n value1 := calldataload(add(headStart, 32))\n }\n function abi_encode_tuple_t_stringliteral_c286fae3d86ae27028536505e7e8ccee40ab33e2bcd73316c5c1afe2896efc7c__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 16)\n mstore(add(headStart, 64), \"Presale inactive\")\n tail := add(headStart, 96)\n }\n function abi_encode_tuple_t_stringliteral_0e6fbb793fe76889de0122de056cea4808e203e02e8c25bd71af0868d2156a5c__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 22)\n mstore(add(headStart, 64), \"Below min MATIC amount\")\n tail := add(headStart, 96)\n }\n function checked_mul_t_uint256(x, y) -> product\n {\n product := mul(x, y)\n if iszero(or(iszero(x), eq(y, div(product, x))))\n {\n mstore(0, shl(224, 0x4e487b71))\n mstore(4, 0x11)\n revert(0, 0x24)\n }\n }\n function checked_div_t_uint256(x, y) -> r\n {\n if iszero(y)\n {\n mstore(0, shl(224, 0x4e487b71))\n mstore(4, 0x12)\n revert(0, 0x24)\n }\n r := div(x, y)\n }\n function abi_decode_tuple_t_uint256_fromMemory(headStart, dataEnd) -> value0\n {\n if slt(sub(dataEnd, headStart), 32) { revert(0, 0) }\n value0 := mload(headStart)\n }\n function abi_encode_tuple_t_stringliteral_e0dd85ff16168ba1badd5b30b5c4aa904759a33544a5ebd9fa4a509fe129d755__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 16)\n mstore(add(headStart, 64), \"Insufficient SM9\")\n tail := add(headStart, 96)\n }\n function abi_encode_tuple_t_address_t_uint256__to_t_address_t_uint256__fromStack_reversed(headStart, value1, value0) -> tail\n {\n tail := add(headStart, 64)\n mstore(headStart, and(value0, sub(shl(160, 1), 1)))\n mstore(add(headStart, 32), value1)\n }\n function abi_decode_tuple_t_bool_fromMemory(headStart, dataEnd) -> value0\n {\n if slt(sub(dataEnd, headStart), 32) { revert(0, 0) }\n let value := mload(headStart)\n if iszero(eq(value, iszero(iszero(value)))) { revert(0, 0) }\n value0 := value\n }\n function abi_encode_tuple_t_stringliteral_d2687d2fce7817d6cc57a8f60a6a3437122c96f931015181efae54b93f9d4897__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 12)\n mstore(add(headStart, 64), \"Token failed\")\n tail := add(headStart, 96)\n }\n function abi_encode_tuple_t_stringliteral_d5fca36f3766c605852762abb57702ea98ada3762f6ae6699617edb0ac274678__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 7)\n mstore(add(headStart, 64), \"No USDT\")\n tail := add(headStart, 96)\n }\n function abi_encode_tuple_t_stringliteral_2bbe70e6500e9642f2862dc923170a5f09b5a43a51b0f2c3488a318564bb6925__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 15)\n mstore(add(headStart, 64), \"Withdraw failed\")\n tail := add(headStart, 96)\n }\n function abi_encode_tuple_t_stringliteral_1cb2d31968ece1e6572f56b7076ee047a83f8fb9b5fb7b27c90de5728e8399e5__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 8)\n mstore(add(headStart, 64), \"No MATIC\")\n tail := add(headStart, 96)\n }\n function abi_encode_tuple_t_stringliteral_367a67e62d39129317db29652746d36e88e24f36aa7fb72c5f557a693a8245be__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 21)\n mstore(add(headStart, 64), \"Below min USDT amount\")\n tail := add(headStart, 96)\n }\n function abi_encode_tuple_t_address_t_address_t_uint256__to_t_address_t_address_t_uint256__fromStack_reversed(headStart, value2, value1, value0) -> tail\n {\n tail := add(headStart, 96)\n let _1 := sub(shl(160, 1), 1)\n mstore(headStart, and(value0, _1))\n mstore(add(headStart, 32), and(value1, _1))\n mstore(add(headStart, 64), value2)\n }\n function abi_encode_tuple_t_stringliteral_3046da18323814338b17fe41abb0bbf23ad6e3aa98946fc254d6360361bd3281__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 11)\n mstore(add(headStart, 64), \"USDT failed\")\n tail := add(headStart, 96)\n }\n function abi_decode_uint80_fromMemory(offset) -> value\n {\n value := mload(offset)\n if iszero(eq(value, and(value, 0xffffffffffffffffffff))) { revert(0, 0) }\n }\n function abi_decode_tuple_t_uint80t_int256t_uint256t_uint256t_uint80_fromMemory(headStart, dataEnd) -> value0, value1, value2, value3, value4\n {\n if slt(sub(dataEnd, headStart), 160) { revert(0, 0) }\n value0 := abi_decode_uint80_fromMemory(headStart)\n value1 := mload(add(headStart, 32))\n value2 := mload(add(headStart, 64))\n value3 := mload(add(headStart, 96))\n value4 := abi_decode_uint80_fromMemory(add(headStart, 128))\n }\n function abi_encode_tuple_t_stringliteral_5f229293c33e01f57f1146ee2dd55f05cd246eab6f5a7cdb56d57cdfb918bbf1__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 16)\n mstore(add(headStart, 64), \"Already migrated\")\n tail := add(headStart, 96)\n }\n function abi_encode_tuple_t_stringliteral_c6551c82f1c4ee89ae7ef548b7aea9ad6a82a7dd2cd5c741efb37bb611c5afe8__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 16)\n mstore(add(headStart, 64), \"Migration failed\")\n tail := add(headStart, 96)\n }\n function abi_encode_tuple_t_stringliteral_4ae210a7f0ccf9a0d6c2d9f7a38120a6c20d1bea6b0c7f8e714732cf24add96e__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 18)\n mstore(add(headStart, 64), \"Presale not active\")\n tail := add(headStart, 96)\n }\n function abi_encode_tuple_t_stringliteral_ebf73bba305590e4764d5cb53b69bffd6d4d092d1a67551cb346f8cfcdab8619__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 31)\n mstore(add(headStart, 64), \"ReentrancyGuard: reentrant call\")\n tail := add(headStart, 96)\n }\n}", | |
"id": 6, | |
"language": "Yul", | |
"name": "#utility.yul" | |
} | |
], | |
"immutableReferences": {}, | |
"linkReferences": {}, | |
"object": "60806040526004361061016a5760003560e01c8063a98ad46c116100d1578063ddd5fe721161008a578063eb91d37e11610064578063eb91d37e146103e2578063f2fde38b146103f7578063fd7de33b14610417578063ff57d8731461043757600080fd5b8063ddd5fe7214610391578063e497fca6146103a7578063e68c9e89146103c757600080fd5b8063a98ad46c1461030d578063bc2955151461032d578063c10b935814610343578063c317273714610359578063cda9442c1461036e578063d09d4abd1461037657600080fd5b8063741bef1a11610123578063741bef1a1461026e578063810074c61461028e57806386dca336146102a35780638da5cb5b146102b9578063a3005f8a146102d7578063a7c60160146102ed57600080fd5b8063362e496b1461017e5780634ba0a5ee146101935780635ee36f74146101d857806366d003ac146102015780636a0160f514610239578063715018a61461025957600080fd5b366101795761017761044d565b005b600080fd5b34801561018a57600080fd5b506101776106b7565b34801561019f57600080fd5b506101c36101ae366004610f61565b600b6020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b3480156101e457600080fd5b506101f3660e35fa931a000081565b6040519081526020016101cf565b34801561020d57600080fd5b50600a54610221906001600160a01b031681565b6040516001600160a01b0390911681526020016101cf565b34801561024557600080fd5b50610177610254366004610f83565b61083d565b34801561026557600080fd5b50610177610850565b34801561027a57600080fd5b50600c54610221906001600160a01b031681565b34801561029a57600080fd5b50610177610862565b3480156102af57600080fd5b506101f360085481565b3480156102c557600080fd5b506000546001600160a01b0316610221565b3480156102e357600080fd5b506101f360055481565b3480156102f957600080fd5b50610177610308366004610fa5565b6108e0565b34801561031957600080fd5b50600354610221906001600160a01b031681565b34801561033957600080fd5b506101f360045481565b34801561034f57600080fd5b506101f360095481565b34801561036557600080fd5b506101f3610bcc565b61017761044d565b34801561038257600080fd5b506101f366071afd498d000081565b34801561039d57600080fd5b506101f360065481565b3480156103b357600080fd5b506101776103c2366004610fbe565b610c51565b3480156103d357600080fd5b506101f3661550f7dca7000081565b3480156103ee57600080fd5b506101f3610d88565b34801561040357600080fd5b50610177610412366004610f61565b610e34565b34801561042357600080fd5b50600254610221906001600160a01b031681565b34801561044357600080fd5b506101f360075481565b610455610e6f565b600654421015801561046957506009544211155b6104ad5760405162461bcd60e51b815260206004820152601060248201526f50726573616c6520696e61637469766560801b60448201526064015b60405180910390fd5b6005543410156104f85760405162461bcd60e51b815260206004820152601660248201527510995b1bddc81b5a5b881350551250c8185b5bdd5b9d60521b60448201526064016104a4565b6000610502610bcc565b905060006305f5e1006105158334610fe8565b61051f9190611013565b9050600061052b610d88565b61053d83670de0b6b3a7640000610fe8565b6105479190611013565b6002546040516370a0823160e01b815230600482015291925082916001600160a01b03909116906370a0823190602401602060405180830381865afa158015610594573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b89190611035565b10156105f95760405162461bcd60e51b815260206004820152601060248201526f496e73756666696369656e7420534d3960801b60448201526064016104a4565b60025460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb906044016020604051808303816000875af115801561064a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061066e919061104e565b6106a95760405162461bcd60e51b815260206004820152600c60248201526b151bdad95b8819985a5b195960a21b60448201526064016104a4565b5050506106b560018055565b565b6106bf610ec8565b6003546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610708573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061072c9190611035565b9050600081116107685760405162461bcd60e51b8152602060048201526007602482015266139bc81554d11560ca1b60448201526064016104a4565b6003546001600160a01b031663a9059cbb61078b6000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af11580156107d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107fc919061104e565b61083a5760405162461bcd60e51b815260206004820152600f60248201526e15da5d1a191c985dc819985a5b1959608a1b60448201526064016104a4565b50565b610845610ec8565b600491909155600555565b610858610ec8565b6106b56000610ef5565b61086a610ec8565b47806108a35760405162461bcd60e51b81526020600482015260086024820152674e6f204d4154494360c01b60448201526064016104a4565b600080546040516001600160a01b039091169183156108fc02918491818181858888f193505050501580156108dc573d6000803e3d6000fd5b5050565b6108e8610e6f565b60065442101580156108fc57506009544211155b61093b5760405162461bcd60e51b815260206004820152601060248201526f50726573616c6520696e61637469766560801b60448201526064016104a4565b6004548110156109855760405162461bcd60e51b815260206004820152601560248201527410995b1bddc81b5a5b881554d11508185b5bdd5b9d605a1b60448201526064016104a4565b600061098f610d88565b6109a183670de0b6b3a7640000610fe8565b6109ab9190611013565b6002546040516370a0823160e01b815230600482015291925082916001600160a01b03909116906370a0823190602401602060405180830381865afa1580156109f8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a1c9190611035565b1015610a5d5760405162461bcd60e51b815260206004820152601060248201526f496e73756666696369656e7420534d3960801b60448201526064016104a4565b6003546040516323b872dd60e01b8152336004820152306024820152604481018490526001600160a01b03909116906323b872dd906064016020604051808303816000875af1158015610ab4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad8919061104e565b610b125760405162461bcd60e51b815260206004820152600b60248201526a1554d1150819985a5b195960aa1b60448201526064016104a4565b60025460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb906044016020604051808303816000875af1158015610b63573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b87919061104e565b610bc25760405162461bcd60e51b815260206004820152600c60248201526b151bdad95b8819985a5b195960a21b60448201526064016104a4565b5061083a60018055565b600080600c60009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015610c22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c46919061108a565b509195945050505050565b610c59610ec8565b6001600160a01b0382166000908152600b602052604090205460ff1615610cb55760405162461bcd60e51b815260206004820152601060248201526f105b1c9958591e481b5a59dc985d195960821b60448201526064016104a4565b6001600160a01b038281166000818152600b602052604090819020805460ff19166001179055600254905163a9059cbb60e01b81526004810192909252602482018490529091169063a9059cbb906044016020604051808303816000875af1158015610d25573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d49919061104e565b6108dc5760405162461bcd60e51b815260206004820152601060248201526f135a59dc985d1a5bdb8819985a5b195960821b60448201526064016104a4565b60006006544210158015610d9d575060075442105b15610dae575066071afd498d000090565b6007544210158015610dc1575060085442105b15610dd25750660e35fa931a000090565b6008544210158015610de657506009544211155b15610df75750661550f7dca7000090565b60405162461bcd60e51b815260206004820152601260248201527150726573616c65206e6f742061637469766560701b60448201526064016104a4565b610e3c610ec8565b6001600160a01b038116610e6657604051631e4fbdf760e01b8152600060048201526024016104a4565b61083a81610ef5565b600260015403610ec15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104a4565b6002600155565b6000546001600160a01b031633146106b55760405163118cdaa760e01b81523360048201526024016104a4565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b0381168114610f5c57600080fd5b919050565b600060208284031215610f7357600080fd5b610f7c82610f45565b9392505050565b60008060408385031215610f9657600080fd5b50508035926020909101359150565b600060208284031215610fb757600080fd5b5035919050565b60008060408385031215610fd157600080fd5b610fda83610f45565b946020939093013593505050565b808202811582820484141761100d57634e487b7160e01b600052601160045260246000fd5b92915050565b60008261103057634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561104757600080fd5b5051919050565b60006020828403121561106057600080fd5b81518015158114610f7c57600080fd5b805169ffffffffffffffffffff81168114610f5c57600080fd5b600080600080600060a086880312156110a257600080fd5b6110ab86611070565b94506020860151935060408601519250606086015191506110ce60808701611070565b9050929550929590935056fea26469706673582212205ed59bfe42e1c12b75199101d821dd1929c5c3da4cb47dd35b7877a72cfb39a864736f6c63430008140033", | |
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT PUSH2 0x16A JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0xA98AD46C GT PUSH2 0xD1 JUMPI DUP1 PUSH4 0xDDD5FE72 GT PUSH2 0x8A JUMPI DUP1 PUSH4 0xEB91D37E GT PUSH2 0x64 JUMPI DUP1 PUSH4 0xEB91D37E EQ PUSH2 0x3E2 JUMPI DUP1 PUSH4 0xF2FDE38B EQ PUSH2 0x3F7 JUMPI DUP1 PUSH4 0xFD7DE33B EQ PUSH2 0x417 JUMPI DUP1 PUSH4 0xFF57D873 EQ PUSH2 0x437 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0xDDD5FE72 EQ PUSH2 0x391 JUMPI DUP1 PUSH4 0xE497FCA6 EQ PUSH2 0x3A7 JUMPI DUP1 PUSH4 0xE68C9E89 EQ PUSH2 0x3C7 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0xA98AD46C EQ PUSH2 0x30D JUMPI DUP1 PUSH4 0xBC295515 EQ PUSH2 0x32D JUMPI DUP1 PUSH4 0xC10B9358 EQ PUSH2 0x343 JUMPI DUP1 PUSH4 0xC3172737 EQ PUSH2 0x359 JUMPI DUP1 PUSH4 0xCDA9442C EQ PUSH2 0x36E JUMPI DUP1 PUSH4 0xD09D4ABD EQ PUSH2 0x376 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x741BEF1A GT PUSH2 0x123 JUMPI DUP1 PUSH4 0x741BEF1A EQ PUSH2 0x26E JUMPI DUP1 PUSH4 0x810074C6 EQ PUSH2 0x28E JUMPI DUP1 PUSH4 0x86DCA336 EQ PUSH2 0x2A3 JUMPI DUP1 PUSH4 0x8DA5CB5B EQ PUSH2 0x2B9 JUMPI DUP1 PUSH4 0xA3005F8A EQ PUSH2 0x2D7 JUMPI DUP1 PUSH4 0xA7C60160 EQ PUSH2 0x2ED JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x362E496B EQ PUSH2 0x17E JUMPI DUP1 PUSH4 0x4BA0A5EE EQ PUSH2 0x193 JUMPI DUP1 PUSH4 0x5EE36F74 EQ PUSH2 0x1D8 JUMPI DUP1 PUSH4 0x66D003AC EQ PUSH2 0x201 JUMPI DUP1 PUSH4 0x6A0160F5 EQ PUSH2 0x239 JUMPI DUP1 PUSH4 0x715018A6 EQ PUSH2 0x259 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST CALLDATASIZE PUSH2 0x179 JUMPI PUSH2 0x177 PUSH2 0x44D JUMP JUMPDEST STOP JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x18A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x177 PUSH2 0x6B7 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x19F JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x1C3 PUSH2 0x1AE CALLDATASIZE PUSH1 0x4 PUSH2 0xF61 JUMP JUMPDEST PUSH1 0xB PUSH1 0x20 MSTORE PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0xFF AND DUP2 JUMP JUMPDEST PUSH1 0x40 MLOAD SWAP1 ISZERO ISZERO DUP2 MSTORE PUSH1 0x20 ADD JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x1E4 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x1F3 PUSH7 0xE35FA931A0000 DUP2 JUMP JUMPDEST PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x1CF JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x20D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0xA SLOAD PUSH2 0x221 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x1CF JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x245 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x177 PUSH2 0x254 CALLDATASIZE PUSH1 0x4 PUSH2 0xF83 JUMP JUMPDEST PUSH2 0x83D JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x265 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x177 PUSH2 0x850 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x27A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0xC SLOAD PUSH2 0x221 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x29A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x177 PUSH2 0x862 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x2AF JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x1F3 PUSH1 0x8 SLOAD DUP2 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x2C5 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x0 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x221 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x2E3 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x1F3 PUSH1 0x5 SLOAD DUP2 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x2F9 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x177 PUSH2 0x308 CALLDATASIZE PUSH1 0x4 PUSH2 0xFA5 JUMP JUMPDEST PUSH2 0x8E0 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x319 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x3 SLOAD PUSH2 0x221 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x339 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x1F3 PUSH1 0x4 SLOAD DUP2 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x34F JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x1F3 PUSH1 0x9 SLOAD DUP2 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x365 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x1F3 PUSH2 0xBCC JUMP JUMPDEST PUSH2 0x177 PUSH2 0x44D JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x382 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x1F3 PUSH7 0x71AFD498D0000 DUP2 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x39D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x1F3 PUSH1 0x6 SLOAD DUP2 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x3B3 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x177 PUSH2 0x3C2 CALLDATASIZE PUSH1 0x4 PUSH2 0xFBE JUMP JUMPDEST PUSH2 0xC51 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x3D3 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x1F3 PUSH7 0x1550F7DCA70000 DUP2 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x3EE JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x1F3 PUSH2 0xD88 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x403 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x177 PUSH2 0x412 CALLDATASIZE PUSH1 0x4 PUSH2 0xF61 JUMP JUMPDEST PUSH2 0xE34 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x423 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x2 SLOAD PUSH2 0x221 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x443 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x1F3 PUSH1 0x7 SLOAD DUP2 JUMP JUMPDEST PUSH2 0x455 PUSH2 0xE6F JUMP JUMPDEST PUSH1 0x6 SLOAD TIMESTAMP LT ISZERO DUP1 ISZERO PUSH2 0x469 JUMPI POP PUSH1 0x9 SLOAD TIMESTAMP GT ISZERO JUMPDEST PUSH2 0x4AD JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x10 PUSH1 0x24 DUP3 ADD MSTORE PUSH16 0x50726573616C6520696E616374697665 PUSH1 0x80 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH1 0x5 SLOAD CALLVALUE LT ISZERO PUSH2 0x4F8 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x16 PUSH1 0x24 DUP3 ADD MSTORE PUSH22 0x10995B1BDDC81B5A5B881350551250C8185B5BDD5B9D PUSH1 0x52 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x4A4 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x502 PUSH2 0xBCC JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH4 0x5F5E100 PUSH2 0x515 DUP4 CALLVALUE PUSH2 0xFE8 JUMP JUMPDEST PUSH2 0x51F SWAP2 SWAP1 PUSH2 0x1013 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x52B PUSH2 0xD88 JUMP JUMPDEST PUSH2 0x53D DUP4 PUSH8 0xDE0B6B3A7640000 PUSH2 0xFE8 JUMP JUMPDEST PUSH2 0x547 SWAP2 SWAP1 PUSH2 0x1013 JUMP JUMPDEST PUSH1 0x2 SLOAD PUSH1 0x40 MLOAD PUSH4 0x70A08231 PUSH1 0xE0 SHL DUP2 MSTORE ADDRESS PUSH1 0x4 DUP3 ADD MSTORE SWAP2 SWAP3 POP DUP3 SWAP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP2 AND SWAP1 PUSH4 0x70A08231 SWAP1 PUSH1 0x24 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x594 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0x5B8 SWAP2 SWAP1 PUSH2 0x1035 JUMP JUMPDEST LT ISZERO PUSH2 0x5F9 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x10 PUSH1 0x24 DUP3 ADD MSTORE PUSH16 0x496E73756666696369656E7420534D39 PUSH1 0x80 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x4A4 JUMP JUMPDEST PUSH1 0x2 SLOAD PUSH1 0x40 MLOAD PUSH4 0xA9059CBB PUSH1 0xE0 SHL DUP2 MSTORE CALLER PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x24 DUP2 ADD DUP4 SWAP1 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP2 AND SWAP1 PUSH4 0xA9059CBB SWAP1 PUSH1 0x44 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 GAS CALL ISZERO DUP1 ISZERO PUSH2 0x64A JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0x66E SWAP2 SWAP1 PUSH2 0x104E JUMP JUMPDEST PUSH2 0x6A9 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0xC PUSH1 0x24 DUP3 ADD MSTORE PUSH12 0x151BDAD95B8819985A5B1959 PUSH1 0xA2 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x4A4 JUMP JUMPDEST POP POP POP PUSH2 0x6B5 PUSH1 0x1 DUP1 SSTORE JUMP JUMPDEST JUMP JUMPDEST PUSH2 0x6BF PUSH2 0xEC8 JUMP JUMPDEST PUSH1 0x3 SLOAD PUSH1 0x40 MLOAD PUSH4 0x70A08231 PUSH1 0xE0 SHL DUP2 MSTORE ADDRESS PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x0 SWAP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND SWAP1 PUSH4 0x70A08231 SWAP1 PUSH1 0x24 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x708 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0x72C SWAP2 SWAP1 PUSH2 0x1035 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 DUP2 GT PUSH2 0x768 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x7 PUSH1 0x24 DUP3 ADD MSTORE PUSH7 0x139BC81554D115 PUSH1 0xCA SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x4A4 JUMP JUMPDEST PUSH1 0x3 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0xA9059CBB PUSH2 0x78B PUSH1 0x0 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND SWAP1 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT PUSH1 0xE0 DUP5 SWAP1 SHL AND DUP2 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP2 AND PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x24 DUP2 ADD DUP5 SWAP1 MSTORE PUSH1 0x44 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 GAS CALL ISZERO DUP1 ISZERO PUSH2 0x7D8 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0x7FC SWAP2 SWAP1 PUSH2 0x104E JUMP JUMPDEST PUSH2 0x83A JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0xF PUSH1 0x24 DUP3 ADD MSTORE PUSH15 0x15DA5D1A191C985DC819985A5B1959 PUSH1 0x8A SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x4A4 JUMP JUMPDEST POP JUMP JUMPDEST PUSH2 0x845 PUSH2 0xEC8 JUMP JUMPDEST PUSH1 0x4 SWAP2 SWAP1 SWAP2 SSTORE PUSH1 0x5 SSTORE JUMP JUMPDEST PUSH2 0x858 PUSH2 0xEC8 JUMP JUMPDEST PUSH2 0x6B5 PUSH1 0x0 PUSH2 0xEF5 JUMP JUMPDEST PUSH2 0x86A PUSH2 0xEC8 JUMP JUMPDEST SELFBALANCE DUP1 PUSH2 0x8A3 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x8 PUSH1 0x24 DUP3 ADD MSTORE PUSH8 0x4E6F204D41544943 PUSH1 0xC0 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x4A4 JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD PUSH1 0x40 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP2 AND SWAP2 DUP4 ISZERO PUSH2 0x8FC MUL SWAP2 DUP5 SWAP2 DUP2 DUP2 DUP2 DUP6 DUP9 DUP9 CALL SWAP4 POP POP POP POP ISZERO DUP1 ISZERO PUSH2 0x8DC JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP JUMP JUMPDEST PUSH2 0x8E8 PUSH2 0xE6F JUMP JUMPDEST PUSH1 0x6 SLOAD TIMESTAMP LT ISZERO DUP1 ISZERO PUSH2 0x8FC JUMPI POP PUSH1 0x9 SLOAD TIMESTAMP GT ISZERO JUMPDEST PUSH2 0x93B JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x10 PUSH1 0x24 DUP3 ADD MSTORE PUSH16 0x50726573616C6520696E616374697665 PUSH1 0x80 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x4A4 JUMP JUMPDEST PUSH1 0x4 SLOAD DUP2 LT ISZERO PUSH2 0x985 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x15 PUSH1 0x24 DUP3 ADD MSTORE PUSH21 0x10995B1BDDC81B5A5B881554D11508185B5BDD5B9D PUSH1 0x5A SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x4A4 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x98F PUSH2 0xD88 JUMP JUMPDEST PUSH2 0x9A1 DUP4 PUSH8 0xDE0B6B3A7640000 PUSH2 0xFE8 JUMP JUMPDEST PUSH2 0x9AB SWAP2 SWAP1 PUSH2 0x1013 JUMP JUMPDEST PUSH1 0x2 SLOAD PUSH1 0x40 MLOAD PUSH4 0x70A08231 PUSH1 0xE0 SHL DUP2 MSTORE ADDRESS PUSH1 0x4 DUP3 ADD MSTORE SWAP2 SWAP3 POP DUP3 SWAP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP2 AND SWAP1 PUSH4 0x70A08231 SWAP1 PUSH1 0x24 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x9F8 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0xA1C SWAP2 SWAP1 PUSH2 0x1035 JUMP JUMPDEST LT ISZERO PUSH2 0xA5D JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x10 PUSH1 0x24 DUP3 ADD MSTORE PUSH16 0x496E73756666696369656E7420534D39 PUSH1 0x80 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x4A4 JUMP JUMPDEST PUSH1 0x3 SLOAD PUSH1 0x40 MLOAD PUSH4 0x23B872DD PUSH1 0xE0 SHL DUP2 MSTORE CALLER PUSH1 0x4 DUP3 ADD MSTORE ADDRESS PUSH1 0x24 DUP3 ADD MSTORE PUSH1 0x44 DUP2 ADD DUP5 SWAP1 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP2 AND SWAP1 PUSH4 0x23B872DD SWAP1 PUSH1 0x64 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 GAS CALL ISZERO DUP1 ISZERO PUSH2 0xAB4 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0xAD8 SWAP2 SWAP1 PUSH2 0x104E JUMP JUMPDEST PUSH2 0xB12 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0xB PUSH1 0x24 DUP3 ADD MSTORE PUSH11 0x1554D1150819985A5B1959 PUSH1 0xAA SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x4A4 JUMP JUMPDEST PUSH1 0x2 SLOAD PUSH1 0x40 MLOAD PUSH4 0xA9059CBB PUSH1 0xE0 SHL DUP2 MSTORE CALLER PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x24 DUP2 ADD DUP4 SWAP1 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP2 AND SWAP1 PUSH4 0xA9059CBB SWAP1 PUSH1 0x44 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 GAS CALL ISZERO DUP1 ISZERO PUSH2 0xB63 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0xB87 SWAP2 SWAP1 PUSH2 0x104E JUMP JUMPDEST PUSH2 0xBC2 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0xC PUSH1 0x24 DUP3 ADD MSTORE PUSH12 0x151BDAD95B8819985A5B1959 PUSH1 0xA2 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x4A4 JUMP JUMPDEST POP PUSH2 0x83A PUSH1 0x1 DUP1 SSTORE JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0xC PUSH1 0x0 SWAP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0xFEAF968C PUSH1 0x40 MLOAD DUP2 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0xA0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0xC22 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0xC46 SWAP2 SWAP1 PUSH2 0x108A JUMP JUMPDEST POP SWAP2 SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH2 0xC59 PUSH2 0xEC8 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0xB PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0xFF AND ISZERO PUSH2 0xCB5 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x10 PUSH1 0x24 DUP3 ADD MSTORE PUSH16 0x105B1C9958591E481B5A59DC985D1959 PUSH1 0x82 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x4A4 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 DUP2 AND PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0xB PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 DUP2 SWAP1 KECCAK256 DUP1 SLOAD PUSH1 0xFF NOT AND PUSH1 0x1 OR SWAP1 SSTORE PUSH1 0x2 SLOAD SWAP1 MLOAD PUSH4 0xA9059CBB PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 DUP2 ADD SWAP3 SWAP1 SWAP3 MSTORE PUSH1 0x24 DUP3 ADD DUP5 SWAP1 MSTORE SWAP1 SWAP2 AND SWAP1 PUSH4 0xA9059CBB SWAP1 PUSH1 0x44 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 GAS CALL ISZERO DUP1 ISZERO PUSH2 0xD25 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0xD49 SWAP2 SWAP1 PUSH2 0x104E JUMP JUMPDEST PUSH2 0x8DC JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x10 PUSH1 0x24 DUP3 ADD MSTORE PUSH16 0x135A59DC985D1A5BDB8819985A5B1959 PUSH1 0x82 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x4A4 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x6 SLOAD TIMESTAMP LT ISZERO DUP1 ISZERO PUSH2 0xD9D JUMPI POP PUSH1 0x7 SLOAD TIMESTAMP LT JUMPDEST ISZERO PUSH2 0xDAE JUMPI POP PUSH7 0x71AFD498D0000 SWAP1 JUMP JUMPDEST PUSH1 0x7 SLOAD TIMESTAMP LT ISZERO DUP1 ISZERO PUSH2 0xDC1 JUMPI POP PUSH1 0x8 SLOAD TIMESTAMP LT JUMPDEST ISZERO PUSH2 0xDD2 JUMPI POP PUSH7 0xE35FA931A0000 SWAP1 JUMP JUMPDEST PUSH1 0x8 SLOAD TIMESTAMP LT ISZERO DUP1 ISZERO PUSH2 0xDE6 JUMPI POP PUSH1 0x9 SLOAD TIMESTAMP GT ISZERO JUMPDEST ISZERO PUSH2 0xDF7 JUMPI POP PUSH7 0x1550F7DCA70000 SWAP1 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x12 PUSH1 0x24 DUP3 ADD MSTORE PUSH18 0x50726573616C65206E6F7420616374697665 PUSH1 0x70 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x4A4 JUMP JUMPDEST PUSH2 0xE3C PUSH2 0xEC8 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH2 0xE66 JUMPI PUSH1 0x40 MLOAD PUSH4 0x1E4FBDF7 PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x0 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x24 ADD PUSH2 0x4A4 JUMP JUMPDEST PUSH2 0x83A DUP2 PUSH2 0xEF5 JUMP JUMPDEST PUSH1 0x2 PUSH1 0x1 SLOAD SUB PUSH2 0xEC1 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x1F PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x5265656E7472616E637947756172643A207265656E7472616E742063616C6C00 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x4A4 JUMP JUMPDEST PUSH1 0x2 PUSH1 0x1 SSTORE JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND CALLER EQ PUSH2 0x6B5 JUMPI PUSH1 0x40 MLOAD PUSH4 0x118CDAA7 PUSH1 0xE0 SHL DUP2 MSTORE CALLER PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x24 ADD PUSH2 0x4A4 JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 DUP2 AND PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT DUP4 AND DUP2 OR DUP5 SSTORE PUSH1 0x40 MLOAD SWAP2 SWAP1 SWAP3 AND SWAP3 DUP4 SWAP2 PUSH32 0x8BE0079C531659141344CD1FD0A4F28419497F9722A3DAAFE3B4186F6B6457E0 SWAP2 SWAP1 LOG3 POP POP JUMP JUMPDEST DUP1 CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND DUP2 EQ PUSH2 0xF5C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0xF73 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0xF7C DUP3 PUSH2 0xF45 JUMP JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0xF96 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP POP DUP1 CALLDATALOAD SWAP3 PUSH1 0x20 SWAP1 SWAP2 ADD CALLDATALOAD SWAP2 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0xFB7 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP CALLDATALOAD SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0xFD1 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0xFDA DUP4 PUSH2 0xF45 JUMP JUMPDEST SWAP5 PUSH1 0x20 SWAP4 SWAP1 SWAP4 ADD CALLDATALOAD SWAP4 POP POP POP JUMP JUMPDEST DUP1 DUP3 MUL DUP2 ISZERO DUP3 DUP3 DIV DUP5 EQ OR PUSH2 0x100D JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH2 0x1030 JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x12 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST POP DIV SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x1047 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP MLOAD SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x1060 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 MLOAD DUP1 ISZERO ISZERO DUP2 EQ PUSH2 0xF7C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 MLOAD PUSH10 0xFFFFFFFFFFFFFFFFFFFF DUP2 AND DUP2 EQ PUSH2 0xF5C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0xA0 DUP7 DUP9 SUB SLT ISZERO PUSH2 0x10A2 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x10AB DUP7 PUSH2 0x1070 JUMP JUMPDEST SWAP5 POP PUSH1 0x20 DUP7 ADD MLOAD SWAP4 POP PUSH1 0x40 DUP7 ADD MLOAD SWAP3 POP PUSH1 0x60 DUP7 ADD MLOAD SWAP2 POP PUSH2 0x10CE PUSH1 0x80 DUP8 ADD PUSH2 0x1070 JUMP JUMPDEST SWAP1 POP SWAP3 SWAP6 POP SWAP3 SWAP6 SWAP1 SWAP4 POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0x5E 0xD5 SWAP12 INVALID TIMESTAMP 0xE1 0xC1 0x2B PUSH22 0x199101D821DD1929C5C3DA4CB47DD35B7877A72CFB39 0xA8 PUSH5 0x736F6C6343 STOP ADDMOD EQ STOP CALLER ", | |
"sourceMap": "317:4205:5:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3652:14;:12;:14::i;:::-;317:4205;;;;;3682:231;;;;;;;;;;;;;:::i;656:40::-;;;;;;;;;;-1:-1:-1;656:40:5;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;548:14:6;;541:22;523:41;;511:2;496:18;656:40:5;;;;;;;;773:51;;;;;;;;;;;;812:12;773:51;;;;;721:25:6;;;709:2;694:18;773:51:5;575:177:6;625:24:5;;;;;;;;;;-1:-1:-1;625:24:5;;;;-1:-1:-1;;;;;625:24:5;;;;;;-1:-1:-1;;;;;921:32:6;;;903:51;;891:2;876:18;625:24:5;757:203:6;4363:156:5;;;;;;;;;;-1:-1:-1;4363:156:5;;;;;:::i;:::-;;:::i;2293:101:1:-;;;;;;;;;;;;;:::i;891:38:5:-;;;;;;;;;;-1:-1:-1;891:38:5;;;;-1:-1:-1;;;;;891:38:5;;;3921:190;;;;;;;;;;;;;:::i;561:26::-;;;;;;;;;;;;;;;;1638:85:1;;;;;;;;;;-1:-1:-1;1684:7:1;1710:6;-1:-1:-1;;;;;1710:6:1;1638:85;;462:26:5;;;;;;;;;;;;;;;;2373:594;;;;;;;;;;-1:-1:-1;2373:594:5;;;;;:::i;:::-;;:::i;398:23::-;;;;;;;;;;-1:-1:-1;398:23:5;;;;-1:-1:-1;;;;;398:23:5;;;430:25;;;;;;;;;;;;;;;;594:22;;;;;;;;;;;;;;;;2191:174;;;;;;;;;;;;;:::i;2975:631::-;;;:::i;705:51::-;;;;;;;;;;;;744:12;705:51;;495:26;;;;;;;;;;;;;;;;4119:236;;;;;;;;;;-1:-1:-1;4119:236:5;;;;;:::i;:::-;;:::i;831:51::-;;;;;;;;;;;;870:12;831:51;;1693:490;;;;;;;;;;;;;:::i;2543:215:1:-;;;;;;;;;;-1:-1:-1;2543:215:1;;;;;:::i;:::-;;:::i;369:22:5:-;;;;;;;;;;-1:-1:-1;369:22:5;;;;-1:-1:-1;;;;;369:22:5;;;528:26;;;;;;;;;;;;;;;;2975:631;2261:21:2;:19;:21::i;:::-;3065:11:5::1;;3046:15;:30;;:60;;;;;3099:7;;3080:15;:26;;3046:60;3038:89;;;::::0;-1:-1:-1;;;3038:89:5;;2322:2:6;3038:89:5::1;::::0;::::1;2304:21:6::0;2361:2;2341:18;;;2334:30;-1:-1:-1;;;2380:18:6;;;2373:46;2436:18;;3038:89:5::1;;;;;;;;;3159:11;;3146:9;:24;;3138:59;;;::::0;-1:-1:-1;;;3138:59:5;;2667:2:6;3138:59:5::1;::::0;::::1;2649:21:6::0;2706:2;2686:18;;;2679:30;-1:-1:-1;;;2725:18:6;;;2718:52;2787:18;;3138:59:5::1;2465:346:6::0;3138:59:5::1;3210:18;3231:20;:18;:20::i;:::-;3210:41:::0;-1:-1:-1;3276:17:5::1;3323:3;3297:22;3210:41:::0;3297:9:::1;:22;:::i;:::-;3296:30;;;;:::i;:::-;3276:50;;3359:17;3400;:15;:17::i;:::-;3380:16;:9:::0;3392:4:::1;3380:16;:::i;:::-;3379:38;;;;:::i;:::-;3453:8;::::0;:33:::1;::::0;-1:-1:-1;;;3453:33:5;;3480:4:::1;3453:33;::::0;::::1;903:51:6::0;3359:58:5;;-1:-1:-1;3359:58:5;;-1:-1:-1;;;;;3453:8:5;;::::1;::::0;:18:::1;::::0;876::6;;3453:33:5::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:46;;3445:75;;;::::0;-1:-1:-1;;;3445:75:5;;3699:2:6;3445:75:5::1;::::0;::::1;3681:21:6::0;3738:2;3718:18;;;3711:30;-1:-1:-1;;;3757:18:6;;;3750:46;3813:18;;3445:75:5::1;3497:340:6::0;3445:75:5::1;3541:8;::::0;:40:::1;::::0;-1:-1:-1;;;3541:40:5;;3559:10:::1;3541:40;::::0;::::1;4016:51:6::0;4083:18;;;4076:34;;;-1:-1:-1;;;;;3541:8:5;;::::1;::::0;:17:::1;::::0;3989:18:6;;3541:40:5::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3533:65;;;::::0;-1:-1:-1;;;3533:65:5;;4605:2:6;3533:65:5::1;::::0;::::1;4587:21:6::0;4644:2;4624:18;;;4617:30;-1:-1:-1;;;4663:18:6;;;4656:42;4715:18;;3533:65:5::1;4403:336:6::0;3533:65:5::1;3027:579;;;2303:20:2::0;1716:1;2809:22;;2629:209;2303:20;2975:631:5:o;3682:231::-;1531:13:1;:11;:13::i;:::-;3754:9:5::1;::::0;:34:::1;::::0;-1:-1:-1;;;3754:34:5;;3782:4:::1;3754:34;::::0;::::1;903:51:6::0;3736:15:5::1;::::0;-1:-1:-1;;;;;3754:9:5::1;::::0;:19:::1;::::0;876:18:6;;3754:34:5::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3736:52;;3817:1;3807:7;:11;3799:31;;;::::0;-1:-1:-1;;;3799:31:5;;4946:2:6;3799:31:5::1;::::0;::::1;4928:21:6::0;4985:1;4965:18;;;4958:29;-1:-1:-1;;;5003:18:6;;;4996:37;5050:18;;3799:31:5::1;4744:330:6::0;3799:31:5::1;3849:9;::::0;-1:-1:-1;;;;;3849:9:5::1;:18;3868:7;1684::1::0;1710:6;-1:-1:-1;;;;;1710:6:1;;1638:85;3868:7:5::1;3849:36;::::0;-1:-1:-1;;;;;;3849:36:5::1;::::0;;;;;;-1:-1:-1;;;;;4034:32:6;;;3849:36:5::1;::::0;::::1;4016:51:6::0;4083:18;;;4076:34;;;3989:18;;3849:36:5::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3841:64;;;::::0;-1:-1:-1;;;3841:64:5;;5281:2:6;3841:64:5::1;::::0;::::1;5263:21:6::0;5320:2;5300:18;;;5293:30;-1:-1:-1;;;5339:18:6;;;5332:45;5394:18;;3841:64:5::1;5079:339:6::0;3841:64:5::1;3725:188;3682:231::o:0;4363:156::-;1531:13:1;:11;:13::i;:::-;4456:10:5::1;:21:::0;;;;4488:11:::1;:23:::0;4363:156::o;2293:101:1:-;1531:13;:11;:13::i;:::-;2357:30:::1;2384:1;2357:18;:30::i;3921:190:5:-:0;1531:13:1;:11;:13::i;:::-;3994:21:5::1;4034:11:::0;4026:32:::1;;;::::0;-1:-1:-1;;;4026:32:5;;5625:2:6;4026:32:5::1;::::0;::::1;5607:21:6::0;5664:1;5644:18;;;5637:29;-1:-1:-1;;;5682:18:6;;;5675:38;5730:18;;4026:32:5::1;5423:331:6::0;4026:32:5::1;1684:7:1::0;1710:6;;4069:34:5::1;::::0;-1:-1:-1;;;;;1710:6:1;;;;4069:34:5;::::1;;;::::0;4095:7;;4069:34;1684:7:1;4069:34:5;4095:7;1710:6:1;4069:34:5;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;3965:146;3921:190::o:0;2373:594::-;2261:21:2;:19;:21::i;:::-;2474:11:5::1;;2455:15;:30;;:60;;;;;2508:7;;2489:15;:26;;2455:60;2447:89;;;::::0;-1:-1:-1;;;2447:89:5;;2322:2:6;2447:89:5::1;::::0;::::1;2304:21:6::0;2361:2;2341:18;;;2334:30;-1:-1:-1;;;2380:18:6;;;2373:46;2436:18;;2447:89:5::1;2120:340:6::0;2447:89:5::1;2569:10;;2555;:24;;2547:58;;;::::0;-1:-1:-1;;;2547:58:5;;5961:2:6;2547:58:5::1;::::0;::::1;5943:21:6::0;6000:2;5980:18;;;5973:30;-1:-1:-1;;;6019:18:6;;;6012:51;6080:18;;2547:58:5::1;5759:345:6::0;2547:58:5::1;2618:17;2660;:15;:17::i;:::-;2639;:10:::0;2652:4:::1;2639:17;:::i;:::-;2638:39;;;;:::i;:::-;2718:8;::::0;:33:::1;::::0;-1:-1:-1;;;2718:33:5;;2745:4:::1;2718:33;::::0;::::1;903:51:6::0;2618:59:5;;-1:-1:-1;2618:59:5;;-1:-1:-1;;;;;2718:8:5;;::::1;::::0;:18:::1;::::0;876::6;;2718:33:5::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:46;;2710:75;;;::::0;-1:-1:-1;;;2710:75:5;;3699:2:6;2710:75:5::1;::::0;::::1;3681:21:6::0;3738:2;3718:18;;;3711:30;-1:-1:-1;;;3757:18:6;;;3750:46;3813:18;;2710:75:5::1;3497:340:6::0;2710:75:5::1;2804:9;::::0;:61:::1;::::0;-1:-1:-1;;;2804:61:5;;2827:10:::1;2804:61;::::0;::::1;6349:34:6::0;2847:4:5::1;6399:18:6::0;;;6392:43;6451:18;;;6444:34;;;-1:-1:-1;;;;;2804:9:5;;::::1;::::0;:22:::1;::::0;6284:18:6;;2804:61:5::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2796:85;;;::::0;-1:-1:-1;;;2796:85:5;;6691:2:6;2796:85:5::1;::::0;::::1;6673:21:6::0;6730:2;6710:18;;;6703:30;-1:-1:-1;;;6749:18:6;;;6742:41;6800:18;;2796:85:5::1;6489:335:6::0;2796:85:5::1;2902:8;::::0;:40:::1;::::0;-1:-1:-1;;;2902:40:5;;2920:10:::1;2902:40;::::0;::::1;4016:51:6::0;4083:18;;;4076:34;;;-1:-1:-1;;;;;2902:8:5;;::::1;::::0;:17:::1;::::0;3989:18:6;;2902:40:5::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2894:65;;;::::0;-1:-1:-1;;;2894:65:5;;4605:2:6;2894:65:5::1;::::0;::::1;4587:21:6::0;4644:2;4624:18;;;4617:30;-1:-1:-1;;;4663:18:6;;;4656:42;4715:18;;2894:65:5::1;4403:336:6::0;2894:65:5::1;2436:531;2303:20:2::0;1716:1;2809:22;;2629:209;2191:174:5;2242:7;2265:12;2284:9;;;;;;;;;-1:-1:-1;;;;;2284:9:5;-1:-1:-1;;;;;2284:25:5;;:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;2262:49:5;;2191:174;-1:-1:-1;;;;;2191:174:5:o;4119:236::-;1531:13:1;:11;:13::i;:::-;-1:-1:-1;;;;;4209:14:5;::::1;;::::0;;;:8:::1;:14;::::0;;;;;::::1;;4208:15;4200:44;;;::::0;-1:-1:-1;;;4200:44:5;;7693:2:6;4200:44:5::1;::::0;::::1;7675:21:6::0;7732:2;7712:18;;;7705:30;-1:-1:-1;;;7751:18:6;;;7744:46;7807:18;;4200:44:5::1;7491:340:6::0;4200:44:5::1;-1:-1:-1::0;;;;;4255:14:5;;::::1;;::::0;;;:8:::1;:14;::::0;;;;;;:21;;-1:-1:-1;;4255:21:5::1;4272:4;4255:21;::::0;;4295:8:::1;::::0;:31;;-1:-1:-1;;;4295:31:5;;::::1;::::0;::::1;4016:51:6::0;;;;4083:18;;;4076:34;;;4295:8:5;;::::1;::::0;:17:::1;::::0;3989:18:6;;4295:31:5::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4287:60;;;::::0;-1:-1:-1;;;4287:60:5;;8038:2:6;4287:60:5::1;::::0;::::1;8020:21:6::0;8077:2;8057:18;;;8050:30;-1:-1:-1;;;8096:18:6;;;8089:46;8152:18;;4287:60:5::1;7836:340:6::0;1693:490:5;1741:7;1784:11;;1765:15;:30;;:63;;;;;1817:11;;1799:15;:29;1765:63;1761:415;;;-1:-1:-1;744:12:5;;1693:490::o;1761:415::-;1905:11;;1886:15;:30;;:63;;;;;1938:11;;1920:15;:29;1886:63;1882:294;;;-1:-1:-1;812:12:5;;1693:490::o;1882:294::-;2026:11;;2007:15;:30;;:60;;;;;2060:7;;2041:15;:26;;2007:60;2003:173;;;-1:-1:-1;870:12:5;;1693:490::o;2003:173::-;2136:28;;-1:-1:-1;;;2136:28:5;;8383:2:6;2136:28:5;;;8365:21:6;8422:2;8402:18;;;8395:30;-1:-1:-1;;;8441:18:6;;;8434:48;8499:18;;2136:28:5;8181:342:6;2543:215:1;1531:13;:11;:13::i;:::-;-1:-1:-1;;;;;2627:22:1;::::1;2623:91;;2672:31;::::0;-1:-1:-1;;;2672:31:1;;2700:1:::1;2672:31;::::0;::::1;903:51:6::0;876:18;;2672:31:1::1;757:203:6::0;2623:91:1::1;2723:28;2742:8;2723:18;:28::i;2336:287:2:-:0;1759:1;2468:7;;:19;2460:63;;;;-1:-1:-1;;;2460:63:2;;8730:2:6;2460:63:2;;;8712:21:6;8769:2;8749:18;;;8742:30;8808:33;8788:18;;;8781:61;8859:18;;2460:63:2;8528:355:6;2460:63:2;1759:1;2598:7;:18;2336:287::o;1796:162:1:-;1684:7;1710:6;-1:-1:-1;;;;;1710:6:1;735:10:4;1855:23:1;1851:101;;1901:40;;-1:-1:-1;;;1901:40:1;;735:10:4;1901:40:1;;;903:51:6;876:18;;1901:40:1;757:203:6;2912:187:1;2985:16;3004:6;;-1:-1:-1;;;;;3020:17:1;;;-1:-1:-1;;;;;;3020:17:1;;;;;;3052:40;;3004:6;;;;;;;3052:40;;2985:16;3052:40;2975:124;2912:187;:::o;14:173:6:-;82:20;;-1:-1:-1;;;;;131:31:6;;121:42;;111:70;;177:1;174;167:12;111:70;14:173;;;:::o;192:186::-;251:6;304:2;292:9;283:7;279:23;275:32;272:52;;;320:1;317;310:12;272:52;343:29;362:9;343:29;:::i;:::-;333:39;192:186;-1:-1:-1;;;192:186:6:o;965:248::-;1033:6;1041;1094:2;1082:9;1073:7;1069:23;1065:32;1062:52;;;1110:1;1107;1100:12;1062:52;-1:-1:-1;;1133:23:6;;;1203:2;1188:18;;;1175:32;;-1:-1:-1;965:248:6:o;1454:180::-;1513:6;1566:2;1554:9;1545:7;1541:23;1537:32;1534:52;;;1582:1;1579;1572:12;1534:52;-1:-1:-1;1605:23:6;;1454:180;-1:-1:-1;1454:180:6:o;1861:254::-;1929:6;1937;1990:2;1978:9;1969:7;1965:23;1961:32;1958:52;;;2006:1;2003;1996:12;1958:52;2029:29;2048:9;2029:29;:::i;:::-;2019:39;2105:2;2090:18;;;;2077:32;;-1:-1:-1;;;1861:254:6:o;2816:265::-;2889:9;;;2920;;2937:15;;;2931:22;;2917:37;2907:168;;2997:10;2992:3;2988:20;2985:1;2978:31;3032:4;3029:1;3022:15;3060:4;3057:1;3050:15;2907:168;2816:265;;;;:::o;3086:217::-;3126:1;3152;3142:132;;3196:10;3191:3;3187:20;3184:1;3177:31;3231:4;3228:1;3221:15;3259:4;3256:1;3249:15;3142:132;-1:-1:-1;3288:9:6;;3086:217::o;3308:184::-;3378:6;3431:2;3419:9;3410:7;3406:23;3402:32;3399:52;;;3447:1;3444;3437:12;3399:52;-1:-1:-1;3470:16:6;;3308:184;-1:-1:-1;3308:184:6:o;4121:277::-;4188:6;4241:2;4229:9;4220:7;4216:23;4212:32;4209:52;;;4257:1;4254;4247:12;4209:52;4289:9;4283:16;4342:5;4335:13;4328:21;4321:5;4318:32;4308:60;;4364:1;4361;4354:12;6829:179;6907:13;;6960:22;6949:34;;6939:45;;6929:73;;6998:1;6995;6988:12;7013:473;7116:6;7124;7132;7140;7148;7201:3;7189:9;7180:7;7176:23;7172:33;7169:53;;;7218:1;7215;7208:12;7169:53;7241:39;7270:9;7241:39;:::i;:::-;7231:49;;7320:2;7309:9;7305:18;7299:25;7289:35;;7364:2;7353:9;7349:18;7343:25;7333:35;;7408:2;7397:9;7393:18;7387:25;7377:35;;7431:49;7475:3;7464:9;7460:19;7431:49;:::i;:::-;7421:59;;7013:473;;;;;;;;:::o" | |
}, | |
"gasEstimates": { | |
"creation": { | |
"codeDepositCost": "873600", | |
"executionCost": "infinite", | |
"totalCost": "infinite" | |
}, | |
"external": { | |
"PHASE1_PRICE()": "328", | |
"PHASE2_PRICE()": "263", | |
"PHASE3_PRICE()": "284", | |
"buyWithMatic()": "infinite", | |
"buyWithUSDT(uint256)": "infinite", | |
"getCurrentPrice()": "13082", | |
"getMaticPriceInUsd()": "infinite", | |
"migrateUser(address,uint256)": "infinite", | |
"migrated(address)": "2566", | |
"minBuyMatic()": "2406", | |
"minBuyUsdt()": "2340", | |
"owner()": "2420", | |
"phase1Start()": "2340", | |
"phase2Start()": "2405", | |
"phase3Start()": "2362", | |
"priceFeed()": "2360", | |
"recipient()": "2427", | |
"renounceOwnership()": "infinite", | |
"saleEnd()": "2362", | |
"setMinBuyAmounts(uint256,uint256)": "46735", | |
"sm9Token()": "2425", | |
"transferOwnership(address)": "28399", | |
"usdtToken()": "2360", | |
"withdrawMatic()": "infinite", | |
"withdrawUSDT()": "infinite" | |
} | |
}, | |
"methodIdentifiers": { | |
"PHASE1_PRICE()": "d09d4abd", | |
"PHASE2_PRICE()": "5ee36f74", | |
"PHASE3_PRICE()": "e68c9e89", | |
"buyWithMatic()": "cda9442c", | |
"buyWithUSDT(uint256)": "a7c60160", | |
"getCurrentPrice()": "eb91d37e", | |
"getMaticPriceInUsd()": "c3172737", | |
"migrateUser(address,uint256)": "e497fca6", | |
"migrated(address)": "4ba0a5ee", | |
"minBuyMatic()": "a3005f8a", | |
"minBuyUsdt()": "bc295515", | |
"owner()": "8da5cb5b", | |
"phase1Start()": "ddd5fe72", | |
"phase2Start()": "ff57d873", | |
"phase3Start()": "86dca336", | |
"priceFeed()": "741bef1a", | |
"recipient()": "66d003ac", | |
"renounceOwnership()": "715018a6", | |
"saleEnd()": "c10b9358", | |
"setMinBuyAmounts(uint256,uint256)": "6a0160f5", | |
"sm9Token()": "fd7de33b", | |
"transferOwnership(address)": "f2fde38b", | |
"usdtToken()": "a98ad46c", | |
"withdrawMatic()": "810074c6", | |
"withdrawUSDT()": "362e496b" | |
} | |
}, | |
"abi": [ | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "_sm9Token", | |
"type": "address" | |
}, | |
{ | |
"internalType": "address", | |
"name": "_usdtToken", | |
"type": "address" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "_phase1Start", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "_phase2Start", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "_phase3Start", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "_saleEnd", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "_minBuyUsdt", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "_minBuyMatic", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "address", | |
"name": "_recipient", | |
"type": "address" | |
}, | |
{ | |
"internalType": "address", | |
"name": "_priceFeed", | |
"type": "address" | |
} | |
], | |
"stateMutability": "nonpayable", | |
"type": "constructor" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "owner", | |
"type": "address" | |
} | |
], | |
"name": "OwnableInvalidOwner", | |
"type": "error" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "account", | |
"type": "address" | |
} | |
], | |
"name": "OwnableUnauthorizedAccount", | |
"type": "error" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "previousOwner", | |
"type": "address" | |
}, | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "newOwner", | |
"type": "address" | |
} | |
], | |
"name": "OwnershipTransferred", | |
"type": "event" | |
}, | |
{ | |
"inputs": [], | |
"name": "PHASE1_PRICE", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "PHASE2_PRICE", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "PHASE3_PRICE", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "buyWithMatic", | |
"outputs": [], | |
"stateMutability": "payable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "usdtAmount", | |
"type": "uint256" | |
} | |
], | |
"name": "buyWithUSDT", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "getCurrentPrice", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "getMaticPriceInUsd", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "user", | |
"type": "address" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "amount", | |
"type": "uint256" | |
} | |
], | |
"name": "migrateUser", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "", | |
"type": "address" | |
} | |
], | |
"name": "migrated", | |
"outputs": [ | |
{ | |
"internalType": "bool", | |
"name": "", | |
"type": "bool" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "minBuyMatic", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "minBuyUsdt", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "owner", | |
"outputs": [ | |
{ | |
"internalType": "address", | |
"name": "", | |
"type": "address" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "phase1Start", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "phase2Start", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "phase3Start", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "priceFeed", | |
"outputs": [ | |
{ | |
"internalType": "contract AggregatorV3Interface", | |
"name": "", | |
"type": "address" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "recipient", | |
"outputs": [ | |
{ | |
"internalType": "address", | |
"name": "", | |
"type": "address" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "renounceOwnership", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "saleEnd", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "_minUsdt", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "_minMatic", | |
"type": "uint256" | |
} | |
], | |
"name": "setMinBuyAmounts", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "sm9Token", | |
"outputs": [ | |
{ | |
"internalType": "contract IERC20", | |
"name": "", | |
"type": "address" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "newOwner", | |
"type": "address" | |
} | |
], | |
"name": "transferOwnership", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "usdtToken", | |
"outputs": [ | |
{ | |
"internalType": "contract IERC20", | |
"name": "", | |
"type": "address" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "withdrawMatic", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "withdrawUSDT", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"stateMutability": "payable", | |
"type": "receive" | |
} | |
] | |
} |
{ | |
"compiler": { | |
"version": "0.8.20+commit.a1b79de6" | |
}, | |
"language": "Solidity", | |
"output": { | |
"abi": [ | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "_sm9Token", | |
"type": "address" | |
}, | |
{ | |
"internalType": "address", | |
"name": "_usdtToken", | |
"type": "address" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "_phase1Start", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "_phase2Start", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "_phase3Start", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "_saleEnd", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "_minBuyUsdt", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "_minBuyMatic", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "address", | |
"name": "_recipient", | |
"type": "address" | |
}, | |
{ | |
"internalType": "address", | |
"name": "_priceFeed", | |
"type": "address" | |
} | |
], | |
"stateMutability": "nonpayable", | |
"type": "constructor" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "owner", | |
"type": "address" | |
} | |
], | |
"name": "OwnableInvalidOwner", | |
"type": "error" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "account", | |
"type": "address" | |
} | |
], | |
"name": "OwnableUnauthorizedAccount", | |
"type": "error" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "previousOwner", | |
"type": "address" | |
}, | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "newOwner", | |
"type": "address" | |
} | |
], | |
"name": "OwnershipTransferred", | |
"type": "event" | |
}, | |
{ | |
"inputs": [], | |
"name": "PHASE1_PRICE", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "PHASE2_PRICE", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "PHASE3_PRICE", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "buyWithMatic", | |
"outputs": [], | |
"stateMutability": "payable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "usdtAmount", | |
"type": "uint256" | |
} | |
], | |
"name": "buyWithUSDT", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "getCurrentPrice", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "getMaticPriceInUsd", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "user", | |
"type": "address" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "amount", | |
"type": "uint256" | |
} | |
], | |
"name": "migrateUser", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "", | |
"type": "address" | |
} | |
], | |
"name": "migrated", | |
"outputs": [ | |
{ | |
"internalType": "bool", | |
"name": "", | |
"type": "bool" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "minBuyMatic", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "minBuyUsdt", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "owner", | |
"outputs": [ | |
{ | |
"internalType": "address", | |
"name": "", | |
"type": "address" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "phase1Start", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "phase2Start", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "phase3Start", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "priceFeed", | |
"outputs": [ | |
{ | |
"internalType": "contract AggregatorV3Interface", | |
"name": "", | |
"type": "address" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "recipient", | |
"outputs": [ | |
{ | |
"internalType": "address", | |
"name": "", | |
"type": "address" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "renounceOwnership", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "saleEnd", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "_minUsdt", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "_minMatic", | |
"type": "uint256" | |
} | |
], | |
"name": "setMinBuyAmounts", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "sm9Token", | |
"outputs": [ | |
{ | |
"internalType": "contract IERC20", | |
"name": "", | |
"type": "address" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "newOwner", | |
"type": "address" | |
} | |
], | |
"name": "transferOwnership", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "usdtToken", | |
"outputs": [ | |
{ | |
"internalType": "contract IERC20", | |
"name": "", | |
"type": "address" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "withdrawMatic", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "withdrawUSDT", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"stateMutability": "payable", | |
"type": "receive" | |
} | |
], | |
"devdoc": { | |
"errors": { | |
"OwnableInvalidOwner(address)": [ | |
{ | |
"details": "The owner is not a valid owner account. (eg. `address(0)`)" | |
} | |
], | |
"OwnableUnauthorizedAccount(address)": [ | |
{ | |
"details": "The caller account is not authorized to perform an operation." | |
} | |
] | |
}, | |
"kind": "dev", | |
"methods": { | |
"owner()": { | |
"details": "Returns the address of the current owner." | |
}, | |
"renounceOwnership()": { | |
"details": "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." | |
}, | |
"transferOwnership(address)": { | |
"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner." | |
} | |
}, | |
"version": 1 | |
}, | |
"userdoc": { | |
"kind": "user", | |
"methods": {}, | |
"version": 1 | |
} | |
}, | |
"settings": { | |
"compilationTarget": { | |
"Presale.sol": "Presale" | |
}, | |
"evmVersion": "london", | |
"libraries": {}, | |
"metadata": { | |
"bytecodeHash": "ipfs" | |
}, | |
"optimizer": { | |
"enabled": true, | |
"runs": 200 | |
}, | |
"remappings": [] | |
}, | |
"sources": { | |
"@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol": { | |
"keccak256": "0xfe4e8bb4861bb3860ba890ab91a3b818ec66e5a8f544fb608cfcb73f433472cd", | |
"license": "MIT", | |
"urls": [ | |
"bzz-raw://644cff84052e1e82b5bb502b2a46e8f142a62b0db4cd9b38200798ba8373c6f7", | |
"dweb:/ipfs/QmTa99QHrJBn3SXDizquPBUiTxVCNKQrHgaWJhuds5Sce2" | |
] | |
}, | |
"@openzeppelin/contracts/access/Ownable.sol": { | |
"keccak256": "0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb", | |
"license": "MIT", | |
"urls": [ | |
"bzz-raw://8ed324d3920bb545059d66ab97d43e43ee85fd3bd52e03e401f020afb0b120f6", | |
"dweb:/ipfs/QmfEckWLmZkDDcoWrkEvMWhms66xwTLff9DDhegYpvHo1a" | |
] | |
}, | |
"@openzeppelin/contracts/security/ReentrancyGuard.sol": { | |
"keccak256": "0xa535a5df777d44e945dd24aa43a11e44b024140fc340ad0dfe42acf4002aade1", | |
"license": "MIT", | |
"urls": [ | |
"bzz-raw://41319e7f621f2dc3733511332c4fd032f8e32ad2aa7fd6f665c19741d9941a34", | |
"dweb:/ipfs/QmcYR3bd862GD1Bc7jwrU9bGxrhUu5na1oP964bDCu2id1" | |
] | |
}, | |
"@openzeppelin/contracts/token/ERC20/IERC20.sol": { | |
"keccak256": "0xe06a3f08a987af6ad2e1c1e774405d4fe08f1694b67517438b467cecf0da0ef7", | |
"license": "MIT", | |
"urls": [ | |
"bzz-raw://df6f0c459663c9858b6cba2cda1d14a7d05a985bed6d2de72bd8e78c25ee79db", | |
"dweb:/ipfs/QmeTTxZ7qVk9rjEv2R4CpCwdf8UMCcRqDNMvzNxHc3Fnn9" | |
] | |
}, | |
"@openzeppelin/contracts/utils/Context.sol": { | |
"keccak256": "0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2", | |
"license": "MIT", | |
"urls": [ | |
"bzz-raw://6a708e8a5bdb1011c2c381c9a5cfd8a9a956d7d0a9dc1bd8bcdaf52f76ef2f12", | |
"dweb:/ipfs/Qmax9WHBnVsZP46ZxEMNRQpLQnrdE4dK8LehML1Py8FowF" | |
] | |
}, | |
"Presale.sol": { | |
"keccak256": "0x43c1fa0fcc00b6b89726ec4000ffd157ccb8132461ecf38c783e8a4d8b1b1781", | |
"license": "MIT", | |
"urls": [ | |
"bzz-raw://a6dfc88703e1432a14ce0566006e2a90925775a8dbdf8d4bec6624cf4fd39a84", | |
"dweb:/ipfs/QmaMyfWHmiRXhh5xKBxvbbo13SEk6PqZ2qaUPmdFuGscKz" | |
] | |
} | |
}, | |
"version": 1 | |
} |
{ | |
"deploy": { | |
"VM:-": { | |
"linkReferences": {}, | |
"autoDeployLib": true | |
}, | |
"main:1": { | |
"linkReferences": {}, | |
"autoDeployLib": true | |
}, | |
"ropsten:3": { | |
"linkReferences": {}, | |
"autoDeployLib": true | |
}, | |
"rinkeby:4": { | |
"linkReferences": {}, | |
"autoDeployLib": true | |
}, | |
"kovan:42": { | |
"linkReferences": {}, | |
"autoDeployLib": true | |
}, | |
"goerli:5": { | |
"linkReferences": {}, | |
"autoDeployLib": true | |
}, | |
"Custom": { | |
"linkReferences": {}, | |
"autoDeployLib": true | |
} | |
}, | |
"data": { | |
"bytecode": { | |
"functionDebugData": { | |
"@_1055": { | |
"entryPoint": null, | |
"id": 1055, | |
"parameterSlots": 1, | |
"returnSlots": 0 | |
}, | |
"@_123": { | |
"entryPoint": null, | |
"id": 123, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"@_239": { | |
"entryPoint": null, | |
"id": 239, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"@_365": { | |
"entryPoint": null, | |
"id": 365, | |
"parameterSlots": 2, | |
"returnSlots": 0 | |
}, | |
"@_40": { | |
"entryPoint": null, | |
"id": 40, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"@_afterTokenTransfer_906": { | |
"entryPoint": null, | |
"id": 906, | |
"parameterSlots": 3, | |
"returnSlots": 0 | |
}, | |
"@_beforeTokenTransfer_895": { | |
"entryPoint": null, | |
"id": 895, | |
"parameterSlots": 3, | |
"returnSlots": 0 | |
}, | |
"@_beforeTokenTransfer_98": { | |
"entryPoint": 735, | |
"id": 98, | |
"parameterSlots": 3, | |
"returnSlots": 0 | |
}, | |
"@_mint_1093": { | |
"entryPoint": 414, | |
"id": 1093, | |
"parameterSlots": 2, | |
"returnSlots": 0 | |
}, | |
"@_mint_724": { | |
"entryPoint": null, | |
"id": 724, | |
"parameterSlots": 2, | |
"returnSlots": 0 | |
}, | |
"@_mint_76": { | |
"entryPoint": 398, | |
"id": 76, | |
"parameterSlots": 2, | |
"returnSlots": 0 | |
}, | |
"@_msgSender_1131": { | |
"entryPoint": null, | |
"id": 1131, | |
"parameterSlots": 0, | |
"returnSlots": 1 | |
}, | |
"@_requireNotPaused_276": { | |
"entryPoint": 769, | |
"id": 276, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"@_transferOwnership_211": { | |
"entryPoint": 308, | |
"id": 211, | |
"parameterSlots": 1, | |
"returnSlots": 0 | |
}, | |
"@cap_1064": { | |
"entryPoint": null, | |
"id": 1064, | |
"parameterSlots": 0, | |
"returnSlots": 1 | |
}, | |
"@decimals_395": { | |
"entryPoint": null, | |
"id": 395, | |
"parameterSlots": 0, | |
"returnSlots": 1 | |
}, | |
"@paused_264": { | |
"entryPoint": null, | |
"id": 264, | |
"parameterSlots": 0, | |
"returnSlots": 1 | |
}, | |
"@totalSupply_405": { | |
"entryPoint": null, | |
"id": 405, | |
"parameterSlots": 0, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_stringliteral_073f3193e2b9c9099973df1adea790edf33994edcd3f57beae2487f3c5bd8828__to_t_string_memory_ptr__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_stringliteral_68571e1369f7a6dcdcd736cb0343b35a58ed0f64d245c2ed839c98d412744f8a__to_t_string_memory_ptr__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_stringliteral_c0532a65ade852f12d67926b1625bbc98f7eb7c650703bf531fd4e07ded2c49f__to_t_string_memory_ptr__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_stringliteral_fc0b381caf0a47702017f3c4b358ebe3d3aff6c60ce819a8bf3ef5a95d4f202e__to_t_string_memory_ptr__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"array_dataslot_string_storage": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"checked_add_t_uint256": { | |
"entryPoint": 1538, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"checked_exp_helper": { | |
"entryPoint": 865, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 2 | |
}, | |
"checked_exp_t_uint256_t_uint8": { | |
"entryPoint": 1120, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"checked_exp_unsigned": { | |
"entryPoint": 938, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"checked_mul_t_uint256": { | |
"entryPoint": 1144, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"clean_up_bytearray_end_slots_string_storage": { | |
"entryPoint": 1252, | |
"id": null, | |
"parameterSlots": 3, | |
"returnSlots": 0 | |
}, | |
"copy_byte_array_to_storage_from_t_string_memory_ptr_to_t_string_storage": { | |
"entryPoint": 1334, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 0 | |
}, | |
"extract_byte_array_length": { | |
"entryPoint": 1192, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"extract_used_part_and_set_length_of_short_byte_array": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"panic_error_0x11": { | |
"entryPoint": 843, | |
"id": null, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"panic_error_0x41": { | |
"entryPoint": 1170, | |
"id": null, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
} | |
}, | |
"generatedSources": [ | |
{ | |
"ast": { | |
"nodeType": "YulBlock", | |
"src": "0:6141:9", | |
"statements": [ | |
{ | |
"nodeType": "YulBlock", | |
"src": "6:3:9", | |
"statements": [] | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "46:95:9", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "63:1:9", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "70:3:9", | |
"type": "", | |
"value": "224" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "75:10:9", | |
"type": "", | |
"value": "0x4e487b71" | |
} | |
], | |
"functionName": { | |
"name": "shl", | |
"nodeType": "YulIdentifier", | |
"src": "66:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "66:20:9" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "56:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "56:31:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "56:31:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "103:1:9", | |
"type": "", | |
"value": "4" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "106:4:9", | |
"type": "", | |
"value": "0x11" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "96:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "96:15:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "96:15:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "127:1:9", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "130:4:9", | |
"type": "", | |
"value": "0x24" | |
} | |
], | |
"functionName": { | |
"name": "revert", | |
"nodeType": "YulIdentifier", | |
"src": "120:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "120:15:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "120:15:9" | |
} | |
] | |
}, | |
"name": "panic_error_0x11", | |
"nodeType": "YulFunctionDefinition", | |
"src": "14:127:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "210:358:9", | |
"statements": [ | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "220:16:9", | |
"value": { | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "235:1:9", | |
"type": "", | |
"value": "1" | |
}, | |
"variables": [ | |
{ | |
"name": "power_1", | |
"nodeType": "YulTypedName", | |
"src": "224:7:9", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "245:16:9", | |
"value": { | |
"name": "power_1", | |
"nodeType": "YulIdentifier", | |
"src": "254:7:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "power", | |
"nodeType": "YulIdentifier", | |
"src": "245:5:9" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "270:13:9", | |
"value": { | |
"name": "_base", | |
"nodeType": "YulIdentifier", | |
"src": "278:5:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "base", | |
"nodeType": "YulIdentifier", | |
"src": "270:4:9" | |
} | |
] | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "334:228:9", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "379:22:9", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [], | |
"functionName": { | |
"name": "panic_error_0x11", | |
"nodeType": "YulIdentifier", | |
"src": "381:16:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "381:18:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "381:18:9" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"name": "base", | |
"nodeType": "YulIdentifier", | |
"src": "354:4:9" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "368:1:9", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "not", | |
"nodeType": "YulIdentifier", | |
"src": "364:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "364:6:9" | |
}, | |
{ | |
"name": "base", | |
"nodeType": "YulIdentifier", | |
"src": "372:4:9" | |
} | |
], | |
"functionName": { | |
"name": "div", | |
"nodeType": "YulIdentifier", | |
"src": "360:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "360:17:9" | |
} | |
], | |
"functionName": { | |
"name": "gt", | |
"nodeType": "YulIdentifier", | |
"src": "351:2:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "351:27:9" | |
}, | |
"nodeType": "YulIf", | |
"src": "348:53:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "440:29:9", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "442:25:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "power", | |
"nodeType": "YulIdentifier", | |
"src": "455:5:9" | |
}, | |
{ | |
"name": "base", | |
"nodeType": "YulIdentifier", | |
"src": "462:4:9" | |
} | |
], | |
"functionName": { | |
"name": "mul", | |
"nodeType": "YulIdentifier", | |
"src": "451:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "451:16:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "power", | |
"nodeType": "YulIdentifier", | |
"src": "442:5:9" | |
} | |
] | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"name": "exponent", | |
"nodeType": "YulIdentifier", | |
"src": "421:8:9" | |
}, | |
{ | |
"name": "power_1", | |
"nodeType": "YulIdentifier", | |
"src": "431:7:9" | |
} | |
], | |
"functionName": { | |
"name": "and", | |
"nodeType": "YulIdentifier", | |
"src": "417:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "417:22:9" | |
}, | |
"nodeType": "YulIf", | |
"src": "414:55:9" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "482:23:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "base", | |
"nodeType": "YulIdentifier", | |
"src": "494:4:9" | |
}, | |
{ | |
"name": "base", | |
"nodeType": "YulIdentifier", | |
"src": "500:4:9" | |
} | |
], | |
"functionName": { | |
"name": "mul", | |
"nodeType": "YulIdentifier", | |
"src": "490:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "490:15:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "base", | |
"nodeType": "YulIdentifier", | |
"src": "482:4:9" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "518:34:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "power_1", | |
"nodeType": "YulIdentifier", | |
"src": "534:7:9" | |
}, | |
{ | |
"name": "exponent", | |
"nodeType": "YulIdentifier", | |
"src": "543:8:9" | |
} | |
], | |
"functionName": { | |
"name": "shr", | |
"nodeType": "YulIdentifier", | |
"src": "530:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "530:22:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "exponent", | |
"nodeType": "YulIdentifier", | |
"src": "518:8:9" | |
} | |
] | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"name": "exponent", | |
"nodeType": "YulIdentifier", | |
"src": "303:8:9" | |
}, | |
{ | |
"name": "power_1", | |
"nodeType": "YulIdentifier", | |
"src": "313:7:9" | |
} | |
], | |
"functionName": { | |
"name": "gt", | |
"nodeType": "YulIdentifier", | |
"src": "300:2:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "300:21:9" | |
}, | |
"nodeType": "YulForLoop", | |
"post": { | |
"nodeType": "YulBlock", | |
"src": "322:3:9", | |
"statements": [] | |
}, | |
"pre": { | |
"nodeType": "YulBlock", | |
"src": "296:3:9", | |
"statements": [] | |
}, | |
"src": "292:270:9" | |
} | |
] | |
}, | |
"name": "checked_exp_helper", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "_base", | |
"nodeType": "YulTypedName", | |
"src": "174:5:9", | |
"type": "" | |
}, | |
{ | |
"name": "exponent", | |
"nodeType": "YulTypedName", | |
"src": "181:8:9", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "power", | |
"nodeType": "YulTypedName", | |
"src": "194:5:9", | |
"type": "" | |
}, | |
{ | |
"name": "base", | |
"nodeType": "YulTypedName", | |
"src": "201:4:9", | |
"type": "" | |
} | |
], | |
"src": "146:422:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "632:747:9", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "670:52:9", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "684:10:9", | |
"value": { | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "693:1:9", | |
"type": "", | |
"value": "1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "power", | |
"nodeType": "YulIdentifier", | |
"src": "684:5:9" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulLeave", | |
"src": "707:5:9" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"name": "exponent", | |
"nodeType": "YulIdentifier", | |
"src": "652:8:9" | |
} | |
], | |
"functionName": { | |
"name": "iszero", | |
"nodeType": "YulIdentifier", | |
"src": "645:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "645:16:9" | |
}, | |
"nodeType": "YulIf", | |
"src": "642:80:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "755:52:9", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "769:10:9", | |
"value": { | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "778:1:9", | |
"type": "", | |
"value": "0" | |
}, | |
"variableNames": [ | |
{ | |
"name": "power", | |
"nodeType": "YulIdentifier", | |
"src": "769:5:9" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulLeave", | |
"src": "792:5:9" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"name": "base", | |
"nodeType": "YulIdentifier", | |
"src": "741:4:9" | |
} | |
], | |
"functionName": { | |
"name": "iszero", | |
"nodeType": "YulIdentifier", | |
"src": "734:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "734:12:9" | |
}, | |
"nodeType": "YulIf", | |
"src": "731:76:9" | |
}, | |
{ | |
"cases": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "843:52:9", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "857:10:9", | |
"value": { | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "866:1:9", | |
"type": "", | |
"value": "1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "power", | |
"nodeType": "YulIdentifier", | |
"src": "857:5:9" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulLeave", | |
"src": "880:5:9" | |
} | |
] | |
}, | |
"nodeType": "YulCase", | |
"src": "836:59:9", | |
"value": { | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "841:1:9", | |
"type": "", | |
"value": "1" | |
} | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "911:123:9", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "946:22:9", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [], | |
"functionName": { | |
"name": "panic_error_0x11", | |
"nodeType": "YulIdentifier", | |
"src": "948:16:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "948:18:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "948:18:9" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"name": "exponent", | |
"nodeType": "YulIdentifier", | |
"src": "931:8:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "941:3:9", | |
"type": "", | |
"value": "255" | |
} | |
], | |
"functionName": { | |
"name": "gt", | |
"nodeType": "YulIdentifier", | |
"src": "928:2:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "928:17:9" | |
}, | |
"nodeType": "YulIf", | |
"src": "925:43:9" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "981:25:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "exponent", | |
"nodeType": "YulIdentifier", | |
"src": "994:8:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1004:1:9", | |
"type": "", | |
"value": "1" | |
} | |
], | |
"functionName": { | |
"name": "shl", | |
"nodeType": "YulIdentifier", | |
"src": "990:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "990:16:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "power", | |
"nodeType": "YulIdentifier", | |
"src": "981:5:9" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulLeave", | |
"src": "1019:5:9" | |
} | |
] | |
}, | |
"nodeType": "YulCase", | |
"src": "904:130:9", | |
"value": { | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "909:1:9", | |
"type": "", | |
"value": "2" | |
} | |
} | |
], | |
"expression": { | |
"name": "base", | |
"nodeType": "YulIdentifier", | |
"src": "823:4:9" | |
}, | |
"nodeType": "YulSwitch", | |
"src": "816:218:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "1132:70:9", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "1146:28:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "base", | |
"nodeType": "YulIdentifier", | |
"src": "1159:4:9" | |
}, | |
{ | |
"name": "exponent", | |
"nodeType": "YulIdentifier", | |
"src": "1165:8:9" | |
} | |
], | |
"functionName": { | |
"name": "exp", | |
"nodeType": "YulIdentifier", | |
"src": "1155:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1155:19:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "power", | |
"nodeType": "YulIdentifier", | |
"src": "1146:5:9" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulLeave", | |
"src": "1187:5:9" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "base", | |
"nodeType": "YulIdentifier", | |
"src": "1056:4:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1062:2:9", | |
"type": "", | |
"value": "11" | |
} | |
], | |
"functionName": { | |
"name": "lt", | |
"nodeType": "YulIdentifier", | |
"src": "1053:2:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1053:12:9" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"name": "exponent", | |
"nodeType": "YulIdentifier", | |
"src": "1070:8:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1080:2:9", | |
"type": "", | |
"value": "78" | |
} | |
], | |
"functionName": { | |
"name": "lt", | |
"nodeType": "YulIdentifier", | |
"src": "1067:2:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1067:16:9" | |
} | |
], | |
"functionName": { | |
"name": "and", | |
"nodeType": "YulIdentifier", | |
"src": "1049:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1049:35:9" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "base", | |
"nodeType": "YulIdentifier", | |
"src": "1093:4:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1099:3:9", | |
"type": "", | |
"value": "307" | |
} | |
], | |
"functionName": { | |
"name": "lt", | |
"nodeType": "YulIdentifier", | |
"src": "1090:2:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1090:13:9" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"name": "exponent", | |
"nodeType": "YulIdentifier", | |
"src": "1108:8:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1118:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "lt", | |
"nodeType": "YulIdentifier", | |
"src": "1105:2:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1105:16:9" | |
} | |
], | |
"functionName": { | |
"name": "and", | |
"nodeType": "YulIdentifier", | |
"src": "1086:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1086:36:9" | |
} | |
], | |
"functionName": { | |
"name": "or", | |
"nodeType": "YulIdentifier", | |
"src": "1046:2:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1046:77:9" | |
}, | |
"nodeType": "YulIf", | |
"src": "1043:159:9" | |
}, | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "1211:57:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "base", | |
"nodeType": "YulIdentifier", | |
"src": "1253:4:9" | |
}, | |
{ | |
"name": "exponent", | |
"nodeType": "YulIdentifier", | |
"src": "1259:8:9" | |
} | |
], | |
"functionName": { | |
"name": "checked_exp_helper", | |
"nodeType": "YulIdentifier", | |
"src": "1234:18:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1234:34:9" | |
}, | |
"variables": [ | |
{ | |
"name": "power_1", | |
"nodeType": "YulTypedName", | |
"src": "1215:7:9", | |
"type": "" | |
}, | |
{ | |
"name": "base_1", | |
"nodeType": "YulTypedName", | |
"src": "1224:6:9", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "1313:22:9", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [], | |
"functionName": { | |
"name": "panic_error_0x11", | |
"nodeType": "YulIdentifier", | |
"src": "1315:16:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1315:18:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "1315:18:9" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"name": "power_1", | |
"nodeType": "YulIdentifier", | |
"src": "1283:7:9" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1300:1:9", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "not", | |
"nodeType": "YulIdentifier", | |
"src": "1296:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1296:6:9" | |
}, | |
{ | |
"name": "base_1", | |
"nodeType": "YulIdentifier", | |
"src": "1304:6:9" | |
} | |
], | |
"functionName": { | |
"name": "div", | |
"nodeType": "YulIdentifier", | |
"src": "1292:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1292:19:9" | |
} | |
], | |
"functionName": { | |
"name": "gt", | |
"nodeType": "YulIdentifier", | |
"src": "1280:2:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1280:32:9" | |
}, | |
"nodeType": "YulIf", | |
"src": "1277:58:9" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "1344:29:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "power_1", | |
"nodeType": "YulIdentifier", | |
"src": "1357:7:9" | |
}, | |
{ | |
"name": "base_1", | |
"nodeType": "YulIdentifier", | |
"src": "1366:6:9" | |
} | |
], | |
"functionName": { | |
"name": "mul", | |
"nodeType": "YulIdentifier", | |
"src": "1353:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1353:20:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "power", | |
"nodeType": "YulIdentifier", | |
"src": "1344:5:9" | |
} | |
] | |
} | |
] | |
}, | |
"name": "checked_exp_unsigned", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "base", | |
"nodeType": "YulTypedName", | |
"src": "603:4:9", | |
"type": "" | |
}, | |
{ | |
"name": "exponent", | |
"nodeType": "YulTypedName", | |
"src": "609:8:9", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "power", | |
"nodeType": "YulTypedName", | |
"src": "622:5:9", | |
"type": "" | |
} | |
], | |
"src": "573:806:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "1452:72:9", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "1462:56:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "base", | |
"nodeType": "YulIdentifier", | |
"src": "1492:4:9" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"name": "exponent", | |
"nodeType": "YulIdentifier", | |
"src": "1502:8:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1512:4:9", | |
"type": "", | |
"value": "0xff" | |
} | |
], | |
"functionName": { | |
"name": "and", | |
"nodeType": "YulIdentifier", | |
"src": "1498:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1498:19:9" | |
} | |
], | |
"functionName": { | |
"name": "checked_exp_unsigned", | |
"nodeType": "YulIdentifier", | |
"src": "1471:20:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1471:47:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "power", | |
"nodeType": "YulIdentifier", | |
"src": "1462:5:9" | |
} | |
] | |
} | |
] | |
}, | |
"name": "checked_exp_t_uint256_t_uint8", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "base", | |
"nodeType": "YulTypedName", | |
"src": "1423:4:9", | |
"type": "" | |
}, | |
{ | |
"name": "exponent", | |
"nodeType": "YulTypedName", | |
"src": "1429:8:9", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "power", | |
"nodeType": "YulTypedName", | |
"src": "1442:5:9", | |
"type": "" | |
} | |
], | |
"src": "1384:140:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "1581:116:9", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "1591:20:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "x", | |
"nodeType": "YulIdentifier", | |
"src": "1606:1:9" | |
}, | |
{ | |
"name": "y", | |
"nodeType": "YulIdentifier", | |
"src": "1609:1:9" | |
} | |
], | |
"functionName": { | |
"name": "mul", | |
"nodeType": "YulIdentifier", | |
"src": "1602:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1602:9:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "product", | |
"nodeType": "YulIdentifier", | |
"src": "1591:7:9" | |
} | |
] | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "1669:22:9", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [], | |
"functionName": { | |
"name": "panic_error_0x11", | |
"nodeType": "YulIdentifier", | |
"src": "1671:16:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1671:18:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "1671:18:9" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "x", | |
"nodeType": "YulIdentifier", | |
"src": "1640:1:9" | |
} | |
], | |
"functionName": { | |
"name": "iszero", | |
"nodeType": "YulIdentifier", | |
"src": "1633:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1633:9:9" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"name": "y", | |
"nodeType": "YulIdentifier", | |
"src": "1647:1:9" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"name": "product", | |
"nodeType": "YulIdentifier", | |
"src": "1654:7:9" | |
}, | |
{ | |
"name": "x", | |
"nodeType": "YulIdentifier", | |
"src": "1663:1:9" | |
} | |
], | |
"functionName": { | |
"name": "div", | |
"nodeType": "YulIdentifier", | |
"src": "1650:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1650:15:9" | |
} | |
], | |
"functionName": { | |
"name": "eq", | |
"nodeType": "YulIdentifier", | |
"src": "1644:2:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1644:22:9" | |
} | |
], | |
"functionName": { | |
"name": "or", | |
"nodeType": "YulIdentifier", | |
"src": "1630:2:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1630:37:9" | |
} | |
], | |
"functionName": { | |
"name": "iszero", | |
"nodeType": "YulIdentifier", | |
"src": "1623:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1623:45:9" | |
}, | |
"nodeType": "YulIf", | |
"src": "1620:71:9" | |
} | |
] | |
}, | |
"name": "checked_mul_t_uint256", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "x", | |
"nodeType": "YulTypedName", | |
"src": "1560:1:9", | |
"type": "" | |
}, | |
{ | |
"name": "y", | |
"nodeType": "YulTypedName", | |
"src": "1563:1:9", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "product", | |
"nodeType": "YulTypedName", | |
"src": "1569:7:9", | |
"type": "" | |
} | |
], | |
"src": "1529:168:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "1734:95:9", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1751:1:9", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1758:3:9", | |
"type": "", | |
"value": "224" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1763:10:9", | |
"type": "", | |
"value": "0x4e487b71" | |
} | |
], | |
"functionName": { | |
"name": "shl", | |
"nodeType": "YulIdentifier", | |
"src": "1754:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1754:20:9" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "1744:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1744:31:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "1744:31:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1791:1:9", | |
"type": "", | |
"value": "4" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1794:4:9", | |
"type": "", | |
"value": "0x41" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "1784:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1784:15:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "1784:15:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1815:1:9", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1818:4:9", | |
"type": "", | |
"value": "0x24" | |
} | |
], | |
"functionName": { | |
"name": "revert", | |
"nodeType": "YulIdentifier", | |
"src": "1808:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1808:15:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "1808:15:9" | |
} | |
] | |
}, | |
"name": "panic_error_0x41", | |
"nodeType": "YulFunctionDefinition", | |
"src": "1702:127:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "1889:325:9", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "1899:22:9", | |
"value": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1913:1:9", | |
"type": "", | |
"value": "1" | |
}, | |
{ | |
"name": "data", | |
"nodeType": "YulIdentifier", | |
"src": "1916:4:9" | |
} | |
], | |
"functionName": { | |
"name": "shr", | |
"nodeType": "YulIdentifier", | |
"src": "1909:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1909:12:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "length", | |
"nodeType": "YulIdentifier", | |
"src": "1899:6:9" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "1930:38:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "data", | |
"nodeType": "YulIdentifier", | |
"src": "1960:4:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1966:1:9", | |
"type": "", | |
"value": "1" | |
} | |
], | |
"functionName": { | |
"name": "and", | |
"nodeType": "YulIdentifier", | |
"src": "1956:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1956:12:9" | |
}, | |
"variables": [ | |
{ | |
"name": "outOfPlaceEncoding", | |
"nodeType": "YulTypedName", | |
"src": "1934:18:9", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "2007:31:9", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "2009:27:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "length", | |
"nodeType": "YulIdentifier", | |
"src": "2023:6:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2031:4:9", | |
"type": "", | |
"value": "0x7f" | |
} | |
], | |
"functionName": { | |
"name": "and", | |
"nodeType": "YulIdentifier", | |
"src": "2019:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2019:17:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "length", | |
"nodeType": "YulIdentifier", | |
"src": "2009:6:9" | |
} | |
] | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"name": "outOfPlaceEncoding", | |
"nodeType": "YulIdentifier", | |
"src": "1987:18:9" | |
} | |
], | |
"functionName": { | |
"name": "iszero", | |
"nodeType": "YulIdentifier", | |
"src": "1980:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1980:26:9" | |
}, | |
"nodeType": "YulIf", | |
"src": "1977:61:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "2097:111:9", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2118:1:9", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2125:3:9", | |
"type": "", | |
"value": "224" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2130:10:9", | |
"type": "", | |
"value": "0x4e487b71" | |
} | |
], | |
"functionName": { | |
"name": "shl", | |
"nodeType": "YulIdentifier", | |
"src": "2121:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2121:20:9" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "2111:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2111:31:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "2111:31:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2162:1:9", | |
"type": "", | |
"value": "4" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2165:4:9", | |
"type": "", | |
"value": "0x22" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "2155:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2155:15:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "2155:15:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2190:1:9", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2193:4:9", | |
"type": "", | |
"value": "0x24" | |
} | |
], | |
"functionName": { | |
"name": "revert", | |
"nodeType": "YulIdentifier", | |
"src": "2183:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2183:15:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "2183:15:9" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"name": "outOfPlaceEncoding", | |
"nodeType": "YulIdentifier", | |
"src": "2053:18:9" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"name": "length", | |
"nodeType": "YulIdentifier", | |
"src": "2076:6:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2084:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "lt", | |
"nodeType": "YulIdentifier", | |
"src": "2073:2:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2073:14:9" | |
} | |
], | |
"functionName": { | |
"name": "eq", | |
"nodeType": "YulIdentifier", | |
"src": "2050:2:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2050:38:9" | |
}, | |
"nodeType": "YulIf", | |
"src": "2047:161:9" | |
} | |
] | |
}, | |
"name": "extract_byte_array_length", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "data", | |
"nodeType": "YulTypedName", | |
"src": "1869:4:9", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "length", | |
"nodeType": "YulTypedName", | |
"src": "1878:6:9", | |
"type": "" | |
} | |
], | |
"src": "1834:380:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "2275:65:9", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2292:1:9", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"name": "ptr", | |
"nodeType": "YulIdentifier", | |
"src": "2295:3:9" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "2285:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2285:14:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "2285:14:9" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "2308:26:9", | |
"value": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2326:1:9", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2329:4:9", | |
"type": "", | |
"value": "0x20" | |
} | |
], | |
"functionName": { | |
"name": "keccak256", | |
"nodeType": "YulIdentifier", | |
"src": "2316:9:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2316:18:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "data", | |
"nodeType": "YulIdentifier", | |
"src": "2308:4:9" | |
} | |
] | |
} | |
] | |
}, | |
"name": "array_dataslot_string_storage", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "ptr", | |
"nodeType": "YulTypedName", | |
"src": "2258:3:9", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "data", | |
"nodeType": "YulTypedName", | |
"src": "2266:4:9", | |
"type": "" | |
} | |
], | |
"src": "2219:121:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "2426:464:9", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "2459:425:9", | |
"statements": [ | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "2473:11:9", | |
"value": { | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2483:1:9", | |
"type": "", | |
"value": "0" | |
}, | |
"variables": [ | |
{ | |
"name": "_1", | |
"nodeType": "YulTypedName", | |
"src": "2477:2:9", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "_1", | |
"nodeType": "YulIdentifier", | |
"src": "2504:2:9" | |
}, | |
{ | |
"name": "array", | |
"nodeType": "YulIdentifier", | |
"src": "2508:5:9" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "2497:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2497:17:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "2497:17:9" | |
}, | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "2527:31:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "_1", | |
"nodeType": "YulIdentifier", | |
"src": "2549:2:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2553:4:9", | |
"type": "", | |
"value": "0x20" | |
} | |
], | |
"functionName": { | |
"name": "keccak256", | |
"nodeType": "YulIdentifier", | |
"src": "2539:9:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2539:19:9" | |
}, | |
"variables": [ | |
{ | |
"name": "data", | |
"nodeType": "YulTypedName", | |
"src": "2531:4:9", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "2571:57:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "data", | |
"nodeType": "YulIdentifier", | |
"src": "2594:4:9" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2604:1:9", | |
"type": "", | |
"value": "5" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"name": "startIndex", | |
"nodeType": "YulIdentifier", | |
"src": "2611:10:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2623:2:9", | |
"type": "", | |
"value": "31" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "2607:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2607:19:9" | |
} | |
], | |
"functionName": { | |
"name": "shr", | |
"nodeType": "YulIdentifier", | |
"src": "2600:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2600:27:9" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "2590:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2590:38:9" | |
}, | |
"variables": [ | |
{ | |
"name": "deleteStart", | |
"nodeType": "YulTypedName", | |
"src": "2575:11:9", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "2665:23:9", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "2667:19:9", | |
"value": { | |
"name": "data", | |
"nodeType": "YulIdentifier", | |
"src": "2682:4:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "deleteStart", | |
"nodeType": "YulIdentifier", | |
"src": "2667:11:9" | |
} | |
] | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"name": "startIndex", | |
"nodeType": "YulIdentifier", | |
"src": "2647:10:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2659:4:9", | |
"type": "", | |
"value": "0x20" | |
} | |
], | |
"functionName": { | |
"name": "lt", | |
"nodeType": "YulIdentifier", | |
"src": "2644:2:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2644:20:9" | |
}, | |
"nodeType": "YulIf", | |
"src": "2641:47:9" | |
}, | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "2701:41:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "data", | |
"nodeType": "YulIdentifier", | |
"src": "2715:4:9" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2725:1:9", | |
"type": "", | |
"value": "5" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"name": "len", | |
"nodeType": "YulIdentifier", | |
"src": "2732:3:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2737:2:9", | |
"type": "", | |
"value": "31" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "2728:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2728:12:9" | |
} | |
], | |
"functionName": { | |
"name": "shr", | |
"nodeType": "YulIdentifier", | |
"src": "2721:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2721:20:9" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "2711:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2711:31:9" | |
}, | |
"variables": [ | |
{ | |
"name": "_2", | |
"nodeType": "YulTypedName", | |
"src": "2705:2:9", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "2755:24:9", | |
"value": { | |
"name": "deleteStart", | |
"nodeType": "YulIdentifier", | |
"src": "2768:11:9" | |
}, | |
"variables": [ | |
{ | |
"name": "start", | |
"nodeType": "YulTypedName", | |
"src": "2759:5:9", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "2853:21:9", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "start", | |
"nodeType": "YulIdentifier", | |
"src": "2862:5:9" | |
}, | |
{ | |
"name": "_1", | |
"nodeType": "YulIdentifier", | |
"src": "2869:2:9" | |
} | |
], | |
"functionName": { | |
"name": "sstore", | |
"nodeType": "YulIdentifier", | |
"src": "2855:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2855:17:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "2855:17:9" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"name": "start", | |
"nodeType": "YulIdentifier", | |
"src": "2803:5:9" | |
}, | |
{ | |
"name": "_2", | |
"nodeType": "YulIdentifier", | |
"src": "2810:2:9" | |
} | |
], | |
"functionName": { | |
"name": "lt", | |
"nodeType": "YulIdentifier", | |
"src": "2800:2:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2800:13:9" | |
}, | |
"nodeType": "YulForLoop", | |
"post": { | |
"nodeType": "YulBlock", | |
"src": "2814:26:9", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "2816:22:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "start", | |
"nodeType": "YulIdentifier", | |
"src": "2829:5:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2836:1:9", | |
"type": "", | |
"value": "1" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "2825:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2825:13:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "start", | |
"nodeType": "YulIdentifier", | |
"src": "2816:5:9" | |
} | |
] | |
} | |
] | |
}, | |
"pre": { | |
"nodeType": "YulBlock", | |
"src": "2796:3:9", | |
"statements": [] | |
}, | |
"src": "2792:82:9" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"name": "len", | |
"nodeType": "YulIdentifier", | |
"src": "2442:3:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2447:2:9", | |
"type": "", | |
"value": "31" | |
} | |
], | |
"functionName": { | |
"name": "gt", | |
"nodeType": "YulIdentifier", | |
"src": "2439:2:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2439:11:9" | |
}, | |
"nodeType": "YulIf", | |
"src": "2436:448:9" | |
} | |
] | |
}, | |
"name": "clean_up_bytearray_end_slots_string_storage", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "array", | |
"nodeType": "YulTypedName", | |
"src": "2398:5:9", | |
"type": "" | |
}, | |
{ | |
"name": "len", | |
"nodeType": "YulTypedName", | |
"src": "2405:3:9", | |
"type": "" | |
}, | |
{ | |
"name": "startIndex", | |
"nodeType": "YulTypedName", | |
"src": "2410:10:9", | |
"type": "" | |
} | |
], | |
"src": "2345:545:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "2980:81:9", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "2990:65:9", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "data", | |
"nodeType": "YulIdentifier", | |
"src": "3005:4:9" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3023:1:9", | |
"type": "", | |
"value": "3" | |
}, | |
{ | |
"name": "len", | |
"nodeType": "YulIdentifier", | |
"src": "3026:3:9" | |
} | |
], | |
"functionName": { | |
"name": "shl", | |
"nodeType": "YulIdentifier", | |
"src": "3019:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3019:11:9" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3036:1:9", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "not", | |
"nodeType": "YulIdentifier", | |
"src": "3032:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3032:6:9" | |
} | |
], | |
"functionName": { | |
"name": "shr", | |
"nodeType": "YulIdentifier", | |
"src": "3015:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3015:24:9" | |
} | |
], | |
"functionName": { | |
"name": "not", | |
"nodeType": "YulIdentifier", | |
"src": "3011:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3011:29:9" | |
} | |
], | |
"functionName": { | |
"name": "and", | |
"nodeType": "YulIdentifier", | |
"src": "3001:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3001:40:9" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3047:1:9", | |
"type": "", | |
"value": "1" | |
}, | |
{ | |
"name": "len", | |
"nodeType": "YulIdentifier", | |
"src": "3050:3:9" | |
} | |
], | |
"functionName": { | |
"name": "shl", | |
"nodeType": "YulIdentifier", | |
"src": "3043:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3043:11:9" | |
} | |
], | |
"functionName": { | |
"name": "or", | |
"nodeType": "YulIdentifier", | |
"src": "2998:2:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2998:57:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "used", | |
"nodeType": "YulIdentifier", | |
"src": "2990:4:9" | |
} | |
] | |
} | |
] | |
}, | |
"name": "extract_used_part_and_set_length_of_short_byte_array", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "data", | |
"nodeType": "YulTypedName", | |
"src": "2957:4:9", | |
"type": "" | |
}, | |
{ | |
"name": "len", | |
"nodeType": "YulTypedName", | |
"src": "2963:3:9", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "used", | |
"nodeType": "YulTypedName", | |
"src": "2971:4:9", | |
"type": "" | |
} | |
], | |
"src": "2895:166:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "3162:1256:9", | |
"statements": [ | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "3172:24:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "src", | |
"nodeType": "YulIdentifier", | |
"src": "3192:3:9" | |
} | |
], | |
"functionName": { | |
"name": "mload", | |
"nodeType": "YulIdentifier", | |
"src": "3186:5:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3186:10:9" | |
}, | |
"variables": [ | |
{ | |
"name": "newLen", | |
"nodeType": "YulTypedName", | |
"src": "3176:6:9", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "3239:22:9", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [], | |
"functionName": { | |
"name": "panic_error_0x41", | |
"nodeType": "YulIdentifier", | |
"src": "3241:16:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3241:18:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "3241:18:9" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"name": "newLen", | |
"nodeType": "YulIdentifier", | |
"src": "3211:6:9" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3227:2:9", | |
"type": "", | |
"value": "64" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3231:1:9", | |
"type": "", | |
"value": "1" | |
} | |
], | |
"functionName": { | |
"name": "shl", | |
"nodeType": "YulIdentifier", | |
"src": "3223:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3223:10:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3235:1:9", | |
"type": "", | |
"value": "1" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "3219:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3219:18:9" | |
} | |
], | |
"functionName": { | |
"name": "gt", | |
"nodeType": "YulIdentifier", | |
"src": "3208:2:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3208:30:9" | |
}, | |
"nodeType": "YulIf", | |
"src": "3205:56:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "slot", | |
"nodeType": "YulIdentifier", | |
"src": "3314:4:9" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "slot", | |
"nodeType": "YulIdentifier", | |
"src": "3352:4:9" | |
} | |
], | |
"functionName": { | |
"name": "sload", | |
"nodeType": "YulIdentifier", | |
"src": "3346:5:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3346:11:9" | |
} | |
], | |
"functionName": { | |
"name": "extract_byte_array_length", | |
"nodeType": "YulIdentifier", | |
"src": "3320:25:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3320:38:9" | |
}, | |
{ | |
"name": "newLen", | |
"nodeType": "YulIdentifier", | |
"src": "3360:6:9" | |
} | |
], | |
"functionName": { | |
"name": "clean_up_bytearray_end_slots_string_storage", | |
"nodeType": "YulIdentifier", | |
"src": "3270:43:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3270:97:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "3270:97:9" | |
}, | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "3376:18:9", | |
"value": { | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3393:1:9", | |
"type": "", | |
"value": "0" | |
}, | |
"variables": [ | |
{ | |
"name": "srcOffset", | |
"nodeType": "YulTypedName", | |
"src": "3380:9:9", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "3403:23:9", | |
"value": { | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3422:4:9", | |
"type": "", | |
"value": "0x20" | |
}, | |
"variables": [ | |
{ | |
"name": "srcOffset_1", | |
"nodeType": "YulTypedName", | |
"src": "3407:11:9", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "3435:24:9", | |
"value": { | |
"name": "srcOffset_1", | |
"nodeType": "YulIdentifier", | |
"src": "3448:11:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "srcOffset", | |
"nodeType": "YulIdentifier", | |
"src": "3435:9:9" | |
} | |
] | |
}, | |
{ | |
"cases": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "3505:656:9", | |
"statements": [ | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "3519:35:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "newLen", | |
"nodeType": "YulIdentifier", | |
"src": "3538:6:9" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3550:2:9", | |
"type": "", | |
"value": "31" | |
} | |
], | |
"functionName": { | |
"name": "not", | |
"nodeType": "YulIdentifier", | |
"src": "3546:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3546:7:9" | |
} | |
], | |
"functionName": { | |
"name": "and", | |
"nodeType": "YulIdentifier", | |
"src": "3534:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3534:20:9" | |
}, | |
"variables": [ | |
{ | |
"name": "loopEnd", | |
"nodeType": "YulTypedName", | |
"src": "3523:7:9", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "3567:49:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "slot", | |
"nodeType": "YulIdentifier", | |
"src": "3611:4:9" | |
} | |
], | |
"functionName": { | |
"name": "array_dataslot_string_storage", | |
"nodeType": "YulIdentifier", | |
"src": "3581:29:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3581:35:9" | |
}, | |
"variables": [ | |
{ | |
"name": "dstPtr", | |
"nodeType": "YulTypedName", | |
"src": "3571:6:9", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "3629:10:9", | |
"value": { | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3638:1:9", | |
"type": "", | |
"value": "0" | |
}, | |
"variables": [ | |
{ | |
"name": "i", | |
"nodeType": "YulTypedName", | |
"src": "3633:1:9", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "3716:172:9", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "dstPtr", | |
"nodeType": "YulIdentifier", | |
"src": "3741:6:9" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "src", | |
"nodeType": "YulIdentifier", | |
"src": "3759:3:9" | |
}, | |
{ | |
"name": "srcOffset", | |
"nodeType": "YulIdentifier", | |
"src": "3764:9:9" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "3755:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3755:19:9" | |
} | |
], | |
"functionName": { | |
"name": "mload", | |
"nodeType": "YulIdentifier", | |
"src": "3749:5:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3749:26:9" | |
} | |
], | |
"functionName": { | |
"name": "sstore", | |
"nodeType": "YulIdentifier", | |
"src": "3734:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3734:42:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "3734:42:9" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "3793:24:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "dstPtr", | |
"nodeType": "YulIdentifier", | |
"src": "3807:6:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3815:1:9", | |
"type": "", | |
"value": "1" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "3803:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3803:14:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "dstPtr", | |
"nodeType": "YulIdentifier", | |
"src": "3793:6:9" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "3834:40:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "srcOffset", | |
"nodeType": "YulIdentifier", | |
"src": "3851:9:9" | |
}, | |
{ | |
"name": "srcOffset_1", | |
"nodeType": "YulIdentifier", | |
"src": "3862:11:9" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "3847:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3847:27:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "srcOffset", | |
"nodeType": "YulIdentifier", | |
"src": "3834:9:9" | |
} | |
] | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"name": "i", | |
"nodeType": "YulIdentifier", | |
"src": "3663:1:9" | |
}, | |
{ | |
"name": "loopEnd", | |
"nodeType": "YulIdentifier", | |
"src": "3666:7:9" | |
} | |
], | |
"functionName": { | |
"name": "lt", | |
"nodeType": "YulIdentifier", | |
"src": "3660:2:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3660:14:9" | |
}, | |
"nodeType": "YulForLoop", | |
"post": { | |
"nodeType": "YulBlock", | |
"src": "3675:28:9", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "3677:24:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "i", | |
"nodeType": "YulIdentifier", | |
"src": "3686:1:9" | |
}, | |
{ | |
"name": "srcOffset_1", | |
"nodeType": "YulIdentifier", | |
"src": "3689:11:9" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "3682:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3682:19:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "i", | |
"nodeType": "YulIdentifier", | |
"src": "3677:1:9" | |
} | |
] | |
} | |
] | |
}, | |
"pre": { | |
"nodeType": "YulBlock", | |
"src": "3656:3:9", | |
"statements": [] | |
}, | |
"src": "3652:236:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "3936:166:9", | |
"statements": [ | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "3954:43:9", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "src", | |
"nodeType": "YulIdentifier", | |
"src": "3981:3:9" | |
}, | |
{ | |
"name": "srcOffset", | |
"nodeType": "YulIdentifier", | |
"src": "3986:9:9" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "3977:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3977:19:9" | |
} | |
], | |
"functionName": { | |
"name": "mload", | |
"nodeType": "YulIdentifier", | |
"src": "3971:5:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3971:26:9" | |
}, | |
"variables": [ | |
{ | |
"name": "lastValue", | |
"nodeType": "YulTypedName", | |
"src": "3958:9:9", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "dstPtr", | |
"nodeType": "YulIdentifier", | |
"src": "4021:6:9" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"name": "lastValue", | |
"nodeType": "YulIdentifier", | |
"src": "4033:9:9" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4060:1:9", | |
"type": "", | |
"value": "3" | |
}, | |
{ | |
"name": "newLen", | |
"nodeType": "YulIdentifier", | |
"src": "4063:6:9" | |
} | |
], | |
"functionName": { | |
"name": "shl", | |
"nodeType": "YulIdentifier", | |
"src": "4056:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4056:14:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4072:3:9", | |
"type": "", | |
"value": "248" | |
} | |
], | |
"functionName": { | |
"name": "and", | |
"nodeType": "YulIdentifier", | |
"src": "4052:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4052:24:9" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4082:1:9", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "not", | |
"nodeType": "YulIdentifier", | |
"src": "4078:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4078:6:9" | |
} | |
], | |
"functionName": { | |
"name": "shr", | |
"nodeType": "YulIdentifier", | |
"src": "4048:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4048:37:9" | |
} | |
], | |
"functionName": { | |
"name": "not", | |
"nodeType": "YulIdentifier", | |
"src": "4044:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4044:42:9" | |
} | |
], | |
"functionName": { | |
"name": "and", | |
"nodeType": "YulIdentifier", | |
"src": "4029:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4029:58:9" | |
} | |
], | |
"functionName": { | |
"name": "sstore", | |
"nodeType": "YulIdentifier", | |
"src": "4014:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4014:74:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "4014:74:9" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"name": "loopEnd", | |
"nodeType": "YulIdentifier", | |
"src": "3907:7:9" | |
}, | |
{ | |
"name": "newLen", | |
"nodeType": "YulIdentifier", | |
"src": "3916:6:9" | |
} | |
], | |
"functionName": { | |
"name": "lt", | |
"nodeType": "YulIdentifier", | |
"src": "3904:2:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3904:19:9" | |
}, | |
"nodeType": "YulIf", | |
"src": "3901:201:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "slot", | |
"nodeType": "YulIdentifier", | |
"src": "4122:4:9" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4136:1:9", | |
"type": "", | |
"value": "1" | |
}, | |
{ | |
"name": "newLen", | |
"nodeType": "YulIdentifier", | |
"src": "4139:6:9" | |
} | |
], | |
"functionName": { | |
"name": "shl", | |
"nodeType": "YulIdentifier", | |
"src": "4132:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4132:14:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4148:1:9", | |
"type": "", | |
"value": "1" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "4128:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4128:22:9" | |
} | |
], | |
"functionName": { | |
"name": "sstore", | |
"nodeType": "YulIdentifier", | |
"src": "4115:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4115:36:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "4115:36:9" | |
} | |
] | |
}, | |
"nodeType": "YulCase", | |
"src": "3498:663:9", | |
"value": { | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3503:1:9", | |
"type": "", | |
"value": "1" | |
} | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "4178:234:9", | |
"statements": [ | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "4192:14:9", | |
"value": { | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4205:1:9", | |
"type": "", | |
"value": "0" | |
}, | |
"variables": [ | |
{ | |
"name": "value", | |
"nodeType": "YulTypedName", | |
"src": "4196:5:9", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "4241:67:9", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "4259:35:9", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "src", | |
"nodeType": "YulIdentifier", | |
"src": "4278:3:9" | |
}, | |
{ | |
"name": "srcOffset", | |
"nodeType": "YulIdentifier", | |
"src": "4283:9:9" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "4274:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4274:19:9" | |
} | |
], | |
"functionName": { | |
"name": "mload", | |
"nodeType": "YulIdentifier", | |
"src": "4268:5:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4268:26:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "4259:5:9" | |
} | |
] | |
} | |
] | |
}, | |
"condition": { | |
"name": "newLen", | |
"nodeType": "YulIdentifier", | |
"src": "4222:6:9" | |
}, | |
"nodeType": "YulIf", | |
"src": "4219:89:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "slot", | |
"nodeType": "YulIdentifier", | |
"src": "4328:4:9" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "4387:5:9" | |
}, | |
{ | |
"name": "newLen", | |
"nodeType": "YulIdentifier", | |
"src": "4394:6:9" | |
} | |
], | |
"functionName": { | |
"name": "extract_used_part_and_set_length_of_short_byte_array", | |
"nodeType": "YulIdentifier", | |
"src": "4334:52:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4334:67:9" | |
} | |
], | |
"functionName": { | |
"name": "sstore", | |
"nodeType": "YulIdentifier", | |
"src": "4321:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4321:81:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "4321:81:9" | |
} | |
] | |
}, | |
"nodeType": "YulCase", | |
"src": "4170:242:9", | |
"value": "default" | |
} | |
], | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "newLen", | |
"nodeType": "YulIdentifier", | |
"src": "3478:6:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3486:2:9", | |
"type": "", | |
"value": "31" | |
} | |
], | |
"functionName": { | |
"name": "gt", | |
"nodeType": "YulIdentifier", | |
"src": "3475:2:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3475:14:9" | |
}, | |
"nodeType": "YulSwitch", | |
"src": "3468:944:9" | |
} | |
] | |
}, | |
"name": "copy_byte_array_to_storage_from_t_string_memory_ptr_to_t_string_storage", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "slot", | |
"nodeType": "YulTypedName", | |
"src": "3147:4:9", | |
"type": "" | |
}, | |
{ | |
"name": "src", | |
"nodeType": "YulTypedName", | |
"src": "3153:3:9", | |
"type": "" | |
} | |
], | |
"src": "3066:1352:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "4597:171:9", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "4614:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4625:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "4607:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4607:21:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "4607:21:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "4648:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4659:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "4644:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4644:18:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4664:2:9", | |
"type": "", | |
"value": "21" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "4637:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4637:30:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "4637:30:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "4687:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4698:2:9", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "4683:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4683:18:9" | |
}, | |
{ | |
"hexValue": "45524332304361707065643a206361702069732030", | |
"kind": "string", | |
"nodeType": "YulLiteral", | |
"src": "4703:23:9", | |
"type": "", | |
"value": "ERC20Capped: cap is 0" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "4676:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4676:51:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "4676:51:9" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "4736:26:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "4748:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4759:2:9", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "4744:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4744:18:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "4736:4:9" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_stringliteral_073f3193e2b9c9099973df1adea790edf33994edcd3f57beae2487f3c5bd8828__to_t_string_memory_ptr__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "4574:9:9", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "4588:4:9", | |
"type": "" | |
} | |
], | |
"src": "4423:345:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "4821:77:9", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "4831:16:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "x", | |
"nodeType": "YulIdentifier", | |
"src": "4842:1:9" | |
}, | |
{ | |
"name": "y", | |
"nodeType": "YulIdentifier", | |
"src": "4845:1:9" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "4838:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4838:9:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "sum", | |
"nodeType": "YulIdentifier", | |
"src": "4831:3:9" | |
} | |
] | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "4870:22:9", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [], | |
"functionName": { | |
"name": "panic_error_0x11", | |
"nodeType": "YulIdentifier", | |
"src": "4872:16:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4872:18:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "4872:18:9" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"name": "x", | |
"nodeType": "YulIdentifier", | |
"src": "4862:1:9" | |
}, | |
{ | |
"name": "sum", | |
"nodeType": "YulIdentifier", | |
"src": "4865:3:9" | |
} | |
], | |
"functionName": { | |
"name": "gt", | |
"nodeType": "YulIdentifier", | |
"src": "4859:2:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4859:10:9" | |
}, | |
"nodeType": "YulIf", | |
"src": "4856:36:9" | |
} | |
] | |
}, | |
"name": "checked_add_t_uint256", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "x", | |
"nodeType": "YulTypedName", | |
"src": "4804:1:9", | |
"type": "" | |
}, | |
{ | |
"name": "y", | |
"nodeType": "YulTypedName", | |
"src": "4807:1:9", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "sum", | |
"nodeType": "YulTypedName", | |
"src": "4813:3:9", | |
"type": "" | |
} | |
], | |
"src": "4773:125:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "5077:175:9", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "5094:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5105:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "5087:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5087:21:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "5087:21:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "5128:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5139:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "5124:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5124:18:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5144:2:9", | |
"type": "", | |
"value": "25" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "5117:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5117:30:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "5117:30:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "5167:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5178:2:9", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "5163:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5163:18:9" | |
}, | |
{ | |
"hexValue": "45524332304361707065643a20636170206578636565646564", | |
"kind": "string", | |
"nodeType": "YulLiteral", | |
"src": "5183:27:9", | |
"type": "", | |
"value": "ERC20Capped: cap exceeded" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "5156:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5156:55:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "5156:55:9" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "5220:26:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "5232:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5243:2:9", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "5228:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5228:18:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "5220:4:9" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_stringliteral_c0532a65ade852f12d67926b1625bbc98f7eb7c650703bf531fd4e07ded2c49f__to_t_string_memory_ptr__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "5054:9:9", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "5068:4:9", | |
"type": "" | |
} | |
], | |
"src": "4903:349:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "5431:181:9", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "5448:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5459:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "5441:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5441:21:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "5441:21:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "5482:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5493:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "5478:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5478:18:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5498:2:9", | |
"type": "", | |
"value": "31" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "5471:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5471:30:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "5471:30:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "5521:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5532:2:9", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "5517:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5517:18:9" | |
}, | |
{ | |
"hexValue": "45524332303a206d696e7420746f20746865207a65726f2061646472657373", | |
"kind": "string", | |
"nodeType": "YulLiteral", | |
"src": "5537:33:9", | |
"type": "", | |
"value": "ERC20: mint to the zero address" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "5510:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5510:61:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "5510:61:9" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "5580:26:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "5592:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5603:2:9", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "5588:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5588:18:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "5580:4:9" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_stringliteral_fc0b381caf0a47702017f3c4b358ebe3d3aff6c60ce819a8bf3ef5a95d4f202e__to_t_string_memory_ptr__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "5408:9:9", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "5422:4:9", | |
"type": "" | |
} | |
], | |
"src": "5257:355:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "5718:76:9", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "5728:26:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "5740:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5751:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "5736:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5736:18:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "5728:4:9" | |
} | |
] | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "5770:9:9" | |
}, | |
{ | |
"name": "value0", | |
"nodeType": "YulIdentifier", | |
"src": "5781:6:9" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "5763:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5763:25:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "5763:25:9" | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "5687:9:9", | |
"type": "" | |
}, | |
{ | |
"name": "value0", | |
"nodeType": "YulTypedName", | |
"src": "5698:6:9", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "5709:4:9", | |
"type": "" | |
} | |
], | |
"src": "5617:177:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "5973:166:9", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "5990:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6001:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "5983:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5983:21:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "5983:21:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "6024:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6035:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "6020:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6020:18:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6040:2:9", | |
"type": "", | |
"value": "16" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "6013:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6013:30:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "6013:30:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "6063:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6074:2:9", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "6059:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6059:18:9" | |
}, | |
{ | |
"hexValue": "5061757361626c653a20706175736564", | |
"kind": "string", | |
"nodeType": "YulLiteral", | |
"src": "6079:18:9", | |
"type": "", | |
"value": "Pausable: paused" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "6052:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6052:46:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "6052:46:9" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "6107:26:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "6119:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6130:2:9", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "6115:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6115:18:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "6107:4:9" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_stringliteral_68571e1369f7a6dcdcd736cb0343b35a58ed0f64d245c2ed839c98d412744f8a__to_t_string_memory_ptr__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "5950:9:9", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "5964:4:9", | |
"type": "" | |
} | |
], | |
"src": "5799:340:9" | |
} | |
] | |
}, | |
"contents": "{\n { }\n function panic_error_0x11()\n {\n mstore(0, shl(224, 0x4e487b71))\n mstore(4, 0x11)\n revert(0, 0x24)\n }\n function checked_exp_helper(_base, exponent) -> power, base\n {\n let power_1 := 1\n power := power_1\n base := _base\n for { } gt(exponent, power_1) { }\n {\n if gt(base, div(not(0), base)) { panic_error_0x11() }\n if and(exponent, power_1) { power := mul(power, base) }\n base := mul(base, base)\n exponent := shr(power_1, exponent)\n }\n }\n function checked_exp_unsigned(base, exponent) -> power\n {\n if iszero(exponent)\n {\n power := 1\n leave\n }\n if iszero(base)\n {\n power := 0\n leave\n }\n switch base\n case 1 {\n power := 1\n leave\n }\n case 2 {\n if gt(exponent, 255) { panic_error_0x11() }\n power := shl(exponent, 1)\n leave\n }\n if or(and(lt(base, 11), lt(exponent, 78)), and(lt(base, 307), lt(exponent, 32)))\n {\n power := exp(base, exponent)\n leave\n }\n let power_1, base_1 := checked_exp_helper(base, exponent)\n if gt(power_1, div(not(0), base_1)) { panic_error_0x11() }\n power := mul(power_1, base_1)\n }\n function checked_exp_t_uint256_t_uint8(base, exponent) -> power\n {\n power := checked_exp_unsigned(base, and(exponent, 0xff))\n }\n function checked_mul_t_uint256(x, y) -> product\n {\n product := mul(x, y)\n if iszero(or(iszero(x), eq(y, div(product, x)))) { panic_error_0x11() }\n }\n function panic_error_0x41()\n {\n mstore(0, shl(224, 0x4e487b71))\n mstore(4, 0x41)\n revert(0, 0x24)\n }\n function extract_byte_array_length(data) -> length\n {\n length := shr(1, data)\n let outOfPlaceEncoding := and(data, 1)\n if iszero(outOfPlaceEncoding) { length := and(length, 0x7f) }\n if eq(outOfPlaceEncoding, lt(length, 32))\n {\n mstore(0, shl(224, 0x4e487b71))\n mstore(4, 0x22)\n revert(0, 0x24)\n }\n }\n function array_dataslot_string_storage(ptr) -> data\n {\n mstore(0, ptr)\n data := keccak256(0, 0x20)\n }\n function clean_up_bytearray_end_slots_string_storage(array, len, startIndex)\n {\n if gt(len, 31)\n {\n let _1 := 0\n mstore(_1, array)\n let data := keccak256(_1, 0x20)\n let deleteStart := add(data, shr(5, add(startIndex, 31)))\n if lt(startIndex, 0x20) { deleteStart := data }\n let _2 := add(data, shr(5, add(len, 31)))\n let start := deleteStart\n for { } lt(start, _2) { start := add(start, 1) }\n { sstore(start, _1) }\n }\n }\n function extract_used_part_and_set_length_of_short_byte_array(data, len) -> used\n {\n used := or(and(data, not(shr(shl(3, len), not(0)))), shl(1, len))\n }\n function copy_byte_array_to_storage_from_t_string_memory_ptr_to_t_string_storage(slot, src)\n {\n let newLen := mload(src)\n if gt(newLen, sub(shl(64, 1), 1)) { panic_error_0x41() }\n clean_up_bytearray_end_slots_string_storage(slot, extract_byte_array_length(sload(slot)), newLen)\n let srcOffset := 0\n let srcOffset_1 := 0x20\n srcOffset := srcOffset_1\n switch gt(newLen, 31)\n case 1 {\n let loopEnd := and(newLen, not(31))\n let dstPtr := array_dataslot_string_storage(slot)\n let i := 0\n for { } lt(i, loopEnd) { i := add(i, srcOffset_1) }\n {\n sstore(dstPtr, mload(add(src, srcOffset)))\n dstPtr := add(dstPtr, 1)\n srcOffset := add(srcOffset, srcOffset_1)\n }\n if lt(loopEnd, newLen)\n {\n let lastValue := mload(add(src, srcOffset))\n sstore(dstPtr, and(lastValue, not(shr(and(shl(3, newLen), 248), not(0)))))\n }\n sstore(slot, add(shl(1, newLen), 1))\n }\n default {\n let value := 0\n if newLen\n {\n value := mload(add(src, srcOffset))\n }\n sstore(slot, extract_used_part_and_set_length_of_short_byte_array(value, newLen))\n }\n }\n function abi_encode_tuple_t_stringliteral_073f3193e2b9c9099973df1adea790edf33994edcd3f57beae2487f3c5bd8828__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 21)\n mstore(add(headStart, 64), \"ERC20Capped: cap is 0\")\n tail := add(headStart, 96)\n }\n function checked_add_t_uint256(x, y) -> sum\n {\n sum := add(x, y)\n if gt(x, sum) { panic_error_0x11() }\n }\n function abi_encode_tuple_t_stringliteral_c0532a65ade852f12d67926b1625bbc98f7eb7c650703bf531fd4e07ded2c49f__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 25)\n mstore(add(headStart, 64), \"ERC20Capped: cap exceeded\")\n tail := add(headStart, 96)\n }\n function abi_encode_tuple_t_stringliteral_fc0b381caf0a47702017f3c4b358ebe3d3aff6c60ce819a8bf3ef5a95d4f202e__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 31)\n mstore(add(headStart, 64), \"ERC20: mint to the zero address\")\n tail := add(headStart, 96)\n }\n function abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed(headStart, value0) -> tail\n {\n tail := add(headStart, 32)\n mstore(headStart, value0)\n }\n function abi_encode_tuple_t_stringliteral_68571e1369f7a6dcdcd736cb0343b35a58ed0f64d245c2ed839c98d412744f8a__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 16)\n mstore(add(headStart, 64), \"Pausable: paused\")\n tail := add(headStart, 96)\n }\n}", | |
"id": 9, | |
"language": "Yul", | |
"name": "#utility.yul" | |
} | |
], | |
"linkReferences": {}, | |
"object": "60a06040523480156200001157600080fd5b50620000206012600a62000460565b620000319064170cdc1e0062000478565b6040518060400160405280600d81526020016c14d85b5cde4810d85c1a5d185b609a1b81525060405180604001604052806003815260200162534d3960e81b815250816003908162000084919062000536565b50600462000093828262000536565b50505060008111620000ec5760405162461bcd60e51b815260206004820152601560248201527f45524332304361707065643a206361702069732030000000000000000000000060448201526064015b60405180910390fd5b6080526005805460ff19169055620001043362000134565b6200012e33620001176012600a62000460565b620001289064170cdc1e0062000478565b6200018e565b62000618565b600580546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200019a82826200019e565b5050565b60805181620001ac60025490565b620001b8919062000602565b1115620002085760405162461bcd60e51b815260206004820152601960248201527f45524332304361707065643a20636170206578636565646564000000000000006044820152606401620000e3565b6200019a82826001600160a01b038216620002665760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401620000e3565b6200027460008383620002df565b806002600082825462000288919062000602565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b620002e962000301565b620002fc8383836001600160e01b038416565b505050565b60055460ff1615620003495760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401620000e3565b565b634e487b7160e01b600052601160045260246000fd5b600181815b80851115620003a25781600019048211156200038657620003866200034b565b808516156200039457918102915b93841c939080029062000366565b509250929050565b600082620003bb575060016200045a565b81620003ca575060006200045a565b8160018114620003e35760028114620003ee576200040e565b60019150506200045a565b60ff8411156200040257620004026200034b565b50506001821b6200045a565b5060208310610133831016604e8410600b841016171562000433575081810a6200045a565b6200043f838362000361565b80600019048211156200045657620004566200034b565b0290505b92915050565b60006200047160ff841683620003aa565b9392505050565b80820281158282048414176200045a576200045a6200034b565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620004bd57607f821691505b602082108103620004de57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002fc57600081815260208120601f850160051c810160208610156200050d5750805b601f850160051c820191505b818110156200052e5782815560010162000519565b505050505050565b81516001600160401b0381111562000552576200055262000492565b6200056a81620005638454620004a8565b84620004e4565b602080601f831160018114620005a25760008415620005895750858301515b600019600386901b1c1916600185901b1785556200052e565b600085815260208120601f198616915b82811015620005d357888601518255948401946001909101908401620005b2565b5085821015620005f25787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b808201808211156200045a576200045a6200034b565b608051610d926200063460003960006101a80152610d926000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c806370a08231116100ad57806395d89b411161007157806395d89b411461027c578063a457c2d714610284578063a9059cbb14610297578063dd62ed3e146102aa578063f2fde38b146102bd57600080fd5b806370a0823114610207578063715018a61461023057806379cc6790146102385780638456cb591461024b5780638da5cb5b1461025357600080fd5b8063355274ea116100f4578063355274ea146101a657806339509351146101cc5780633f4ba83a146101df57806342966c68146101e95780635c975abb146101fc57600080fd5b806306fdde0314610131578063095ea7b31461014f57806318160ddd1461017257806323b872dd14610184578063313ce56714610197575b600080fd5b6101396102d0565b6040516101469190610bc3565b60405180910390f35b61016261015d366004610c2d565b610362565b6040519015158152602001610146565b6002545b604051908152602001610146565b610162610192366004610c57565b61037c565b60405160128152602001610146565b7f0000000000000000000000000000000000000000000000000000000000000000610176565b6101626101da366004610c2d565b6103a0565b6101e76103c2565b005b6101e76101f7366004610c93565b6103d4565b60055460ff16610162565b610176610215366004610cac565b6001600160a01b031660009081526020819052604090205490565b6101e76103e1565b6101e7610246366004610c2d565b6103f3565b6101e761040c565b60055461010090046001600160a01b03166040516001600160a01b039091168152602001610146565b61013961041c565b610162610292366004610c2d565b61042b565b6101626102a5366004610c2d565b6104ab565b6101766102b8366004610cce565b6104b9565b6101e76102cb366004610cac565b6104e4565b6060600380546102df90610d01565b80601f016020809104026020016040519081016040528092919081815260200182805461030b90610d01565b80156103585780601f1061032d57610100808354040283529160200191610358565b820191906000526020600020905b81548152906001019060200180831161033b57829003601f168201915b5050505050905090565b60003361037081858561055a565b60019150505b92915050565b60003361038a85828561067f565b6103958585856106f9565b506001949350505050565b6000336103708185856103b383836104b9565b6103bd9190610d3b565b61055a565b6103ca6108a8565b6103d2610908565b565b6103de338261095a565b50565b6103e96108a8565b6103d26000610a90565b6103fe82338361067f565b610408828261095a565b5050565b6104146108a8565b6103d2610aea565b6060600480546102df90610d01565b6000338161043982866104b9565b90508381101561049e5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b610395828686840361055a565b6000336103708185856106f9565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6104ec6108a8565b6001600160a01b0381166105515760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610495565b6103de81610a90565b6001600160a01b0383166105bc5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610495565b6001600160a01b03821661061d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610495565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b600061068b84846104b9565b905060001981146106f357818110156106e65760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610495565b6106f3848484840361055a565b50505050565b6001600160a01b03831661075d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610495565b6001600160a01b0382166107bf5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610495565b6107ca838383610b27565b6001600160a01b038316600090815260208190526040902054818110156108425760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610495565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36106f3565b6005546001600160a01b036101009091041633146103d25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610495565b610910610b34565b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b0382166109ba5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610495565b6109c682600083610b27565b6001600160a01b03821660009081526020819052604090205481811015610a3a5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610495565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101610672565b600580546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610af2610b7d565b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861093d3390565b610b2f610b7d565b505050565b60055460ff166103d25760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610495565b60055460ff16156103d25760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610495565b600060208083528351808285015260005b81811015610bf057858101830151858201604001528201610bd4565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610c2857600080fd5b919050565b60008060408385031215610c4057600080fd5b610c4983610c11565b946020939093013593505050565b600080600060608486031215610c6c57600080fd5b610c7584610c11565b9250610c8360208501610c11565b9150604084013590509250925092565b600060208284031215610ca557600080fd5b5035919050565b600060208284031215610cbe57600080fd5b610cc782610c11565b9392505050565b60008060408385031215610ce157600080fd5b610cea83610c11565b9150610cf860208401610c11565b90509250929050565b600181811c90821680610d1557607f821691505b602082108103610d3557634e487b7160e01b600052602260045260246000fd5b50919050565b8082018082111561037657634e487b7160e01b600052601160045260246000fdfea2646970667358221220c45b28e7b4917c63ec285cf0323f1f8cb683ebbe7c94256b0e4d52d8ed174b4064736f6c63430008140033", | |
"opcodes": "PUSH1 0xA0 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH3 0x11 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH3 0x20 PUSH1 0x12 PUSH1 0xA PUSH3 0x460 JUMP JUMPDEST PUSH3 0x31 SWAP1 PUSH5 0x170CDC1E00 PUSH3 0x478 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 PUSH1 0x40 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0xD DUP2 MSTORE PUSH1 0x20 ADD PUSH13 0x14D85B5CDE4810D85C1A5D185B PUSH1 0x9A SHL DUP2 MSTORE POP PUSH1 0x40 MLOAD DUP1 PUSH1 0x40 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0x3 DUP2 MSTORE PUSH1 0x20 ADD PUSH3 0x534D39 PUSH1 0xE8 SHL DUP2 MSTORE POP DUP2 PUSH1 0x3 SWAP1 DUP2 PUSH3 0x84 SWAP2 SWAP1 PUSH3 0x536 JUMP JUMPDEST POP PUSH1 0x4 PUSH3 0x93 DUP3 DUP3 PUSH3 0x536 JUMP JUMPDEST POP POP POP PUSH1 0x0 DUP2 GT PUSH3 0xEC JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x15 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x45524332304361707065643A2063617020697320300000000000000000000000 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH1 0x80 MSTORE PUSH1 0x5 DUP1 SLOAD PUSH1 0xFF NOT AND SWAP1 SSTORE PUSH3 0x104 CALLER PUSH3 0x134 JUMP JUMPDEST PUSH3 0x12E CALLER PUSH3 0x117 PUSH1 0x12 PUSH1 0xA PUSH3 0x460 JUMP JUMPDEST PUSH3 0x128 SWAP1 PUSH5 0x170CDC1E00 PUSH3 0x478 JUMP JUMPDEST PUSH3 0x18E JUMP JUMPDEST PUSH3 0x618 JUMP JUMPDEST PUSH1 0x5 DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 DUP2 AND PUSH2 0x100 DUP2 DUP2 MUL PUSH2 0x100 PUSH1 0x1 PUSH1 0xA8 SHL SUB NOT DUP6 AND OR SWAP1 SWAP5 SSTORE PUSH1 0x40 MLOAD SWAP4 SWAP1 SWAP3 DIV AND SWAP2 DUP3 SWAP1 PUSH32 0x8BE0079C531659141344CD1FD0A4F28419497F9722A3DAAFE3B4186F6B6457E0 SWAP1 PUSH1 0x0 SWAP1 LOG3 POP POP JUMP JUMPDEST PUSH3 0x19A DUP3 DUP3 PUSH3 0x19E JUMP JUMPDEST POP POP JUMP JUMPDEST PUSH1 0x80 MLOAD DUP2 PUSH3 0x1AC PUSH1 0x2 SLOAD SWAP1 JUMP JUMPDEST PUSH3 0x1B8 SWAP2 SWAP1 PUSH3 0x602 JUMP JUMPDEST GT ISZERO PUSH3 0x208 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x19 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x45524332304361707065643A2063617020657863656564656400000000000000 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH3 0xE3 JUMP JUMPDEST PUSH3 0x19A DUP3 DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND PUSH3 0x266 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x1F PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x45524332303A206D696E7420746F20746865207A65726F206164647265737300 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH3 0xE3 JUMP JUMPDEST PUSH3 0x274 PUSH1 0x0 DUP4 DUP4 PUSH3 0x2DF JUMP JUMPDEST DUP1 PUSH1 0x2 PUSH1 0x0 DUP3 DUP3 SLOAD PUSH3 0x288 SWAP2 SWAP1 PUSH3 0x602 JUMP JUMPDEST SWAP1 SWAP2 SSTORE POP POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x20 DUP2 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 DUP1 SLOAD DUP7 ADD SWAP1 SSTORE MLOAD DUP5 DUP2 MSTORE PUSH32 0xDDF252AD1BE2C89B69C2B068FC378DAA952BA7F163C4A11628F55A4DF523B3EF SWAP2 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG3 POP POP JUMP JUMPDEST PUSH3 0x2E9 PUSH3 0x301 JUMP JUMPDEST PUSH3 0x2FC DUP4 DUP4 DUP4 PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB DUP5 AND JUMP JUMPDEST POP POP POP JUMP JUMPDEST PUSH1 0x5 SLOAD PUSH1 0xFF AND ISZERO PUSH3 0x349 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x10 PUSH1 0x24 DUP3 ADD MSTORE PUSH16 0x14185D5CD8589B194E881C185D5CD959 PUSH1 0x82 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH3 0xE3 JUMP JUMPDEST JUMP JUMPDEST PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x1 DUP2 DUP2 JUMPDEST DUP1 DUP6 GT ISZERO PUSH3 0x3A2 JUMPI DUP2 PUSH1 0x0 NOT DIV DUP3 GT ISZERO PUSH3 0x386 JUMPI PUSH3 0x386 PUSH3 0x34B JUMP JUMPDEST DUP1 DUP6 AND ISZERO PUSH3 0x394 JUMPI SWAP2 DUP2 MUL SWAP2 JUMPDEST SWAP4 DUP5 SHR SWAP4 SWAP1 DUP1 MUL SWAP1 PUSH3 0x366 JUMP JUMPDEST POP SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH3 0x3BB JUMPI POP PUSH1 0x1 PUSH3 0x45A JUMP JUMPDEST DUP2 PUSH3 0x3CA JUMPI POP PUSH1 0x0 PUSH3 0x45A JUMP JUMPDEST DUP2 PUSH1 0x1 DUP2 EQ PUSH3 0x3E3 JUMPI PUSH1 0x2 DUP2 EQ PUSH3 0x3EE JUMPI PUSH3 0x40E JUMP JUMPDEST PUSH1 0x1 SWAP2 POP POP PUSH3 0x45A JUMP JUMPDEST PUSH1 0xFF DUP5 GT ISZERO PUSH3 0x402 JUMPI PUSH3 0x402 PUSH3 0x34B JUMP JUMPDEST POP POP PUSH1 0x1 DUP3 SHL PUSH3 0x45A JUMP JUMPDEST POP PUSH1 0x20 DUP4 LT PUSH2 0x133 DUP4 LT AND PUSH1 0x4E DUP5 LT PUSH1 0xB DUP5 LT AND OR ISZERO PUSH3 0x433 JUMPI POP DUP2 DUP2 EXP PUSH3 0x45A JUMP JUMPDEST PUSH3 0x43F DUP4 DUP4 PUSH3 0x361 JUMP JUMPDEST DUP1 PUSH1 0x0 NOT DIV DUP3 GT ISZERO PUSH3 0x456 JUMPI PUSH3 0x456 PUSH3 0x34B JUMP JUMPDEST MUL SWAP1 POP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH3 0x471 PUSH1 0xFF DUP5 AND DUP4 PUSH3 0x3AA JUMP JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST DUP1 DUP3 MUL DUP2 ISZERO DUP3 DUP3 DIV DUP5 EQ OR PUSH3 0x45A JUMPI PUSH3 0x45A PUSH3 0x34B JUMP JUMPDEST PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x41 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x1 DUP2 DUP2 SHR SWAP1 DUP3 AND DUP1 PUSH3 0x4BD JUMPI PUSH1 0x7F DUP3 AND SWAP2 POP JUMPDEST PUSH1 0x20 DUP3 LT DUP2 SUB PUSH3 0x4DE JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x22 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x1F DUP3 GT ISZERO PUSH3 0x2FC JUMPI PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x20 DUP2 KECCAK256 PUSH1 0x1F DUP6 ADD PUSH1 0x5 SHR DUP2 ADD PUSH1 0x20 DUP7 LT ISZERO PUSH3 0x50D JUMPI POP DUP1 JUMPDEST PUSH1 0x1F DUP6 ADD PUSH1 0x5 SHR DUP3 ADD SWAP2 POP JUMPDEST DUP2 DUP2 LT ISZERO PUSH3 0x52E JUMPI DUP3 DUP2 SSTORE PUSH1 0x1 ADD PUSH3 0x519 JUMP JUMPDEST POP POP POP POP POP POP JUMP JUMPDEST DUP2 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH3 0x552 JUMPI PUSH3 0x552 PUSH3 0x492 JUMP JUMPDEST PUSH3 0x56A DUP2 PUSH3 0x563 DUP5 SLOAD PUSH3 0x4A8 JUMP JUMPDEST DUP5 PUSH3 0x4E4 JUMP JUMPDEST PUSH1 0x20 DUP1 PUSH1 0x1F DUP4 GT PUSH1 0x1 DUP2 EQ PUSH3 0x5A2 JUMPI PUSH1 0x0 DUP5 ISZERO PUSH3 0x589 JUMPI POP DUP6 DUP4 ADD MLOAD JUMPDEST PUSH1 0x0 NOT PUSH1 0x3 DUP7 SWAP1 SHL SHR NOT AND PUSH1 0x1 DUP6 SWAP1 SHL OR DUP6 SSTORE PUSH3 0x52E JUMP JUMPDEST PUSH1 0x0 DUP6 DUP2 MSTORE PUSH1 0x20 DUP2 KECCAK256 PUSH1 0x1F NOT DUP7 AND SWAP2 JUMPDEST DUP3 DUP2 LT ISZERO PUSH3 0x5D3 JUMPI DUP9 DUP7 ADD MLOAD DUP3 SSTORE SWAP5 DUP5 ADD SWAP5 PUSH1 0x1 SWAP1 SWAP2 ADD SWAP1 DUP5 ADD PUSH3 0x5B2 JUMP JUMPDEST POP DUP6 DUP3 LT ISZERO PUSH3 0x5F2 JUMPI DUP8 DUP6 ADD MLOAD PUSH1 0x0 NOT PUSH1 0x3 DUP9 SWAP1 SHL PUSH1 0xF8 AND SHR NOT AND DUP2 SSTORE JUMPDEST POP POP POP POP POP PUSH1 0x1 SWAP1 DUP2 SHL ADD SWAP1 SSTORE POP JUMP JUMPDEST DUP1 DUP3 ADD DUP1 DUP3 GT ISZERO PUSH3 0x45A JUMPI PUSH3 0x45A PUSH3 0x34B JUMP JUMPDEST PUSH1 0x80 MLOAD PUSH2 0xD92 PUSH3 0x634 PUSH1 0x0 CODECOPY PUSH1 0x0 PUSH2 0x1A8 ADD MSTORE PUSH2 0xD92 PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x12C JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x70A08231 GT PUSH2 0xAD JUMPI DUP1 PUSH4 0x95D89B41 GT PUSH2 0x71 JUMPI DUP1 PUSH4 0x95D89B41 EQ PUSH2 0x27C JUMPI DUP1 PUSH4 0xA457C2D7 EQ PUSH2 0x284 JUMPI DUP1 PUSH4 0xA9059CBB EQ PUSH2 0x297 JUMPI DUP1 PUSH4 0xDD62ED3E EQ PUSH2 0x2AA JUMPI DUP1 PUSH4 0xF2FDE38B EQ PUSH2 0x2BD JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x70A08231 EQ PUSH2 0x207 JUMPI DUP1 PUSH4 0x715018A6 EQ PUSH2 0x230 JUMPI DUP1 PUSH4 0x79CC6790 EQ PUSH2 0x238 JUMPI DUP1 PUSH4 0x8456CB59 EQ PUSH2 0x24B JUMPI DUP1 PUSH4 0x8DA5CB5B EQ PUSH2 0x253 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x355274EA GT PUSH2 0xF4 JUMPI DUP1 PUSH4 0x355274EA EQ PUSH2 0x1A6 JUMPI DUP1 PUSH4 0x39509351 EQ PUSH2 0x1CC JUMPI DUP1 PUSH4 0x3F4BA83A EQ PUSH2 0x1DF JUMPI DUP1 PUSH4 0x42966C68 EQ PUSH2 0x1E9 JUMPI DUP1 PUSH4 0x5C975ABB EQ PUSH2 0x1FC JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x6FDDE03 EQ PUSH2 0x131 JUMPI DUP1 PUSH4 0x95EA7B3 EQ PUSH2 0x14F JUMPI DUP1 PUSH4 0x18160DDD EQ PUSH2 0x172 JUMPI DUP1 PUSH4 0x23B872DD EQ PUSH2 0x184 JUMPI DUP1 PUSH4 0x313CE567 EQ PUSH2 0x197 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x139 PUSH2 0x2D0 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x146 SWAP2 SWAP1 PUSH2 0xBC3 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x162 PUSH2 0x15D CALLDATASIZE PUSH1 0x4 PUSH2 0xC2D JUMP JUMPDEST PUSH2 0x362 JUMP JUMPDEST PUSH1 0x40 MLOAD SWAP1 ISZERO ISZERO DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x146 JUMP JUMPDEST PUSH1 0x2 SLOAD JUMPDEST PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x146 JUMP JUMPDEST PUSH2 0x162 PUSH2 0x192 CALLDATASIZE PUSH1 0x4 PUSH2 0xC57 JUMP JUMPDEST PUSH2 0x37C JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x12 DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x146 JUMP JUMPDEST PUSH32 0x0 PUSH2 0x176 JUMP JUMPDEST PUSH2 0x162 PUSH2 0x1DA CALLDATASIZE PUSH1 0x4 PUSH2 0xC2D JUMP JUMPDEST PUSH2 0x3A0 JUMP JUMPDEST PUSH2 0x1E7 PUSH2 0x3C2 JUMP JUMPDEST STOP JUMPDEST PUSH2 0x1E7 PUSH2 0x1F7 CALLDATASIZE PUSH1 0x4 PUSH2 0xC93 JUMP JUMPDEST PUSH2 0x3D4 JUMP JUMPDEST PUSH1 0x5 SLOAD PUSH1 0xFF AND PUSH2 0x162 JUMP JUMPDEST PUSH2 0x176 PUSH2 0x215 CALLDATASIZE PUSH1 0x4 PUSH2 0xCAC JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD SWAP1 JUMP JUMPDEST PUSH2 0x1E7 PUSH2 0x3E1 JUMP JUMPDEST PUSH2 0x1E7 PUSH2 0x246 CALLDATASIZE PUSH1 0x4 PUSH2 0xC2D JUMP JUMPDEST PUSH2 0x3F3 JUMP JUMPDEST PUSH2 0x1E7 PUSH2 0x40C JUMP JUMPDEST PUSH1 0x5 SLOAD PUSH2 0x100 SWAP1 DIV PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x40 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x146 JUMP JUMPDEST PUSH2 0x139 PUSH2 0x41C JUMP JUMPDEST PUSH2 0x162 PUSH2 0x292 CALLDATASIZE PUSH1 0x4 PUSH2 0xC2D JUMP JUMPDEST PUSH2 0x42B JUMP JUMPDEST PUSH2 0x162 PUSH2 0x2A5 CALLDATASIZE PUSH1 0x4 PUSH2 0xC2D JUMP JUMPDEST PUSH2 0x4AB JUMP JUMPDEST PUSH2 0x176 PUSH2 0x2B8 CALLDATASIZE PUSH1 0x4 PUSH2 0xCCE JUMP JUMPDEST PUSH2 0x4B9 JUMP JUMPDEST PUSH2 0x1E7 PUSH2 0x2CB CALLDATASIZE PUSH1 0x4 PUSH2 0xCAC JUMP JUMPDEST PUSH2 0x4E4 JUMP JUMPDEST PUSH1 0x60 PUSH1 0x3 DUP1 SLOAD PUSH2 0x2DF SWAP1 PUSH2 0xD01 JUMP JUMPDEST DUP1 PUSH1 0x1F ADD PUSH1 0x20 DUP1 SWAP2 DIV MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP1 SLOAD PUSH2 0x30B SWAP1 PUSH2 0xD01 JUMP JUMPDEST DUP1 ISZERO PUSH2 0x358 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x32D JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x358 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x33B JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 CALLER PUSH2 0x370 DUP2 DUP6 DUP6 PUSH2 0x55A JUMP JUMPDEST PUSH1 0x1 SWAP2 POP POP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 CALLER PUSH2 0x38A DUP6 DUP3 DUP6 PUSH2 0x67F JUMP JUMPDEST PUSH2 0x395 DUP6 DUP6 DUP6 PUSH2 0x6F9 JUMP JUMPDEST POP PUSH1 0x1 SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH1 0x0 CALLER PUSH2 0x370 DUP2 DUP6 DUP6 PUSH2 0x3B3 DUP4 DUP4 PUSH2 0x4B9 JUMP JUMPDEST PUSH2 0x3BD SWAP2 SWAP1 PUSH2 0xD3B JUMP JUMPDEST PUSH2 0x55A JUMP JUMPDEST PUSH2 0x3CA PUSH2 0x8A8 JUMP JUMPDEST PUSH2 0x3D2 PUSH2 0x908 JUMP JUMPDEST JUMP JUMPDEST PUSH2 0x3DE CALLER DUP3 PUSH2 0x95A JUMP JUMPDEST POP JUMP JUMPDEST PUSH2 0x3E9 PUSH2 0x8A8 JUMP JUMPDEST PUSH2 0x3D2 PUSH1 0x0 PUSH2 0xA90 JUMP JUMPDEST PUSH2 0x3FE DUP3 CALLER DUP4 PUSH2 0x67F JUMP JUMPDEST PUSH2 0x408 DUP3 DUP3 PUSH2 0x95A JUMP JUMPDEST POP POP JUMP JUMPDEST PUSH2 0x414 PUSH2 0x8A8 JUMP JUMPDEST PUSH2 0x3D2 PUSH2 0xAEA JUMP JUMPDEST PUSH1 0x60 PUSH1 0x4 DUP1 SLOAD PUSH2 0x2DF SWAP1 PUSH2 0xD01 JUMP JUMPDEST PUSH1 0x0 CALLER DUP2 PUSH2 0x439 DUP3 DUP7 PUSH2 0x4B9 JUMP JUMPDEST SWAP1 POP DUP4 DUP2 LT ISZERO PUSH2 0x49E JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x25 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x45524332303A2064656372656173656420616C6C6F77616E63652062656C6F77 PUSH1 0x44 DUP3 ADD MSTORE PUSH5 0x207A65726F PUSH1 0xD8 SHL PUSH1 0x64 DUP3 ADD MSTORE PUSH1 0x84 ADD JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH2 0x395 DUP3 DUP7 DUP7 DUP5 SUB PUSH2 0x55A JUMP JUMPDEST PUSH1 0x0 CALLER PUSH2 0x370 DUP2 DUP6 DUP6 PUSH2 0x6F9 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP2 DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 SWAP4 SWAP1 SWAP5 AND DUP3 MSTORE SWAP2 SWAP1 SWAP2 MSTORE KECCAK256 SLOAD SWAP1 JUMP JUMPDEST PUSH2 0x4EC PUSH2 0x8A8 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH2 0x551 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x26 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x4F776E61626C653A206E6577206F776E657220697320746865207A65726F2061 PUSH1 0x44 DUP3 ADD MSTORE PUSH6 0x646472657373 PUSH1 0xD0 SHL PUSH1 0x64 DUP3 ADD MSTORE PUSH1 0x84 ADD PUSH2 0x495 JUMP JUMPDEST PUSH2 0x3DE DUP2 PUSH2 0xA90 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND PUSH2 0x5BC JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x24 DUP1 DUP3 ADD MSTORE PUSH32 0x45524332303A20617070726F76652066726F6D20746865207A65726F20616464 PUSH1 0x44 DUP3 ADD MSTORE PUSH4 0x72657373 PUSH1 0xE0 SHL PUSH1 0x64 DUP3 ADD MSTORE PUSH1 0x84 ADD PUSH2 0x495 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND PUSH2 0x61D JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x22 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x45524332303A20617070726F766520746F20746865207A65726F206164647265 PUSH1 0x44 DUP3 ADD MSTORE PUSH2 0x7373 PUSH1 0xF0 SHL PUSH1 0x64 DUP3 ADD MSTORE PUSH1 0x84 ADD PUSH2 0x495 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 DUP2 AND PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 SWAP5 DUP8 AND DUP1 DUP5 MSTORE SWAP5 DUP3 MSTORE SWAP2 DUP3 SWAP1 KECCAK256 DUP6 SWAP1 SSTORE SWAP1 MLOAD DUP5 DUP2 MSTORE PUSH32 0x8C5BE1E5EBEC7D5BD14F71427D1E84F3DD0314C0F7B2291E5B200AC8C7C3B925 SWAP2 ADD JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x68B DUP5 DUP5 PUSH2 0x4B9 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 NOT DUP2 EQ PUSH2 0x6F3 JUMPI DUP2 DUP2 LT ISZERO PUSH2 0x6E6 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x1D PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x45524332303A20696E73756666696369656E7420616C6C6F77616E6365000000 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x495 JUMP JUMPDEST PUSH2 0x6F3 DUP5 DUP5 DUP5 DUP5 SUB PUSH2 0x55A JUMP JUMPDEST POP POP POP POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND PUSH2 0x75D JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x25 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x45524332303A207472616E736665722066726F6D20746865207A65726F206164 PUSH1 0x44 DUP3 ADD MSTORE PUSH5 0x6472657373 PUSH1 0xD8 SHL PUSH1 0x64 DUP3 ADD MSTORE PUSH1 0x84 ADD PUSH2 0x495 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND PUSH2 0x7BF JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x23 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x45524332303A207472616E7366657220746F20746865207A65726F2061646472 PUSH1 0x44 DUP3 ADD MSTORE PUSH3 0x657373 PUSH1 0xE8 SHL PUSH1 0x64 DUP3 ADD MSTORE PUSH1 0x84 ADD PUSH2 0x495 JUMP JUMPDEST PUSH2 0x7CA DUP4 DUP4 DUP4 PUSH2 0xB27 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD DUP2 DUP2 LT ISZERO PUSH2 0x842 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x26 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x45524332303A207472616E7366657220616D6F756E7420657863656564732062 PUSH1 0x44 DUP3 ADD MSTORE PUSH6 0x616C616E6365 PUSH1 0xD0 SHL PUSH1 0x64 DUP3 ADD MSTORE PUSH1 0x84 ADD PUSH2 0x495 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP5 DUP2 AND PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x20 DUP2 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 DUP8 DUP8 SUB SWAP1 SSTORE SWAP4 DUP8 AND DUP1 DUP4 MSTORE SWAP2 DUP5 SWAP1 KECCAK256 DUP1 SLOAD DUP8 ADD SWAP1 SSTORE SWAP3 MLOAD DUP6 DUP2 MSTORE SWAP1 SWAP3 PUSH32 0xDDF252AD1BE2C89B69C2B068FC378DAA952BA7F163C4A11628F55A4DF523B3EF SWAP2 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG3 PUSH2 0x6F3 JUMP JUMPDEST PUSH1 0x5 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH2 0x100 SWAP1 SWAP2 DIV AND CALLER EQ PUSH2 0x3D2 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD DUP2 SWAP1 MSTORE PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x4F776E61626C653A2063616C6C6572206973206E6F7420746865206F776E6572 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x495 JUMP JUMPDEST PUSH2 0x910 PUSH2 0xB34 JUMP JUMPDEST PUSH1 0x5 DUP1 SLOAD PUSH1 0xFF NOT AND SWAP1 SSTORE PUSH32 0x5DB9EE0A495BF2E6FF9C91A7834C1BA4FDD244A5E8AA4E537BD38AEAE4B073AA CALLER JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND PUSH2 0x9BA JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x21 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x45524332303A206275726E2066726F6D20746865207A65726F20616464726573 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x73 PUSH1 0xF8 SHL PUSH1 0x64 DUP3 ADD MSTORE PUSH1 0x84 ADD PUSH2 0x495 JUMP JUMPDEST PUSH2 0x9C6 DUP3 PUSH1 0x0 DUP4 PUSH2 0xB27 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD DUP2 DUP2 LT ISZERO PUSH2 0xA3A JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x22 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x45524332303A206275726E20616D6F756E7420657863656564732062616C616E PUSH1 0x44 DUP3 ADD MSTORE PUSH2 0x6365 PUSH1 0xF0 SHL PUSH1 0x64 DUP3 ADD MSTORE PUSH1 0x84 ADD PUSH2 0x495 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x20 DUP2 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 DUP7 DUP7 SUB SWAP1 SSTORE PUSH1 0x2 DUP1 SLOAD DUP8 SWAP1 SUB SWAP1 SSTORE MLOAD DUP6 DUP2 MSTORE SWAP2 SWAP3 SWAP2 PUSH32 0xDDF252AD1BE2C89B69C2B068FC378DAA952BA7F163C4A11628F55A4DF523B3EF SWAP2 ADD PUSH2 0x672 JUMP JUMPDEST PUSH1 0x5 DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 DUP2 AND PUSH2 0x100 DUP2 DUP2 MUL PUSH2 0x100 PUSH1 0x1 PUSH1 0xA8 SHL SUB NOT DUP6 AND OR SWAP1 SWAP5 SSTORE PUSH1 0x40 MLOAD SWAP4 SWAP1 SWAP3 DIV AND SWAP2 DUP3 SWAP1 PUSH32 0x8BE0079C531659141344CD1FD0A4F28419497F9722A3DAAFE3B4186F6B6457E0 SWAP1 PUSH1 0x0 SWAP1 LOG3 POP POP JUMP JUMPDEST PUSH2 0xAF2 PUSH2 0xB7D JUMP JUMPDEST PUSH1 0x5 DUP1 SLOAD PUSH1 0xFF NOT AND PUSH1 0x1 OR SWAP1 SSTORE PUSH32 0x62E78CEA01BEE320CD4E420270B5EA74000D11B0C9F74754EBDBFC544B05A258 PUSH2 0x93D CALLER SWAP1 JUMP JUMPDEST PUSH2 0xB2F PUSH2 0xB7D JUMP JUMPDEST POP POP POP JUMP JUMPDEST PUSH1 0x5 SLOAD PUSH1 0xFF AND PUSH2 0x3D2 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x14 PUSH1 0x24 DUP3 ADD MSTORE PUSH20 0x14185D5CD8589B194E881B9BDD081C185D5CD959 PUSH1 0x62 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x495 JUMP JUMPDEST PUSH1 0x5 SLOAD PUSH1 0xFF AND ISZERO PUSH2 0x3D2 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x10 PUSH1 0x24 DUP3 ADD MSTORE PUSH16 0x14185D5CD8589B194E881C185D5CD959 PUSH1 0x82 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x495 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP1 DUP4 MSTORE DUP4 MLOAD DUP1 DUP3 DUP6 ADD MSTORE PUSH1 0x0 JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0xBF0 JUMPI DUP6 DUP2 ADD DUP4 ADD MLOAD DUP6 DUP3 ADD PUSH1 0x40 ADD MSTORE DUP3 ADD PUSH2 0xBD4 JUMP JUMPDEST POP PUSH1 0x0 PUSH1 0x40 DUP3 DUP7 ADD ADD MSTORE PUSH1 0x40 PUSH1 0x1F NOT PUSH1 0x1F DUP4 ADD AND DUP6 ADD ADD SWAP3 POP POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST DUP1 CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND DUP2 EQ PUSH2 0xC28 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0xC40 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0xC49 DUP4 PUSH2 0xC11 JUMP JUMPDEST SWAP5 PUSH1 0x20 SWAP4 SWAP1 SWAP4 ADD CALLDATALOAD SWAP4 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0xC6C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0xC75 DUP5 PUSH2 0xC11 JUMP JUMPDEST SWAP3 POP PUSH2 0xC83 PUSH1 0x20 DUP6 ADD PUSH2 0xC11 JUMP JUMPDEST SWAP2 POP PUSH1 0x40 DUP5 ADD CALLDATALOAD SWAP1 POP SWAP3 POP SWAP3 POP SWAP3 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0xCA5 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP CALLDATALOAD SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0xCBE JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0xCC7 DUP3 PUSH2 0xC11 JUMP JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0xCE1 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0xCEA DUP4 PUSH2 0xC11 JUMP JUMPDEST SWAP2 POP PUSH2 0xCF8 PUSH1 0x20 DUP5 ADD PUSH2 0xC11 JUMP JUMPDEST SWAP1 POP SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH1 0x1 DUP2 DUP2 SHR SWAP1 DUP3 AND DUP1 PUSH2 0xD15 JUMPI PUSH1 0x7F DUP3 AND SWAP2 POP JUMPDEST PUSH1 0x20 DUP3 LT DUP2 SUB PUSH2 0xD35 JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x22 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST POP SWAP2 SWAP1 POP JUMP JUMPDEST DUP1 DUP3 ADD DUP1 DUP3 GT ISZERO PUSH2 0x376 JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xC4 JUMPDEST 0x28 0xE7 0xB4 SWAP2 PUSH29 0x63EC285CF0323F1F8CB683EBBE7C94256B0E4D52D8ED174B4064736F6C PUSH4 0x43000814 STOP CALLER ", | |
"sourceMap": "579:930:0:-:0;;;650:179;;;;;;;;;-1:-1:-1;738:16:0;3186:2:3;738::0;:16;:::i;:::-;724:30;;:11;:30;:::i;:::-;1980:113:3;;;;;;;;;;;;;-1:-1:-1;;;1980:113:3;;;;;;;;;;;;;;;;-1:-1:-1;;;1980:113:3;;;2054:5;2046;:13;;;;;;:::i;:::-;-1:-1:-1;2069:7:3;:17;2079:7;2069;:17;:::i;:::-;;1980:113;;501:1:6;494:4;:8;486:42;;;;-1:-1:-1;;;486:42:6;;4625:2:9;486:42:6;;;4607:21:9;4664:2;4644:18;;;4637:30;4703:23;4683:18;;;4676:51;4744:18;;486:42:6;;;;;;;;;538:11;;996:7:2;:15;;-1:-1:-1;;996:15:2;;;936:32:1;719:10:8;936:18:1;:32::i;:::-;772:49:0::2;778:10;804:16;3186:2:3::0;804::0::2;:16;:::i;:::-;790:30;::::0;:11:::2;:30;:::i;:::-;772:5;:49::i;:::-;579:930:::0;;2426:187:1;2518:6;;;-1:-1:-1;;;;;2534:17:1;;;2518:6;2534:17;;;-1:-1:-1;;;;;;2534:17:1;;;;;;2566:40;;2518:6;;;;;;;;2566:40;;2499:16;;2566:40;2489:124;2426:187;:::o;1146:146:0:-;1261:23;1273:2;1277:6;1261:11;:23::i;:::-;1146:146;;:::o;769:204:6:-;705:4;;883:6;861:19;3342:12:3;;;3255:106;861:19:6;:28;;;;:::i;:::-;:37;;853:75;;;;-1:-1:-1;;;853:75:6;;5105:2:9;853:75:6;;;5087:21:9;5144:2;5124:18;;;5117:30;5183:27;5163:18;;;5156:55;5228:18;;853:75:6;4903:349:9;853:75:6;938:28;950:7;959:6;-1:-1:-1;;;;;8603:21:3;;8595:65;;;;-1:-1:-1;;;8595:65:3;;5459:2:9;8595:65:3;;;5441:21:9;5498:2;5478:18;;;5471:30;5537:33;5517:18;;;5510:61;5588:18;;8595:65:3;5257:355:9;8595:65:3;8671:49;8700:1;8704:7;8713:6;8671:20;:49::i;:::-;8747:6;8731:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;8899:18:3;;:9;:18;;;;;;;;;;;:28;;;;;;8952:37;5763:25:9;;;8952:37:3;;5736:18:9;8952:37:3;;;;;;;1146:146:0;;:::o;1300:206::-;1239:19:2;:17;:19::i;:::-;1454:44:0::1;1481:4:::0;1487:2;1491:6;-1:-1:-1;;;;;1454:44:0;;:::i:1;:::-;1300:206:::0;;;:::o;1767:106:2:-;1685:7;;;;1836:9;1828:38;;;;-1:-1:-1;;;1828:38:2;;6001:2:9;1828:38:2;;;5983:21:9;6040:2;6020:18;;;6013:30;-1:-1:-1;;;6059:18:9;;;6052:46;6115:18;;1828:38:2;5799:340:9;1828:38:2;1767:106::o;14:127:9:-;75:10;70:3;66:20;63:1;56:31;106:4;103:1;96:15;130:4;127:1;120:15;146:422;235:1;278:5;235:1;292:270;313:7;303:8;300:21;292:270;;;372:4;368:1;364:6;360:17;354:4;351:27;348:53;;;381:18;;:::i;:::-;431:7;421:8;417:22;414:55;;;451:16;;;;414:55;530:22;;;;490:15;;;;292:270;;;296:3;146:422;;;;;:::o;573:806::-;622:5;652:8;642:80;;-1:-1:-1;693:1:9;707:5;;642:80;741:4;731:76;;-1:-1:-1;778:1:9;792:5;;731:76;823:4;841:1;836:59;;;;909:1;904:130;;;;816:218;;836:59;866:1;857:10;;880:5;;;904:130;941:3;931:8;928:17;925:43;;;948:18;;:::i;:::-;-1:-1:-1;;1004:1:9;990:16;;1019:5;;816:218;;1118:2;1108:8;1105:16;1099:3;1093:4;1090:13;1086:36;1080:2;1070:8;1067:16;1062:2;1056:4;1053:12;1049:35;1046:77;1043:159;;;-1:-1:-1;1155:19:9;;;1187:5;;1043:159;1234:34;1259:8;1253:4;1234:34;:::i;:::-;1304:6;1300:1;1296:6;1292:19;1283:7;1280:32;1277:58;;;1315:18;;:::i;:::-;1353:20;;-1:-1:-1;573:806:9;;;;;:::o;1384:140::-;1442:5;1471:47;1512:4;1502:8;1498:19;1492:4;1471:47;:::i;:::-;1462:56;1384:140;-1:-1:-1;;;1384:140:9:o;1529:168::-;1602:9;;;1633;;1650:15;;;1644:22;;1630:37;1620:71;;1671:18;;:::i;1702:127::-;1763:10;1758:3;1754:20;1751:1;1744:31;1794:4;1791:1;1784:15;1818:4;1815:1;1808:15;1834:380;1913:1;1909:12;;;;1956;;;1977:61;;2031:4;2023:6;2019:17;2009:27;;1977:61;2084:2;2076:6;2073:14;2053:18;2050:38;2047:161;;2130:10;2125:3;2121:20;2118:1;2111:31;2165:4;2162:1;2155:15;2193:4;2190:1;2183:15;2047:161;;1834:380;;;:::o;2345:545::-;2447:2;2442:3;2439:11;2436:448;;;2483:1;2508:5;2504:2;2497:17;2553:4;2549:2;2539:19;2623:2;2611:10;2607:19;2604:1;2600:27;2594:4;2590:38;2659:4;2647:10;2644:20;2641:47;;;-1:-1:-1;2682:4:9;2641:47;2737:2;2732:3;2728:12;2725:1;2721:20;2715:4;2711:31;2701:41;;2792:82;2810:2;2803:5;2800:13;2792:82;;;2855:17;;;2836:1;2825:13;2792:82;;;2796:3;;;2345:545;;;:::o;3066:1352::-;3186:10;;-1:-1:-1;;;;;3208:30:9;;3205:56;;;3241:18;;:::i;:::-;3270:97;3360:6;3320:38;3352:4;3346:11;3320:38;:::i;:::-;3314:4;3270:97;:::i;:::-;3422:4;;3486:2;3475:14;;3503:1;3498:663;;;;4205:1;4222:6;4219:89;;;-1:-1:-1;4274:19:9;;;4268:26;4219:89;-1:-1:-1;;3023:1:9;3019:11;;;3015:24;3011:29;3001:40;3047:1;3043:11;;;2998:57;4321:81;;3468:944;;3498:663;2292:1;2285:14;;;2329:4;2316:18;;-1:-1:-1;;3534:20:9;;;3652:236;3666:7;3663:1;3660:14;3652:236;;;3755:19;;;3749:26;3734:42;;3847:27;;;;3815:1;3803:14;;;;3682:19;;3652:236;;;3656:3;3916:6;3907:7;3904:19;3901:201;;;3977:19;;;3971:26;-1:-1:-1;;4060:1:9;4056:14;;;4072:3;4052:24;4048:37;4044:42;4029:58;4014:74;;3901:201;-1:-1:-1;;;;;4148:1:9;4132:14;;;4128:22;4115:36;;-1:-1:-1;3066:1352:9:o;4773:125::-;4838:9;;;4859:10;;;4856:36;;;4872:18;;:::i;5799:340::-;579:930:0;;;;;;;;;;;;" | |
}, | |
"deployedBytecode": { | |
"functionDebugData": { | |
"@_afterTokenTransfer_906": { | |
"entryPoint": null, | |
"id": 906, | |
"parameterSlots": 3, | |
"returnSlots": 0 | |
}, | |
"@_approve_841": { | |
"entryPoint": 1370, | |
"id": 841, | |
"parameterSlots": 3, | |
"returnSlots": 0 | |
}, | |
"@_beforeTokenTransfer_895": { | |
"entryPoint": null, | |
"id": 895, | |
"parameterSlots": 3, | |
"returnSlots": 0 | |
}, | |
"@_beforeTokenTransfer_98": { | |
"entryPoint": 2855, | |
"id": 98, | |
"parameterSlots": 3, | |
"returnSlots": 0 | |
}, | |
"@_burn_796": { | |
"entryPoint": 2394, | |
"id": 796, | |
"parameterSlots": 2, | |
"returnSlots": 0 | |
}, | |
"@_checkOwner_154": { | |
"entryPoint": 2216, | |
"id": 154, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"@_msgSender_1131": { | |
"entryPoint": null, | |
"id": 1131, | |
"parameterSlots": 0, | |
"returnSlots": 1 | |
}, | |
"@_pause_303": { | |
"entryPoint": 2794, | |
"id": 303, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"@_requireNotPaused_276": { | |
"entryPoint": 2941, | |
"id": 276, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"@_requirePaused_287": { | |
"entryPoint": 2868, | |
"id": 287, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"@_spendAllowance_884": { | |
"entryPoint": 1663, | |
"id": 884, | |
"parameterSlots": 3, | |
"returnSlots": 0 | |
}, | |
"@_transferOwnership_211": { | |
"entryPoint": 2704, | |
"id": 211, | |
"parameterSlots": 1, | |
"returnSlots": 0 | |
}, | |
"@_transfer_667": { | |
"entryPoint": 1785, | |
"id": 667, | |
"parameterSlots": 3, | |
"returnSlots": 0 | |
}, | |
"@_unpause_319": { | |
"entryPoint": 2312, | |
"id": 319, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"@allowance_462": { | |
"entryPoint": 1209, | |
"id": 462, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"@approve_487": { | |
"entryPoint": 866, | |
"id": 487, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"@balanceOf_419": { | |
"entryPoint": null, | |
"id": 419, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"@burnFrom_1028": { | |
"entryPoint": 1011, | |
"id": 1028, | |
"parameterSlots": 2, | |
"returnSlots": 0 | |
}, | |
"@burn_1007": { | |
"entryPoint": 980, | |
"id": 1007, | |
"parameterSlots": 1, | |
"returnSlots": 0 | |
}, | |
"@cap_1064": { | |
"entryPoint": null, | |
"id": 1064, | |
"parameterSlots": 0, | |
"returnSlots": 1 | |
}, | |
"@decimals_395": { | |
"entryPoint": null, | |
"id": 395, | |
"parameterSlots": 0, | |
"returnSlots": 1 | |
}, | |
"@decreaseAllowance_590": { | |
"entryPoint": 1067, | |
"id": 590, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"@increaseAllowance_549": { | |
"entryPoint": 928, | |
"id": 549, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"@name_375": { | |
"entryPoint": 720, | |
"id": 375, | |
"parameterSlots": 0, | |
"returnSlots": 1 | |
}, | |
"@owner_140": { | |
"entryPoint": null, | |
"id": 140, | |
"parameterSlots": 0, | |
"returnSlots": 1 | |
}, | |
"@pause_49": { | |
"entryPoint": 1036, | |
"id": 49, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"@paused_264": { | |
"entryPoint": null, | |
"id": 264, | |
"parameterSlots": 0, | |
"returnSlots": 1 | |
}, | |
"@renounceOwnership_168": { | |
"entryPoint": 993, | |
"id": 168, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"@symbol_385": { | |
"entryPoint": 1052, | |
"id": 385, | |
"parameterSlots": 0, | |
"returnSlots": 1 | |
}, | |
"@totalSupply_405": { | |
"entryPoint": null, | |
"id": 405, | |
"parameterSlots": 0, | |
"returnSlots": 1 | |
}, | |
"@transferFrom_520": { | |
"entryPoint": 892, | |
"id": 520, | |
"parameterSlots": 3, | |
"returnSlots": 1 | |
}, | |
"@transferOwnership_191": { | |
"entryPoint": 1252, | |
"id": 191, | |
"parameterSlots": 1, | |
"returnSlots": 0 | |
}, | |
"@transfer_444": { | |
"entryPoint": 1195, | |
"id": 444, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"@unpause_58": { | |
"entryPoint": 962, | |
"id": 58, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"abi_decode_address": { | |
"entryPoint": 3089, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_decode_tuple_t_address": { | |
"entryPoint": 3244, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"abi_decode_tuple_t_addresst_address": { | |
"entryPoint": 3278, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 2 | |
}, | |
"abi_decode_tuple_t_addresst_addresst_uint256": { | |
"entryPoint": 3159, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 3 | |
}, | |
"abi_decode_tuple_t_addresst_uint256": { | |
"entryPoint": 3117, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 2 | |
}, | |
"abi_decode_tuple_t_uint256": { | |
"entryPoint": 3219, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_address__to_t_address__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_bool__to_t_bool__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_string_memory_ptr__to_t_string_memory_ptr__fromStack_reversed": { | |
"entryPoint": 3011, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_stringliteral_0557e210f7a69a685100a7e4e3d0a7024c546085cee28910fd17d0b081d9516f__to_t_string_memory_ptr__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_stringliteral_0d1d997348c4b502650619e51f7d09f80514d98b6993be5051d07f703984619a__to_t_string_memory_ptr__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_stringliteral_149b126e7125232b4200af45303d04fba8b74653b1a295a6a561a528c33fefdd__to_t_string_memory_ptr__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_stringliteral_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe__to_t_string_memory_ptr__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_stringliteral_24883cc5fe64ace9d0df1893501ecb93c77180f0ff69cca79affb3c316dc8029__to_t_string_memory_ptr__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_stringliteral_3b6607e091cba9325f958656d2b5e0622ab7dc0eac71a26ac788cb25bc19f4fe__to_t_string_memory_ptr__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_stringliteral_4107e8a8b9e94bf8ff83080ddec1c0bffe897ebc2241b89d44f66b3d274088b6__to_t_string_memory_ptr__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_stringliteral_68571e1369f7a6dcdcd736cb0343b35a58ed0f64d245c2ed839c98d412744f8a__to_t_string_memory_ptr__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_stringliteral_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe__to_t_string_memory_ptr__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_stringliteral_b16788493b576042bb52c50ed56189e0b250db113c7bfb1c3897d25cf9632d7f__to_t_string_memory_ptr__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_stringliteral_baecc556b46f4ed0f2b4cb599d60785ac8563dd2dc0a5bf12edea1c39e5e1fea__to_t_string_memory_ptr__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_stringliteral_c953f4879035ed60e766b34720f656aab5c697b141d924c283124ecedb91c208__to_t_string_memory_ptr__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_stringliteral_f8b476f7d28209d77d4a4ac1fe36b9f8259aa1bb6bddfa6e89de7e51615cf8a8__to_t_string_memory_ptr__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_uint8__to_t_uint8__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"checked_add_t_uint256": { | |
"entryPoint": 3387, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"extract_byte_array_length": { | |
"entryPoint": 3329, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
} | |
}, | |
"generatedSources": [ | |
{ | |
"ast": { | |
"nodeType": "YulBlock", | |
"src": "0:8414:9", | |
"statements": [ | |
{ | |
"nodeType": "YulBlock", | |
"src": "6:3:9", | |
"statements": [] | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "135:427:9", | |
"statements": [ | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "145:12:9", | |
"value": { | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "155:2:9", | |
"type": "", | |
"value": "32" | |
}, | |
"variables": [ | |
{ | |
"name": "_1", | |
"nodeType": "YulTypedName", | |
"src": "149:2:9", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "173:9:9" | |
}, | |
{ | |
"name": "_1", | |
"nodeType": "YulIdentifier", | |
"src": "184:2:9" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "166:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "166:21:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "166:21:9" | |
}, | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "196:27:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulIdentifier", | |
"src": "216:6:9" | |
} | |
], | |
"functionName": { | |
"name": "mload", | |
"nodeType": "YulIdentifier", | |
"src": "210:5:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "210:13:9" | |
}, | |
"variables": [ | |
{ | |
"name": "length", | |
"nodeType": "YulTypedName", | |
"src": "200:6:9", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "243:9:9" | |
}, | |
{ | |
"name": "_1", | |
"nodeType": "YulIdentifier", | |
"src": "254:2:9" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "239:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "239:18:9" | |
}, | |
{ | |
"name": "length", | |
"nodeType": "YulIdentifier", | |
"src": "259:6:9" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "232:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "232:34:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "232:34:9" | |
}, | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "275:10:9", | |
"value": { | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "284:1:9", | |
"type": "", | |
"value": "0" | |
}, | |
"variables": [ | |
{ | |
"name": "i", | |
"nodeType": "YulTypedName", | |
"src": "279:1:9", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "344:90:9", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "373:9:9" | |
}, | |
{ | |
"name": "i", | |
"nodeType": "YulIdentifier", | |
"src": "384:1:9" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "369:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "369:17:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "388:2:9", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "365:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "365:26:9" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulIdentifier", | |
"src": "407:6:9" | |
}, | |
{ | |
"name": "i", | |
"nodeType": "YulIdentifier", | |
"src": "415:1:9" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "403:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "403:14:9" | |
}, | |
{ | |
"name": "_1", | |
"nodeType": "YulIdentifier", | |
"src": "419:2:9" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "399:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "399:23:9" | |
} | |
], | |
"functionName": { | |
"name": "mload", | |
"nodeType": "YulIdentifier", | |
"src": "393:5:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "393:30:9" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "358:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "358:66:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "358:66:9" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"name": "i", | |
"nodeType": "YulIdentifier", | |
"src": "305:1:9" | |
}, | |
{ | |
"name": "length", | |
"nodeType": "YulIdentifier", | |
"src": "308:6:9" | |
} | |
], | |
"functionName": { | |
"name": "lt", | |
"nodeType": "YulIdentifier", | |
"src": "302:2:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "302:13:9" | |
}, | |
"nodeType": "YulForLoop", | |
"post": { | |
"nodeType": "YulBlock", | |
"src": "316:19:9", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "318:15:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "i", | |
"nodeType": "YulIdentifier", | |
"src": "327:1:9" | |
}, | |
{ | |
"name": "_1", | |
"nodeType": "YulIdentifier", | |
"src": "330:2:9" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "323:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "323:10:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "i", | |
"nodeType": "YulIdentifier", | |
"src": "318:1:9" | |
} | |
] | |
} | |
] | |
}, | |
"pre": { | |
"nodeType": "YulBlock", | |
"src": "298:3:9", | |
"statements": [] | |
}, | |
"src": "294:140:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "458:9:9" | |
}, | |
{ | |
"name": "length", | |
"nodeType": "YulIdentifier", | |
"src": "469:6:9" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "454:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "454:22:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "478:2:9", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "450:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "450:31:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "483:1:9", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "443:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "443:42:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "443:42:9" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "494:62:9", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "510:9:9" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "length", | |
"nodeType": "YulIdentifier", | |
"src": "529:6:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "537:2:9", | |
"type": "", | |
"value": "31" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "525:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "525:15:9" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "546:2:9", | |
"type": "", | |
"value": "31" | |
} | |
], | |
"functionName": { | |
"name": "not", | |
"nodeType": "YulIdentifier", | |
"src": "542:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "542:7:9" | |
} | |
], | |
"functionName": { | |
"name": "and", | |
"nodeType": "YulIdentifier", | |
"src": "521:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "521:29:9" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "506:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "506:45:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "553:2:9", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "502:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "502:54:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "494:4:9" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_string_memory_ptr__to_t_string_memory_ptr__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "104:9:9", | |
"type": "" | |
}, | |
{ | |
"name": "value0", | |
"nodeType": "YulTypedName", | |
"src": "115:6:9", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "126:4:9", | |
"type": "" | |
} | |
], | |
"src": "14:548:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "616:124:9", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "626:29:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "648:6:9" | |
} | |
], | |
"functionName": { | |
"name": "calldataload", | |
"nodeType": "YulIdentifier", | |
"src": "635:12:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "635:20:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "626:5:9" | |
} | |
] | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "718:16:9", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "727:1:9", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "730:1:9", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "revert", | |
"nodeType": "YulIdentifier", | |
"src": "720:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "720:12:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "720:12:9" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "677:5:9" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "688:5:9" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "703:3:9", | |
"type": "", | |
"value": "160" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "708:1:9", | |
"type": "", | |
"value": "1" | |
} | |
], | |
"functionName": { | |
"name": "shl", | |
"nodeType": "YulIdentifier", | |
"src": "699:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "699:11:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "712:1:9", | |
"type": "", | |
"value": "1" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "695:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "695:19:9" | |
} | |
], | |
"functionName": { | |
"name": "and", | |
"nodeType": "YulIdentifier", | |
"src": "684:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "684:31:9" | |
} | |
], | |
"functionName": { | |
"name": "eq", | |
"nodeType": "YulIdentifier", | |
"src": "674:2:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "674:42:9" | |
} | |
], | |
"functionName": { | |
"name": "iszero", | |
"nodeType": "YulIdentifier", | |
"src": "667:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "667:50:9" | |
}, | |
"nodeType": "YulIf", | |
"src": "664:70:9" | |
} | |
] | |
}, | |
"name": "abi_decode_address", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulTypedName", | |
"src": "595:6:9", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "value", | |
"nodeType": "YulTypedName", | |
"src": "606:5:9", | |
"type": "" | |
} | |
], | |
"src": "567:173:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "832:167:9", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "878:16:9", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "887:1:9", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "890:1:9", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "revert", | |
"nodeType": "YulIdentifier", | |
"src": "880:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "880:12:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "880:12:9" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "853:7:9" | |
}, | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "862:9:9" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "849:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "849:23:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "874:2:9", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "slt", | |
"nodeType": "YulIdentifier", | |
"src": "845:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "845:32:9" | |
}, | |
"nodeType": "YulIf", | |
"src": "842:52:9" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "903:39:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "932:9:9" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_address", | |
"nodeType": "YulIdentifier", | |
"src": "913:18:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "913:29:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulIdentifier", | |
"src": "903:6:9" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "951:42:9", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "978:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "989:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "974:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "974:18:9" | |
} | |
], | |
"functionName": { | |
"name": "calldataload", | |
"nodeType": "YulIdentifier", | |
"src": "961:12:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "961:32:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value1", | |
"nodeType": "YulIdentifier", | |
"src": "951:6:9" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_decode_tuple_t_addresst_uint256", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "790:9:9", | |
"type": "" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulTypedName", | |
"src": "801:7:9", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulTypedName", | |
"src": "813:6:9", | |
"type": "" | |
}, | |
{ | |
"name": "value1", | |
"nodeType": "YulTypedName", | |
"src": "821:6:9", | |
"type": "" | |
} | |
], | |
"src": "745:254:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "1099:92:9", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "1109:26:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "1121:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1132:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "1117:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1117:18:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "1109:4:9" | |
} | |
] | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "1151:9:9" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulIdentifier", | |
"src": "1176:6:9" | |
} | |
], | |
"functionName": { | |
"name": "iszero", | |
"nodeType": "YulIdentifier", | |
"src": "1169:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1169:14:9" | |
} | |
], | |
"functionName": { | |
"name": "iszero", | |
"nodeType": "YulIdentifier", | |
"src": "1162:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1162:22:9" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "1144:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1144:41:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "1144:41:9" | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_bool__to_t_bool__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "1068:9:9", | |
"type": "" | |
}, | |
{ | |
"name": "value0", | |
"nodeType": "YulTypedName", | |
"src": "1079:6:9", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "1090:4:9", | |
"type": "" | |
} | |
], | |
"src": "1004:187:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "1297:76:9", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "1307:26:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "1319:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1330:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "1315:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1315:18:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "1307:4:9" | |
} | |
] | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "1349:9:9" | |
}, | |
{ | |
"name": "value0", | |
"nodeType": "YulIdentifier", | |
"src": "1360:6:9" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "1342:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1342:25:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "1342:25:9" | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "1266:9:9", | |
"type": "" | |
}, | |
{ | |
"name": "value0", | |
"nodeType": "YulTypedName", | |
"src": "1277:6:9", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "1288:4:9", | |
"type": "" | |
} | |
], | |
"src": "1196:177:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "1482:224:9", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "1528:16:9", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1537:1:9", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1540:1:9", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "revert", | |
"nodeType": "YulIdentifier", | |
"src": "1530:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1530:12:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "1530:12:9" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "1503:7:9" | |
}, | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "1512:9:9" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "1499:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1499:23:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1524:2:9", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "slt", | |
"nodeType": "YulIdentifier", | |
"src": "1495:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1495:32:9" | |
}, | |
"nodeType": "YulIf", | |
"src": "1492:52:9" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "1553:39:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "1582:9:9" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_address", | |
"nodeType": "YulIdentifier", | |
"src": "1563:18:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1563:29:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulIdentifier", | |
"src": "1553:6:9" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "1601:48:9", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "1634:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1645:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "1630:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1630:18:9" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_address", | |
"nodeType": "YulIdentifier", | |
"src": "1611:18:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1611:38:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value1", | |
"nodeType": "YulIdentifier", | |
"src": "1601:6:9" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "1658:42:9", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "1685:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1696:2:9", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "1681:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1681:18:9" | |
} | |
], | |
"functionName": { | |
"name": "calldataload", | |
"nodeType": "YulIdentifier", | |
"src": "1668:12:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1668:32:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value2", | |
"nodeType": "YulIdentifier", | |
"src": "1658:6:9" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_decode_tuple_t_addresst_addresst_uint256", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "1432:9:9", | |
"type": "" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulTypedName", | |
"src": "1443:7:9", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulTypedName", | |
"src": "1455:6:9", | |
"type": "" | |
}, | |
{ | |
"name": "value1", | |
"nodeType": "YulTypedName", | |
"src": "1463:6:9", | |
"type": "" | |
}, | |
{ | |
"name": "value2", | |
"nodeType": "YulTypedName", | |
"src": "1471:6:9", | |
"type": "" | |
} | |
], | |
"src": "1378:328:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "1808:87:9", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "1818:26:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "1830:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1841:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "1826:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1826:18:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "1818:4:9" | |
} | |
] | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "1860:9:9" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulIdentifier", | |
"src": "1875:6:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1883:4:9", | |
"type": "", | |
"value": "0xff" | |
} | |
], | |
"functionName": { | |
"name": "and", | |
"nodeType": "YulIdentifier", | |
"src": "1871:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1871:17:9" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "1853:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1853:36:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "1853:36:9" | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_uint8__to_t_uint8__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "1777:9:9", | |
"type": "" | |
}, | |
{ | |
"name": "value0", | |
"nodeType": "YulTypedName", | |
"src": "1788:6:9", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "1799:4:9", | |
"type": "" | |
} | |
], | |
"src": "1711:184:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "1970:110:9", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "2016:16:9", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2025:1:9", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2028:1:9", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "revert", | |
"nodeType": "YulIdentifier", | |
"src": "2018:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2018:12:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "2018:12:9" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "1991:7:9" | |
}, | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "2000:9:9" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "1987:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1987:23:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2012:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "slt", | |
"nodeType": "YulIdentifier", | |
"src": "1983:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1983:32:9" | |
}, | |
"nodeType": "YulIf", | |
"src": "1980:52:9" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "2041:33:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "2064:9:9" | |
} | |
], | |
"functionName": { | |
"name": "calldataload", | |
"nodeType": "YulIdentifier", | |
"src": "2051:12:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2051:23:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulIdentifier", | |
"src": "2041:6:9" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_decode_tuple_t_uint256", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "1936:9:9", | |
"type": "" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulTypedName", | |
"src": "1947:7:9", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulTypedName", | |
"src": "1959:6:9", | |
"type": "" | |
} | |
], | |
"src": "1900:180:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "2155:116:9", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "2201:16:9", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2210:1:9", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2213:1:9", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "revert", | |
"nodeType": "YulIdentifier", | |
"src": "2203:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2203:12:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "2203:12:9" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "2176:7:9" | |
}, | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "2185:9:9" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "2172:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2172:23:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2197:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "slt", | |
"nodeType": "YulIdentifier", | |
"src": "2168:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2168:32:9" | |
}, | |
"nodeType": "YulIf", | |
"src": "2165:52:9" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "2226:39:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "2255:9:9" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_address", | |
"nodeType": "YulIdentifier", | |
"src": "2236:18:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2236:29:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulIdentifier", | |
"src": "2226:6:9" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_decode_tuple_t_address", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "2121:9:9", | |
"type": "" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulTypedName", | |
"src": "2132:7:9", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulTypedName", | |
"src": "2144:6:9", | |
"type": "" | |
} | |
], | |
"src": "2085:186:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "2377:102:9", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "2387:26:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "2399:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2410:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "2395:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2395:18:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "2387:4:9" | |
} | |
] | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "2429:9:9" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulIdentifier", | |
"src": "2444:6:9" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2460:3:9", | |
"type": "", | |
"value": "160" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2465:1:9", | |
"type": "", | |
"value": "1" | |
} | |
], | |
"functionName": { | |
"name": "shl", | |
"nodeType": "YulIdentifier", | |
"src": "2456:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2456:11:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2469:1:9", | |
"type": "", | |
"value": "1" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "2452:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2452:19:9" | |
} | |
], | |
"functionName": { | |
"name": "and", | |
"nodeType": "YulIdentifier", | |
"src": "2440:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2440:32:9" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "2422:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2422:51:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "2422:51:9" | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_address__to_t_address__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "2346:9:9", | |
"type": "" | |
}, | |
{ | |
"name": "value0", | |
"nodeType": "YulTypedName", | |
"src": "2357:6:9", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "2368:4:9", | |
"type": "" | |
} | |
], | |
"src": "2276:203:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "2571:173:9", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "2617:16:9", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2626:1:9", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2629:1:9", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "revert", | |
"nodeType": "YulIdentifier", | |
"src": "2619:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2619:12:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "2619:12:9" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "2592:7:9" | |
}, | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "2601:9:9" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "2588:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2588:23:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2613:2:9", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "slt", | |
"nodeType": "YulIdentifier", | |
"src": "2584:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2584:32:9" | |
}, | |
"nodeType": "YulIf", | |
"src": "2581:52:9" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "2642:39:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "2671:9:9" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_address", | |
"nodeType": "YulIdentifier", | |
"src": "2652:18:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2652:29:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulIdentifier", | |
"src": "2642:6:9" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "2690:48:9", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "2723:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2734:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "2719:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2719:18:9" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_address", | |
"nodeType": "YulIdentifier", | |
"src": "2700:18:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2700:38:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value1", | |
"nodeType": "YulIdentifier", | |
"src": "2690:6:9" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_decode_tuple_t_addresst_address", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "2529:9:9", | |
"type": "" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulTypedName", | |
"src": "2540:7:9", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulTypedName", | |
"src": "2552:6:9", | |
"type": "" | |
}, | |
{ | |
"name": "value1", | |
"nodeType": "YulTypedName", | |
"src": "2560:6:9", | |
"type": "" | |
} | |
], | |
"src": "2484:260:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "2804:325:9", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "2814:22:9", | |
"value": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2828:1:9", | |
"type": "", | |
"value": "1" | |
}, | |
{ | |
"name": "data", | |
"nodeType": "YulIdentifier", | |
"src": "2831:4:9" | |
} | |
], | |
"functionName": { | |
"name": "shr", | |
"nodeType": "YulIdentifier", | |
"src": "2824:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2824:12:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "length", | |
"nodeType": "YulIdentifier", | |
"src": "2814:6:9" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "2845:38:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "data", | |
"nodeType": "YulIdentifier", | |
"src": "2875:4:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2881:1:9", | |
"type": "", | |
"value": "1" | |
} | |
], | |
"functionName": { | |
"name": "and", | |
"nodeType": "YulIdentifier", | |
"src": "2871:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2871:12:9" | |
}, | |
"variables": [ | |
{ | |
"name": "outOfPlaceEncoding", | |
"nodeType": "YulTypedName", | |
"src": "2849:18:9", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "2922:31:9", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "2924:27:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "length", | |
"nodeType": "YulIdentifier", | |
"src": "2938:6:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2946:4:9", | |
"type": "", | |
"value": "0x7f" | |
} | |
], | |
"functionName": { | |
"name": "and", | |
"nodeType": "YulIdentifier", | |
"src": "2934:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2934:17:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "length", | |
"nodeType": "YulIdentifier", | |
"src": "2924:6:9" | |
} | |
] | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"name": "outOfPlaceEncoding", | |
"nodeType": "YulIdentifier", | |
"src": "2902:18:9" | |
} | |
], | |
"functionName": { | |
"name": "iszero", | |
"nodeType": "YulIdentifier", | |
"src": "2895:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2895:26:9" | |
}, | |
"nodeType": "YulIf", | |
"src": "2892:61:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "3012:111:9", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3033:1:9", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3040:3:9", | |
"type": "", | |
"value": "224" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3045:10:9", | |
"type": "", | |
"value": "0x4e487b71" | |
} | |
], | |
"functionName": { | |
"name": "shl", | |
"nodeType": "YulIdentifier", | |
"src": "3036:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3036:20:9" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "3026:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3026:31:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "3026:31:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3077:1:9", | |
"type": "", | |
"value": "4" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3080:4:9", | |
"type": "", | |
"value": "0x22" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "3070:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3070:15:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "3070:15:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3105:1:9", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3108:4:9", | |
"type": "", | |
"value": "0x24" | |
} | |
], | |
"functionName": { | |
"name": "revert", | |
"nodeType": "YulIdentifier", | |
"src": "3098:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3098:15:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "3098:15:9" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"name": "outOfPlaceEncoding", | |
"nodeType": "YulIdentifier", | |
"src": "2968:18:9" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"name": "length", | |
"nodeType": "YulIdentifier", | |
"src": "2991:6:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2999:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "lt", | |
"nodeType": "YulIdentifier", | |
"src": "2988:2:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2988:14:9" | |
} | |
], | |
"functionName": { | |
"name": "eq", | |
"nodeType": "YulIdentifier", | |
"src": "2965:2:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2965:38:9" | |
}, | |
"nodeType": "YulIf", | |
"src": "2962:161:9" | |
} | |
] | |
}, | |
"name": "extract_byte_array_length", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "data", | |
"nodeType": "YulTypedName", | |
"src": "2784:4:9", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "length", | |
"nodeType": "YulTypedName", | |
"src": "2793:6:9", | |
"type": "" | |
} | |
], | |
"src": "2749:380:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "3182:174:9", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "3192:16:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "x", | |
"nodeType": "YulIdentifier", | |
"src": "3203:1:9" | |
}, | |
{ | |
"name": "y", | |
"nodeType": "YulIdentifier", | |
"src": "3206:1:9" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "3199:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3199:9:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "sum", | |
"nodeType": "YulIdentifier", | |
"src": "3192:3:9" | |
} | |
] | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "3239:111:9", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3260:1:9", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3267:3:9", | |
"type": "", | |
"value": "224" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3272:10:9", | |
"type": "", | |
"value": "0x4e487b71" | |
} | |
], | |
"functionName": { | |
"name": "shl", | |
"nodeType": "YulIdentifier", | |
"src": "3263:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3263:20:9" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "3253:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3253:31:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "3253:31:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3304:1:9", | |
"type": "", | |
"value": "4" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3307:4:9", | |
"type": "", | |
"value": "0x11" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "3297:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3297:15:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "3297:15:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3332:1:9", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3335:4:9", | |
"type": "", | |
"value": "0x24" | |
} | |
], | |
"functionName": { | |
"name": "revert", | |
"nodeType": "YulIdentifier", | |
"src": "3325:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3325:15:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "3325:15:9" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"name": "x", | |
"nodeType": "YulIdentifier", | |
"src": "3223:1:9" | |
}, | |
{ | |
"name": "sum", | |
"nodeType": "YulIdentifier", | |
"src": "3226:3:9" | |
} | |
], | |
"functionName": { | |
"name": "gt", | |
"nodeType": "YulIdentifier", | |
"src": "3220:2:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3220:10:9" | |
}, | |
"nodeType": "YulIf", | |
"src": "3217:133:9" | |
} | |
] | |
}, | |
"name": "checked_add_t_uint256", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "x", | |
"nodeType": "YulTypedName", | |
"src": "3165:1:9", | |
"type": "" | |
}, | |
{ | |
"name": "y", | |
"nodeType": "YulTypedName", | |
"src": "3168:1:9", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "sum", | |
"nodeType": "YulTypedName", | |
"src": "3174:3:9", | |
"type": "" | |
} | |
], | |
"src": "3134:222:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "3535:227:9", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "3552:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3563:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "3545:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3545:21:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "3545:21:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "3586:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3597:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "3582:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3582:18:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3602:2:9", | |
"type": "", | |
"value": "37" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "3575:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3575:30:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "3575:30:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "3625:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3636:2:9", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "3621:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3621:18:9" | |
}, | |
{ | |
"hexValue": "45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77", | |
"kind": "string", | |
"nodeType": "YulLiteral", | |
"src": "3641:34:9", | |
"type": "", | |
"value": "ERC20: decreased allowance below" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "3614:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3614:62:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "3614:62:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "3696:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3707:2:9", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "3692:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3692:18:9" | |
}, | |
{ | |
"hexValue": "207a65726f", | |
"kind": "string", | |
"nodeType": "YulLiteral", | |
"src": "3712:7:9", | |
"type": "", | |
"value": " zero" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "3685:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3685:35:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "3685:35:9" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "3729:27:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "3741:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3752:3:9", | |
"type": "", | |
"value": "128" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "3737:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3737:19:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "3729:4:9" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_stringliteral_f8b476f7d28209d77d4a4ac1fe36b9f8259aa1bb6bddfa6e89de7e51615cf8a8__to_t_string_memory_ptr__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "3512:9:9", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "3526:4:9", | |
"type": "" | |
} | |
], | |
"src": "3361:401:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "3941:228:9", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "3958:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3969:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "3951:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3951:21:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "3951:21:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "3992:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4003:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "3988:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3988:18:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4008:2:9", | |
"type": "", | |
"value": "38" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "3981:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3981:30:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "3981:30:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "4031:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4042:2:9", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "4027:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4027:18:9" | |
}, | |
{ | |
"hexValue": "4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061", | |
"kind": "string", | |
"nodeType": "YulLiteral", | |
"src": "4047:34:9", | |
"type": "", | |
"value": "Ownable: new owner is the zero a" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "4020:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4020:62:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "4020:62:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "4102:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4113:2:9", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "4098:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4098:18:9" | |
}, | |
{ | |
"hexValue": "646472657373", | |
"kind": "string", | |
"nodeType": "YulLiteral", | |
"src": "4118:8:9", | |
"type": "", | |
"value": "ddress" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "4091:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4091:36:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "4091:36:9" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "4136:27:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "4148:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4159:3:9", | |
"type": "", | |
"value": "128" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "4144:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4144:19:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "4136:4:9" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_stringliteral_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe__to_t_string_memory_ptr__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "3918:9:9", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "3932:4:9", | |
"type": "" | |
} | |
], | |
"src": "3767:402:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "4348:226:9", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "4365:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4376:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "4358:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4358:21:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "4358:21:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "4399:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4410:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "4395:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4395:18:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4415:2:9", | |
"type": "", | |
"value": "36" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "4388:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4388:30:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "4388:30:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "4438:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4449:2:9", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "4434:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4434:18:9" | |
}, | |
{ | |
"hexValue": "45524332303a20617070726f76652066726f6d20746865207a65726f20616464", | |
"kind": "string", | |
"nodeType": "YulLiteral", | |
"src": "4454:34:9", | |
"type": "", | |
"value": "ERC20: approve from the zero add" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "4427:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4427:62:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "4427:62:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "4509:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4520:2:9", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "4505:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4505:18:9" | |
}, | |
{ | |
"hexValue": "72657373", | |
"kind": "string", | |
"nodeType": "YulLiteral", | |
"src": "4525:6:9", | |
"type": "", | |
"value": "ress" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "4498:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4498:34:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "4498:34:9" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "4541:27:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "4553:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4564:3:9", | |
"type": "", | |
"value": "128" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "4549:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4549:19:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "4541:4:9" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_stringliteral_c953f4879035ed60e766b34720f656aab5c697b141d924c283124ecedb91c208__to_t_string_memory_ptr__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "4325:9:9", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "4339:4:9", | |
"type": "" | |
} | |
], | |
"src": "4174:400:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "4753:224:9", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "4770:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4781:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "4763:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4763:21:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "4763:21:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "4804:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4815:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "4800:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4800:18:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4820:2:9", | |
"type": "", | |
"value": "34" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "4793:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4793:30:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "4793:30:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "4843:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4854:2:9", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "4839:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4839:18:9" | |
}, | |
{ | |
"hexValue": "45524332303a20617070726f766520746f20746865207a65726f206164647265", | |
"kind": "string", | |
"nodeType": "YulLiteral", | |
"src": "4859:34:9", | |
"type": "", | |
"value": "ERC20: approve to the zero addre" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "4832:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4832:62:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "4832:62:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "4914:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4925:2:9", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "4910:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4910:18:9" | |
}, | |
{ | |
"hexValue": "7373", | |
"kind": "string", | |
"nodeType": "YulLiteral", | |
"src": "4930:4:9", | |
"type": "", | |
"value": "ss" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "4903:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4903:32:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "4903:32:9" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "4944:27:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "4956:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4967:3:9", | |
"type": "", | |
"value": "128" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "4952:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4952:19:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "4944:4:9" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_stringliteral_24883cc5fe64ace9d0df1893501ecb93c77180f0ff69cca79affb3c316dc8029__to_t_string_memory_ptr__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "4730:9:9", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "4744:4:9", | |
"type": "" | |
} | |
], | |
"src": "4579:398:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "5156:179:9", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "5173:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5184:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "5166:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5166:21:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "5166:21:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "5207:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5218:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "5203:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5203:18:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5223:2:9", | |
"type": "", | |
"value": "29" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "5196:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5196:30:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "5196:30:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "5246:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5257:2:9", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "5242:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5242:18:9" | |
}, | |
{ | |
"hexValue": "45524332303a20696e73756666696369656e7420616c6c6f77616e6365", | |
"kind": "string", | |
"nodeType": "YulLiteral", | |
"src": "5262:31:9", | |
"type": "", | |
"value": "ERC20: insufficient allowance" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "5235:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5235:59:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "5235:59:9" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "5303:26:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "5315:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5326:2:9", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "5311:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5311:18:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "5303:4:9" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_stringliteral_3b6607e091cba9325f958656d2b5e0622ab7dc0eac71a26ac788cb25bc19f4fe__to_t_string_memory_ptr__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "5133:9:9", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "5147:4:9", | |
"type": "" | |
} | |
], | |
"src": "4982:353:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "5514:227:9", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "5531:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5542:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "5524:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5524:21:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "5524:21:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "5565:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5576:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "5561:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5561:18:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5581:2:9", | |
"type": "", | |
"value": "37" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "5554:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5554:30:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "5554:30:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "5604:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5615:2:9", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "5600:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5600:18:9" | |
}, | |
{ | |
"hexValue": "45524332303a207472616e736665722066726f6d20746865207a65726f206164", | |
"kind": "string", | |
"nodeType": "YulLiteral", | |
"src": "5620:34:9", | |
"type": "", | |
"value": "ERC20: transfer from the zero ad" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "5593:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5593:62:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "5593:62:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "5675:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5686:2:9", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "5671:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5671:18:9" | |
}, | |
{ | |
"hexValue": "6472657373", | |
"kind": "string", | |
"nodeType": "YulLiteral", | |
"src": "5691:7:9", | |
"type": "", | |
"value": "dress" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "5664:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5664:35:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "5664:35:9" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "5708:27:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "5720:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5731:3:9", | |
"type": "", | |
"value": "128" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "5716:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5716:19:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "5708:4:9" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_stringliteral_baecc556b46f4ed0f2b4cb599d60785ac8563dd2dc0a5bf12edea1c39e5e1fea__to_t_string_memory_ptr__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "5491:9:9", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "5505:4:9", | |
"type": "" | |
} | |
], | |
"src": "5340:401:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "5920:225:9", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "5937:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5948:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "5930:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5930:21:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "5930:21:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "5971:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5982:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "5967:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5967:18:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5987:2:9", | |
"type": "", | |
"value": "35" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "5960:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5960:30:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "5960:30:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "6010:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6021:2:9", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "6006:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6006:18:9" | |
}, | |
{ | |
"hexValue": "45524332303a207472616e7366657220746f20746865207a65726f2061646472", | |
"kind": "string", | |
"nodeType": "YulLiteral", | |
"src": "6026:34:9", | |
"type": "", | |
"value": "ERC20: transfer to the zero addr" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "5999:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5999:62:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "5999:62:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "6081:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6092:2:9", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "6077:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6077:18:9" | |
}, | |
{ | |
"hexValue": "657373", | |
"kind": "string", | |
"nodeType": "YulLiteral", | |
"src": "6097:5:9", | |
"type": "", | |
"value": "ess" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "6070:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6070:33:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "6070:33:9" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "6112:27:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "6124:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6135:3:9", | |
"type": "", | |
"value": "128" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "6120:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6120:19:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "6112:4:9" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_stringliteral_0557e210f7a69a685100a7e4e3d0a7024c546085cee28910fd17d0b081d9516f__to_t_string_memory_ptr__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "5897:9:9", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "5911:4:9", | |
"type": "" | |
} | |
], | |
"src": "5746:399:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "6324:228:9", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "6341:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6352:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "6334:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6334:21:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "6334:21:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "6375:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6386:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "6371:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6371:18:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6391:2:9", | |
"type": "", | |
"value": "38" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "6364:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6364:30:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "6364:30:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "6414:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6425:2:9", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "6410:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6410:18:9" | |
}, | |
{ | |
"hexValue": "45524332303a207472616e7366657220616d6f756e7420657863656564732062", | |
"kind": "string", | |
"nodeType": "YulLiteral", | |
"src": "6430:34:9", | |
"type": "", | |
"value": "ERC20: transfer amount exceeds b" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "6403:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6403:62:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "6403:62:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "6485:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6496:2:9", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "6481:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6481:18:9" | |
}, | |
{ | |
"hexValue": "616c616e6365", | |
"kind": "string", | |
"nodeType": "YulLiteral", | |
"src": "6501:8:9", | |
"type": "", | |
"value": "alance" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "6474:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6474:36:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "6474:36:9" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "6519:27:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "6531:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6542:3:9", | |
"type": "", | |
"value": "128" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "6527:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6527:19:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "6519:4:9" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_stringliteral_4107e8a8b9e94bf8ff83080ddec1c0bffe897ebc2241b89d44f66b3d274088b6__to_t_string_memory_ptr__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "6301:9:9", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "6315:4:9", | |
"type": "" | |
} | |
], | |
"src": "6150:402:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "6731:182:9", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "6748:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6759:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "6741:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6741:21:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "6741:21:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "6782:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6793:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "6778:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6778:18:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6798:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "6771:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6771:30:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "6771:30:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "6821:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6832:2:9", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "6817:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6817:18:9" | |
}, | |
{ | |
"hexValue": "4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572", | |
"kind": "string", | |
"nodeType": "YulLiteral", | |
"src": "6837:34:9", | |
"type": "", | |
"value": "Ownable: caller is not the owner" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "6810:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6810:62:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "6810:62:9" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "6881:26:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "6893:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6904:2:9", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "6889:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6889:18:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "6881:4:9" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_stringliteral_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe__to_t_string_memory_ptr__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "6708:9:9", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "6722:4:9", | |
"type": "" | |
} | |
], | |
"src": "6557:356:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "7092:223:9", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "7109:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "7120:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "7102:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7102:21:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "7102:21:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "7143:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "7154:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "7139:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7139:18:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "7159:2:9", | |
"type": "", | |
"value": "33" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "7132:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7132:30:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "7132:30:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "7182:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "7193:2:9", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "7178:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7178:18:9" | |
}, | |
{ | |
"hexValue": "45524332303a206275726e2066726f6d20746865207a65726f20616464726573", | |
"kind": "string", | |
"nodeType": "YulLiteral", | |
"src": "7198:34:9", | |
"type": "", | |
"value": "ERC20: burn from the zero addres" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "7171:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7171:62:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "7171:62:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "7253:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "7264:2:9", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "7249:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7249:18:9" | |
}, | |
{ | |
"hexValue": "73", | |
"kind": "string", | |
"nodeType": "YulLiteral", | |
"src": "7269:3:9", | |
"type": "", | |
"value": "s" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "7242:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7242:31:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "7242:31:9" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "7282:27:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "7294:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "7305:3:9", | |
"type": "", | |
"value": "128" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "7290:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7290:19:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "7282:4:9" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_stringliteral_b16788493b576042bb52c50ed56189e0b250db113c7bfb1c3897d25cf9632d7f__to_t_string_memory_ptr__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "7069:9:9", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "7083:4:9", | |
"type": "" | |
} | |
], | |
"src": "6918:397:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "7494:224:9", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "7511:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "7522:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "7504:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7504:21:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "7504:21:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "7545:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "7556:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "7541:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7541:18:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "7561:2:9", | |
"type": "", | |
"value": "34" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "7534:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7534:30:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "7534:30:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "7584:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "7595:2:9", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "7580:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7580:18:9" | |
}, | |
{ | |
"hexValue": "45524332303a206275726e20616d6f756e7420657863656564732062616c616e", | |
"kind": "string", | |
"nodeType": "YulLiteral", | |
"src": "7600:34:9", | |
"type": "", | |
"value": "ERC20: burn amount exceeds balan" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "7573:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7573:62:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "7573:62:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "7655:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "7666:2:9", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "7651:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7651:18:9" | |
}, | |
{ | |
"hexValue": "6365", | |
"kind": "string", | |
"nodeType": "YulLiteral", | |
"src": "7671:4:9", | |
"type": "", | |
"value": "ce" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "7644:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7644:32:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "7644:32:9" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "7685:27:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "7697:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "7708:3:9", | |
"type": "", | |
"value": "128" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "7693:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7693:19:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "7685:4:9" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_stringliteral_149b126e7125232b4200af45303d04fba8b74653b1a295a6a561a528c33fefdd__to_t_string_memory_ptr__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "7471:9:9", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "7485:4:9", | |
"type": "" | |
} | |
], | |
"src": "7320:398:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "7897:170:9", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "7914:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "7925:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "7907:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7907:21:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "7907:21:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "7948:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "7959:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "7944:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7944:18:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "7964:2:9", | |
"type": "", | |
"value": "20" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "7937:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7937:30:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "7937:30:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "7987:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "7998:2:9", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "7983:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7983:18:9" | |
}, | |
{ | |
"hexValue": "5061757361626c653a206e6f7420706175736564", | |
"kind": "string", | |
"nodeType": "YulLiteral", | |
"src": "8003:22:9", | |
"type": "", | |
"value": "Pausable: not paused" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "7976:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7976:50:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "7976:50:9" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "8035:26:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "8047:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "8058:2:9", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "8043:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8043:18:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "8035:4:9" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_stringliteral_0d1d997348c4b502650619e51f7d09f80514d98b6993be5051d07f703984619a__to_t_string_memory_ptr__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "7874:9:9", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "7888:4:9", | |
"type": "" | |
} | |
], | |
"src": "7723:344:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "8246:166:9", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "8263:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "8274:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "8256:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8256:21:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "8256:21:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "8297:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "8308:2:9", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "8293:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8293:18:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "8313:2:9", | |
"type": "", | |
"value": "16" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "8286:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8286:30:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "8286:30:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "8336:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "8347:2:9", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "8332:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8332:18:9" | |
}, | |
{ | |
"hexValue": "5061757361626c653a20706175736564", | |
"kind": "string", | |
"nodeType": "YulLiteral", | |
"src": "8352:18:9", | |
"type": "", | |
"value": "Pausable: paused" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "8325:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8325:46:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "8325:46:9" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "8380:26:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "8392:9:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "8403:2:9", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "8388:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8388:18:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "8380:4:9" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_stringliteral_68571e1369f7a6dcdcd736cb0343b35a58ed0f64d245c2ed839c98d412744f8a__to_t_string_memory_ptr__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "8223:9:9", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "8237:4:9", | |
"type": "" | |
} | |
], | |
"src": "8072:340:9" | |
} | |
] | |
}, | |
"contents": "{\n { }\n function abi_encode_tuple_t_string_memory_ptr__to_t_string_memory_ptr__fromStack_reversed(headStart, value0) -> tail\n {\n let _1 := 32\n mstore(headStart, _1)\n let length := mload(value0)\n mstore(add(headStart, _1), length)\n let i := 0\n for { } lt(i, length) { i := add(i, _1) }\n {\n mstore(add(add(headStart, i), 64), mload(add(add(value0, i), _1)))\n }\n mstore(add(add(headStart, length), 64), 0)\n tail := add(add(headStart, and(add(length, 31), not(31))), 64)\n }\n function abi_decode_address(offset) -> value\n {\n value := calldataload(offset)\n if iszero(eq(value, and(value, sub(shl(160, 1), 1)))) { revert(0, 0) }\n }\n function abi_decode_tuple_t_addresst_uint256(headStart, dataEnd) -> value0, value1\n {\n if slt(sub(dataEnd, headStart), 64) { revert(0, 0) }\n value0 := abi_decode_address(headStart)\n value1 := calldataload(add(headStart, 32))\n }\n function abi_encode_tuple_t_bool__to_t_bool__fromStack_reversed(headStart, value0) -> tail\n {\n tail := add(headStart, 32)\n mstore(headStart, iszero(iszero(value0)))\n }\n function abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed(headStart, value0) -> tail\n {\n tail := add(headStart, 32)\n mstore(headStart, value0)\n }\n function abi_decode_tuple_t_addresst_addresst_uint256(headStart, dataEnd) -> value0, value1, value2\n {\n if slt(sub(dataEnd, headStart), 96) { revert(0, 0) }\n value0 := abi_decode_address(headStart)\n value1 := abi_decode_address(add(headStart, 32))\n value2 := calldataload(add(headStart, 64))\n }\n function abi_encode_tuple_t_uint8__to_t_uint8__fromStack_reversed(headStart, value0) -> tail\n {\n tail := add(headStart, 32)\n mstore(headStart, and(value0, 0xff))\n }\n function abi_decode_tuple_t_uint256(headStart, dataEnd) -> value0\n {\n if slt(sub(dataEnd, headStart), 32) { revert(0, 0) }\n value0 := calldataload(headStart)\n }\n function abi_decode_tuple_t_address(headStart, dataEnd) -> value0\n {\n if slt(sub(dataEnd, headStart), 32) { revert(0, 0) }\n value0 := abi_decode_address(headStart)\n }\n function abi_encode_tuple_t_address__to_t_address__fromStack_reversed(headStart, value0) -> tail\n {\n tail := add(headStart, 32)\n mstore(headStart, and(value0, sub(shl(160, 1), 1)))\n }\n function abi_decode_tuple_t_addresst_address(headStart, dataEnd) -> value0, value1\n {\n if slt(sub(dataEnd, headStart), 64) { revert(0, 0) }\n value0 := abi_decode_address(headStart)\n value1 := abi_decode_address(add(headStart, 32))\n }\n function extract_byte_array_length(data) -> length\n {\n length := shr(1, data)\n let outOfPlaceEncoding := and(data, 1)\n if iszero(outOfPlaceEncoding) { length := and(length, 0x7f) }\n if eq(outOfPlaceEncoding, lt(length, 32))\n {\n mstore(0, shl(224, 0x4e487b71))\n mstore(4, 0x22)\n revert(0, 0x24)\n }\n }\n function checked_add_t_uint256(x, y) -> sum\n {\n sum := add(x, y)\n if gt(x, sum)\n {\n mstore(0, shl(224, 0x4e487b71))\n mstore(4, 0x11)\n revert(0, 0x24)\n }\n }\n function abi_encode_tuple_t_stringliteral_f8b476f7d28209d77d4a4ac1fe36b9f8259aa1bb6bddfa6e89de7e51615cf8a8__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 37)\n mstore(add(headStart, 64), \"ERC20: decreased allowance below\")\n mstore(add(headStart, 96), \" zero\")\n tail := add(headStart, 128)\n }\n function abi_encode_tuple_t_stringliteral_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 38)\n mstore(add(headStart, 64), \"Ownable: new owner is the zero a\")\n mstore(add(headStart, 96), \"ddress\")\n tail := add(headStart, 128)\n }\n function abi_encode_tuple_t_stringliteral_c953f4879035ed60e766b34720f656aab5c697b141d924c283124ecedb91c208__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 36)\n mstore(add(headStart, 64), \"ERC20: approve from the zero add\")\n mstore(add(headStart, 96), \"ress\")\n tail := add(headStart, 128)\n }\n function abi_encode_tuple_t_stringliteral_24883cc5fe64ace9d0df1893501ecb93c77180f0ff69cca79affb3c316dc8029__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 34)\n mstore(add(headStart, 64), \"ERC20: approve to the zero addre\")\n mstore(add(headStart, 96), \"ss\")\n tail := add(headStart, 128)\n }\n function abi_encode_tuple_t_stringliteral_3b6607e091cba9325f958656d2b5e0622ab7dc0eac71a26ac788cb25bc19f4fe__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 29)\n mstore(add(headStart, 64), \"ERC20: insufficient allowance\")\n tail := add(headStart, 96)\n }\n function abi_encode_tuple_t_stringliteral_baecc556b46f4ed0f2b4cb599d60785ac8563dd2dc0a5bf12edea1c39e5e1fea__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 37)\n mstore(add(headStart, 64), \"ERC20: transfer from the zero ad\")\n mstore(add(headStart, 96), \"dress\")\n tail := add(headStart, 128)\n }\n function abi_encode_tuple_t_stringliteral_0557e210f7a69a685100a7e4e3d0a7024c546085cee28910fd17d0b081d9516f__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 35)\n mstore(add(headStart, 64), \"ERC20: transfer to the zero addr\")\n mstore(add(headStart, 96), \"ess\")\n tail := add(headStart, 128)\n }\n function abi_encode_tuple_t_stringliteral_4107e8a8b9e94bf8ff83080ddec1c0bffe897ebc2241b89d44f66b3d274088b6__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 38)\n mstore(add(headStart, 64), \"ERC20: transfer amount exceeds b\")\n mstore(add(headStart, 96), \"alance\")\n tail := add(headStart, 128)\n }\n function abi_encode_tuple_t_stringliteral_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 32)\n mstore(add(headStart, 64), \"Ownable: caller is not the owner\")\n tail := add(headStart, 96)\n }\n function abi_encode_tuple_t_stringliteral_b16788493b576042bb52c50ed56189e0b250db113c7bfb1c3897d25cf9632d7f__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 33)\n mstore(add(headStart, 64), \"ERC20: burn from the zero addres\")\n mstore(add(headStart, 96), \"s\")\n tail := add(headStart, 128)\n }\n function abi_encode_tuple_t_stringliteral_149b126e7125232b4200af45303d04fba8b74653b1a295a6a561a528c33fefdd__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 34)\n mstore(add(headStart, 64), \"ERC20: burn amount exceeds balan\")\n mstore(add(headStart, 96), \"ce\")\n tail := add(headStart, 128)\n }\n function abi_encode_tuple_t_stringliteral_0d1d997348c4b502650619e51f7d09f80514d98b6993be5051d07f703984619a__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 20)\n mstore(add(headStart, 64), \"Pausable: not paused\")\n tail := add(headStart, 96)\n }\n function abi_encode_tuple_t_stringliteral_68571e1369f7a6dcdcd736cb0343b35a58ed0f64d245c2ed839c98d412744f8a__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 16)\n mstore(add(headStart, 64), \"Pausable: paused\")\n tail := add(headStart, 96)\n }\n}", | |
"id": 9, | |
"language": "Yul", | |
"name": "#utility.yul" | |
} | |
], | |
"immutableReferences": { | |
"1037": [ | |
{ | |
"length": 32, | |
"start": 424 | |
} | |
] | |
}, | |
"linkReferences": {}, | |
"object": "608060405234801561001057600080fd5b506004361061012c5760003560e01c806370a08231116100ad57806395d89b411161007157806395d89b411461027c578063a457c2d714610284578063a9059cbb14610297578063dd62ed3e146102aa578063f2fde38b146102bd57600080fd5b806370a0823114610207578063715018a61461023057806379cc6790146102385780638456cb591461024b5780638da5cb5b1461025357600080fd5b8063355274ea116100f4578063355274ea146101a657806339509351146101cc5780633f4ba83a146101df57806342966c68146101e95780635c975abb146101fc57600080fd5b806306fdde0314610131578063095ea7b31461014f57806318160ddd1461017257806323b872dd14610184578063313ce56714610197575b600080fd5b6101396102d0565b6040516101469190610bc3565b60405180910390f35b61016261015d366004610c2d565b610362565b6040519015158152602001610146565b6002545b604051908152602001610146565b610162610192366004610c57565b61037c565b60405160128152602001610146565b7f0000000000000000000000000000000000000000000000000000000000000000610176565b6101626101da366004610c2d565b6103a0565b6101e76103c2565b005b6101e76101f7366004610c93565b6103d4565b60055460ff16610162565b610176610215366004610cac565b6001600160a01b031660009081526020819052604090205490565b6101e76103e1565b6101e7610246366004610c2d565b6103f3565b6101e761040c565b60055461010090046001600160a01b03166040516001600160a01b039091168152602001610146565b61013961041c565b610162610292366004610c2d565b61042b565b6101626102a5366004610c2d565b6104ab565b6101766102b8366004610cce565b6104b9565b6101e76102cb366004610cac565b6104e4565b6060600380546102df90610d01565b80601f016020809104026020016040519081016040528092919081815260200182805461030b90610d01565b80156103585780601f1061032d57610100808354040283529160200191610358565b820191906000526020600020905b81548152906001019060200180831161033b57829003601f168201915b5050505050905090565b60003361037081858561055a565b60019150505b92915050565b60003361038a85828561067f565b6103958585856106f9565b506001949350505050565b6000336103708185856103b383836104b9565b6103bd9190610d3b565b61055a565b6103ca6108a8565b6103d2610908565b565b6103de338261095a565b50565b6103e96108a8565b6103d26000610a90565b6103fe82338361067f565b610408828261095a565b5050565b6104146108a8565b6103d2610aea565b6060600480546102df90610d01565b6000338161043982866104b9565b90508381101561049e5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b610395828686840361055a565b6000336103708185856106f9565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6104ec6108a8565b6001600160a01b0381166105515760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610495565b6103de81610a90565b6001600160a01b0383166105bc5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610495565b6001600160a01b03821661061d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610495565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b600061068b84846104b9565b905060001981146106f357818110156106e65760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610495565b6106f3848484840361055a565b50505050565b6001600160a01b03831661075d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610495565b6001600160a01b0382166107bf5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610495565b6107ca838383610b27565b6001600160a01b038316600090815260208190526040902054818110156108425760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610495565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36106f3565b6005546001600160a01b036101009091041633146103d25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610495565b610910610b34565b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b0382166109ba5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610495565b6109c682600083610b27565b6001600160a01b03821660009081526020819052604090205481811015610a3a5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610495565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101610672565b600580546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610af2610b7d565b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861093d3390565b610b2f610b7d565b505050565b60055460ff166103d25760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610495565b60055460ff16156103d25760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610495565b600060208083528351808285015260005b81811015610bf057858101830151858201604001528201610bd4565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610c2857600080fd5b919050565b60008060408385031215610c4057600080fd5b610c4983610c11565b946020939093013593505050565b600080600060608486031215610c6c57600080fd5b610c7584610c11565b9250610c8360208501610c11565b9150604084013590509250925092565b600060208284031215610ca557600080fd5b5035919050565b600060208284031215610cbe57600080fd5b610cc782610c11565b9392505050565b60008060408385031215610ce157600080fd5b610cea83610c11565b9150610cf860208401610c11565b90509250929050565b600181811c90821680610d1557607f821691505b602082108103610d3557634e487b7160e01b600052602260045260246000fd5b50919050565b8082018082111561037657634e487b7160e01b600052601160045260246000fdfea2646970667358221220c45b28e7b4917c63ec285cf0323f1f8cb683ebbe7c94256b0e4d52d8ed174b4064736f6c63430008140033", | |
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x12C JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x70A08231 GT PUSH2 0xAD JUMPI DUP1 PUSH4 0x95D89B41 GT PUSH2 0x71 JUMPI DUP1 PUSH4 0x95D89B41 EQ PUSH2 0x27C JUMPI DUP1 PUSH4 0xA457C2D7 EQ PUSH2 0x284 JUMPI DUP1 PUSH4 0xA9059CBB EQ PUSH2 0x297 JUMPI DUP1 PUSH4 0xDD62ED3E EQ PUSH2 0x2AA JUMPI DUP1 PUSH4 0xF2FDE38B EQ PUSH2 0x2BD JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x70A08231 EQ PUSH2 0x207 JUMPI DUP1 PUSH4 0x715018A6 EQ PUSH2 0x230 JUMPI DUP1 PUSH4 0x79CC6790 EQ PUSH2 0x238 JUMPI DUP1 PUSH4 0x8456CB59 EQ PUSH2 0x24B JUMPI DUP1 PUSH4 0x8DA5CB5B EQ PUSH2 0x253 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x355274EA GT PUSH2 0xF4 JUMPI DUP1 PUSH4 0x355274EA EQ PUSH2 0x1A6 JUMPI DUP1 PUSH4 0x39509351 EQ PUSH2 0x1CC JUMPI DUP1 PUSH4 0x3F4BA83A EQ PUSH2 0x1DF JUMPI DUP1 PUSH4 0x42966C68 EQ PUSH2 0x1E9 JUMPI DUP1 PUSH4 0x5C975ABB EQ PUSH2 0x1FC JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x6FDDE03 EQ PUSH2 0x131 JUMPI DUP1 PUSH4 0x95EA7B3 EQ PUSH2 0x14F JUMPI DUP1 PUSH4 0x18160DDD EQ PUSH2 0x172 JUMPI DUP1 PUSH4 0x23B872DD EQ PUSH2 0x184 JUMPI DUP1 PUSH4 0x313CE567 EQ PUSH2 0x197 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x139 PUSH2 0x2D0 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x146 SWAP2 SWAP1 PUSH2 0xBC3 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x162 PUSH2 0x15D CALLDATASIZE PUSH1 0x4 PUSH2 0xC2D JUMP JUMPDEST PUSH2 0x362 JUMP JUMPDEST PUSH1 0x40 MLOAD SWAP1 ISZERO ISZERO DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x146 JUMP JUMPDEST PUSH1 0x2 SLOAD JUMPDEST PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x146 JUMP JUMPDEST PUSH2 0x162 PUSH2 0x192 CALLDATASIZE PUSH1 0x4 PUSH2 0xC57 JUMP JUMPDEST PUSH2 0x37C JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x12 DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x146 JUMP JUMPDEST PUSH32 0x0 PUSH2 0x176 JUMP JUMPDEST PUSH2 0x162 PUSH2 0x1DA CALLDATASIZE PUSH1 0x4 PUSH2 0xC2D JUMP JUMPDEST PUSH2 0x3A0 JUMP JUMPDEST PUSH2 0x1E7 PUSH2 0x3C2 JUMP JUMPDEST STOP JUMPDEST PUSH2 0x1E7 PUSH2 0x1F7 CALLDATASIZE PUSH1 0x4 PUSH2 0xC93 JUMP JUMPDEST PUSH2 0x3D4 JUMP JUMPDEST PUSH1 0x5 SLOAD PUSH1 0xFF AND PUSH2 0x162 JUMP JUMPDEST PUSH2 0x176 PUSH2 0x215 CALLDATASIZE PUSH1 0x4 PUSH2 0xCAC JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD SWAP1 JUMP JUMPDEST PUSH2 0x1E7 PUSH2 0x3E1 JUMP JUMPDEST PUSH2 0x1E7 PUSH2 0x246 CALLDATASIZE PUSH1 0x4 PUSH2 0xC2D JUMP JUMPDEST PUSH2 0x3F3 JUMP JUMPDEST PUSH2 0x1E7 PUSH2 0x40C JUMP JUMPDEST PUSH1 0x5 SLOAD PUSH2 0x100 SWAP1 DIV PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x40 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x146 JUMP JUMPDEST PUSH2 0x139 PUSH2 0x41C JUMP JUMPDEST PUSH2 0x162 PUSH2 0x292 CALLDATASIZE PUSH1 0x4 PUSH2 0xC2D JUMP JUMPDEST PUSH2 0x42B JUMP JUMPDEST PUSH2 0x162 PUSH2 0x2A5 CALLDATASIZE PUSH1 0x4 PUSH2 0xC2D JUMP JUMPDEST PUSH2 0x4AB JUMP JUMPDEST PUSH2 0x176 PUSH2 0x2B8 CALLDATASIZE PUSH1 0x4 PUSH2 0xCCE JUMP JUMPDEST PUSH2 0x4B9 JUMP JUMPDEST PUSH2 0x1E7 PUSH2 0x2CB CALLDATASIZE PUSH1 0x4 PUSH2 0xCAC JUMP JUMPDEST PUSH2 0x4E4 JUMP JUMPDEST PUSH1 0x60 PUSH1 0x3 DUP1 SLOAD PUSH2 0x2DF SWAP1 PUSH2 0xD01 JUMP JUMPDEST DUP1 PUSH1 0x1F ADD PUSH1 0x20 DUP1 SWAP2 DIV MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP1 SLOAD PUSH2 0x30B SWAP1 PUSH2 0xD01 JUMP JUMPDEST DUP1 ISZERO PUSH2 0x358 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x32D JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x358 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x33B JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 CALLER PUSH2 0x370 DUP2 DUP6 DUP6 PUSH2 0x55A JUMP JUMPDEST PUSH1 0x1 SWAP2 POP POP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 CALLER PUSH2 0x38A DUP6 DUP3 DUP6 PUSH2 0x67F JUMP JUMPDEST PUSH2 0x395 DUP6 DUP6 DUP6 PUSH2 0x6F9 JUMP JUMPDEST POP PUSH1 0x1 SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH1 0x0 CALLER PUSH2 0x370 DUP2 DUP6 DUP6 PUSH2 0x3B3 DUP4 DUP4 PUSH2 0x4B9 JUMP JUMPDEST PUSH2 0x3BD SWAP2 SWAP1 PUSH2 0xD3B JUMP JUMPDEST PUSH2 0x55A JUMP JUMPDEST PUSH2 0x3CA PUSH2 0x8A8 JUMP JUMPDEST PUSH2 0x3D2 PUSH2 0x908 JUMP JUMPDEST JUMP JUMPDEST PUSH2 0x3DE CALLER DUP3 PUSH2 0x95A JUMP JUMPDEST POP JUMP JUMPDEST PUSH2 0x3E9 PUSH2 0x8A8 JUMP JUMPDEST PUSH2 0x3D2 PUSH1 0x0 PUSH2 0xA90 JUMP JUMPDEST PUSH2 0x3FE DUP3 CALLER DUP4 PUSH2 0x67F JUMP JUMPDEST PUSH2 0x408 DUP3 DUP3 PUSH2 0x95A JUMP JUMPDEST POP POP JUMP JUMPDEST PUSH2 0x414 PUSH2 0x8A8 JUMP JUMPDEST PUSH2 0x3D2 PUSH2 0xAEA JUMP JUMPDEST PUSH1 0x60 PUSH1 0x4 DUP1 SLOAD PUSH2 0x2DF SWAP1 PUSH2 0xD01 JUMP JUMPDEST PUSH1 0x0 CALLER DUP2 PUSH2 0x439 DUP3 DUP7 PUSH2 0x4B9 JUMP JUMPDEST SWAP1 POP DUP4 DUP2 LT ISZERO PUSH2 0x49E JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x25 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x45524332303A2064656372656173656420616C6C6F77616E63652062656C6F77 PUSH1 0x44 DUP3 ADD MSTORE PUSH5 0x207A65726F PUSH1 0xD8 SHL PUSH1 0x64 DUP3 ADD MSTORE PUSH1 0x84 ADD JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH2 0x395 DUP3 DUP7 DUP7 DUP5 SUB PUSH2 0x55A JUMP JUMPDEST PUSH1 0x0 CALLER PUSH2 0x370 DUP2 DUP6 DUP6 PUSH2 0x6F9 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP2 DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 SWAP4 SWAP1 SWAP5 AND DUP3 MSTORE SWAP2 SWAP1 SWAP2 MSTORE KECCAK256 SLOAD SWAP1 JUMP JUMPDEST PUSH2 0x4EC PUSH2 0x8A8 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH2 0x551 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x26 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x4F776E61626C653A206E6577206F776E657220697320746865207A65726F2061 PUSH1 0x44 DUP3 ADD MSTORE PUSH6 0x646472657373 PUSH1 0xD0 SHL PUSH1 0x64 DUP3 ADD MSTORE PUSH1 0x84 ADD PUSH2 0x495 JUMP JUMPDEST PUSH2 0x3DE DUP2 PUSH2 0xA90 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND PUSH2 0x5BC JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x24 DUP1 DUP3 ADD MSTORE PUSH32 0x45524332303A20617070726F76652066726F6D20746865207A65726F20616464 PUSH1 0x44 DUP3 ADD MSTORE PUSH4 0x72657373 PUSH1 0xE0 SHL PUSH1 0x64 DUP3 ADD MSTORE PUSH1 0x84 ADD PUSH2 0x495 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND PUSH2 0x61D JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x22 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x45524332303A20617070726F766520746F20746865207A65726F206164647265 PUSH1 0x44 DUP3 ADD MSTORE PUSH2 0x7373 PUSH1 0xF0 SHL PUSH1 0x64 DUP3 ADD MSTORE PUSH1 0x84 ADD PUSH2 0x495 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 DUP2 AND PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 SWAP5 DUP8 AND DUP1 DUP5 MSTORE SWAP5 DUP3 MSTORE SWAP2 DUP3 SWAP1 KECCAK256 DUP6 SWAP1 SSTORE SWAP1 MLOAD DUP5 DUP2 MSTORE PUSH32 0x8C5BE1E5EBEC7D5BD14F71427D1E84F3DD0314C0F7B2291E5B200AC8C7C3B925 SWAP2 ADD JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x68B DUP5 DUP5 PUSH2 0x4B9 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 NOT DUP2 EQ PUSH2 0x6F3 JUMPI DUP2 DUP2 LT ISZERO PUSH2 0x6E6 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x1D PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x45524332303A20696E73756666696369656E7420616C6C6F77616E6365000000 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x495 JUMP JUMPDEST PUSH2 0x6F3 DUP5 DUP5 DUP5 DUP5 SUB PUSH2 0x55A JUMP JUMPDEST POP POP POP POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND PUSH2 0x75D JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x25 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x45524332303A207472616E736665722066726F6D20746865207A65726F206164 PUSH1 0x44 DUP3 ADD MSTORE PUSH5 0x6472657373 PUSH1 0xD8 SHL PUSH1 0x64 DUP3 ADD MSTORE PUSH1 0x84 ADD PUSH2 0x495 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND PUSH2 0x7BF JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x23 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x45524332303A207472616E7366657220746F20746865207A65726F2061646472 PUSH1 0x44 DUP3 ADD MSTORE PUSH3 0x657373 PUSH1 0xE8 SHL PUSH1 0x64 DUP3 ADD MSTORE PUSH1 0x84 ADD PUSH2 0x495 JUMP JUMPDEST PUSH2 0x7CA DUP4 DUP4 DUP4 PUSH2 0xB27 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD DUP2 DUP2 LT ISZERO PUSH2 0x842 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x26 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x45524332303A207472616E7366657220616D6F756E7420657863656564732062 PUSH1 0x44 DUP3 ADD MSTORE PUSH6 0x616C616E6365 PUSH1 0xD0 SHL PUSH1 0x64 DUP3 ADD MSTORE PUSH1 0x84 ADD PUSH2 0x495 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP5 DUP2 AND PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x20 DUP2 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 DUP8 DUP8 SUB SWAP1 SSTORE SWAP4 DUP8 AND DUP1 DUP4 MSTORE SWAP2 DUP5 SWAP1 KECCAK256 DUP1 SLOAD DUP8 ADD SWAP1 SSTORE SWAP3 MLOAD DUP6 DUP2 MSTORE SWAP1 SWAP3 PUSH32 0xDDF252AD1BE2C89B69C2B068FC378DAA952BA7F163C4A11628F55A4DF523B3EF SWAP2 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG3 PUSH2 0x6F3 JUMP JUMPDEST PUSH1 0x5 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB PUSH2 0x100 SWAP1 SWAP2 DIV AND CALLER EQ PUSH2 0x3D2 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD DUP2 SWAP1 MSTORE PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x4F776E61626C653A2063616C6C6572206973206E6F7420746865206F776E6572 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x495 JUMP JUMPDEST PUSH2 0x910 PUSH2 0xB34 JUMP JUMPDEST PUSH1 0x5 DUP1 SLOAD PUSH1 0xFF NOT AND SWAP1 SSTORE PUSH32 0x5DB9EE0A495BF2E6FF9C91A7834C1BA4FDD244A5E8AA4E537BD38AEAE4B073AA CALLER JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND PUSH2 0x9BA JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x21 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x45524332303A206275726E2066726F6D20746865207A65726F20616464726573 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x73 PUSH1 0xF8 SHL PUSH1 0x64 DUP3 ADD MSTORE PUSH1 0x84 ADD PUSH2 0x495 JUMP JUMPDEST PUSH2 0x9C6 DUP3 PUSH1 0x0 DUP4 PUSH2 0xB27 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD DUP2 DUP2 LT ISZERO PUSH2 0xA3A JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x22 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x45524332303A206275726E20616D6F756E7420657863656564732062616C616E PUSH1 0x44 DUP3 ADD MSTORE PUSH2 0x6365 PUSH1 0xF0 SHL PUSH1 0x64 DUP3 ADD MSTORE PUSH1 0x84 ADD PUSH2 0x495 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x20 DUP2 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 DUP7 DUP7 SUB SWAP1 SSTORE PUSH1 0x2 DUP1 SLOAD DUP8 SWAP1 SUB SWAP1 SSTORE MLOAD DUP6 DUP2 MSTORE SWAP2 SWAP3 SWAP2 PUSH32 0xDDF252AD1BE2C89B69C2B068FC378DAA952BA7F163C4A11628F55A4DF523B3EF SWAP2 ADD PUSH2 0x672 JUMP JUMPDEST PUSH1 0x5 DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 DUP2 AND PUSH2 0x100 DUP2 DUP2 MUL PUSH2 0x100 PUSH1 0x1 PUSH1 0xA8 SHL SUB NOT DUP6 AND OR SWAP1 SWAP5 SSTORE PUSH1 0x40 MLOAD SWAP4 SWAP1 SWAP3 DIV AND SWAP2 DUP3 SWAP1 PUSH32 0x8BE0079C531659141344CD1FD0A4F28419497F9722A3DAAFE3B4186F6B6457E0 SWAP1 PUSH1 0x0 SWAP1 LOG3 POP POP JUMP JUMPDEST PUSH2 0xAF2 PUSH2 0xB7D JUMP JUMPDEST PUSH1 0x5 DUP1 SLOAD PUSH1 0xFF NOT AND PUSH1 0x1 OR SWAP1 SSTORE PUSH32 0x62E78CEA01BEE320CD4E420270B5EA74000D11B0C9F74754EBDBFC544B05A258 PUSH2 0x93D CALLER SWAP1 JUMP JUMPDEST PUSH2 0xB2F PUSH2 0xB7D JUMP JUMPDEST POP POP POP JUMP JUMPDEST PUSH1 0x5 SLOAD PUSH1 0xFF AND PUSH2 0x3D2 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x14 PUSH1 0x24 DUP3 ADD MSTORE PUSH20 0x14185D5CD8589B194E881B9BDD081C185D5CD959 PUSH1 0x62 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x495 JUMP JUMPDEST PUSH1 0x5 SLOAD PUSH1 0xFF AND ISZERO PUSH2 0x3D2 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x10 PUSH1 0x24 DUP3 ADD MSTORE PUSH16 0x14185D5CD8589B194E881C185D5CD959 PUSH1 0x82 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x495 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP1 DUP4 MSTORE DUP4 MLOAD DUP1 DUP3 DUP6 ADD MSTORE PUSH1 0x0 JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0xBF0 JUMPI DUP6 DUP2 ADD DUP4 ADD MLOAD DUP6 DUP3 ADD PUSH1 0x40 ADD MSTORE DUP3 ADD PUSH2 0xBD4 JUMP JUMPDEST POP PUSH1 0x0 PUSH1 0x40 DUP3 DUP7 ADD ADD MSTORE PUSH1 0x40 PUSH1 0x1F NOT PUSH1 0x1F DUP4 ADD AND DUP6 ADD ADD SWAP3 POP POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST DUP1 CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND DUP2 EQ PUSH2 0xC28 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0xC40 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0xC49 DUP4 PUSH2 0xC11 JUMP JUMPDEST SWAP5 PUSH1 0x20 SWAP4 SWAP1 SWAP4 ADD CALLDATALOAD SWAP4 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0xC6C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0xC75 DUP5 PUSH2 0xC11 JUMP JUMPDEST SWAP3 POP PUSH2 0xC83 PUSH1 0x20 DUP6 ADD PUSH2 0xC11 JUMP JUMPDEST SWAP2 POP PUSH1 0x40 DUP5 ADD CALLDATALOAD SWAP1 POP SWAP3 POP SWAP3 POP SWAP3 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0xCA5 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP CALLDATALOAD SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0xCBE JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0xCC7 DUP3 PUSH2 0xC11 JUMP JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0xCE1 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0xCEA DUP4 PUSH2 0xC11 JUMP JUMPDEST SWAP2 POP PUSH2 0xCF8 PUSH1 0x20 DUP5 ADD PUSH2 0xC11 JUMP JUMPDEST SWAP1 POP SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH1 0x1 DUP2 DUP2 SHR SWAP1 DUP3 AND DUP1 PUSH2 0xD15 JUMPI PUSH1 0x7F DUP3 AND SWAP2 POP JUMPDEST PUSH1 0x20 DUP3 LT DUP2 SUB PUSH2 0xD35 JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x22 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST POP SWAP2 SWAP1 POP JUMP JUMPDEST DUP1 DUP3 ADD DUP1 DUP3 GT ISZERO PUSH2 0x376 JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xC4 JUMPDEST 0x28 0xE7 0xB4 SWAP2 PUSH29 0x63EC285CF0323F1F8CB683EBBE7C94256B0E4D52D8ED174B4064736F6C PUSH4 0x43000814 STOP CALLER ", | |
"sourceMap": "579:930:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2158:98:3;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;4444:197;;;;;;:::i;:::-;;:::i;:::-;;;1169:14:9;;1162:22;1144:41;;1132:2;1117:18;4444:197:3;1004:187:9;3255:106:3;3342:12;;3255:106;;;1342:25:9;;;1330:2;1315:18;3255:106:3;1196:177:9;5203:256:3;;;;;;:::i;:::-;;:::i;3104:91::-;;;3186:2;1853:36:9;;1841:2;1826:18;3104:91:3;1711:184:9;635:81:6;705:4;635:81;;5854:234:3;;;;;;:::i;:::-;;:::i;906:65:0:-;;;:::i;:::-;;578:89:5;;;;;;:::i;:::-;;:::i;1615:84:2:-;1685:7;;;;1615:84;;3419:125:3;;;;;;:::i;:::-;-1:-1:-1;;;;;3519:18:3;3493:7;3519:18;;;;;;;;;;;;3419:125;1824:101:1;;;:::i;973:161:5:-;;;;;;:::i;:::-;;:::i;837:61:0:-;;;:::i;1201:85:1:-;1273:6;;;;;-1:-1:-1;;;;;1273:6:1;1201:85;;-1:-1:-1;;;;;2440:32:9;;;2422:51;;2410:2;2395:18;1201:85:1;2276:203:9;2369:102:3;;;:::i;6575:427::-;;;;;;:::i;:::-;;:::i;3740:189::-;;;;;;:::i;:::-;;:::i;3987:149::-;;;;;;:::i;:::-;;:::i;2074:198:1:-;;;;;;:::i;:::-;;:::i;2158:98:3:-;2212:13;2244:5;2237:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2158:98;:::o;4444:197::-;4527:4;719:10:8;4581:32:3;719:10:8;4597:7:3;4606:6;4581:8;:32::i;:::-;4630:4;4623:11;;;4444:197;;;;;:::o;5203:256::-;5300:4;719:10:8;5356:38:3;5372:4;719:10:8;5387:6:3;5356:15;:38::i;:::-;5404:27;5414:4;5420:2;5424:6;5404:9;:27::i;:::-;-1:-1:-1;5448:4:3;;5203:256;-1:-1:-1;;;;5203:256:3:o;5854:234::-;5942:4;719:10:8;5996:64:3;719:10:8;6012:7:3;6049:10;6021:25;719:10:8;6012:7:3;6021:9;:25::i;:::-;:38;;;;:::i;:::-;5996:8;:64::i;906:65:0:-;1094:13:1;:11;:13::i;:::-;953:10:0::1;:8;:10::i;:::-;906:65::o:0;578:89:5:-;633:27;719:10:8;653:6:5;633:5;:27::i;:::-;578:89;:::o;1824:101:1:-;1094:13;:11;:13::i;:::-;1888:30:::1;1915:1;1888:18;:30::i;973:161:5:-:0;1049:46;1065:7;719:10:8;1088:6:5;1049:15;:46::i;:::-;1105:22;1111:7;1120:6;1105:5;:22::i;:::-;973:161;;:::o;837:61:0:-;1094:13:1;:11;:13::i;:::-;882:8:0::1;:6;:8::i;2369:102:3:-:0;2425:13;2457:7;2450:14;;;;;:::i;6575:427::-;6668:4;719:10:8;6668:4:3;6749:25;719:10:8;6766:7:3;6749:9;:25::i;:::-;6722:52;;6812:15;6792:16;:35;;6784:85;;;;-1:-1:-1;;;6784:85:3;;3563:2:9;6784:85:3;;;3545:21:9;3602:2;3582:18;;;3575:30;3641:34;3621:18;;;3614:62;-1:-1:-1;;;3692:18:9;;;3685:35;3737:19;;6784:85:3;;;;;;;;;6903:60;6912:5;6919:7;6947:15;6928:16;:34;6903:8;:60::i;3740:189::-;3819:4;719:10:8;3873:28:3;719:10:8;3890:2:3;3894:6;3873:9;:28::i;3987:149::-;-1:-1:-1;;;;;4102:18:3;;;4076:7;4102:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;3987:149::o;2074:198:1:-;1094:13;:11;:13::i;:::-;-1:-1:-1;;;;;2162:22:1;::::1;2154:73;;;::::0;-1:-1:-1;;;2154:73:1;;3969:2:9;2154:73:1::1;::::0;::::1;3951:21:9::0;4008:2;3988:18;;;3981:30;4047:34;4027:18;;;4020:62;-1:-1:-1;;;4098:18:9;;;4091:36;4144:19;;2154:73:1::1;3767:402:9::0;2154:73:1::1;2237:28;2256:8;2237:18;:28::i;10457:340:3:-:0;-1:-1:-1;;;;;10558:19:3;;10550:68;;;;-1:-1:-1;;;10550:68:3;;4376:2:9;10550:68:3;;;4358:21:9;4415:2;4395:18;;;4388:30;4454:34;4434:18;;;4427:62;-1:-1:-1;;;4505:18:9;;;4498:34;4549:19;;10550:68:3;4174:400:9;10550:68:3;-1:-1:-1;;;;;10636:21:3;;10628:68;;;;-1:-1:-1;;;10628:68:3;;4781:2:9;10628:68:3;;;4763:21:9;4820:2;4800:18;;;4793:30;4859:34;4839:18;;;4832:62;-1:-1:-1;;;4910:18:9;;;4903:32;4952:19;;10628:68:3;4579:398:9;10628:68:3;-1:-1:-1;;;;;10707:18:3;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;10758:32;;1342:25:9;;;10758:32:3;;1315:18:9;10758:32:3;;;;;;;;10457:340;;;:::o;11078:411::-;11178:24;11205:25;11215:5;11222:7;11205:9;:25::i;:::-;11178:52;;-1:-1:-1;;11244:16:3;:37;11240:243;;11325:6;11305:16;:26;;11297:68;;;;-1:-1:-1;;;11297:68:3;;5184:2:9;11297:68:3;;;5166:21:9;5223:2;5203:18;;;5196:30;5262:31;5242:18;;;5235:59;5311:18;;11297:68:3;4982:353:9;11297:68:3;11407:51;11416:5;11423:7;11451:6;11432:16;:25;11407:8;:51::i;:::-;11168:321;11078:411;;;:::o;7456:788::-;-1:-1:-1;;;;;7552:18:3;;7544:68;;;;-1:-1:-1;;;7544:68:3;;5542:2:9;7544:68:3;;;5524:21:9;5581:2;5561:18;;;5554:30;5620:34;5600:18;;;5593:62;-1:-1:-1;;;5671:18:9;;;5664:35;5716:19;;7544:68:3;5340:401:9;7544:68:3;-1:-1:-1;;;;;7630:16:3;;7622:64;;;;-1:-1:-1;;;7622:64:3;;5948:2:9;7622:64:3;;;5930:21:9;5987:2;5967:18;;;5960:30;6026:34;6006:18;;;5999:62;-1:-1:-1;;;6077:18:9;;;6070:33;6120:19;;7622:64:3;5746:399:9;7622:64:3;7697:38;7718:4;7724:2;7728:6;7697:20;:38::i;:::-;-1:-1:-1;;;;;7768:15:3;;7746:19;7768:15;;;;;;;;;;;7801:21;;;;7793:72;;;;-1:-1:-1;;;7793:72:3;;6352:2:9;7793:72:3;;;6334:21:9;6391:2;6371:18;;;6364:30;6430:34;6410:18;;;6403:62;-1:-1:-1;;;6481:18:9;;;6474:36;6527:19;;7793:72:3;6150:402:9;7793:72:3;-1:-1:-1;;;;;7899:15:3;;;:9;:15;;;;;;;;;;;7917:20;;;7899:38;;8114:13;;;;;;;;;;:23;;;;;;8163:26;;1342:25:9;;;8114:13:3;;8163:26;;1315:18:9;8163:26:3;;;;;;;8200:37;9375:659;1359:130:1;1273:6;;-1:-1:-1;;;;;1273:6:1;;;;;719:10:8;1422:23:1;1414:68;;;;-1:-1:-1;;;1414:68:1;;6759:2:9;1414:68:1;;;6741:21:9;;;6778:18;;;6771:30;6837:34;6817:18;;;6810:62;6889:18;;1414:68:1;6557:356:9;2433:117:2;1486:16;:14;:16::i;:::-;2491:7:::1;:15:::0;;-1:-1:-1;;2491:15:2::1;::::0;;2521:22:::1;719:10:8::0;2530:12:2::1;2521:22;::::0;-1:-1:-1;;;;;2440:32:9;;;2422:51;;2410:2;2395:18;2521:22:2::1;;;;;;;2433:117::o:0;9375:659:3:-;-1:-1:-1;;;;;9458:21:3;;9450:67;;;;-1:-1:-1;;;9450:67:3;;7120:2:9;9450:67:3;;;7102:21:9;7159:2;7139:18;;;7132:30;7198:34;7178:18;;;7171:62;-1:-1:-1;;;7249:18:9;;;7242:31;7290:19;;9450:67:3;6918:397:9;9450:67:3;9528:49;9549:7;9566:1;9570:6;9528:20;:49::i;:::-;-1:-1:-1;;;;;9613:18:3;;9588:22;9613:18;;;;;;;;;;;9649:24;;;;9641:71;;;;-1:-1:-1;;;9641:71:3;;7522:2:9;9641:71:3;;;7504:21:9;7561:2;7541:18;;;7534:30;7600:34;7580:18;;;7573:62;-1:-1:-1;;;7651:18:9;;;7644:32;7693:19;;9641:71:3;7320:398:9;9641:71:3;-1:-1:-1;;;;;9746:18:3;;:9;:18;;;;;;;;;;;9767:23;;;9746:44;;9883:12;:22;;;;;;;9931:37;1342:25:9;;;9746:9:3;;:18;9931:37;;1315:18:9;9931:37:3;1196:177:9;2426:187:1;2518:6;;;-1:-1:-1;;;;;2534:17:1;;;2518:6;2534:17;;;-1:-1:-1;;;;;;2534:17:1;;;;;;2566:40;;2518:6;;;;;;;;2566:40;;2499:16;;2566:40;2489:124;2426:187;:::o;2186:115:2:-;1239:19;:17;:19::i;:::-;2245:7:::1;:14:::0;;-1:-1:-1;;2245:14:2::1;2255:4;2245:14;::::0;;2274:20:::1;2281:12;719:10:8::0;;640:96;1300:206:0;1239:19:2;:17;:19::i;:::-;9440:594:3;9375:659;;:::o;1945:106:2:-;1685:7;;;;2003:41;;;;-1:-1:-1;;;2003:41:2;;7925:2:9;2003:41:2;;;7907:21:9;7964:2;7944:18;;;7937:30;-1:-1:-1;;;7983:18:9;;;7976:50;8043:18;;2003:41:2;7723:344:9;1767:106:2;1685:7;;;;1836:9;1828:38;;;;-1:-1:-1;;;1828:38:2;;8274:2:9;1828:38:2;;;8256:21:9;8313:2;8293:18;;;8286:30;-1:-1:-1;;;8332:18:9;;;8325:46;8388:18;;1828:38:2;8072:340:9;14:548;126:4;155:2;184;173:9;166:21;216:6;210:13;259:6;254:2;243:9;239:18;232:34;284:1;294:140;308:6;305:1;302:13;294:140;;;403:14;;;399:23;;393:30;369:17;;;388:2;365:26;358:66;323:10;;294:140;;;298:3;483:1;478:2;469:6;458:9;454:22;450:31;443:42;553:2;546;542:7;537:2;529:6;525:15;521:29;510:9;506:45;502:54;494:62;;;;14:548;;;;:::o;567:173::-;635:20;;-1:-1:-1;;;;;684:31:9;;674:42;;664:70;;730:1;727;720:12;664:70;567:173;;;:::o;745:254::-;813:6;821;874:2;862:9;853:7;849:23;845:32;842:52;;;890:1;887;880:12;842:52;913:29;932:9;913:29;:::i;:::-;903:39;989:2;974:18;;;;961:32;;-1:-1:-1;;;745:254:9:o;1378:328::-;1455:6;1463;1471;1524:2;1512:9;1503:7;1499:23;1495:32;1492:52;;;1540:1;1537;1530:12;1492:52;1563:29;1582:9;1563:29;:::i;:::-;1553:39;;1611:38;1645:2;1634:9;1630:18;1611:38;:::i;:::-;1601:48;;1696:2;1685:9;1681:18;1668:32;1658:42;;1378:328;;;;;:::o;1900:180::-;1959:6;2012:2;2000:9;1991:7;1987:23;1983:32;1980:52;;;2028:1;2025;2018:12;1980:52;-1:-1:-1;2051:23:9;;1900:180;-1:-1:-1;1900:180:9:o;2085:186::-;2144:6;2197:2;2185:9;2176:7;2172:23;2168:32;2165:52;;;2213:1;2210;2203:12;2165:52;2236:29;2255:9;2236:29;:::i;:::-;2226:39;2085:186;-1:-1:-1;;;2085:186:9:o;2484:260::-;2552:6;2560;2613:2;2601:9;2592:7;2588:23;2584:32;2581:52;;;2629:1;2626;2619:12;2581:52;2652:29;2671:9;2652:29;:::i;:::-;2642:39;;2700:38;2734:2;2723:9;2719:18;2700:38;:::i;:::-;2690:48;;2484:260;;;;;:::o;2749:380::-;2828:1;2824:12;;;;2871;;;2892:61;;2946:4;2938:6;2934:17;2924:27;;2892:61;2999:2;2991:6;2988:14;2968:18;2965:38;2962:161;;3045:10;3040:3;3036:20;3033:1;3026:31;3080:4;3077:1;3070:15;3108:4;3105:1;3098:15;2962:161;;2749:380;;;:::o;3134:222::-;3199:9;;;3220:10;;;3217:133;;;3272:10;3267:3;3263:20;3260:1;3253:31;3307:4;3304:1;3297:15;3335:4;3332:1;3325:15" | |
}, | |
"gasEstimates": { | |
"creation": { | |
"codeDepositCost": "694800", | |
"executionCost": "infinite", | |
"totalCost": "infinite" | |
}, | |
"external": { | |
"allowance(address,address)": "infinite", | |
"approve(address,uint256)": "24652", | |
"balanceOf(address)": "2563", | |
"burn(uint256)": "53038", | |
"burnFrom(address,uint256)": "infinite", | |
"cap()": "infinite", | |
"decimals()": "289", | |
"decreaseAllowance(address,uint256)": "26995", | |
"increaseAllowance(address,uint256)": "infinite", | |
"name()": "infinite", | |
"owner()": "2441", | |
"pause()": "infinite", | |
"paused()": "2415", | |
"renounceOwnership()": "infinite", | |
"symbol()": "infinite", | |
"totalSupply()": "2349", | |
"transfer(address,uint256)": "53305", | |
"transferFrom(address,address,uint256)": "infinite", | |
"transferOwnership(address)": "28479", | |
"unpause()": "infinite" | |
}, | |
"internal": { | |
"_beforeTokenTransfer(address,address,uint256)": "infinite", | |
"_mint(address,uint256)": "infinite" | |
} | |
}, | |
"methodIdentifiers": { | |
"allowance(address,address)": "dd62ed3e", | |
"approve(address,uint256)": "095ea7b3", | |
"balanceOf(address)": "70a08231", | |
"burn(uint256)": "42966c68", | |
"burnFrom(address,uint256)": "79cc6790", | |
"cap()": "355274ea", | |
"decimals()": "313ce567", | |
"decreaseAllowance(address,uint256)": "a457c2d7", | |
"increaseAllowance(address,uint256)": "39509351", | |
"name()": "06fdde03", | |
"owner()": "8da5cb5b", | |
"pause()": "8456cb59", | |
"paused()": "5c975abb", | |
"renounceOwnership()": "715018a6", | |
"symbol()": "95d89b41", | |
"totalSupply()": "18160ddd", | |
"transfer(address,uint256)": "a9059cbb", | |
"transferFrom(address,address,uint256)": "23b872dd", | |
"transferOwnership(address)": "f2fde38b", | |
"unpause()": "3f4ba83a" | |
} | |
}, | |
"abi": [ | |
{ | |
"inputs": [], | |
"stateMutability": "nonpayable", | |
"type": "constructor" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "owner", | |
"type": "address" | |
}, | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "spender", | |
"type": "address" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "value", | |
"type": "uint256" | |
} | |
], | |
"name": "Approval", | |
"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": "address", | |
"name": "from", | |
"type": "address" | |
}, | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "to", | |
"type": "address" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "value", | |
"type": "uint256" | |
} | |
], | |
"name": "Transfer", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": false, | |
"internalType": "address", | |
"name": "account", | |
"type": "address" | |
} | |
], | |
"name": "Unpaused", | |
"type": "event" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "owner", | |
"type": "address" | |
}, | |
{ | |
"internalType": "address", | |
"name": "spender", | |
"type": "address" | |
} | |
], | |
"name": "allowance", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "spender", | |
"type": "address" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "amount", | |
"type": "uint256" | |
} | |
], | |
"name": "approve", | |
"outputs": [ | |
{ | |
"internalType": "bool", | |
"name": "", | |
"type": "bool" | |
} | |
], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "account", | |
"type": "address" | |
} | |
], | |
"name": "balanceOf", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "amount", | |
"type": "uint256" | |
} | |
], | |
"name": "burn", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "account", | |
"type": "address" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "amount", | |
"type": "uint256" | |
} | |
], | |
"name": "burnFrom", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "cap", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "decimals", | |
"outputs": [ | |
{ | |
"internalType": "uint8", | |
"name": "", | |
"type": "uint8" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "spender", | |
"type": "address" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "subtractedValue", | |
"type": "uint256" | |
} | |
], | |
"name": "decreaseAllowance", | |
"outputs": [ | |
{ | |
"internalType": "bool", | |
"name": "", | |
"type": "bool" | |
} | |
], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "spender", | |
"type": "address" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "addedValue", | |
"type": "uint256" | |
} | |
], | |
"name": "increaseAllowance", | |
"outputs": [ | |
{ | |
"internalType": "bool", | |
"name": "", | |
"type": "bool" | |
} | |
], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "name", | |
"outputs": [ | |
{ | |
"internalType": "string", | |
"name": "", | |
"type": "string" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "owner", | |
"outputs": [ | |
{ | |
"internalType": "address", | |
"name": "", | |
"type": "address" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "pause", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "paused", | |
"outputs": [ | |
{ | |
"internalType": "bool", | |
"name": "", | |
"type": "bool" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "renounceOwnership", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "symbol", | |
"outputs": [ | |
{ | |
"internalType": "string", | |
"name": "", | |
"type": "string" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "totalSupply", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "to", | |
"type": "address" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "amount", | |
"type": "uint256" | |
} | |
], | |
"name": "transfer", | |
"outputs": [ | |
{ | |
"internalType": "bool", | |
"name": "", | |
"type": "bool" | |
} | |
], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "from", | |
"type": "address" | |
}, | |
{ | |
"internalType": "address", | |
"name": "to", | |
"type": "address" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "amount", | |
"type": "uint256" | |
} | |
], | |
"name": "transferFrom", | |
"outputs": [ | |
{ | |
"internalType": "bool", | |
"name": "", | |
"type": "bool" | |
} | |
], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "newOwner", | |
"type": "address" | |
} | |
], | |
"name": "transferOwnership", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "unpause", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
} | |
] | |
} |
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.20; | |
import "@openzeppelin/contracts/access/Ownable.sol"; | |
import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; | |
import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; | |
import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol"; | |
contract Presale is Ownable, ReentrancyGuard { | |
IERC20 public sm9Token; | |
IERC20 public usdtToken; | |
uint256 public minBuyUsdt; | |
uint256 public minBuyMatic; | |
uint256 public phase1Start; | |
uint256 public phase2Start; | |
uint256 public phase3Start; | |
uint256 public saleEnd; | |
address public recipient; | |
mapping(address => bool) public migrated; | |
uint256 public constant PHASE1_PRICE = 2 * 10 ** 15; // $0.002 | |
uint256 public constant PHASE2_PRICE = 4 * 10 ** 15; | |
uint256 public constant PHASE3_PRICE = 6 * 10 ** 15; | |
AggregatorV3Interface public priceFeed; // Chainlink MATIC/USD | |
constructor( | |
address _sm9Token, | |
address _usdtToken, | |
uint256 _phase1Start, | |
uint256 _phase2Start, | |
uint256 _phase3Start, | |
uint256 _saleEnd, | |
uint256 _minBuyUsdt, | |
uint256 _minBuyMatic, | |
address _recipient, | |
address _priceFeed | |
) Ownable(_recipient) { | |
sm9Token = IERC20(_sm9Token); | |
usdtToken = IERC20(_usdtToken); | |
phase1Start = _phase1Start; | |
phase2Start = _phase2Start; | |
phase3Start = _phase3Start; | |
saleEnd = _saleEnd; | |
minBuyUsdt = _minBuyUsdt; | |
minBuyMatic = _minBuyMatic; | |
recipient = _recipient; | |
priceFeed = AggregatorV3Interface(_priceFeed); | |
} | |
function getCurrentPrice() public view returns (uint256) { | |
if (block.timestamp >= phase1Start && block.timestamp < phase2Start) { | |
return PHASE1_PRICE; | |
} else if (block.timestamp >= phase2Start && block.timestamp < phase3Start) { | |
return PHASE2_PRICE; | |
} else if (block.timestamp >= phase3Start && block.timestamp <= saleEnd) { | |
return PHASE3_PRICE; | |
} else { | |
revert("Presale not active"); | |
} | |
} | |
function getMaticPriceInUsd() public view returns (uint256) { | |
(, int256 price,,,) = priceFeed.latestRoundData(); | |
return uint256(price); // 8 decimals | |
} | |
function buyWithUSDT(uint256 usdtAmount) external nonReentrant { | |
require(block.timestamp >= phase1Start && block.timestamp <= saleEnd, "Presale inactive"); | |
require(usdtAmount >= minBuyUsdt, "Below min USDT amount"); | |
uint256 sm9Amount = (usdtAmount * 1e18) / getCurrentPrice(); // USDT: 6, SM9: 18 | |
require(sm9Token.balanceOf(address(this)) >= sm9Amount, "Insufficient SM9"); | |
require(usdtToken.transferFrom(msg.sender, address(this), usdtAmount), "USDT failed"); | |
require(sm9Token.transfer(msg.sender, sm9Amount), "Token failed"); | |
} | |
function buyWithMatic() public payable nonReentrant { | |
require(block.timestamp >= phase1Start && block.timestamp <= saleEnd, "Presale inactive"); | |
require(msg.value >= minBuyMatic, "Below min MATIC amount"); | |
uint256 maticPrice = getMaticPriceInUsd(); // 8 decimals | |
uint256 usdAmount = (msg.value * maticPrice) / 1e8; // converted to USD | |
uint256 sm9Amount = (usdAmount * 1e18) / getCurrentPrice(); // USD → SM9 | |
require(sm9Token.balanceOf(address(this)) >= sm9Amount, "Insufficient SM9"); | |
require(sm9Token.transfer(msg.sender, sm9Amount), "Token failed"); | |
} | |
receive() external payable { | |
buyWithMatic(); | |
} | |
function withdrawUSDT() external onlyOwner { | |
uint256 balance = usdtToken.balanceOf(address(this)); | |
require(balance > 0, "No USDT"); | |
require(usdtToken.transfer(owner(), balance), "Withdraw failed"); | |
} | |
function withdrawMatic() external onlyOwner { | |
uint256 balance = address(this).balance; | |
require(balance > 0, "No MATIC"); | |
payable(owner()).transfer(balance); | |
} | |
function migrateUser(address user, uint256 amount) external onlyOwner { | |
require(!migrated[user], "Already migrated"); | |
migrated[user] = true; | |
require(sm9Token.transfer(user, amount), "Migration failed"); | |
} | |
function setMinBuyAmounts(uint256 _minUsdt, uint256 _minMatic) external onlyOwner { | |
minBuyUsdt = _minUsdt; | |
minBuyMatic = _minMatic; | |
} | |
} |
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.20; | |
import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | |
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; | |
import "@openzeppelin/contracts/security/Pausable.sol"; | |
import "@openzeppelin/contracts/access/Ownable.sol"; | |
contract SM9Token is ERC20, ERC20Burnable, Pausable, Ownable { | |
constructor() | |
ERC20("Samsy Capital", "SM9") | |
Ownable(0xe02fB5aD77C81b871BC014D863B163A455f754c5) | |
{ | |
_mint(msg.sender, 99000000000 * 10 ** decimals()); | |
} | |
function pause() public onlyOwner { | |
_pause(); | |
} | |
function unpause() public onlyOwner { | |
_unpause(); | |
} | |
// ✅ Warning-free version | |
function _beforeTokenTransfer(address, address, uint256) internal view { | |
require(!paused(), "Token transfers are currently paused"); | |
} | |
} |
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
{ | |
"deploy": { | |
"VM:-": { | |
"linkReferences": {}, | |
"autoDeployLib": true | |
}, | |
"main:1": { | |
"linkReferences": {}, | |
"autoDeployLib": true | |
}, | |
"ropsten:3": { | |
"linkReferences": {}, | |
"autoDeployLib": true | |
}, | |
"rinkeby:4": { | |
"linkReferences": {}, | |
"autoDeployLib": true | |
}, | |
"kovan:42": { | |
"linkReferences": {}, | |
"autoDeployLib": true | |
}, | |
"goerli:5": { | |
"linkReferences": {}, | |
"autoDeployLib": true | |
}, | |
"Custom": { | |
"linkReferences": {}, | |
"autoDeployLib": true | |
} | |
}, | |
"data": { | |
"bytecode": { | |
"functionDebugData": { | |
"@_1055": { | |
"entryPoint": null, | |
"id": 1055, | |
"parameterSlots": 1, | |
"returnSlots": 0 | |
}, | |
"@_123": { | |
"entryPoint": null, | |
"id": 123, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"@_239": { | |
"entryPoint": null, | |
"id": 239, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"@_365": { | |
"entryPoint": null, | |
"id": 365, | |
"parameterSlots": 2, | |
"returnSlots": 0 | |
}, | |
"@_40": { | |
"entryPoint": null, | |
"id": 40, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"@_afterTokenTransfer_906": { | |
"entryPoint": null, | |
"id": 906, | |
"parameterSlots": 3, | |
"returnSlots": 0 | |
}, | |
"@_beforeTokenTransfer_895": { | |
"entryPoint": null, | |
"id": 895, | |
"parameterSlots": 3, | |
"returnSlots": 0 | |
}, | |
"@_beforeTokenTransfer_98": { | |
"entryPoint": 735, | |
"id": 98, | |
"parameterSlots": 3, | |
"returnSlots": 0 | |
}, | |
"@_mint_1093": { | |
"entryPoint": 414, | |
"id": 1093, | |
"parameterSlots": 2, | |
"returnSlots": 0 | |
}, | |
"@_mint_724": { | |
"entryPoint": null, | |
"id": 724, | |
"parameterSlots": 2, | |
"returnSlots": 0 | |
}, | |
"@_mint_76": { | |
"entryPoint": 398, | |
"id": 76, | |
"parameterSlots": 2, | |
"returnSlots": 0 | |
}, | |
"@_msgSender_1131": { | |
"entryPoint": null, | |
"id": 1131, | |
"parameterSlots": 0, | |
"returnSlots": 1 | |
}, | |
"@_requireNotPaused_276": { | |
"entryPoint": 769, | |
"id": 276, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"@_transferOwnership_211": { | |
"entryPoint": 308, | |
"id": 211, | |
"parameterSlots": 1, | |
"returnSlots": 0 | |
}, | |
"@cap_1064": { | |
"entryPoint": null, | |
"id": 1064, | |
"parameterSlots": 0, | |
"returnSlots": 1 | |
}, | |
"@decimals_395": { | |
"entryPoint": null, | |
"id": 395, | |
"parameterSlots": 0, | |
"returnSlots": 1 | |
}, | |
"@paused_264": { | |
"entryPoint": null, | |
"id": 264, | |
"parameterSlots": 0, | |
"returnSlots": 1 | |
}, | |
"@totalSupply_405": { | |
"entryPoint": null, | |
"id": 405, | |
"parameterSlots": 0, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_stringliteral_073f3193e2b9c9099973df1adea790edf33994edcd3f57beae2487f3c5bd8828__to_t_string_memory_ptr__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_stringliteral_68571e1369f7a6dcdcd736cb0343b35a58ed0f64d245c2ed839c98d412744f8a__to_t_string_memory_ptr__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_stringliteral_c0532a65ade852f12d67926b1625bbc98f7eb7c650703bf531fd4e07ded2c49f__to_t_string_memory_ptr__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_stringliteral_fc0b381caf0a47702017f3c4b358ebe3d3aff6c60ce819a8bf3ef5a95d4f202e__to_t_string_memory_ptr__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"array_dataslot_string_storage": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"checked_add_t_uint256": { | |
"entryPoint": 1538, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"checked_exp_helper": { | |
"entryPoint": 865, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 2 | |
}, | |
"checked_exp_t_uint256_t_uint8": { | |
"entryPoint": 1120, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"checked_exp_unsigned": { | |
"entryPoint": 938, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"checked_mul_t_uint256": { | |
"entryPoint": 1144, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"clean_up_bytearray_end_slots_string_storage": { | |
"entryPoint": 1252, | |
"id": null, | |
"parameterSlots": 3, | |
"returnSlots": 0 | |
}, | |
"copy_byte_array_to_storage_from_t_string_memory_ptr_to_t_string_storage": { | |
"entryPoint": 1334, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 0 | |
}, | |
"extract_byte_array_length": { | |
"entryPoint": 1192, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"extract_used_part_and_set_length_of_short_byte_array": { | |
"entryPoint": null, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"panic_error_0x11": { | |
"entryPoint": 843, | |
"id": null, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"panic_error_0x41": { | |
"entryPoint": 1170, | |
"id": null, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
} | |
}, | |
"generatedSources": [ | |
{ | |
"ast": { | |
"nodeType": "YulBlock", | |
"src": "0:6141:9", | |
"statements": [ | |
{ | |
"nodeType": "YulBlock", | |
"src": "6:3:9", | |
"statements": [] | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "46:95:9", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "63:1:9", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "70:3:9", | |
"type": "", | |
"value": "224" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "75:10:9", | |
"type": "", | |
"value": "0x4e487b71" | |
} | |
], | |
"functionName": { | |
"name": "shl", | |
"nodeType": "YulIdentifier", | |
"src": "66:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "66:20:9" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "56:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "56:31:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "56:31:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "103:1:9", | |
"type": "", | |
"value": "4" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "106:4:9", | |
"type": "", | |
"value": "0x11" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "96:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "96:15:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "96:15:9" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "127:1:9", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "130:4:9", | |
"type": "", | |
"value": "0x24" | |
} | |
], | |
"functionName": { | |
"name": "revert", | |
"nodeType": "YulIdentifier", | |
"src": "120:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "120:15:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "120:15:9" | |
} | |
] | |
}, | |
"name": "panic_error_0x11", | |
"nodeType": "YulFunctionDefinition", | |
"src": "14:127:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "210:358:9", | |
"statements": [ | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "220:16:9", | |
"value": { | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "235:1:9", | |
"type": "", | |
"value": "1" | |
}, | |
"variables": [ | |
{ | |
"name": "power_1", | |
"nodeType": "YulTypedName", | |
"src": "224:7:9", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "245:16:9", | |
"value": { | |
"name": "power_1", | |
"nodeType": "YulIdentifier", | |
"src": "254:7:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "power", | |
"nodeType": "YulIdentifier", | |
"src": "245:5:9" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "270:13:9", | |
"value": { | |
"name": "_base", | |
"nodeType": "YulIdentifier", | |
"src": "278:5:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "base", | |
"nodeType": "YulIdentifier", | |
"src": "270:4:9" | |
} | |
] | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "334:228:9", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "379:22:9", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [], | |
"functionName": { | |
"name": "panic_error_0x11", | |
"nodeType": "YulIdentifier", | |
"src": "381:16:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "381:18:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "381:18:9" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"name": "base", | |
"nodeType": "YulIdentifier", | |
"src": "354:4:9" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "368:1:9", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "not", | |
"nodeType": "YulIdentifier", | |
"src": "364:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "364:6:9" | |
}, | |
{ | |
"name": "base", | |
"nodeType": "YulIdentifier", | |
"src": "372:4:9" | |
} | |
], | |
"functionName": { | |
"name": "div", | |
"nodeType": "YulIdentifier", | |
"src": "360:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "360:17:9" | |
} | |
], | |
"functionName": { | |
"name": "gt", | |
"nodeType": "YulIdentifier", | |
"src": "351:2:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "351:27:9" | |
}, | |
"nodeType": "YulIf", | |
"src": "348:53:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "440:29:9", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "442:25:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "power", | |
"nodeType": "YulIdentifier", | |
"src": "455:5:9" | |
}, | |
{ | |
"name": "base", | |
"nodeType": "YulIdentifier", | |
"src": "462:4:9" | |
} | |
], | |
"functionName": { | |
"name": "mul", | |
"nodeType": "YulIdentifier", | |
"src": "451:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "451:16:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "power", | |
"nodeType": "YulIdentifier", | |
"src": "442:5:9" | |
} | |
] | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"name": "exponent", | |
"nodeType": "YulIdentifier", | |
"src": "421:8:9" | |
}, | |
{ | |
"name": "power_1", | |
"nodeType": "YulIdentifier", | |
"src": "431:7:9" | |
} | |
], | |
"functionName": { | |
"name": "and", | |
"nodeType": "YulIdentifier", | |
"src": "417:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "417:22:9" | |
}, | |
"nodeType": "YulIf", | |
"src": "414:55:9" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "482:23:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "base", | |
"nodeType": "YulIdentifier", | |
"src": "494:4:9" | |
}, | |
{ | |
"name": "base", | |
"nodeType": "YulIdentifier", | |
"src": "500:4:9" | |
} | |
], | |
"functionName": { | |
"name": "mul", | |
"nodeType": "YulIdentifier", | |
"src": "490:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "490:15:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "base", | |
"nodeType": "YulIdentifier", | |
"src": "482:4:9" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "518:34:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "power_1", | |
"nodeType": "YulIdentifier", | |
"src": "534:7:9" | |
}, | |
{ | |
"name": "exponent", | |
"nodeType": "YulIdentifier", | |
"src": "543:8:9" | |
} | |
], | |
"functionName": { | |
"name": "shr", | |
"nodeType": "YulIdentifier", | |
"src": "530:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "530:22:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "exponent", | |
"nodeType": "YulIdentifier", | |
"src": "518:8:9" | |
} | |
] | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"name": "exponent", | |
"nodeType": "YulIdentifier", | |
"src": "303:8:9" | |
}, | |
{ | |
"name": "power_1", | |
"nodeType": "YulIdentifier", | |
"src": "313:7:9" | |
} | |
], | |
"functionName": { | |
"name": "gt", | |
"nodeType": "YulIdentifier", | |
"src": "300:2:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "300:21:9" | |
}, | |
"nodeType": "YulForLoop", | |
"post": { | |
"nodeType": "YulBlock", | |
"src": "322:3:9", | |
"statements": [] | |
}, | |
"pre": { | |
"nodeType": "YulBlock", | |
"src": "296:3:9", | |
"statements": [] | |
}, | |
"src": "292:270:9" | |
} | |
] | |
}, | |
"name": "checked_exp_helper", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "_base", | |
"nodeType": "YulTypedName", | |
"src": "174:5:9", | |
"type": "" | |
}, | |
{ | |
"name": "exponent", | |
"nodeType": "YulTypedName", | |
"src": "181:8:9", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "power", | |
"nodeType": "YulTypedName", | |
"src": "194:5:9", | |
"type": "" | |
}, | |
{ | |
"name": "base", | |
"nodeType": "YulTypedName", | |
"src": "201:4:9", | |
"type": "" | |
} | |
], | |
"src": "146:422:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "632:747:9", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "670:52:9", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "684:10:9", | |
"value": { | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "693:1:9", | |
"type": "", | |
"value": "1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "power", | |
"nodeType": "YulIdentifier", | |
"src": "684:5:9" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulLeave", | |
"src": "707:5:9" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"name": "exponent", | |
"nodeType": "YulIdentifier", | |
"src": "652:8:9" | |
} | |
], | |
"functionName": { | |
"name": "iszero", | |
"nodeType": "YulIdentifier", | |
"src": "645:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "645:16:9" | |
}, | |
"nodeType": "YulIf", | |
"src": "642:80:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "755:52:9", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "769:10:9", | |
"value": { | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "778:1:9", | |
"type": "", | |
"value": "0" | |
}, | |
"variableNames": [ | |
{ | |
"name": "power", | |
"nodeType": "YulIdentifier", | |
"src": "769:5:9" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulLeave", | |
"src": "792:5:9" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"name": "base", | |
"nodeType": "YulIdentifier", | |
"src": "741:4:9" | |
} | |
], | |
"functionName": { | |
"name": "iszero", | |
"nodeType": "YulIdentifier", | |
"src": "734:6:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "734:12:9" | |
}, | |
"nodeType": "YulIf", | |
"src": "731:76:9" | |
}, | |
{ | |
"cases": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "843:52:9", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "857:10:9", | |
"value": { | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "866:1:9", | |
"type": "", | |
"value": "1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "power", | |
"nodeType": "YulIdentifier", | |
"src": "857:5:9" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulLeave", | |
"src": "880:5:9" | |
} | |
] | |
}, | |
"nodeType": "YulCase", | |
"src": "836:59:9", | |
"value": { | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "841:1:9", | |
"type": "", | |
"value": "1" | |
} | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "911:123:9", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "946:22:9", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [], | |
"functionName": { | |
"name": "panic_error_0x11", | |
"nodeType": "YulIdentifier", | |
"src": "948:16:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "948:18:9" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "948:18:9" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"name": "exponent", | |
"nodeType": "YulIdentifier", | |
"src": "931:8:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "941:3:9", | |
"type": "", | |
"value": "255" | |
} | |
], | |
"functionName": { | |
"name": "gt", | |
"nodeType": "YulIdentifier", | |
"src": "928:2:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "928:17:9" | |
}, | |
"nodeType": "YulIf", | |
"src": "925:43:9" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "981:25:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "exponent", | |
"nodeType": "YulIdentifier", | |
"src": "994:8:9" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1004:1:9", | |
"type": "", | |
"value": "1" | |
} | |
], | |
"functionName": { | |
"name": "shl", | |
"nodeType": "YulIdentifier", | |
"src": "990:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "990:16:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "power", | |
"nodeType": "YulIdentifier", | |
"src": "981:5:9" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulLeave", | |
"src": "1019:5:9" | |
} | |
] | |
}, | |
"nodeType": "YulCase", | |
"src": "904:130:9", | |
"value": { | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "909:1:9", | |
"type": "", | |
"value": "2" | |
} | |
} | |
], | |
"expression": { | |
"name": "base", | |
"nodeType": "YulIdentifier", | |
"src": "823:4:9" | |
}, | |
"nodeType": "YulSwitch", | |
"src": "816:218:9" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "1132:70:9", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "1146:28:9", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "base", | |
"nodeType": "YulIdentifier", | |
"src": "1159:4:9" | |
}, | |
{ | |
"name": "exponent", | |
"nodeType": "YulIdentifier", | |
"src": "1165:8:9" | |
} | |
], | |
"functionName": { | |
"name": "exp", | |
"nodeType": "YulIdentifier", | |
"src": "1155:3:9" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1155:19:9" | |
}, | |
"variableNames": [ | |
{ | |
"name": "power", | |
"nodeType": "YulIdentifier", | |
"src": "1146:5:9" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulLeave", | |
"src": "1187:5:9" | |
} | |
] | |
}, | |
"condition": { | |
" |
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)