-
-
Save BeadtMODE/0be530fef37ce76ea5595cb49ef2d1ae to your computer and use it in GitHub Desktop.
{ | |
"name": "MillardBoswellToken", | |
"address": "0x3328358128832A260C76A4141e19E2A943CD4B6D", | |
"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": "address", | |
"name": "initialOwner", | |
"type": "address" | |
} | |
], | |
"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" | |
}, | |
{ | |
"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" | |
}, | |
{ | |
"inputs": [], | |
"name": "mintFifty", | |
"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": "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": "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": "MBT/contracts/4_Token.sol", | |
"pinnedAt": 1737969432414 | |
} |
// 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); | |
} |
{ | |
"id": "bb4dc78750eec3eabcb8fe1a495ec28d", | |
"_format": "hh-sol-build-info-1", | |
"solcVersion": "0.8.20", | |
"solcLongVersion": "0.8.20+commit.a1b79de6", | |
"input": { | |
"language": "Solidity", | |
"sources": { | |
".deps/npm/@openzeppelin/contracts/token/ERC20/ERC20.sol": { | |
"content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.2.0) (token/ERC20/ERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC20Metadata} from \"./extensions/IERC20Metadata.sol\";\nimport {Context} from \"../../utils/Context.sol\";\nimport {IERC20Errors} from \"../../interfaces/draft-IERC6093.sol\";\n\n/**\n * @dev Implementation of the {IERC20} interface.\n *\n * This implementation is agnostic to the way tokens are created. This means\n * that a supply mechanism has to be added in a derived contract using {_mint}.\n *\n * TIP: For a detailed writeup see our guide\n * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How\n * to implement supply mechanisms].\n *\n * The default value of {decimals} is 18. To change this, you should override\n * this function so it returns a different value.\n *\n * We have followed general OpenZeppelin Contracts guidelines: functions revert\n * instead returning `false` on failure. This behavior is nonetheless\n * conventional and does not conflict with the expectations of ERC-20\n * applications.\n */\nabstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {\n mapping(address account => uint256) private _balances;\n\n mapping(address account => mapping(address spender => uint256)) private _allowances;\n\n uint256 private _totalSupply;\n\n string private _name;\n string private _symbol;\n\n /**\n * @dev Sets the values for {name} and {symbol}.\n *\n * All two of these values are immutable: they can only be set once during\n * construction.\n */\n constructor(string memory name_, string memory symbol_) {\n _name = name_;\n _symbol = symbol_;\n }\n\n /**\n * @dev Returns the name of the token.\n */\n function name() public view virtual returns (string memory) {\n return _name;\n }\n\n /**\n * @dev Returns the symbol of the token, usually a shorter version of the\n * name.\n */\n function symbol() public view virtual returns (string memory) {\n return _symbol;\n }\n\n /**\n * @dev Returns the number of decimals used to get its user representation.\n * For example, if `decimals` equals `2`, a balance of `505` tokens should\n * be displayed to a user as `5.05` (`505 / 10 ** 2`).\n *\n * Tokens usually opt for a value of 18, imitating the relationship between\n * Ether and Wei. This is the default value returned by this function, unless\n * it's overridden.\n *\n * NOTE: This information is only used for _display_ purposes: it in\n * no way affects any of the arithmetic of the contract, including\n * {IERC20-balanceOf} and {IERC20-transfer}.\n */\n function decimals() public view virtual returns (uint8) {\n return 18;\n }\n\n /**\n * @dev See {IERC20-totalSupply}.\n */\n function totalSupply() public view virtual returns (uint256) {\n return _totalSupply;\n }\n\n /**\n * @dev See {IERC20-balanceOf}.\n */\n function balanceOf(address account) public view virtual returns (uint256) {\n return _balances[account];\n }\n\n /**\n * @dev See {IERC20-transfer}.\n *\n * Requirements:\n *\n * - `to` cannot be the zero address.\n * - the caller must have a balance of at least `value`.\n */\n function transfer(address to, uint256 value) public virtual returns (bool) {\n address owner = _msgSender();\n _transfer(owner, to, value);\n return true;\n }\n\n /**\n * @dev See {IERC20-allowance}.\n */\n function allowance(address owner, address spender) public view virtual returns (uint256) {\n return _allowances[owner][spender];\n }\n\n /**\n * @dev See {IERC20-approve}.\n *\n * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on\n * `transferFrom`. This is semantically equivalent to an infinite approval.\n *\n * Requirements:\n *\n * - `spender` cannot be the zero address.\n */\n function approve(address spender, uint256 value) public virtual returns (bool) {\n address owner = _msgSender();\n _approve(owner, spender, value);\n return true;\n }\n\n /**\n * @dev See {IERC20-transferFrom}.\n *\n * Skips emitting an {Approval} event indicating an allowance update. This is not\n * required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve].\n *\n * NOTE: Does not update the allowance if the current allowance\n * is the maximum `uint256`.\n *\n * Requirements:\n *\n * - `from` and `to` cannot be the zero address.\n * - `from` must have a balance of at least `value`.\n * - the caller must have allowance for ``from``'s tokens of at least\n * `value`.\n */\n function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {\n address spender = _msgSender();\n _spendAllowance(from, spender, value);\n _transfer(from, to, value);\n return true;\n }\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to`.\n *\n * This internal function is equivalent to {transfer}, and can be used to\n * e.g. implement automatic token fees, slashing mechanisms, etc.\n *\n * Emits a {Transfer} event.\n *\n * NOTE: This function is not virtual, {_update} should be overridden instead.\n */\n function _transfer(address from, address to, uint256 value) internal {\n if (from == address(0)) {\n revert ERC20InvalidSender(address(0));\n }\n if (to == address(0)) {\n revert ERC20InvalidReceiver(address(0));\n }\n _update(from, to, value);\n }\n\n /**\n * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`\n * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding\n * this function.\n *\n * Emits a {Transfer} event.\n */\n function _update(address from, address to, uint256 value) internal virtual {\n if (from == address(0)) {\n // Overflow check required: The rest of the code assumes that totalSupply never overflows\n _totalSupply += value;\n } else {\n uint256 fromBalance = _balances[from];\n if (fromBalance < value) {\n revert ERC20InsufficientBalance(from, fromBalance, value);\n }\n unchecked {\n // Overflow not possible: value <= fromBalance <= totalSupply.\n _balances[from] = fromBalance - value;\n }\n }\n\n if (to == address(0)) {\n unchecked {\n // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.\n _totalSupply -= value;\n }\n } else {\n unchecked {\n // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.\n _balances[to] += value;\n }\n }\n\n emit Transfer(from, to, value);\n }\n\n /**\n * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).\n * Relies on the `_update` mechanism\n *\n * Emits a {Transfer} event with `from` set to the zero address.\n *\n * NOTE: This function is not virtual, {_update} should be overridden instead.\n */\n function _mint(address account, uint256 value) internal {\n if (account == address(0)) {\n revert ERC20InvalidReceiver(address(0));\n }\n _update(address(0), account, value);\n }\n\n /**\n * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.\n * Relies on the `_update` mechanism.\n *\n * Emits a {Transfer} event with `to` set to the zero address.\n *\n * NOTE: This function is not virtual, {_update} should be overridden instead\n */\n function _burn(address account, uint256 value) internal {\n if (account == address(0)) {\n revert ERC20InvalidSender(address(0));\n }\n _update(account, address(0), value);\n }\n\n /**\n * @dev Sets `value` as the allowance of `spender` over the `owner` s tokens.\n *\n * This internal function is equivalent to `approve`, and can be used to\n * e.g. set automatic allowances for certain subsystems, etc.\n *\n * Emits an {Approval} event.\n *\n * Requirements:\n *\n * - `owner` cannot be the zero address.\n * - `spender` cannot be the zero address.\n *\n * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.\n */\n function _approve(address owner, address spender, uint256 value) internal {\n _approve(owner, spender, value, true);\n }\n\n /**\n * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.\n *\n * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by\n * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any\n * `Approval` event during `transferFrom` operations.\n *\n * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to\n * true using the following override:\n *\n * ```solidity\n * function _approve(address owner, address spender, uint256 value, bool) internal virtual override {\n * super._approve(owner, spender, value, true);\n * }\n * ```\n *\n * Requirements are the same as {_approve}.\n */\n function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {\n if (owner == address(0)) {\n revert ERC20InvalidApprover(address(0));\n }\n if (spender == address(0)) {\n revert ERC20InvalidSpender(address(0));\n }\n _allowances[owner][spender] = value;\n if (emitEvent) {\n emit Approval(owner, spender, value);\n }\n }\n\n /**\n * @dev Updates `owner` s allowance for `spender` based on spent `value`.\n *\n * Does not update the allowance value in case of infinite allowance.\n * Revert if not enough allowance is available.\n *\n * Does not emit an {Approval} event.\n */\n function _spendAllowance(address owner, address spender, uint256 value) internal virtual {\n uint256 currentAllowance = allowance(owner, spender);\n if (currentAllowance < type(uint256).max) {\n if (currentAllowance < value) {\n revert ERC20InsufficientAllowance(spender, currentAllowance, value);\n }\n unchecked {\n _approve(owner, spender, currentAllowance - value, false);\n }\n }\n }\n}\n" | |
}, | |
".deps/npm/@openzeppelin/contracts/interfaces/draft-IERC6093.sol": { | |
"content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/draft-IERC6093.sol)\npragma solidity ^0.8.20;\n\n/**\n * @dev Standard ERC-20 Errors\n * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens.\n */\ninterface IERC20Errors {\n /**\n * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.\n * @param sender Address whose tokens are being transferred.\n * @param balance Current balance for the interacting account.\n * @param needed Minimum amount required to perform a transfer.\n */\n error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);\n\n /**\n * @dev Indicates a failure with the token `sender`. Used in transfers.\n * @param sender Address whose tokens are being transferred.\n */\n error ERC20InvalidSender(address sender);\n\n /**\n * @dev Indicates a failure with the token `receiver`. Used in transfers.\n * @param receiver Address to which tokens are being transferred.\n */\n error ERC20InvalidReceiver(address receiver);\n\n /**\n * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.\n * @param spender Address that may be allowed to operate on tokens without being their owner.\n * @param allowance Amount of tokens a `spender` is allowed to operate with.\n * @param needed Minimum amount required to perform a transfer.\n */\n error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);\n\n /**\n * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.\n * @param approver Address initiating an approval operation.\n */\n error ERC20InvalidApprover(address approver);\n\n /**\n * @dev Indicates a failure with the `spender` to be approved. Used in approvals.\n * @param spender Address that may be allowed to operate on tokens without being their owner.\n */\n error ERC20InvalidSpender(address spender);\n}\n\n/**\n * @dev Standard ERC-721 Errors\n * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens.\n */\ninterface IERC721Errors {\n /**\n * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-20.\n * Used in balance queries.\n * @param owner Address of the current owner of a token.\n */\n error ERC721InvalidOwner(address owner);\n\n /**\n * @dev Indicates a `tokenId` whose `owner` is the zero address.\n * @param tokenId Identifier number of a token.\n */\n error ERC721NonexistentToken(uint256 tokenId);\n\n /**\n * @dev Indicates an error related to the ownership over a particular token. Used in transfers.\n * @param sender Address whose tokens are being transferred.\n * @param tokenId Identifier number of a token.\n * @param owner Address of the current owner of a token.\n */\n error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);\n\n /**\n * @dev Indicates a failure with the token `sender`. Used in transfers.\n * @param sender Address whose tokens are being transferred.\n */\n error ERC721InvalidSender(address sender);\n\n /**\n * @dev Indicates a failure with the token `receiver`. Used in transfers.\n * @param receiver Address to which tokens are being transferred.\n */\n error ERC721InvalidReceiver(address receiver);\n\n /**\n * @dev Indicates a failure with the `operator`’s approval. Used in transfers.\n * @param operator Address that may be allowed to operate on tokens without being their owner.\n * @param tokenId Identifier number of a token.\n */\n error ERC721InsufficientApproval(address operator, uint256 tokenId);\n\n /**\n * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.\n * @param approver Address initiating an approval operation.\n */\n error ERC721InvalidApprover(address approver);\n\n /**\n * @dev Indicates a failure with the `operator` to be approved. Used in approvals.\n * @param operator Address that may be allowed to operate on tokens without being their owner.\n */\n error ERC721InvalidOperator(address operator);\n}\n\n/**\n * @dev Standard ERC-1155 Errors\n * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens.\n */\ninterface IERC1155Errors {\n /**\n * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.\n * @param sender Address whose tokens are being transferred.\n * @param balance Current balance for the interacting account.\n * @param needed Minimum amount required to perform a transfer.\n * @param tokenId Identifier number of a token.\n */\n error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);\n\n /**\n * @dev Indicates a failure with the token `sender`. Used in transfers.\n * @param sender Address whose tokens are being transferred.\n */\n error ERC1155InvalidSender(address sender);\n\n /**\n * @dev Indicates a failure with the token `receiver`. Used in transfers.\n * @param receiver Address to which tokens are being transferred.\n */\n error ERC1155InvalidReceiver(address receiver);\n\n /**\n * @dev Indicates a failure with the `operator`’s approval. Used in transfers.\n * @param operator Address that may be allowed to operate on tokens without being their owner.\n * @param owner Address of the current owner of a token.\n */\n error ERC1155MissingApprovalForAll(address operator, address owner);\n\n /**\n * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.\n * @param approver Address initiating an approval operation.\n */\n error ERC1155InvalidApprover(address approver);\n\n /**\n * @dev Indicates a failure with the `operator` to be approved. Used in approvals.\n * @param operator Address that may be allowed to operate on tokens without being their owner.\n */\n error ERC1155InvalidOperator(address operator);\n\n /**\n * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.\n * Used in batch transfers.\n * @param idsLength Length of the array of token identifiers\n * @param valuesLength Length of the array of token amounts\n */\n error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);\n}\n" | |
}, | |
".deps/npm/@openzeppelin/contracts/utils/Context.sol": { | |
"content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract Context {\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n" | |
}, | |
".deps/npm/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol": { | |
"content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/IERC20Metadata.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\n\n/**\n * @dev Interface for the optional metadata functions from the ERC-20 standard.\n */\ninterface IERC20Metadata is IERC20 {\n /**\n * @dev Returns the name of the token.\n */\n function name() external view returns (string memory);\n\n /**\n * @dev Returns the symbol of the token.\n */\n function symbol() external view returns (string memory);\n\n /**\n * @dev Returns the decimals places of the token.\n */\n function decimals() external view returns (uint8);\n}\n" | |
}, | |
".deps/npm/@openzeppelin/contracts/token/ERC20/IERC20.sol": { | |
"content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Returns the remaining number of tokens that `spender` will be\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\n * zero by default.\n *\n * This value changes when {approve} or {transferFrom} are called.\n */\n function allowance(address owner, address spender) external view returns (uint256);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\n * that someone may use both the old and the new allowance by unfortunate\n * transaction ordering. One possible solution to mitigate this race\n * condition is to first reduce the spender's allowance to 0 and set the\n * desired value afterwards:\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n *\n * Emits an {Approval} event.\n */\n function approve(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` is then deducted from the caller's\n * allowance.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transferFrom(address from, address to, uint256 value) external returns (bool);\n}\n" | |
} | |
}, | |
"settings": { | |
"optimizer": { | |
"enabled": false, | |
"runs": 200 | |
}, | |
"outputSelection": { | |
"*": { | |
"": [ | |
"ast" | |
], | |
"*": [ | |
"abi", | |
"metadata", | |
"devdoc", | |
"userdoc", | |
"storageLayout", | |
"evm.legacyAssembly", | |
"evm.bytecode", | |
"evm.deployedBytecode", | |
"evm.methodIdentifiers", | |
"evm.gasEstimates", | |
"evm.assembly" | |
] | |
} | |
}, | |
"remappings": [] | |
} | |
}, | |
"output": { | |
"contracts": { | |
".deps/npm/@openzeppelin/contracts/interfaces/draft-IERC6093.sol": { | |
"IERC1155Errors": { | |
"abi": [ | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "sender", | |
"type": "address" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "balance", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "needed", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "tokenId", | |
"type": "uint256" | |
} | |
], | |
"name": "ERC1155InsufficientBalance", | |
"type": "error" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "approver", | |
"type": "address" | |
} | |
], | |
"name": "ERC1155InvalidApprover", | |
"type": "error" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "idsLength", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "valuesLength", | |
"type": "uint256" | |
} | |
], | |
"name": "ERC1155InvalidArrayLength", | |
"type": "error" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "operator", | |
"type": "address" | |
} | |
], | |
"name": "ERC1155InvalidOperator", | |
"type": "error" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "receiver", | |
"type": "address" | |
} | |
], | |
"name": "ERC1155InvalidReceiver", | |
"type": "error" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "sender", | |
"type": "address" | |
} | |
], | |
"name": "ERC1155InvalidSender", | |
"type": "error" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "operator", | |
"type": "address" | |
}, | |
{ | |
"internalType": "address", | |
"name": "owner", | |
"type": "address" | |
} | |
], | |
"name": "ERC1155MissingApprovalForAll", | |
"type": "error" | |
} | |
], | |
"devdoc": { | |
"details": "Standard ERC-1155 Errors Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens.", | |
"errors": { | |
"ERC1155InsufficientBalance(address,uint256,uint256,uint256)": [ | |
{ | |
"details": "Indicates an error related to the current `balance` of a `sender`. Used in transfers.", | |
"params": { | |
"balance": "Current balance for the interacting account.", | |
"needed": "Minimum amount required to perform a transfer.", | |
"sender": "Address whose tokens are being transferred.", | |
"tokenId": "Identifier number of a token." | |
} | |
} | |
], | |
"ERC1155InvalidApprover(address)": [ | |
{ | |
"details": "Indicates a failure with the `approver` of a token to be approved. Used in approvals.", | |
"params": { | |
"approver": "Address initiating an approval operation." | |
} | |
} | |
], | |
"ERC1155InvalidArrayLength(uint256,uint256)": [ | |
{ | |
"details": "Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. Used in batch transfers.", | |
"params": { | |
"idsLength": "Length of the array of token identifiers", | |
"valuesLength": "Length of the array of token amounts" | |
} | |
} | |
], | |
"ERC1155InvalidOperator(address)": [ | |
{ | |
"details": "Indicates a failure with the `operator` to be approved. Used in approvals.", | |
"params": { | |
"operator": "Address that may be allowed to operate on tokens without being their owner." | |
} | |
} | |
], | |
"ERC1155InvalidReceiver(address)": [ | |
{ | |
"details": "Indicates a failure with the token `receiver`. Used in transfers.", | |
"params": { | |
"receiver": "Address to which tokens are being transferred." | |
} | |
} | |
], | |
"ERC1155InvalidSender(address)": [ | |
{ | |
"details": "Indicates a failure with the token `sender`. Used in transfers.", | |
"params": { | |
"sender": "Address whose tokens are being transferred." | |
} | |
} | |
], | |
"ERC1155MissingApprovalForAll(address,address)": [ | |
{ | |
"details": "Indicates a failure with the `operator`’s approval. Used in transfers.", | |
"params": { | |
"operator": "Address that may be allowed to operate on tokens without being their owner.", | |
"owner": "Address of the current owner of a token." | |
} | |
} | |
] | |
}, | |
"kind": "dev", | |
"methods": {}, | |
"version": 1 | |
}, | |
"evm": { | |
"assembly": "", | |
"bytecode": { | |
"functionDebugData": {}, | |
"generatedSources": [], | |
"linkReferences": {}, | |
"object": "", | |
"opcodes": "", | |
"sourceMap": "" | |
}, | |
"deployedBytecode": { | |
"functionDebugData": {}, | |
"generatedSources": [], | |
"immutableReferences": {}, | |
"linkReferences": {}, | |
"object": "", | |
"opcodes": "", | |
"sourceMap": "" | |
}, | |
"gasEstimates": null, | |
"legacyAssembly": null, | |
"methodIdentifiers": {} | |
}, | |
"metadata": "{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"needed\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ERC1155InsufficientBalance\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"approver\",\"type\":\"address\"}],\"name\":\"ERC1155InvalidApprover\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"idsLength\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"valuesLength\",\"type\":\"uint256\"}],\"name\":\"ERC1155InvalidArrayLength\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"ERC1155InvalidOperator\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"ERC1155InvalidReceiver\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"ERC1155InvalidSender\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"ERC1155MissingApprovalForAll\",\"type\":\"error\"}],\"devdoc\":{\"details\":\"Standard ERC-1155 Errors Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens.\",\"errors\":{\"ERC1155InsufficientBalance(address,uint256,uint256,uint256)\":[{\"details\":\"Indicates an error related to the current `balance` of a `sender`. Used in transfers.\",\"params\":{\"balance\":\"Current balance for the interacting account.\",\"needed\":\"Minimum amount required to perform a transfer.\",\"sender\":\"Address whose tokens are being transferred.\",\"tokenId\":\"Identifier number of a token.\"}}],\"ERC1155InvalidApprover(address)\":[{\"details\":\"Indicates a failure with the `approver` of a token to be approved. Used in approvals.\",\"params\":{\"approver\":\"Address initiating an approval operation.\"}}],\"ERC1155InvalidArrayLength(uint256,uint256)\":[{\"details\":\"Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. Used in batch transfers.\",\"params\":{\"idsLength\":\"Length of the array of token identifiers\",\"valuesLength\":\"Length of the array of token amounts\"}}],\"ERC1155InvalidOperator(address)\":[{\"details\":\"Indicates a failure with the `operator` to be approved. Used in approvals.\",\"params\":{\"operator\":\"Address that may be allowed to operate on tokens without being their owner.\"}}],\"ERC1155InvalidReceiver(address)\":[{\"details\":\"Indicates a failure with the token `receiver`. Used in transfers.\",\"params\":{\"receiver\":\"Address to which tokens are being transferred.\"}}],\"ERC1155InvalidSender(address)\":[{\"details\":\"Indicates a failure with the token `sender`. Used in transfers.\",\"params\":{\"sender\":\"Address whose tokens are being transferred.\"}}],\"ERC1155MissingApprovalForAll(address,address)\":[{\"details\":\"Indicates a failure with the `operator`\\u2019s approval. Used in transfers.\",\"params\":{\"operator\":\"Address that may be allowed to operate on tokens without being their owner.\",\"owner\":\"Address of the current owner of a token.\"}}]},\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\".deps/npm/@openzeppelin/contracts/interfaces/draft-IERC6093.sol\":\"IERC1155Errors\"},\"evmVersion\":\"shanghai\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\".deps/npm/@openzeppelin/contracts/interfaces/draft-IERC6093.sol\":{\"keccak256\":\"0x880da465c203cec76b10d72dbd87c80f387df4102274f23eea1f9c9b0918792b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://399594cd8bb0143bc9e55e0f1d071d0d8c850a394fb7a319d50edd55d9ed822b\",\"dweb:/ipfs/QmbPZzgtT6LEm9CMqWfagQFwETbV1ztpECBB1DtQHrKiRz\"]}},\"version\":1}", | |
"storageLayout": { | |
"storage": [], | |
"types": null | |
}, | |
"userdoc": { | |
"kind": "user", | |
"methods": {}, | |
"version": 1 | |
} | |
}, | |
"IERC20Errors": { | |
"abi": [ | |
{ | |
"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" | |
} | |
], | |
"devdoc": { | |
"details": "Standard ERC-20 Errors Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens.", | |
"errors": { | |
"ERC20InsufficientAllowance(address,uint256,uint256)": [ | |
{ | |
"details": "Indicates a failure with the `spender`’s `allowance`. Used in transfers.", | |
"params": { | |
"allowance": "Amount of tokens a `spender` is allowed to operate with.", | |
"needed": "Minimum amount required to perform a transfer.", | |
"spender": "Address that may be allowed to operate on tokens without being their owner." | |
} | |
} | |
], | |
"ERC20InsufficientBalance(address,uint256,uint256)": [ | |
{ | |
"details": "Indicates an error related to the current `balance` of a `sender`. Used in transfers.", | |
"params": { | |
"balance": "Current balance for the interacting account.", | |
"needed": "Minimum amount required to perform a transfer.", | |
"sender": "Address whose tokens are being transferred." | |
} | |
} | |
], | |
"ERC20InvalidApprover(address)": [ | |
{ | |
"details": "Indicates a failure with the `approver` of a token to be approved. Used in approvals.", | |
"params": { | |
"approver": "Address initiating an approval operation." | |
} | |
} | |
], | |
"ERC20InvalidReceiver(address)": [ | |
{ | |
"details": "Indicates a failure with the token `receiver`. Used in transfers.", | |
"params": { | |
"receiver": "Address to which tokens are being transferred." | |
} | |
} | |
], | |
"ERC20InvalidSender(address)": [ | |
{ | |
"details": "Indicates a failure with the token `sender`. Used in transfers.", | |
"params": { | |
"sender": "Address whose tokens are being transferred." | |
} | |
} | |
], | |
"ERC20InvalidSpender(address)": [ | |
{ | |
"details": "Indicates a failure with the `spender` to be approved. Used in approvals.", | |
"params": { | |
"spender": "Address that may be allowed to operate on tokens without being their owner." | |
} | |
} | |
] | |
}, | |
"kind": "dev", | |
"methods": {}, | |
"version": 1 | |
}, | |
"evm": { | |
"assembly": "", | |
"bytecode": { | |
"functionDebugData": {}, | |
"generatedSources": [], | |
"linkReferences": {}, | |
"object": "", | |
"opcodes": "", | |
"sourceMap": "" | |
}, | |
"deployedBytecode": { | |
"functionDebugData": {}, | |
"generatedSources": [], | |
"immutableReferences": {}, | |
"linkReferences": {}, | |
"object": "", | |
"opcodes": "", | |
"sourceMap": "" | |
}, | |
"gasEstimates": null, | |
"legacyAssembly": null, | |
"methodIdentifiers": {} | |
}, | |
"metadata": "{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"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\"}],\"devdoc\":{\"details\":\"Standard ERC-20 Errors Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens.\",\"errors\":{\"ERC20InsufficientAllowance(address,uint256,uint256)\":[{\"details\":\"Indicates a failure with the `spender`\\u2019s `allowance`. Used in transfers.\",\"params\":{\"allowance\":\"Amount of tokens a `spender` is allowed to operate with.\",\"needed\":\"Minimum amount required to perform a transfer.\",\"spender\":\"Address that may be allowed to operate on tokens without being their owner.\"}}],\"ERC20InsufficientBalance(address,uint256,uint256)\":[{\"details\":\"Indicates an error related to the current `balance` of a `sender`. Used in transfers.\",\"params\":{\"balance\":\"Current balance for the interacting account.\",\"needed\":\"Minimum amount required to perform a transfer.\",\"sender\":\"Address whose tokens are being transferred.\"}}],\"ERC20InvalidApprover(address)\":[{\"details\":\"Indicates a failure with the `approver` of a token to be approved. Used in approvals.\",\"params\":{\"approver\":\"Address initiating an approval operation.\"}}],\"ERC20InvalidReceiver(address)\":[{\"details\":\"Indicates a failure with the token `receiver`. Used in transfers.\",\"params\":{\"receiver\":\"Address to which tokens are being transferred.\"}}],\"ERC20InvalidSender(address)\":[{\"details\":\"Indicates a failure with the token `sender`. Used in transfers.\",\"params\":{\"sender\":\"Address whose tokens are being transferred.\"}}],\"ERC20InvalidSpender(address)\":[{\"details\":\"Indicates a failure with the `spender` to be approved. Used in approvals.\",\"params\":{\"spender\":\"Address that may be allowed to operate on tokens without being their owner.\"}}]},\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\".deps/npm/@openzeppelin/contracts/interfaces/draft-IERC6093.sol\":\"IERC20Errors\"},\"evmVersion\":\"shanghai\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\".deps/npm/@openzeppelin/contracts/interfaces/draft-IERC6093.sol\":{\"keccak256\":\"0x880da465c203cec76b10d72dbd87c80f387df4102274f23eea1f9c9b0918792b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://399594cd8bb0143bc9e55e0f1d071d0d8c850a394fb7a319d50edd55d9ed822b\",\"dweb:/ipfs/QmbPZzgtT6LEm9CMqWfagQFwETbV1ztpECBB1DtQHrKiRz\"]}},\"version\":1}", | |
"storageLayout": { | |
"storage": [], | |
"types": null | |
}, | |
"userdoc": { | |
"kind": "user", | |
"methods": {}, | |
"version": 1 | |
} | |
}, | |
"IERC721Errors": { | |
"abi": [ | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "sender", | |
"type": "address" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "tokenId", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "address", | |
"name": "owner", | |
"type": "address" | |
} | |
], | |
"name": "ERC721IncorrectOwner", | |
"type": "error" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "operator", | |
"type": "address" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "tokenId", | |
"type": "uint256" | |
} | |
], | |
"name": "ERC721InsufficientApproval", | |
"type": "error" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "approver", | |
"type": "address" | |
} | |
], | |
"name": "ERC721InvalidApprover", | |
"type": "error" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "operator", | |
"type": "address" | |
} | |
], | |
"name": "ERC721InvalidOperator", | |
"type": "error" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "owner", | |
"type": "address" | |
} | |
], | |
"name": "ERC721InvalidOwner", | |
"type": "error" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "receiver", | |
"type": "address" | |
} | |
], | |
"name": "ERC721InvalidReceiver", | |
"type": "error" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "sender", | |
"type": "address" | |
} | |
], | |
"name": "ERC721InvalidSender", | |
"type": "error" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "tokenId", | |
"type": "uint256" | |
} | |
], | |
"name": "ERC721NonexistentToken", | |
"type": "error" | |
} | |
], | |
"devdoc": { | |
"details": "Standard ERC-721 Errors Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens.", | |
"errors": { | |
"ERC721IncorrectOwner(address,uint256,address)": [ | |
{ | |
"details": "Indicates an error related to the ownership over a particular token. Used in transfers.", | |
"params": { | |
"owner": "Address of the current owner of a token.", | |
"sender": "Address whose tokens are being transferred.", | |
"tokenId": "Identifier number of a token." | |
} | |
} | |
], | |
"ERC721InsufficientApproval(address,uint256)": [ | |
{ | |
"details": "Indicates a failure with the `operator`’s approval. Used in transfers.", | |
"params": { | |
"operator": "Address that may be allowed to operate on tokens without being their owner.", | |
"tokenId": "Identifier number of a token." | |
} | |
} | |
], | |
"ERC721InvalidApprover(address)": [ | |
{ | |
"details": "Indicates a failure with the `approver` of a token to be approved. Used in approvals.", | |
"params": { | |
"approver": "Address initiating an approval operation." | |
} | |
} | |
], | |
"ERC721InvalidOperator(address)": [ | |
{ | |
"details": "Indicates a failure with the `operator` to be approved. Used in approvals.", | |
"params": { | |
"operator": "Address that may be allowed to operate on tokens without being their owner." | |
} | |
} | |
], | |
"ERC721InvalidOwner(address)": [ | |
{ | |
"details": "Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-20. Used in balance queries.", | |
"params": { | |
"owner": "Address of the current owner of a token." | |
} | |
} | |
], | |
"ERC721InvalidReceiver(address)": [ | |
{ | |
"details": "Indicates a failure with the token `receiver`. Used in transfers.", | |
"params": { | |
"receiver": "Address to which tokens are being transferred." | |
} | |
} | |
], | |
"ERC721InvalidSender(address)": [ | |
{ | |
"details": "Indicates a failure with the token `sender`. Used in transfers.", | |
"params": { | |
"sender": "Address whose tokens are being transferred." | |
} | |
} | |
], | |
"ERC721NonexistentToken(uint256)": [ | |
{ | |
"details": "Indicates a `tokenId` whose `owner` is the zero address.", | |
"params": { | |
"tokenId": "Identifier number of a token." | |
} | |
} | |
] | |
}, | |
"kind": "dev", | |
"methods": {}, | |
"version": 1 | |
}, | |
"evm": { | |
"assembly": "", | |
"bytecode": { | |
"functionDebugData": {}, | |
"generatedSources": [], | |
"linkReferences": {}, | |
"object": "", | |
"opcodes": "", | |
"sourceMap": "" | |
}, | |
"deployedBytecode": { | |
"functionDebugData": {}, | |
"generatedSources": [], | |
"immutableReferences": {}, | |
"linkReferences": {}, | |
"object": "", | |
"opcodes": "", | |
"sourceMap": "" | |
}, | |
"gasEstimates": null, | |
"legacyAssembly": null, | |
"methodIdentifiers": {} | |
}, | |
"metadata": "{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"ERC721IncorrectOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ERC721InsufficientApproval\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"approver\",\"type\":\"address\"}],\"name\":\"ERC721InvalidApprover\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"ERC721InvalidOperator\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"ERC721InvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"ERC721InvalidReceiver\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"ERC721InvalidSender\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ERC721NonexistentToken\",\"type\":\"error\"}],\"devdoc\":{\"details\":\"Standard ERC-721 Errors Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens.\",\"errors\":{\"ERC721IncorrectOwner(address,uint256,address)\":[{\"details\":\"Indicates an error related to the ownership over a particular token. Used in transfers.\",\"params\":{\"owner\":\"Address of the current owner of a token.\",\"sender\":\"Address whose tokens are being transferred.\",\"tokenId\":\"Identifier number of a token.\"}}],\"ERC721InsufficientApproval(address,uint256)\":[{\"details\":\"Indicates a failure with the `operator`\\u2019s approval. Used in transfers.\",\"params\":{\"operator\":\"Address that may be allowed to operate on tokens without being their owner.\",\"tokenId\":\"Identifier number of a token.\"}}],\"ERC721InvalidApprover(address)\":[{\"details\":\"Indicates a failure with the `approver` of a token to be approved. Used in approvals.\",\"params\":{\"approver\":\"Address initiating an approval operation.\"}}],\"ERC721InvalidOperator(address)\":[{\"details\":\"Indicates a failure with the `operator` to be approved. Used in approvals.\",\"params\":{\"operator\":\"Address that may be allowed to operate on tokens without being their owner.\"}}],\"ERC721InvalidOwner(address)\":[{\"details\":\"Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-20. Used in balance queries.\",\"params\":{\"owner\":\"Address of the current owner of a token.\"}}],\"ERC721InvalidReceiver(address)\":[{\"details\":\"Indicates a failure with the token `receiver`. Used in transfers.\",\"params\":{\"receiver\":\"Address to which tokens are being transferred.\"}}],\"ERC721InvalidSender(address)\":[{\"details\":\"Indicates a failure with the token `sender`. Used in transfers.\",\"params\":{\"sender\":\"Address whose tokens are being transferred.\"}}],\"ERC721NonexistentToken(uint256)\":[{\"details\":\"Indicates a `tokenId` whose `owner` is the zero address.\",\"params\":{\"tokenId\":\"Identifier number of a token.\"}}]},\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\".deps/npm/@openzeppelin/contracts/interfaces/draft-IERC6093.sol\":\"IERC721Errors\"},\"evmVersion\":\"shanghai\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\".deps/npm/@openzeppelin/contracts/interfaces/draft-IERC6093.sol\":{\"keccak256\":\"0x880da465c203cec76b10d72dbd87c80f387df4102274f23eea1f9c9b0918792b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://399594cd8bb0143bc9e55e0f1d071d0d8c850a394fb7a319d50edd55d9ed822b\",\"dweb:/ipfs/QmbPZzgtT6LEm9CMqWfagQFwETbV1ztpECBB1DtQHrKiRz\"]}},\"version\":1}", | |
"storageLayout": { | |
"storage": [], | |
"types": null | |
}, | |
"userdoc": { | |
"kind": "user", | |
"methods": {}, | |
"version": 1 | |
} | |
} | |
}, | |
".deps/npm/@openzeppelin/contracts/token/ERC20/ERC20.sol": { | |
"ERC20": { | |
"abi": [ | |
{ | |
"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" | |
}, | |
{ | |
"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": "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": "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": "value", | |
"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": [], | |
"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": "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": "value", | |
"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": "value", | |
"type": "uint256" | |
} | |
], | |
"name": "transferFrom", | |
"outputs": [ | |
{ | |
"internalType": "bool", | |
"name": "", | |
"type": "bool" | |
} | |
], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
} | |
], | |
"devdoc": { | |
"details": "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.", | |
"errors": { | |
"ERC20InsufficientAllowance(address,uint256,uint256)": [ | |
{ | |
"details": "Indicates a failure with the `spender`’s `allowance`. Used in transfers.", | |
"params": { | |
"allowance": "Amount of tokens a `spender` is allowed to operate with.", | |
"needed": "Minimum amount required to perform a transfer.", | |
"spender": "Address that may be allowed to operate on tokens without being their owner." | |
} | |
} | |
], | |
"ERC20InsufficientBalance(address,uint256,uint256)": [ | |
{ | |
"details": "Indicates an error related to the current `balance` of a `sender`. Used in transfers.", | |
"params": { | |
"balance": "Current balance for the interacting account.", | |
"needed": "Minimum amount required to perform a transfer.", | |
"sender": "Address whose tokens are being transferred." | |
} | |
} | |
], | |
"ERC20InvalidApprover(address)": [ | |
{ | |
"details": "Indicates a failure with the `approver` of a token to be approved. Used in approvals.", | |
"params": { | |
"approver": "Address initiating an approval operation." | |
} | |
} | |
], | |
"ERC20InvalidReceiver(address)": [ | |
{ | |
"details": "Indicates a failure with the token `receiver`. Used in transfers.", | |
"params": { | |
"receiver": "Address to which tokens are being transferred." | |
} | |
} | |
], | |
"ERC20InvalidSender(address)": [ | |
{ | |
"details": "Indicates a failure with the token `sender`. Used in transfers.", | |
"params": { | |
"sender": "Address whose tokens are being transferred." | |
} | |
} | |
], | |
"ERC20InvalidSpender(address)": [ | |
{ | |
"details": "Indicates a failure with the `spender` to be approved. Used in approvals.", | |
"params": { | |
"spender": "Address that may be allowed to operate on tokens without being their owner." | |
} | |
} | |
] | |
}, | |
"events": { | |
"Approval(address,address,uint256)": { | |
"details": "Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance." | |
}, | |
"Transfer(address,address,uint256)": { | |
"details": "Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero." | |
} | |
}, | |
"kind": "dev", | |
"methods": { | |
"allowance(address,address)": { | |
"details": "See {IERC20-allowance}." | |
}, | |
"approve(address,uint256)": { | |
"details": "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." | |
}, | |
"balanceOf(address)": { | |
"details": "See {IERC20-balanceOf}." | |
}, | |
"constructor": { | |
"details": "Sets the values for {name} and {symbol}. All two of these values are immutable: they can only be set once during construction." | |
}, | |
"decimals()": { | |
"details": "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}." | |
}, | |
"name()": { | |
"details": "Returns the name of the token." | |
}, | |
"symbol()": { | |
"details": "Returns the symbol of the token, usually a shorter version of the name." | |
}, | |
"totalSupply()": { | |
"details": "See {IERC20-totalSupply}." | |
}, | |
"transfer(address,uint256)": { | |
"details": "See {IERC20-transfer}. Requirements: - `to` cannot be the zero address. - the caller must have a balance of at least `value`." | |
}, | |
"transferFrom(address,address,uint256)": { | |
"details": "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`." | |
} | |
}, | |
"version": 1 | |
}, | |
"evm": { | |
"assembly": "", | |
"bytecode": { | |
"functionDebugData": {}, | |
"generatedSources": [], | |
"linkReferences": {}, | |
"object": "", | |
"opcodes": "", | |
"sourceMap": "" | |
}, | |
"deployedBytecode": { | |
"functionDebugData": {}, | |
"generatedSources": [], | |
"immutableReferences": {}, | |
"linkReferences": {}, | |
"object": "", | |
"opcodes": "", | |
"sourceMap": "" | |
}, | |
"gasEstimates": null, | |
"legacyAssembly": null, | |
"methodIdentifiers": { | |
"allowance(address,address)": "dd62ed3e", | |
"approve(address,uint256)": "095ea7b3", | |
"balanceOf(address)": "70a08231", | |
"decimals()": "313ce567", | |
"name()": "06fdde03", | |
"symbol()": "95d89b41", | |
"totalSupply()": "18160ddd", | |
"transfer(address,uint256)": "a9059cbb", | |
"transferFrom(address,address,uint256)": "23b872dd" | |
} | |
}, | |
"metadata": "{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"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\"},{\"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\":\"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\":\"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\":\"value\",\"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\":[],\"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\":\"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\":\"value\",\"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\":\"value\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"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.\",\"errors\":{\"ERC20InsufficientAllowance(address,uint256,uint256)\":[{\"details\":\"Indicates a failure with the `spender`\\u2019s `allowance`. Used in transfers.\",\"params\":{\"allowance\":\"Amount of tokens a `spender` is allowed to operate with.\",\"needed\":\"Minimum amount required to perform a transfer.\",\"spender\":\"Address that may be allowed to operate on tokens without being their owner.\"}}],\"ERC20InsufficientBalance(address,uint256,uint256)\":[{\"details\":\"Indicates an error related to the current `balance` of a `sender`. Used in transfers.\",\"params\":{\"balance\":\"Current balance for the interacting account.\",\"needed\":\"Minimum amount required to perform a transfer.\",\"sender\":\"Address whose tokens are being transferred.\"}}],\"ERC20InvalidApprover(address)\":[{\"details\":\"Indicates a failure with the `approver` of a token to be approved. Used in approvals.\",\"params\":{\"approver\":\"Address initiating an approval operation.\"}}],\"ERC20InvalidReceiver(address)\":[{\"details\":\"Indicates a failure with the token `receiver`. Used in transfers.\",\"params\":{\"receiver\":\"Address to which tokens are being transferred.\"}}],\"ERC20InvalidSender(address)\":[{\"details\":\"Indicates a failure with the token `sender`. Used in transfers.\",\"params\":{\"sender\":\"Address whose tokens are being transferred.\"}}],\"ERC20InvalidSpender(address)\":[{\"details\":\"Indicates a failure with the `spender` to be approved. Used in approvals.\",\"params\":{\"spender\":\"Address that may be allowed to operate on tokens without being their owner.\"}}]},\"events\":{\"Approval(address,address,uint256)\":{\"details\":\"Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance.\"},\"Transfer(address,address,uint256)\":{\"details\":\"Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero.\"}},\"kind\":\"dev\",\"methods\":{\"allowance(address,address)\":{\"details\":\"See {IERC20-allowance}.\"},\"approve(address,uint256)\":{\"details\":\"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.\"},\"balanceOf(address)\":{\"details\":\"See {IERC20-balanceOf}.\"},\"constructor\":{\"details\":\"Sets the values for {name} and {symbol}. All two of these values are immutable: they can only be set once during construction.\"},\"decimals()\":{\"details\":\"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}.\"},\"name()\":{\"details\":\"Returns the name of the token.\"},\"symbol()\":{\"details\":\"Returns the symbol of the token, usually a shorter version of the name.\"},\"totalSupply()\":{\"details\":\"See {IERC20-totalSupply}.\"},\"transfer(address,uint256)\":{\"details\":\"See {IERC20-transfer}. Requirements: - `to` cannot be the zero address. - the caller must have a balance of at least `value`.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"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`.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\".deps/npm/@openzeppelin/contracts/token/ERC20/ERC20.sol\":\"ERC20\"},\"evmVersion\":\"shanghai\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\".deps/npm/@openzeppelin/contracts/interfaces/draft-IERC6093.sol\":{\"keccak256\":\"0x880da465c203cec76b10d72dbd87c80f387df4102274f23eea1f9c9b0918792b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://399594cd8bb0143bc9e55e0f1d071d0d8c850a394fb7a319d50edd55d9ed822b\",\"dweb:/ipfs/QmbPZzgtT6LEm9CMqWfagQFwETbV1ztpECBB1DtQHrKiRz\"]},\".deps/npm/@openzeppelin/contracts/token/ERC20/ERC20.sol\":{\"keccak256\":\"0x6ef9389a2c07bc40d8a7ba48914724ab2c108fac391ce12314f01321813e6368\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://b7a5cb39b1e6df68f4dd9a5e76e853d745a74ffb3dfd7df4ae4d2ace6992a171\",\"dweb:/ipfs/QmPbzKR19rdM8X3PLQjsmHRepUKhvoZnedSR63XyGtXZib\"]},\".deps/npm/@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"keccak256\":\"0xe06a3f08a987af6ad2e1c1e774405d4fe08f1694b67517438b467cecf0da0ef7\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://df6f0c459663c9858b6cba2cda1d14a7d05a985bed6d2de72bd8e78c25ee79db\",\"dweb:/ipfs/QmeTTxZ7qVk9rjEv2R4CpCwdf8UMCcRqDNMvzNxHc3Fnn9\"]},\".deps/npm/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol\":{\"keccak256\":\"0x70f2f713b13b7ce4610bcd0ac9fec0f3cc43693b043abcb8dc40a42a726eb330\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c13d13304ac79a83ab1c30168967d19e2203342ebbd6a9bbce4db7550522dcbf\",\"dweb:/ipfs/QmeN5jKMN2vw5bhacr6tkg78afbTTZUeaacNHqjWt4Ew1r\"]},\".deps/npm/@openzeppelin/contracts/utils/Context.sol\":{\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6a708e8a5bdb1011c2c381c9a5cfd8a9a956d7d0a9dc1bd8bcdaf52f76ef2f12\",\"dweb:/ipfs/Qmax9WHBnVsZP46ZxEMNRQpLQnrdE4dK8LehML1Py8FowF\"]}},\"version\":1}", | |
"storageLayout": { | |
"storage": [ | |
{ | |
"astId": 159, | |
"contract": ".deps/npm/@openzeppelin/contracts/token/ERC20/ERC20.sol:ERC20", | |
"label": "_balances", | |
"offset": 0, | |
"slot": "0", | |
"type": "t_mapping(t_address,t_uint256)" | |
}, | |
{ | |
"astId": 165, | |
"contract": ".deps/npm/@openzeppelin/contracts/token/ERC20/ERC20.sol:ERC20", | |
"label": "_allowances", | |
"offset": 0, | |
"slot": "1", | |
"type": "t_mapping(t_address,t_mapping(t_address,t_uint256))" | |
}, | |
{ | |
"astId": 167, | |
"contract": ".deps/npm/@openzeppelin/contracts/token/ERC20/ERC20.sol:ERC20", | |
"label": "_totalSupply", | |
"offset": 0, | |
"slot": "2", | |
"type": "t_uint256" | |
}, | |
{ | |
"astId": 169, | |
"contract": ".deps/npm/@openzeppelin/contracts/token/ERC20/ERC20.sol:ERC20", | |
"label": "_name", | |
"offset": 0, | |
"slot": "3", | |
"type": "t_string_storage" | |
}, | |
{ | |
"astId": 171, | |
"contract": ".deps/npm/@openzeppelin/contracts/token/ERC20/ERC20.sol:ERC20", | |
"label": "_symbol", | |
"offset": 0, | |
"slot": "4", | |
"type": "t_string_storage" | |
} | |
], | |
"types": { | |
"t_address": { | |
"encoding": "inplace", | |
"label": "address", | |
"numberOfBytes": "20" | |
}, | |
"t_mapping(t_address,t_mapping(t_address,t_uint256))": { | |
"encoding": "mapping", | |
"key": "t_address", | |
"label": "mapping(address => mapping(address => uint256))", | |
"numberOfBytes": "32", | |
"value": "t_mapping(t_address,t_uint256)" | |
}, | |
"t_mapping(t_address,t_uint256)": { | |
"encoding": "mapping", | |
"key": "t_address", | |
"label": "mapping(address => uint256)", | |
"numberOfBytes": "32", | |
"value": "t_uint256" | |
}, | |
"t_string_storage": { | |
"encoding": "bytes", | |
"label": "string", | |
"numberOfBytes": "32" | |
}, | |
"t_uint256": { | |
"encoding": "inplace", | |
"label": "uint256", | |
"numberOfBytes": "32" | |
} | |
} | |
}, | |
"userdoc": { | |
"kind": "user", | |
"methods": {}, | |
"version": 1 | |
} | |
} | |
}, | |
".deps/npm/@openzeppelin/contracts/token/ERC20/IERC20.sol": { | |
"IERC20": { | |
"abi": [ | |
{ | |
"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": "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": "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": "value", | |
"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": [], | |
"name": "totalSupply", | |
"outputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"stateMutability": "view", | |
"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" | |
}, | |
{ | |
"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" | |
} | |
], | |
"devdoc": { | |
"details": "Interface of the ERC-20 standard as defined in the ERC.", | |
"events": { | |
"Approval(address,address,uint256)": { | |
"details": "Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance." | |
}, | |
"Transfer(address,address,uint256)": { | |
"details": "Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero." | |
} | |
}, | |
"kind": "dev", | |
"methods": { | |
"allowance(address,address)": { | |
"details": "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." | |
}, | |
"approve(address,uint256)": { | |
"details": "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." | |
}, | |
"balanceOf(address)": { | |
"details": "Returns the value of tokens owned by `account`." | |
}, | |
"totalSupply()": { | |
"details": "Returns the value of tokens in existence." | |
}, | |
"transfer(address,uint256)": { | |
"details": "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." | |
}, | |
"transferFrom(address,address,uint256)": { | |
"details": "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." | |
} | |
}, | |
"version": 1 | |
}, | |
"evm": { | |
"assembly": "", | |
"bytecode": { | |
"functionDebugData": {}, | |
"generatedSources": [], | |
"linkReferences": {}, | |
"object": "", | |
"opcodes": "", | |
"sourceMap": "" | |
}, | |
"deployedBytecode": { | |
"functionDebugData": {}, | |
"generatedSources": [], | |
"immutableReferences": {}, | |
"linkReferences": {}, | |
"object": "", | |
"opcodes": "", | |
"sourceMap": "" | |
}, | |
"gasEstimates": null, | |
"legacyAssembly": null, | |
"methodIdentifiers": { | |
"allowance(address,address)": "dd62ed3e", | |
"approve(address,uint256)": "095ea7b3", | |
"balanceOf(address)": "70a08231", | |
"totalSupply()": "18160ddd", | |
"transfer(address,uint256)": "a9059cbb", | |
"transferFrom(address,address,uint256)": "23b872dd" | |
} | |
}, | |
"metadata": "{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"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\":\"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\":\"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\":\"value\",\"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\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"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\"},{\"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\"}],\"devdoc\":{\"details\":\"Interface of the ERC-20 standard as defined in the ERC.\",\"events\":{\"Approval(address,address,uint256)\":{\"details\":\"Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance.\"},\"Transfer(address,address,uint256)\":{\"details\":\"Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero.\"}},\"kind\":\"dev\",\"methods\":{\"allowance(address,address)\":{\"details\":\"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.\"},\"approve(address,uint256)\":{\"details\":\"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.\"},\"balanceOf(address)\":{\"details\":\"Returns the value of tokens owned by `account`.\"},\"totalSupply()\":{\"details\":\"Returns the value of tokens in existence.\"},\"transfer(address,uint256)\":{\"details\":\"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.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"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.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\".deps/npm/@openzeppelin/contracts/token/ERC20/IERC20.sol\":\"IERC20\"},\"evmVersion\":\"shanghai\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\".deps/npm/@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"keccak256\":\"0xe06a3f08a987af6ad2e1c1e774405d4fe08f1694b67517438b467cecf0da0ef7\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://df6f0c459663c9858b6cba2cda1d14a7d05a985bed6d2de72bd8e78c25ee79db\",\"dweb:/ipfs/QmeTTxZ7qVk9rjEv2R4CpCwdf8UMCcRqDNMvzNxHc3Fnn9\"]}},\"version\":1}", | |
"storageLayout": { | |
"storage": [], | |
"types": null | |
}, | |
"userdoc": { | |
"kind": "user", | |
"methods": {}, | |
"version": 1 | |
} | |
} | |
}, | |
".deps/npm/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol": { | |
"IERC20Metadata": { | |
"abi": [ | |
{ | |
"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": "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": "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": "value", | |
"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": [], | |
"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": "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": "value", | |
"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": "value", | |
"type": "uint256" | |
} | |
], | |
"name": "transferFrom", | |
"outputs": [ | |
{ | |
"internalType": "bool", | |
"name": "", | |
"type": "bool" | |
} | |
], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
} | |
], | |
"devdoc": { | |
"details": "Interface for the optional metadata functions from the ERC-20 standard.", | |
"events": { | |
"Approval(address,address,uint256)": { | |
"details": "Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance." | |
}, | |
"Transfer(address,address,uint256)": { | |
"details": "Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero." | |
} | |
}, | |
"kind": "dev", | |
"methods": { | |
"allowance(address,address)": { | |
"details": "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." | |
}, | |
"approve(address,uint256)": { | |
"details": "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." | |
}, | |
"balanceOf(address)": { | |
"details": "Returns the value of tokens owned by `account`." | |
}, | |
"decimals()": { | |
"details": "Returns the decimals places of the token." | |
}, | |
"name()": { | |
"details": "Returns the name of the token." | |
}, | |
"symbol()": { | |
"details": "Returns the symbol of the token." | |
}, | |
"totalSupply()": { | |
"details": "Returns the value of tokens in existence." | |
}, | |
"transfer(address,uint256)": { | |
"details": "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." | |
}, | |
"transferFrom(address,address,uint256)": { | |
"details": "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." | |
} | |
}, | |
"version": 1 | |
}, | |
"evm": { | |
"assembly": "", | |
"bytecode": { | |
"functionDebugData": {}, | |
"generatedSources": [], | |
"linkReferences": {}, | |
"object": "", | |
"opcodes": "", | |
"sourceMap": "" | |
}, | |
"deployedBytecode": { | |
"functionDebugData": {}, | |
"generatedSources": [], | |
"immutableReferences": {}, | |
"linkReferences": {}, | |
"object": "", | |
"opcodes": "", | |
"sourceMap": "" | |
}, | |
"gasEstimates": null, | |
"legacyAssembly": null, | |
"methodIdentifiers": { | |
"allowance(address,address)": "dd62ed3e", | |
"approve(address,uint256)": "095ea7b3", | |
"balanceOf(address)": "70a08231", | |
"decimals()": "313ce567", | |
"name()": "06fdde03", | |
"symbol()": "95d89b41", | |
"totalSupply()": "18160ddd", | |
"transfer(address,uint256)": "a9059cbb", | |
"transferFrom(address,address,uint256)": "23b872dd" | |
} | |
}, | |
"metadata": "{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"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\":\"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\":\"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\":\"value\",\"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\":[],\"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\":\"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\":\"value\",\"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\":\"value\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Interface for the optional metadata functions from the ERC-20 standard.\",\"events\":{\"Approval(address,address,uint256)\":{\"details\":\"Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance.\"},\"Transfer(address,address,uint256)\":{\"details\":\"Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero.\"}},\"kind\":\"dev\",\"methods\":{\"allowance(address,address)\":{\"details\":\"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.\"},\"approve(address,uint256)\":{\"details\":\"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.\"},\"balanceOf(address)\":{\"details\":\"Returns the value of tokens owned by `account`.\"},\"decimals()\":{\"details\":\"Returns the decimals places of the token.\"},\"name()\":{\"details\":\"Returns the name of the token.\"},\"symbol()\":{\"details\":\"Returns the symbol of the token.\"},\"totalSupply()\":{\"details\":\"Returns the value of tokens in existence.\"},\"transfer(address,uint256)\":{\"details\":\"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.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"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.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\".deps/npm/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol\":\"IERC20Metadata\"},\"evmVersion\":\"shanghai\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\".deps/npm/@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"keccak256\":\"0xe06a3f08a987af6ad2e1c1e774405d4fe08f1694b67517438b467cecf0da0ef7\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://df6f0c459663c9858b6cba2cda1d14a7d05a985bed6d2de72bd8e78c25ee79db\",\"dweb:/ipfs/QmeTTxZ7qVk9rjEv2R4CpCwdf8UMCcRqDNMvzNxHc3Fnn9\"]},\".deps/npm/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol\":{\"keccak256\":\"0x70f2f713b13b7ce4610bcd0ac9fec0f3cc43693b043abcb8dc40a42a726eb330\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c13d13304ac79a83ab1c30168967d19e2203342ebbd6a9bbce4db7550522dcbf\",\"dweb:/ipfs/QmeN5jKMN2vw5bhacr6tkg78afbTTZUeaacNHqjWt4Ew1r\"]}},\"version\":1}", | |
"storageLayout": { | |
"storage": [], | |
"types": null | |
}, | |
"userdoc": { | |
"kind": "user", | |
"methods": {}, | |
"version": 1 | |
} | |
} | |
}, | |
".deps/npm/@openzeppelin/contracts/utils/Context.sol": { | |
"Context": { | |
"abi": [], | |
"devdoc": { | |
"details": "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.", | |
"kind": "dev", | |
"methods": {}, | |
"version": 1 | |
}, | |
"evm": { | |
"assembly": "", | |
"bytecode": { | |
"functionDebugData": {}, | |
"generatedSources": [], | |
"linkReferences": {}, | |
"object": "", | |
"opcodes": "", | |
"sourceMap": "" | |
}, | |
"deployedBytecode": { | |
"functionDebugData": {}, | |
"generatedSources": [], | |
"immutableReferences": {}, | |
"linkReferences": {}, | |
"object": "", | |
"opcodes": "", | |
"sourceMap": "" | |
}, | |
"gasEstimates": null, | |
"legacyAssembly": null, | |
"methodIdentifiers": {} | |
}, | |
"metadata": "{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"details\":\"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.\",\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\".deps/npm/@openzeppelin/contracts/utils/Context.sol\":\"Context\"},\"evmVersion\":\"shanghai\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\".deps/npm/@openzeppelin/contracts/utils/Context.sol\":{\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6a708e8a5bdb1011c2c381c9a5cfd8a9a956d7d0a9dc1bd8bcdaf52f76ef2f12\",\"dweb:/ipfs/Qmax9WHBnVsZP46ZxEMNRQpLQnrdE4dK8LehML1Py8FowF\"]}},\"version\":1}", | |
"storageLayout": { | |
"storage": [], | |
"types": null | |
}, | |
"userdoc": { | |
"kind": "user", | |
"methods": {}, | |
"version": 1 | |
} | |
} | |
} | |
}, | |
"sources": { | |
".deps/npm/@openzeppelin/contracts/interfaces/draft-IERC6093.sol": { | |
"ast": { | |
"absolutePath": ".deps/npm/@openzeppelin/contracts/interfaces/draft-IERC6093.sol", | |
"exportedSymbols": { | |
"IERC1155Errors": [ | |
136 | |
], | |
"IERC20Errors": [ | |
41 | |
], | |
"IERC721Errors": [ | |
89 | |
] | |
}, | |
"id": 137, | |
"license": "MIT", | |
"nodeType": "SourceUnit", | |
"nodes": [ | |
{ | |
"id": 1, | |
"literals": [ | |
"solidity", | |
"^", | |
"0.8", | |
".20" | |
], | |
"nodeType": "PragmaDirective", | |
"src": "112:24:0" | |
}, | |
{ | |
"abstract": false, | |
"baseContracts": [], | |
"canonicalName": "IERC20Errors", | |
"contractDependencies": [], | |
"contractKind": "interface", | |
"documentation": { | |
"id": 2, | |
"nodeType": "StructuredDocumentation", | |
"src": "138:141:0", | |
"text": " @dev Standard ERC-20 Errors\n Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens." | |
}, | |
"fullyImplemented": true, | |
"id": 41, | |
"linearizedBaseContracts": [ | |
41 | |
], | |
"name": "IERC20Errors", | |
"nameLocation": "290:12:0", | |
"nodeType": "ContractDefinition", | |
"nodes": [ | |
{ | |
"documentation": { | |
"id": 3, | |
"nodeType": "StructuredDocumentation", | |
"src": "309:309:0", | |
"text": " @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.\n @param sender Address whose tokens are being transferred.\n @param balance Current balance for the interacting account.\n @param needed Minimum amount required to perform a transfer." | |
}, | |
"errorSelector": "e450d38c", | |
"id": 11, | |
"name": "ERC20InsufficientBalance", | |
"nameLocation": "629:24:0", | |
"nodeType": "ErrorDefinition", | |
"parameters": { | |
"id": 10, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 5, | |
"mutability": "mutable", | |
"name": "sender", | |
"nameLocation": "662:6:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 11, | |
"src": "654:14:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 4, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "654:7:0", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 7, | |
"mutability": "mutable", | |
"name": "balance", | |
"nameLocation": "678:7:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 11, | |
"src": "670:15:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 6, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "670:7:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 9, | |
"mutability": "mutable", | |
"name": "needed", | |
"nameLocation": "695:6:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 11, | |
"src": "687:14:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 8, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "687:7:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "653:49:0" | |
}, | |
"src": "623:80:0" | |
}, | |
{ | |
"documentation": { | |
"id": 12, | |
"nodeType": "StructuredDocumentation", | |
"src": "709:152:0", | |
"text": " @dev Indicates a failure with the token `sender`. Used in transfers.\n @param sender Address whose tokens are being transferred." | |
}, | |
"errorSelector": "96c6fd1e", | |
"id": 16, | |
"name": "ERC20InvalidSender", | |
"nameLocation": "872:18:0", | |
"nodeType": "ErrorDefinition", | |
"parameters": { | |
"id": 15, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 14, | |
"mutability": "mutable", | |
"name": "sender", | |
"nameLocation": "899:6:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 16, | |
"src": "891:14:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 13, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "891:7:0", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "890:16:0" | |
}, | |
"src": "866:41:0" | |
}, | |
{ | |
"documentation": { | |
"id": 17, | |
"nodeType": "StructuredDocumentation", | |
"src": "913:159:0", | |
"text": " @dev Indicates a failure with the token `receiver`. Used in transfers.\n @param receiver Address to which tokens are being transferred." | |
}, | |
"errorSelector": "ec442f05", | |
"id": 21, | |
"name": "ERC20InvalidReceiver", | |
"nameLocation": "1083:20:0", | |
"nodeType": "ErrorDefinition", | |
"parameters": { | |
"id": 20, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 19, | |
"mutability": "mutable", | |
"name": "receiver", | |
"nameLocation": "1112:8:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 21, | |
"src": "1104:16:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 18, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "1104:7:0", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "1103:18:0" | |
}, | |
"src": "1077:45:0" | |
}, | |
{ | |
"documentation": { | |
"id": 22, | |
"nodeType": "StructuredDocumentation", | |
"src": "1128:345:0", | |
"text": " @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.\n @param spender Address that may be allowed to operate on tokens without being their owner.\n @param allowance Amount of tokens a `spender` is allowed to operate with.\n @param needed Minimum amount required to perform a transfer." | |
}, | |
"errorSelector": "fb8f41b2", | |
"id": 30, | |
"name": "ERC20InsufficientAllowance", | |
"nameLocation": "1484:26:0", | |
"nodeType": "ErrorDefinition", | |
"parameters": { | |
"id": 29, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 24, | |
"mutability": "mutable", | |
"name": "spender", | |
"nameLocation": "1519:7:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 30, | |
"src": "1511:15:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 23, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "1511:7:0", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 26, | |
"mutability": "mutable", | |
"name": "allowance", | |
"nameLocation": "1536:9:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 30, | |
"src": "1528:17:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 25, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "1528:7:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 28, | |
"mutability": "mutable", | |
"name": "needed", | |
"nameLocation": "1555:6:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 30, | |
"src": "1547:14:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 27, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "1547:7:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "1510:52:0" | |
}, | |
"src": "1478:85:0" | |
}, | |
{ | |
"documentation": { | |
"id": 31, | |
"nodeType": "StructuredDocumentation", | |
"src": "1569:174:0", | |
"text": " @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.\n @param approver Address initiating an approval operation." | |
}, | |
"errorSelector": "e602df05", | |
"id": 35, | |
"name": "ERC20InvalidApprover", | |
"nameLocation": "1754:20:0", | |
"nodeType": "ErrorDefinition", | |
"parameters": { | |
"id": 34, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 33, | |
"mutability": "mutable", | |
"name": "approver", | |
"nameLocation": "1783:8:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 35, | |
"src": "1775:16:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 32, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "1775:7:0", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "1774:18:0" | |
}, | |
"src": "1748:45:0" | |
}, | |
{ | |
"documentation": { | |
"id": 36, | |
"nodeType": "StructuredDocumentation", | |
"src": "1799:195:0", | |
"text": " @dev Indicates a failure with the `spender` to be approved. Used in approvals.\n @param spender Address that may be allowed to operate on tokens without being their owner." | |
}, | |
"errorSelector": "94280d62", | |
"id": 40, | |
"name": "ERC20InvalidSpender", | |
"nameLocation": "2005:19:0", | |
"nodeType": "ErrorDefinition", | |
"parameters": { | |
"id": 39, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 38, | |
"mutability": "mutable", | |
"name": "spender", | |
"nameLocation": "2033:7:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 40, | |
"src": "2025:15:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 37, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "2025:7:0", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "2024:17:0" | |
}, | |
"src": "1999:43:0" | |
} | |
], | |
"scope": 137, | |
"src": "280:1764:0", | |
"usedErrors": [ | |
11, | |
16, | |
21, | |
30, | |
35, | |
40 | |
], | |
"usedEvents": [] | |
}, | |
{ | |
"abstract": false, | |
"baseContracts": [], | |
"canonicalName": "IERC721Errors", | |
"contractDependencies": [], | |
"contractKind": "interface", | |
"documentation": { | |
"id": 42, | |
"nodeType": "StructuredDocumentation", | |
"src": "2046:143:0", | |
"text": " @dev Standard ERC-721 Errors\n Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens." | |
}, | |
"fullyImplemented": true, | |
"id": 89, | |
"linearizedBaseContracts": [ | |
89 | |
], | |
"name": "IERC721Errors", | |
"nameLocation": "2200:13:0", | |
"nodeType": "ContractDefinition", | |
"nodes": [ | |
{ | |
"documentation": { | |
"id": 43, | |
"nodeType": "StructuredDocumentation", | |
"src": "2220:219:0", | |
"text": " @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-20.\n Used in balance queries.\n @param owner Address of the current owner of a token." | |
}, | |
"errorSelector": "89c62b64", | |
"id": 47, | |
"name": "ERC721InvalidOwner", | |
"nameLocation": "2450:18:0", | |
"nodeType": "ErrorDefinition", | |
"parameters": { | |
"id": 46, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 45, | |
"mutability": "mutable", | |
"name": "owner", | |
"nameLocation": "2477:5:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 47, | |
"src": "2469:13:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 44, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "2469:7:0", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "2468:15:0" | |
}, | |
"src": "2444:40:0" | |
}, | |
{ | |
"documentation": { | |
"id": 48, | |
"nodeType": "StructuredDocumentation", | |
"src": "2490:132:0", | |
"text": " @dev Indicates a `tokenId` whose `owner` is the zero address.\n @param tokenId Identifier number of a token." | |
}, | |
"errorSelector": "7e273289", | |
"id": 52, | |
"name": "ERC721NonexistentToken", | |
"nameLocation": "2633:22:0", | |
"nodeType": "ErrorDefinition", | |
"parameters": { | |
"id": 51, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 50, | |
"mutability": "mutable", | |
"name": "tokenId", | |
"nameLocation": "2664:7:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 52, | |
"src": "2656:15:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 49, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "2656:7:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "2655:17:0" | |
}, | |
"src": "2627:46:0" | |
}, | |
{ | |
"documentation": { | |
"id": 53, | |
"nodeType": "StructuredDocumentation", | |
"src": "2679:289:0", | |
"text": " @dev Indicates an error related to the ownership over a particular token. Used in transfers.\n @param sender Address whose tokens are being transferred.\n @param tokenId Identifier number of a token.\n @param owner Address of the current owner of a token." | |
}, | |
"errorSelector": "64283d7b", | |
"id": 61, | |
"name": "ERC721IncorrectOwner", | |
"nameLocation": "2979:20:0", | |
"nodeType": "ErrorDefinition", | |
"parameters": { | |
"id": 60, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 55, | |
"mutability": "mutable", | |
"name": "sender", | |
"nameLocation": "3008:6:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 61, | |
"src": "3000:14:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 54, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "3000:7:0", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 57, | |
"mutability": "mutable", | |
"name": "tokenId", | |
"nameLocation": "3024:7:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 61, | |
"src": "3016:15:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 56, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "3016:7:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 59, | |
"mutability": "mutable", | |
"name": "owner", | |
"nameLocation": "3041:5:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 61, | |
"src": "3033:13:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 58, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "3033:7:0", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "2999:48:0" | |
}, | |
"src": "2973:75:0" | |
}, | |
{ | |
"documentation": { | |
"id": 62, | |
"nodeType": "StructuredDocumentation", | |
"src": "3054:152:0", | |
"text": " @dev Indicates a failure with the token `sender`. Used in transfers.\n @param sender Address whose tokens are being transferred." | |
}, | |
"errorSelector": "73c6ac6e", | |
"id": 66, | |
"name": "ERC721InvalidSender", | |
"nameLocation": "3217:19:0", | |
"nodeType": "ErrorDefinition", | |
"parameters": { | |
"id": 65, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 64, | |
"mutability": "mutable", | |
"name": "sender", | |
"nameLocation": "3245:6:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 66, | |
"src": "3237:14:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 63, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "3237:7:0", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "3236:16:0" | |
}, | |
"src": "3211:42:0" | |
}, | |
{ | |
"documentation": { | |
"id": 67, | |
"nodeType": "StructuredDocumentation", | |
"src": "3259:159:0", | |
"text": " @dev Indicates a failure with the token `receiver`. Used in transfers.\n @param receiver Address to which tokens are being transferred." | |
}, | |
"errorSelector": "64a0ae92", | |
"id": 71, | |
"name": "ERC721InvalidReceiver", | |
"nameLocation": "3429:21:0", | |
"nodeType": "ErrorDefinition", | |
"parameters": { | |
"id": 70, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 69, | |
"mutability": "mutable", | |
"name": "receiver", | |
"nameLocation": "3459:8:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 71, | |
"src": "3451:16:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 68, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "3451:7:0", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "3450:18:0" | |
}, | |
"src": "3423:46:0" | |
}, | |
{ | |
"documentation": { | |
"id": 72, | |
"nodeType": "StructuredDocumentation", | |
"src": "3475:247:0", | |
"text": " @dev Indicates a failure with the `operator`’s approval. Used in transfers.\n @param operator Address that may be allowed to operate on tokens without being their owner.\n @param tokenId Identifier number of a token." | |
}, | |
"errorSelector": "177e802f", | |
"id": 78, | |
"name": "ERC721InsufficientApproval", | |
"nameLocation": "3733:26:0", | |
"nodeType": "ErrorDefinition", | |
"parameters": { | |
"id": 77, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 74, | |
"mutability": "mutable", | |
"name": "operator", | |
"nameLocation": "3768:8:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 78, | |
"src": "3760:16:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 73, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "3760:7:0", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 76, | |
"mutability": "mutable", | |
"name": "tokenId", | |
"nameLocation": "3786:7:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 78, | |
"src": "3778:15:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 75, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "3778:7:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "3759:35:0" | |
}, | |
"src": "3727:68:0" | |
}, | |
{ | |
"documentation": { | |
"id": 79, | |
"nodeType": "StructuredDocumentation", | |
"src": "3801:174:0", | |
"text": " @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.\n @param approver Address initiating an approval operation." | |
}, | |
"errorSelector": "a9fbf51f", | |
"id": 83, | |
"name": "ERC721InvalidApprover", | |
"nameLocation": "3986:21:0", | |
"nodeType": "ErrorDefinition", | |
"parameters": { | |
"id": 82, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 81, | |
"mutability": "mutable", | |
"name": "approver", | |
"nameLocation": "4016:8:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 83, | |
"src": "4008:16:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 80, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "4008:7:0", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "4007:18:0" | |
}, | |
"src": "3980:46:0" | |
}, | |
{ | |
"documentation": { | |
"id": 84, | |
"nodeType": "StructuredDocumentation", | |
"src": "4032:197:0", | |
"text": " @dev Indicates a failure with the `operator` to be approved. Used in approvals.\n @param operator Address that may be allowed to operate on tokens without being their owner." | |
}, | |
"errorSelector": "5b08ba18", | |
"id": 88, | |
"name": "ERC721InvalidOperator", | |
"nameLocation": "4240:21:0", | |
"nodeType": "ErrorDefinition", | |
"parameters": { | |
"id": 87, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 86, | |
"mutability": "mutable", | |
"name": "operator", | |
"nameLocation": "4270:8:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 88, | |
"src": "4262:16:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 85, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "4262:7:0", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "4261:18:0" | |
}, | |
"src": "4234:46:0" | |
} | |
], | |
"scope": 137, | |
"src": "2190:2092:0", | |
"usedErrors": [ | |
47, | |
52, | |
61, | |
66, | |
71, | |
78, | |
83, | |
88 | |
], | |
"usedEvents": [] | |
}, | |
{ | |
"abstract": false, | |
"baseContracts": [], | |
"canonicalName": "IERC1155Errors", | |
"contractDependencies": [], | |
"contractKind": "interface", | |
"documentation": { | |
"id": 90, | |
"nodeType": "StructuredDocumentation", | |
"src": "4284:145:0", | |
"text": " @dev Standard ERC-1155 Errors\n Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens." | |
}, | |
"fullyImplemented": true, | |
"id": 136, | |
"linearizedBaseContracts": [ | |
136 | |
], | |
"name": "IERC1155Errors", | |
"nameLocation": "4440:14:0", | |
"nodeType": "ContractDefinition", | |
"nodes": [ | |
{ | |
"documentation": { | |
"id": 91, | |
"nodeType": "StructuredDocumentation", | |
"src": "4461:361:0", | |
"text": " @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.\n @param sender Address whose tokens are being transferred.\n @param balance Current balance for the interacting account.\n @param needed Minimum amount required to perform a transfer.\n @param tokenId Identifier number of a token." | |
}, | |
"errorSelector": "03dee4c5", | |
"id": 101, | |
"name": "ERC1155InsufficientBalance", | |
"nameLocation": "4833:26:0", | |
"nodeType": "ErrorDefinition", | |
"parameters": { | |
"id": 100, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 93, | |
"mutability": "mutable", | |
"name": "sender", | |
"nameLocation": "4868:6:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 101, | |
"src": "4860:14:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 92, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "4860:7:0", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 95, | |
"mutability": "mutable", | |
"name": "balance", | |
"nameLocation": "4884:7:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 101, | |
"src": "4876:15:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 94, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "4876:7:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 97, | |
"mutability": "mutable", | |
"name": "needed", | |
"nameLocation": "4901:6:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 101, | |
"src": "4893:14:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 96, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "4893:7:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 99, | |
"mutability": "mutable", | |
"name": "tokenId", | |
"nameLocation": "4917:7:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 101, | |
"src": "4909:15:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 98, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "4909:7:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "4859:66:0" | |
}, | |
"src": "4827:99:0" | |
}, | |
{ | |
"documentation": { | |
"id": 102, | |
"nodeType": "StructuredDocumentation", | |
"src": "4932:152:0", | |
"text": " @dev Indicates a failure with the token `sender`. Used in transfers.\n @param sender Address whose tokens are being transferred." | |
}, | |
"errorSelector": "01a83514", | |
"id": 106, | |
"name": "ERC1155InvalidSender", | |
"nameLocation": "5095:20:0", | |
"nodeType": "ErrorDefinition", | |
"parameters": { | |
"id": 105, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 104, | |
"mutability": "mutable", | |
"name": "sender", | |
"nameLocation": "5124:6:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 106, | |
"src": "5116:14:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 103, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "5116:7:0", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "5115:16:0" | |
}, | |
"src": "5089:43:0" | |
}, | |
{ | |
"documentation": { | |
"id": 107, | |
"nodeType": "StructuredDocumentation", | |
"src": "5138:159:0", | |
"text": " @dev Indicates a failure with the token `receiver`. Used in transfers.\n @param receiver Address to which tokens are being transferred." | |
}, | |
"errorSelector": "57f447ce", | |
"id": 111, | |
"name": "ERC1155InvalidReceiver", | |
"nameLocation": "5308:22:0", | |
"nodeType": "ErrorDefinition", | |
"parameters": { | |
"id": 110, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 109, | |
"mutability": "mutable", | |
"name": "receiver", | |
"nameLocation": "5339:8:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 111, | |
"src": "5331:16:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 108, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "5331:7:0", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "5330:18:0" | |
}, | |
"src": "5302:47:0" | |
}, | |
{ | |
"documentation": { | |
"id": 112, | |
"nodeType": "StructuredDocumentation", | |
"src": "5355:256:0", | |
"text": " @dev Indicates a failure with the `operator`’s approval. Used in transfers.\n @param operator Address that may be allowed to operate on tokens without being their owner.\n @param owner Address of the current owner of a token." | |
}, | |
"errorSelector": "e237d922", | |
"id": 118, | |
"name": "ERC1155MissingApprovalForAll", | |
"nameLocation": "5622:28:0", | |
"nodeType": "ErrorDefinition", | |
"parameters": { | |
"id": 117, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 114, | |
"mutability": "mutable", | |
"name": "operator", | |
"nameLocation": "5659:8:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 118, | |
"src": "5651:16:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 113, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "5651:7:0", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 116, | |
"mutability": "mutable", | |
"name": "owner", | |
"nameLocation": "5677:5:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 118, | |
"src": "5669:13:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 115, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "5669:7:0", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "5650:33:0" | |
}, | |
"src": "5616:68:0" | |
}, | |
{ | |
"documentation": { | |
"id": 119, | |
"nodeType": "StructuredDocumentation", | |
"src": "5690:174:0", | |
"text": " @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.\n @param approver Address initiating an approval operation." | |
}, | |
"errorSelector": "3e31884e", | |
"id": 123, | |
"name": "ERC1155InvalidApprover", | |
"nameLocation": "5875:22:0", | |
"nodeType": "ErrorDefinition", | |
"parameters": { | |
"id": 122, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 121, | |
"mutability": "mutable", | |
"name": "approver", | |
"nameLocation": "5906:8:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 123, | |
"src": "5898:16:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 120, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "5898:7:0", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "5897:18:0" | |
}, | |
"src": "5869:47:0" | |
}, | |
{ | |
"documentation": { | |
"id": 124, | |
"nodeType": "StructuredDocumentation", | |
"src": "5922:197:0", | |
"text": " @dev Indicates a failure with the `operator` to be approved. Used in approvals.\n @param operator Address that may be allowed to operate on tokens without being their owner." | |
}, | |
"errorSelector": "ced3e100", | |
"id": 128, | |
"name": "ERC1155InvalidOperator", | |
"nameLocation": "6130:22:0", | |
"nodeType": "ErrorDefinition", | |
"parameters": { | |
"id": 127, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 126, | |
"mutability": "mutable", | |
"name": "operator", | |
"nameLocation": "6161:8:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 128, | |
"src": "6153:16:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 125, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "6153:7:0", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "6152:18:0" | |
}, | |
"src": "6124:47:0" | |
}, | |
{ | |
"documentation": { | |
"id": 129, | |
"nodeType": "StructuredDocumentation", | |
"src": "6177:280:0", | |
"text": " @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.\n Used in batch transfers.\n @param idsLength Length of the array of token identifiers\n @param valuesLength Length of the array of token amounts" | |
}, | |
"errorSelector": "5b059991", | |
"id": 135, | |
"name": "ERC1155InvalidArrayLength", | |
"nameLocation": "6468:25:0", | |
"nodeType": "ErrorDefinition", | |
"parameters": { | |
"id": 134, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 131, | |
"mutability": "mutable", | |
"name": "idsLength", | |
"nameLocation": "6502:9:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 135, | |
"src": "6494:17:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 130, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "6494:7:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 133, | |
"mutability": "mutable", | |
"name": "valuesLength", | |
"nameLocation": "6521:12:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 135, | |
"src": "6513:20:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 132, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "6513:7:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "6493:41:0" | |
}, | |
"src": "6462:73:0" | |
} | |
], | |
"scope": 137, | |
"src": "4430:2107:0", | |
"usedErrors": [ | |
101, | |
106, | |
111, | |
118, | |
123, | |
128, | |
135 | |
], | |
"usedEvents": [] | |
} | |
], | |
"src": "112:6426:0" | |
}, | |
"id": 0 | |
}, | |
".deps/npm/@openzeppelin/contracts/token/ERC20/ERC20.sol": { | |
"ast": { | |
"absolutePath": ".deps/npm/@openzeppelin/contracts/token/ERC20/ERC20.sol", | |
"exportedSymbols": { | |
"Context": [ | |
785 | |
], | |
"ERC20": [ | |
651 | |
], | |
"IERC20": [ | |
729 | |
], | |
"IERC20Errors": [ | |
41 | |
], | |
"IERC20Metadata": [ | |
755 | |
] | |
}, | |
"id": 652, | |
"license": "MIT", | |
"nodeType": "SourceUnit", | |
"nodes": [ | |
{ | |
"id": 138, | |
"literals": [ | |
"solidity", | |
"^", | |
"0.8", | |
".20" | |
], | |
"nodeType": "PragmaDirective", | |
"src": "105:24:1" | |
}, | |
{ | |
"absolutePath": ".deps/npm/@openzeppelin/contracts/token/ERC20/IERC20.sol", | |
"file": "./IERC20.sol", | |
"id": 140, | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "ImportDirective", | |
"scope": 652, | |
"sourceUnit": 730, | |
"src": "131:36:1", | |
"symbolAliases": [ | |
{ | |
"foreign": { | |
"id": 139, | |
"name": "IERC20", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 729, | |
"src": "139:6:1", | |
"typeDescriptions": {} | |
}, | |
"nameLocation": "-1:-1:-1" | |
} | |
], | |
"unitAlias": "" | |
}, | |
{ | |
"absolutePath": ".deps/npm/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol", | |
"file": "./extensions/IERC20Metadata.sol", | |
"id": 142, | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "ImportDirective", | |
"scope": 652, | |
"sourceUnit": 756, | |
"src": "168:63:1", | |
"symbolAliases": [ | |
{ | |
"foreign": { | |
"id": 141, | |
"name": "IERC20Metadata", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 755, | |
"src": "176:14:1", | |
"typeDescriptions": {} | |
}, | |
"nameLocation": "-1:-1:-1" | |
} | |
], | |
"unitAlias": "" | |
}, | |
{ | |
"absolutePath": ".deps/npm/@openzeppelin/contracts/utils/Context.sol", | |
"file": "../../utils/Context.sol", | |
"id": 144, | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "ImportDirective", | |
"scope": 652, | |
"sourceUnit": 786, | |
"src": "232:48:1", | |
"symbolAliases": [ | |
{ | |
"foreign": { | |
"id": 143, | |
"name": "Context", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 785, | |
"src": "240:7:1", | |
"typeDescriptions": {} | |
}, | |
"nameLocation": "-1:-1:-1" | |
} | |
], | |
"unitAlias": "" | |
}, | |
{ | |
"absolutePath": ".deps/npm/@openzeppelin/contracts/interfaces/draft-IERC6093.sol", | |
"file": "../../interfaces/draft-IERC6093.sol", | |
"id": 146, | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "ImportDirective", | |
"scope": 652, | |
"sourceUnit": 137, | |
"src": "281:65:1", | |
"symbolAliases": [ | |
{ | |
"foreign": { | |
"id": 145, | |
"name": "IERC20Errors", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 41, | |
"src": "289:12:1", | |
"typeDescriptions": {} | |
}, | |
"nameLocation": "-1:-1:-1" | |
} | |
], | |
"unitAlias": "" | |
}, | |
{ | |
"abstract": true, | |
"baseContracts": [ | |
{ | |
"baseName": { | |
"id": 148, | |
"name": "Context", | |
"nameLocations": [ | |
"1133:7:1" | |
], | |
"nodeType": "IdentifierPath", | |
"referencedDeclaration": 785, | |
"src": "1133:7:1" | |
}, | |
"id": 149, | |
"nodeType": "InheritanceSpecifier", | |
"src": "1133:7:1" | |
}, | |
{ | |
"baseName": { | |
"id": 150, | |
"name": "IERC20", | |
"nameLocations": [ | |
"1142:6:1" | |
], | |
"nodeType": "IdentifierPath", | |
"referencedDeclaration": 729, | |
"src": "1142:6:1" | |
}, | |
"id": 151, | |
"nodeType": "InheritanceSpecifier", | |
"src": "1142:6:1" | |
}, | |
{ | |
"baseName": { | |
"id": 152, | |
"name": "IERC20Metadata", | |
"nameLocations": [ | |
"1150:14:1" | |
], | |
"nodeType": "IdentifierPath", | |
"referencedDeclaration": 755, | |
"src": "1150:14:1" | |
}, | |
"id": 153, | |
"nodeType": "InheritanceSpecifier", | |
"src": "1150:14:1" | |
}, | |
{ | |
"baseName": { | |
"id": 154, | |
"name": "IERC20Errors", | |
"nameLocations": [ | |
"1166:12:1" | |
], | |
"nodeType": "IdentifierPath", | |
"referencedDeclaration": 41, | |
"src": "1166:12:1" | |
}, | |
"id": 155, | |
"nodeType": "InheritanceSpecifier", | |
"src": "1166:12:1" | |
} | |
], | |
"canonicalName": "ERC20", | |
"contractDependencies": [], | |
"contractKind": "contract", | |
"documentation": { | |
"id": 147, | |
"nodeType": "StructuredDocumentation", | |
"src": "348:757:1", | |
"text": " @dev Implementation of the {IERC20} interface.\n This implementation is agnostic to the way tokens are created. This means\n that a supply mechanism has to be added in a derived contract using {_mint}.\n TIP: For a detailed writeup see our guide\n https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How\n to implement supply mechanisms].\n The default value of {decimals} is 18. To change this, you should override\n this function so it returns a different value.\n We have followed general OpenZeppelin Contracts guidelines: functions revert\n instead returning `false` on failure. This behavior is nonetheless\n conventional and does not conflict with the expectations of ERC-20\n applications." | |
}, | |
"fullyImplemented": true, | |
"id": 651, | |
"linearizedBaseContracts": [ | |
651, | |
41, | |
755, | |
729, | |
785 | |
], | |
"name": "ERC20", | |
"nameLocation": "1124:5:1", | |
"nodeType": "ContractDefinition", | |
"nodes": [ | |
{ | |
"constant": false, | |
"id": 159, | |
"mutability": "mutable", | |
"name": "_balances", | |
"nameLocation": "1229:9:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 651, | |
"src": "1185:53:1", | |
"stateVariable": true, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", | |
"typeString": "mapping(address => uint256)" | |
}, | |
"typeName": { | |
"id": 158, | |
"keyName": "account", | |
"keyNameLocation": "1201:7:1", | |
"keyType": { | |
"id": 156, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "1193:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"nodeType": "Mapping", | |
"src": "1185:35:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", | |
"typeString": "mapping(address => uint256)" | |
}, | |
"valueName": "", | |
"valueNameLocation": "-1:-1:-1", | |
"valueType": { | |
"id": 157, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "1212:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
}, | |
"visibility": "private" | |
}, | |
{ | |
"constant": false, | |
"id": 165, | |
"mutability": "mutable", | |
"name": "_allowances", | |
"nameLocation": "1317:11:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 651, | |
"src": "1245:83:1", | |
"stateVariable": true, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", | |
"typeString": "mapping(address => mapping(address => uint256))" | |
}, | |
"typeName": { | |
"id": 164, | |
"keyName": "account", | |
"keyNameLocation": "1261:7:1", | |
"keyType": { | |
"id": 160, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "1253:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"nodeType": "Mapping", | |
"src": "1245:63:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", | |
"typeString": "mapping(address => mapping(address => uint256))" | |
}, | |
"valueName": "", | |
"valueNameLocation": "-1:-1:-1", | |
"valueType": { | |
"id": 163, | |
"keyName": "spender", | |
"keyNameLocation": "1288:7:1", | |
"keyType": { | |
"id": 161, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "1280:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"nodeType": "Mapping", | |
"src": "1272:35:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", | |
"typeString": "mapping(address => uint256)" | |
}, | |
"valueName": "", | |
"valueNameLocation": "-1:-1:-1", | |
"valueType": { | |
"id": 162, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "1299:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
} | |
}, | |
"visibility": "private" | |
}, | |
{ | |
"constant": false, | |
"id": 167, | |
"mutability": "mutable", | |
"name": "_totalSupply", | |
"nameLocation": "1351:12:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 651, | |
"src": "1335:28:1", | |
"stateVariable": true, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 166, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "1335:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "private" | |
}, | |
{ | |
"constant": false, | |
"id": 169, | |
"mutability": "mutable", | |
"name": "_name", | |
"nameLocation": "1385:5:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 651, | |
"src": "1370:20:1", | |
"stateVariable": true, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_storage", | |
"typeString": "string" | |
}, | |
"typeName": { | |
"id": 168, | |
"name": "string", | |
"nodeType": "ElementaryTypeName", | |
"src": "1370:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_storage_ptr", | |
"typeString": "string" | |
} | |
}, | |
"visibility": "private" | |
}, | |
{ | |
"constant": false, | |
"id": 171, | |
"mutability": "mutable", | |
"name": "_symbol", | |
"nameLocation": "1411:7:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 651, | |
"src": "1396:22:1", | |
"stateVariable": true, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_storage", | |
"typeString": "string" | |
}, | |
"typeName": { | |
"id": 170, | |
"name": "string", | |
"nodeType": "ElementaryTypeName", | |
"src": "1396:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_storage_ptr", | |
"typeString": "string" | |
} | |
}, | |
"visibility": "private" | |
}, | |
{ | |
"body": { | |
"id": 187, | |
"nodeType": "Block", | |
"src": "1657:57:1", | |
"statements": [ | |
{ | |
"expression": { | |
"id": 181, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 179, | |
"name": "_name", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 169, | |
"src": "1667:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_storage", | |
"typeString": "string storage ref" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "=", | |
"rightHandSide": { | |
"id": 180, | |
"name": "name_", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 174, | |
"src": "1675:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_memory_ptr", | |
"typeString": "string memory" | |
} | |
}, | |
"src": "1667:13:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_storage", | |
"typeString": "string storage ref" | |
} | |
}, | |
"id": 182, | |
"nodeType": "ExpressionStatement", | |
"src": "1667:13:1" | |
}, | |
{ | |
"expression": { | |
"id": 185, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 183, | |
"name": "_symbol", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 171, | |
"src": "1690:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_storage", | |
"typeString": "string storage ref" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "=", | |
"rightHandSide": { | |
"id": 184, | |
"name": "symbol_", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 176, | |
"src": "1700:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_memory_ptr", | |
"typeString": "string memory" | |
} | |
}, | |
"src": "1690:17:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_storage", | |
"typeString": "string storage ref" | |
} | |
}, | |
"id": 186, | |
"nodeType": "ExpressionStatement", | |
"src": "1690:17:1" | |
} | |
] | |
}, | |
"documentation": { | |
"id": 172, | |
"nodeType": "StructuredDocumentation", | |
"src": "1425:171:1", | |
"text": " @dev Sets the values for {name} and {symbol}.\n All two of these values are immutable: they can only be set once during\n construction." | |
}, | |
"id": 188, | |
"implemented": true, | |
"kind": "constructor", | |
"modifiers": [], | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 177, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 174, | |
"mutability": "mutable", | |
"name": "name_", | |
"nameLocation": "1627:5:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 188, | |
"src": "1613:19:1", | |
"stateVariable": false, | |
"storageLocation": "memory", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_memory_ptr", | |
"typeString": "string" | |
}, | |
"typeName": { | |
"id": 173, | |
"name": "string", | |
"nodeType": "ElementaryTypeName", | |
"src": "1613:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_storage_ptr", | |
"typeString": "string" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 176, | |
"mutability": "mutable", | |
"name": "symbol_", | |
"nameLocation": "1648:7:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 188, | |
"src": "1634:21:1", | |
"stateVariable": false, | |
"storageLocation": "memory", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_memory_ptr", | |
"typeString": "string" | |
}, | |
"typeName": { | |
"id": 175, | |
"name": "string", | |
"nodeType": "ElementaryTypeName", | |
"src": "1634:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_storage_ptr", | |
"typeString": "string" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "1612:44:1" | |
}, | |
"returnParameters": { | |
"id": 178, | |
"nodeType": "ParameterList", | |
"parameters": [], | |
"src": "1657:0:1" | |
}, | |
"scope": 651, | |
"src": "1601:113:1", | |
"stateMutability": "nonpayable", | |
"virtual": false, | |
"visibility": "internal" | |
}, | |
{ | |
"baseFunctions": [ | |
742 | |
], | |
"body": { | |
"id": 196, | |
"nodeType": "Block", | |
"src": "1839:29:1", | |
"statements": [ | |
{ | |
"expression": { | |
"id": 194, | |
"name": "_name", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 169, | |
"src": "1856:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_storage", | |
"typeString": "string storage ref" | |
} | |
}, | |
"functionReturnParameters": 193, | |
"id": 195, | |
"nodeType": "Return", | |
"src": "1849:12:1" | |
} | |
] | |
}, | |
"documentation": { | |
"id": 189, | |
"nodeType": "StructuredDocumentation", | |
"src": "1720:54:1", | |
"text": " @dev Returns the name of the token." | |
}, | |
"functionSelector": "06fdde03", | |
"id": 197, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "name", | |
"nameLocation": "1788:4:1", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 190, | |
"nodeType": "ParameterList", | |
"parameters": [], | |
"src": "1792:2:1" | |
}, | |
"returnParameters": { | |
"id": 193, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 192, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 197, | |
"src": "1824:13:1", | |
"stateVariable": false, | |
"storageLocation": "memory", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_memory_ptr", | |
"typeString": "string" | |
}, | |
"typeName": { | |
"id": 191, | |
"name": "string", | |
"nodeType": "ElementaryTypeName", | |
"src": "1824:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_storage_ptr", | |
"typeString": "string" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "1823:15:1" | |
}, | |
"scope": 651, | |
"src": "1779:89:1", | |
"stateMutability": "view", | |
"virtual": true, | |
"visibility": "public" | |
}, | |
{ | |
"baseFunctions": [ | |
748 | |
], | |
"body": { | |
"id": 205, | |
"nodeType": "Block", | |
"src": "2043:31:1", | |
"statements": [ | |
{ | |
"expression": { | |
"id": 203, | |
"name": "_symbol", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 171, | |
"src": "2060:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_storage", | |
"typeString": "string storage ref" | |
} | |
}, | |
"functionReturnParameters": 202, | |
"id": 204, | |
"nodeType": "Return", | |
"src": "2053:14:1" | |
} | |
] | |
}, | |
"documentation": { | |
"id": 198, | |
"nodeType": "StructuredDocumentation", | |
"src": "1874:102:1", | |
"text": " @dev Returns the symbol of the token, usually a shorter version of the\n name." | |
}, | |
"functionSelector": "95d89b41", | |
"id": 206, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "symbol", | |
"nameLocation": "1990:6:1", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 199, | |
"nodeType": "ParameterList", | |
"parameters": [], | |
"src": "1996:2:1" | |
}, | |
"returnParameters": { | |
"id": 202, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 201, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 206, | |
"src": "2028:13:1", | |
"stateVariable": false, | |
"storageLocation": "memory", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_memory_ptr", | |
"typeString": "string" | |
}, | |
"typeName": { | |
"id": 200, | |
"name": "string", | |
"nodeType": "ElementaryTypeName", | |
"src": "2028:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_storage_ptr", | |
"typeString": "string" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "2027:15:1" | |
}, | |
"scope": 651, | |
"src": "1981:93:1", | |
"stateMutability": "view", | |
"virtual": true, | |
"visibility": "public" | |
}, | |
{ | |
"baseFunctions": [ | |
754 | |
], | |
"body": { | |
"id": 214, | |
"nodeType": "Block", | |
"src": "2763:26:1", | |
"statements": [ | |
{ | |
"expression": { | |
"hexValue": "3138", | |
"id": 212, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "2780:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_18_by_1", | |
"typeString": "int_const 18" | |
}, | |
"value": "18" | |
}, | |
"functionReturnParameters": 211, | |
"id": 213, | |
"nodeType": "Return", | |
"src": "2773:9:1" | |
} | |
] | |
}, | |
"documentation": { | |
"id": 207, | |
"nodeType": "StructuredDocumentation", | |
"src": "2080:622:1", | |
"text": " @dev Returns the number of decimals used to get its user representation.\n For example, if `decimals` equals `2`, a balance of `505` tokens should\n be displayed to a user as `5.05` (`505 / 10 ** 2`).\n Tokens usually opt for a value of 18, imitating the relationship between\n Ether and Wei. This is the default value returned by this function, unless\n it's overridden.\n NOTE: This information is only used for _display_ purposes: it in\n no way affects any of the arithmetic of the contract, including\n {IERC20-balanceOf} and {IERC20-transfer}." | |
}, | |
"functionSelector": "313ce567", | |
"id": 215, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "decimals", | |
"nameLocation": "2716:8:1", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 208, | |
"nodeType": "ParameterList", | |
"parameters": [], | |
"src": "2724:2:1" | |
}, | |
"returnParameters": { | |
"id": 211, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 210, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 215, | |
"src": "2756:5:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint8", | |
"typeString": "uint8" | |
}, | |
"typeName": { | |
"id": 209, | |
"name": "uint8", | |
"nodeType": "ElementaryTypeName", | |
"src": "2756:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint8", | |
"typeString": "uint8" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "2755:7:1" | |
}, | |
"scope": 651, | |
"src": "2707:82:1", | |
"stateMutability": "view", | |
"virtual": true, | |
"visibility": "public" | |
}, | |
{ | |
"baseFunctions": [ | |
678 | |
], | |
"body": { | |
"id": 223, | |
"nodeType": "Block", | |
"src": "2910:36:1", | |
"statements": [ | |
{ | |
"expression": { | |
"id": 221, | |
"name": "_totalSupply", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 167, | |
"src": "2927:12:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"functionReturnParameters": 220, | |
"id": 222, | |
"nodeType": "Return", | |
"src": "2920:19:1" | |
} | |
] | |
}, | |
"documentation": { | |
"id": 216, | |
"nodeType": "StructuredDocumentation", | |
"src": "2795:49:1", | |
"text": " @dev See {IERC20-totalSupply}." | |
}, | |
"functionSelector": "18160ddd", | |
"id": 224, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "totalSupply", | |
"nameLocation": "2858:11:1", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 217, | |
"nodeType": "ParameterList", | |
"parameters": [], | |
"src": "2869:2:1" | |
}, | |
"returnParameters": { | |
"id": 220, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 219, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 224, | |
"src": "2901:7:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 218, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "2901:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "2900:9:1" | |
}, | |
"scope": 651, | |
"src": "2849:97:1", | |
"stateMutability": "view", | |
"virtual": true, | |
"visibility": "public" | |
}, | |
{ | |
"baseFunctions": [ | |
686 | |
], | |
"body": { | |
"id": 236, | |
"nodeType": "Block", | |
"src": "3078:42:1", | |
"statements": [ | |
{ | |
"expression": { | |
"baseExpression": { | |
"id": 232, | |
"name": "_balances", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 159, | |
"src": "3095:9:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", | |
"typeString": "mapping(address => uint256)" | |
} | |
}, | |
"id": 234, | |
"indexExpression": { | |
"id": 233, | |
"name": "account", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 227, | |
"src": "3105:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"isConstant": false, | |
"isLValue": true, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "IndexAccess", | |
"src": "3095:18:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"functionReturnParameters": 231, | |
"id": 235, | |
"nodeType": "Return", | |
"src": "3088:25:1" | |
} | |
] | |
}, | |
"documentation": { | |
"id": 225, | |
"nodeType": "StructuredDocumentation", | |
"src": "2952:47:1", | |
"text": " @dev See {IERC20-balanceOf}." | |
}, | |
"functionSelector": "70a08231", | |
"id": 237, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "balanceOf", | |
"nameLocation": "3013:9:1", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 228, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 227, | |
"mutability": "mutable", | |
"name": "account", | |
"nameLocation": "3031:7:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 237, | |
"src": "3023:15:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 226, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "3023:7:1", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "3022:17:1" | |
}, | |
"returnParameters": { | |
"id": 231, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 230, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 237, | |
"src": "3069:7:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 229, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "3069:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "3068:9:1" | |
}, | |
"scope": 651, | |
"src": "3004:116:1", | |
"stateMutability": "view", | |
"virtual": true, | |
"visibility": "public" | |
}, | |
{ | |
"baseFunctions": [ | |
696 | |
], | |
"body": { | |
"id": 260, | |
"nodeType": "Block", | |
"src": "3390:103:1", | |
"statements": [ | |
{ | |
"assignments": [ | |
248 | |
], | |
"declarations": [ | |
{ | |
"constant": false, | |
"id": 248, | |
"mutability": "mutable", | |
"name": "owner", | |
"nameLocation": "3408:5:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 260, | |
"src": "3400:13:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 247, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "3400:7:1", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"id": 251, | |
"initialValue": { | |
"arguments": [], | |
"expression": { | |
"argumentTypes": [], | |
"id": 249, | |
"name": "_msgSender", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 767, | |
"src": "3416:10:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_internal_view$__$returns$_t_address_$", | |
"typeString": "function () view returns (address)" | |
} | |
}, | |
"id": 250, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "3416:12:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"nodeType": "VariableDeclarationStatement", | |
"src": "3400:28:1" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"id": 253, | |
"name": "owner", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 248, | |
"src": "3448:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
{ | |
"id": 254, | |
"name": "to", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 240, | |
"src": "3455:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
{ | |
"id": 255, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 242, | |
"src": "3459:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
{ | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
{ | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
], | |
"id": 252, | |
"name": "_transfer", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 381, | |
"src": "3438:9:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", | |
"typeString": "function (address,address,uint256)" | |
} | |
}, | |
"id": 256, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "3438:27:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_tuple$__$", | |
"typeString": "tuple()" | |
} | |
}, | |
"id": 257, | |
"nodeType": "ExpressionStatement", | |
"src": "3438:27:1" | |
}, | |
{ | |
"expression": { | |
"hexValue": "74727565", | |
"id": 258, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "bool", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "3482:4:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
}, | |
"value": "true" | |
}, | |
"functionReturnParameters": 246, | |
"id": 259, | |
"nodeType": "Return", | |
"src": "3475:11:1" | |
} | |
] | |
}, | |
"documentation": { | |
"id": 238, | |
"nodeType": "StructuredDocumentation", | |
"src": "3126:184:1", | |
"text": " @dev See {IERC20-transfer}.\n Requirements:\n - `to` cannot be the zero address.\n - the caller must have a balance of at least `value`." | |
}, | |
"functionSelector": "a9059cbb", | |
"id": 261, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "transfer", | |
"nameLocation": "3324:8:1", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 243, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 240, | |
"mutability": "mutable", | |
"name": "to", | |
"nameLocation": "3341:2:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 261, | |
"src": "3333:10:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 239, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "3333:7:1", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 242, | |
"mutability": "mutable", | |
"name": "value", | |
"nameLocation": "3353:5:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 261, | |
"src": "3345:13:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 241, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "3345:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "3332:27:1" | |
}, | |
"returnParameters": { | |
"id": 246, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 245, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 261, | |
"src": "3384:4:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
}, | |
"typeName": { | |
"id": 244, | |
"name": "bool", | |
"nodeType": "ElementaryTypeName", | |
"src": "3384:4:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "3383:6:1" | |
}, | |
"scope": 651, | |
"src": "3315:178:1", | |
"stateMutability": "nonpayable", | |
"virtual": true, | |
"visibility": "public" | |
}, | |
{ | |
"baseFunctions": [ | |
706 | |
], | |
"body": { | |
"id": 277, | |
"nodeType": "Block", | |
"src": "3640:51:1", | |
"statements": [ | |
{ | |
"expression": { | |
"baseExpression": { | |
"baseExpression": { | |
"id": 271, | |
"name": "_allowances", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 165, | |
"src": "3657:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", | |
"typeString": "mapping(address => mapping(address => uint256))" | |
} | |
}, | |
"id": 273, | |
"indexExpression": { | |
"id": 272, | |
"name": "owner", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 264, | |
"src": "3669:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"isConstant": false, | |
"isLValue": true, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "IndexAccess", | |
"src": "3657:18:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", | |
"typeString": "mapping(address => uint256)" | |
} | |
}, | |
"id": 275, | |
"indexExpression": { | |
"id": 274, | |
"name": "spender", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 266, | |
"src": "3676:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"isConstant": false, | |
"isLValue": true, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "IndexAccess", | |
"src": "3657:27:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"functionReturnParameters": 270, | |
"id": 276, | |
"nodeType": "Return", | |
"src": "3650:34:1" | |
} | |
] | |
}, | |
"documentation": { | |
"id": 262, | |
"nodeType": "StructuredDocumentation", | |
"src": "3499:47:1", | |
"text": " @dev See {IERC20-allowance}." | |
}, | |
"functionSelector": "dd62ed3e", | |
"id": 278, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "allowance", | |
"nameLocation": "3560:9:1", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 267, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 264, | |
"mutability": "mutable", | |
"name": "owner", | |
"nameLocation": "3578:5:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 278, | |
"src": "3570:13:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 263, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "3570:7:1", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 266, | |
"mutability": "mutable", | |
"name": "spender", | |
"nameLocation": "3593:7:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 278, | |
"src": "3585:15:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 265, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "3585:7:1", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "3569:32:1" | |
}, | |
"returnParameters": { | |
"id": 270, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 269, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 278, | |
"src": "3631:7:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 268, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "3631:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "3630:9:1" | |
}, | |
"scope": 651, | |
"src": "3551:140:1", | |
"stateMutability": "view", | |
"virtual": true, | |
"visibility": "public" | |
}, | |
{ | |
"baseFunctions": [ | |
716 | |
], | |
"body": { | |
"id": 301, | |
"nodeType": "Block", | |
"src": "4077:107:1", | |
"statements": [ | |
{ | |
"assignments": [ | |
289 | |
], | |
"declarations": [ | |
{ | |
"constant": false, | |
"id": 289, | |
"mutability": "mutable", | |
"name": "owner", | |
"nameLocation": "4095:5:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 301, | |
"src": "4087:13:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 288, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "4087:7:1", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"id": 292, | |
"initialValue": { | |
"arguments": [], | |
"expression": { | |
"argumentTypes": [], | |
"id": 290, | |
"name": "_msgSender", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 767, | |
"src": "4103:10:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_internal_view$__$returns$_t_address_$", | |
"typeString": "function () view returns (address)" | |
} | |
}, | |
"id": 291, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "4103:12:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"nodeType": "VariableDeclarationStatement", | |
"src": "4087:28:1" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"id": 294, | |
"name": "owner", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 289, | |
"src": "4134:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
{ | |
"id": 295, | |
"name": "spender", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 281, | |
"src": "4141:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
{ | |
"id": 296, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 283, | |
"src": "4150:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
{ | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
{ | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
], | |
"id": 293, | |
"name": "_approve", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [ | |
542, | |
602 | |
], | |
"referencedDeclaration": 542, | |
"src": "4125:8:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", | |
"typeString": "function (address,address,uint256)" | |
} | |
}, | |
"id": 297, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "4125:31:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_tuple$__$", | |
"typeString": "tuple()" | |
} | |
}, | |
"id": 298, | |
"nodeType": "ExpressionStatement", | |
"src": "4125:31:1" | |
}, | |
{ | |
"expression": { | |
"hexValue": "74727565", | |
"id": 299, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "bool", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "4173:4:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
}, | |
"value": "true" | |
}, | |
"functionReturnParameters": 287, | |
"id": 300, | |
"nodeType": "Return", | |
"src": "4166:11:1" | |
} | |
] | |
}, | |
"documentation": { | |
"id": 279, | |
"nodeType": "StructuredDocumentation", | |
"src": "3697:296:1", | |
"text": " @dev See {IERC20-approve}.\n NOTE: If `value` is the maximum `uint256`, the allowance is not updated on\n `transferFrom`. This is semantically equivalent to an infinite approval.\n Requirements:\n - `spender` cannot be the zero address." | |
}, | |
"functionSelector": "095ea7b3", | |
"id": 302, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "approve", | |
"nameLocation": "4007:7:1", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 284, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 281, | |
"mutability": "mutable", | |
"name": "spender", | |
"nameLocation": "4023:7:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 302, | |
"src": "4015:15:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 280, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "4015:7:1", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 283, | |
"mutability": "mutable", | |
"name": "value", | |
"nameLocation": "4040:5:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 302, | |
"src": "4032:13:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 282, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "4032:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "4014:32:1" | |
}, | |
"returnParameters": { | |
"id": 287, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 286, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 302, | |
"src": "4071:4:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
}, | |
"typeName": { | |
"id": 285, | |
"name": "bool", | |
"nodeType": "ElementaryTypeName", | |
"src": "4071:4:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "4070:6:1" | |
}, | |
"scope": 651, | |
"src": "3998:186:1", | |
"stateMutability": "nonpayable", | |
"virtual": true, | |
"visibility": "public" | |
}, | |
{ | |
"baseFunctions": [ | |
728 | |
], | |
"body": { | |
"id": 333, | |
"nodeType": "Block", | |
"src": "4869:151:1", | |
"statements": [ | |
{ | |
"assignments": [ | |
315 | |
], | |
"declarations": [ | |
{ | |
"constant": false, | |
"id": 315, | |
"mutability": "mutable", | |
"name": "spender", | |
"nameLocation": "4887:7:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 333, | |
"src": "4879:15:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 314, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "4879:7:1", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"id": 318, | |
"initialValue": { | |
"arguments": [], | |
"expression": { | |
"argumentTypes": [], | |
"id": 316, | |
"name": "_msgSender", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 767, | |
"src": "4897:10:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_internal_view$__$returns$_t_address_$", | |
"typeString": "function () view returns (address)" | |
} | |
}, | |
"id": 317, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "4897:12:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"nodeType": "VariableDeclarationStatement", | |
"src": "4879:30:1" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"id": 320, | |
"name": "from", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 305, | |
"src": "4935:4:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
{ | |
"id": 321, | |
"name": "spender", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 315, | |
"src": "4941:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
{ | |
"id": 322, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 309, | |
"src": "4950:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
{ | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
{ | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
], | |
"id": 319, | |
"name": "_spendAllowance", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 650, | |
"src": "4919:15:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", | |
"typeString": "function (address,address,uint256)" | |
} | |
}, | |
"id": 323, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "4919:37:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_tuple$__$", | |
"typeString": "tuple()" | |
} | |
}, | |
"id": 324, | |
"nodeType": "ExpressionStatement", | |
"src": "4919:37:1" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"id": 326, | |
"name": "from", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 305, | |
"src": "4976:4:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
{ | |
"id": 327, | |
"name": "to", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 307, | |
"src": "4982:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
{ | |
"id": 328, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 309, | |
"src": "4986:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
{ | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
{ | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
], | |
"id": 325, | |
"name": "_transfer", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 381, | |
"src": "4966:9:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", | |
"typeString": "function (address,address,uint256)" | |
} | |
}, | |
"id": 329, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "4966:26:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_tuple$__$", | |
"typeString": "tuple()" | |
} | |
}, | |
"id": 330, | |
"nodeType": "ExpressionStatement", | |
"src": "4966:26:1" | |
}, | |
{ | |
"expression": { | |
"hexValue": "74727565", | |
"id": 331, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "bool", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "5009:4:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
}, | |
"value": "true" | |
}, | |
"functionReturnParameters": 313, | |
"id": 332, | |
"nodeType": "Return", | |
"src": "5002:11:1" | |
} | |
] | |
}, | |
"documentation": { | |
"id": 303, | |
"nodeType": "StructuredDocumentation", | |
"src": "4190:581:1", | |
"text": " @dev See {IERC20-transferFrom}.\n Skips emitting an {Approval} event indicating an allowance update. This is not\n required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve].\n NOTE: Does not update the allowance if the current allowance\n is the maximum `uint256`.\n Requirements:\n - `from` and `to` cannot be the zero address.\n - `from` must have a balance of at least `value`.\n - the caller must have allowance for ``from``'s tokens of at least\n `value`." | |
}, | |
"functionSelector": "23b872dd", | |
"id": 334, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "transferFrom", | |
"nameLocation": "4785:12:1", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 310, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 305, | |
"mutability": "mutable", | |
"name": "from", | |
"nameLocation": "4806:4:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 334, | |
"src": "4798:12:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 304, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "4798:7:1", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 307, | |
"mutability": "mutable", | |
"name": "to", | |
"nameLocation": "4820:2:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 334, | |
"src": "4812:10:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 306, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "4812:7:1", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 309, | |
"mutability": "mutable", | |
"name": "value", | |
"nameLocation": "4832:5:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 334, | |
"src": "4824:13:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 308, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "4824:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "4797:41:1" | |
}, | |
"returnParameters": { | |
"id": 313, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 312, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 334, | |
"src": "4863:4:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
}, | |
"typeName": { | |
"id": 311, | |
"name": "bool", | |
"nodeType": "ElementaryTypeName", | |
"src": "4863:4:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "4862:6:1" | |
}, | |
"scope": 651, | |
"src": "4776:244:1", | |
"stateMutability": "nonpayable", | |
"virtual": true, | |
"visibility": "public" | |
}, | |
{ | |
"body": { | |
"id": 380, | |
"nodeType": "Block", | |
"src": "5462:231:1", | |
"statements": [ | |
{ | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"id": 349, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 344, | |
"name": "from", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 337, | |
"src": "5476:4:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "==", | |
"rightExpression": { | |
"arguments": [ | |
{ | |
"hexValue": "30", | |
"id": 347, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "5492:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
} | |
], | |
"id": 346, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"nodeType": "ElementaryTypeNameExpression", | |
"src": "5484:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_type$_t_address_$", | |
"typeString": "type(address)" | |
}, | |
"typeName": { | |
"id": 345, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "5484:7:1", | |
"typeDescriptions": {} | |
} | |
}, | |
"id": 348, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "typeConversion", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "5484:10:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"src": "5476:18:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"id": 358, | |
"nodeType": "IfStatement", | |
"src": "5472:86:1", | |
"trueBody": { | |
"id": 357, | |
"nodeType": "Block", | |
"src": "5496:62:1", | |
"statements": [ | |
{ | |
"errorCall": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"hexValue": "30", | |
"id": 353, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "5544:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
} | |
], | |
"id": 352, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"nodeType": "ElementaryTypeNameExpression", | |
"src": "5536:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_type$_t_address_$", | |
"typeString": "type(address)" | |
}, | |
"typeName": { | |
"id": 351, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "5536:7:1", | |
"typeDescriptions": {} | |
} | |
}, | |
"id": 354, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "typeConversion", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "5536:10:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
], | |
"id": 350, | |
"name": "ERC20InvalidSender", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 16, | |
"src": "5517:18:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_error_pure$_t_address_$returns$__$", | |
"typeString": "function (address) pure" | |
} | |
}, | |
"id": 355, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "5517:30:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_tuple$__$", | |
"typeString": "tuple()" | |
} | |
}, | |
"id": 356, | |
"nodeType": "RevertStatement", | |
"src": "5510:37:1" | |
} | |
] | |
} | |
}, | |
{ | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"id": 364, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 359, | |
"name": "to", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 339, | |
"src": "5571:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "==", | |
"rightExpression": { | |
"arguments": [ | |
{ | |
"hexValue": "30", | |
"id": 362, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "5585:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
} | |
], | |
"id": 361, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"nodeType": "ElementaryTypeNameExpression", | |
"src": "5577:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_type$_t_address_$", | |
"typeString": "type(address)" | |
}, | |
"typeName": { | |
"id": 360, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "5577:7:1", | |
"typeDescriptions": {} | |
} | |
}, | |
"id": 363, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "typeConversion", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "5577:10:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"src": "5571:16:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"id": 373, | |
"nodeType": "IfStatement", | |
"src": "5567:86:1", | |
"trueBody": { | |
"id": 372, | |
"nodeType": "Block", | |
"src": "5589:64:1", | |
"statements": [ | |
{ | |
"errorCall": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"hexValue": "30", | |
"id": 368, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "5639:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
} | |
], | |
"id": 367, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"nodeType": "ElementaryTypeNameExpression", | |
"src": "5631:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_type$_t_address_$", | |
"typeString": "type(address)" | |
}, | |
"typeName": { | |
"id": 366, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "5631:7:1", | |
"typeDescriptions": {} | |
} | |
}, | |
"id": 369, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "typeConversion", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "5631:10:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
], | |
"id": 365, | |
"name": "ERC20InvalidReceiver", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 21, | |
"src": "5610:20:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_error_pure$_t_address_$returns$__$", | |
"typeString": "function (address) pure" | |
} | |
}, | |
"id": 370, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "5610:32:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_tuple$__$", | |
"typeString": "tuple()" | |
} | |
}, | |
"id": 371, | |
"nodeType": "RevertStatement", | |
"src": "5603:39:1" | |
} | |
] | |
} | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"id": 375, | |
"name": "from", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 337, | |
"src": "5670:4:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
{ | |
"id": 376, | |
"name": "to", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 339, | |
"src": "5676:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
{ | |
"id": 377, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 341, | |
"src": "5680:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
{ | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
{ | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
], | |
"id": 374, | |
"name": "_update", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 458, | |
"src": "5662:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", | |
"typeString": "function (address,address,uint256)" | |
} | |
}, | |
"id": 378, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "5662:24:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_tuple$__$", | |
"typeString": "tuple()" | |
} | |
}, | |
"id": 379, | |
"nodeType": "ExpressionStatement", | |
"src": "5662:24:1" | |
} | |
] | |
}, | |
"documentation": { | |
"id": 335, | |
"nodeType": "StructuredDocumentation", | |
"src": "5026:362:1", | |
"text": " @dev Moves a `value` amount of tokens from `from` to `to`.\n This internal function is equivalent to {transfer}, and can be used to\n e.g. implement automatic token fees, slashing mechanisms, etc.\n Emits a {Transfer} event.\n NOTE: This function is not virtual, {_update} should be overridden instead." | |
}, | |
"id": 381, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "_transfer", | |
"nameLocation": "5402:9:1", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 342, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 337, | |
"mutability": "mutable", | |
"name": "from", | |
"nameLocation": "5420:4:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 381, | |
"src": "5412:12:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 336, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "5412:7:1", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 339, | |
"mutability": "mutable", | |
"name": "to", | |
"nameLocation": "5434:2:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 381, | |
"src": "5426:10:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 338, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "5426:7:1", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 341, | |
"mutability": "mutable", | |
"name": "value", | |
"nameLocation": "5446:5:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 381, | |
"src": "5438:13:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 340, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "5438:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "5411:41:1" | |
}, | |
"returnParameters": { | |
"id": 343, | |
"nodeType": "ParameterList", | |
"parameters": [], | |
"src": "5462:0:1" | |
}, | |
"scope": 651, | |
"src": "5393:300:1", | |
"stateMutability": "nonpayable", | |
"virtual": false, | |
"visibility": "internal" | |
}, | |
{ | |
"body": { | |
"id": 457, | |
"nodeType": "Block", | |
"src": "6083:1032:1", | |
"statements": [ | |
{ | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"id": 396, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 391, | |
"name": "from", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 384, | |
"src": "6097:4:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "==", | |
"rightExpression": { | |
"arguments": [ | |
{ | |
"hexValue": "30", | |
"id": 394, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "6113:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
} | |
], | |
"id": 393, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"nodeType": "ElementaryTypeNameExpression", | |
"src": "6105:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_type$_t_address_$", | |
"typeString": "type(address)" | |
}, | |
"typeName": { | |
"id": 392, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "6105:7:1", | |
"typeDescriptions": {} | |
} | |
}, | |
"id": 395, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "typeConversion", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "6105:10:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"src": "6097:18:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"falseBody": { | |
"id": 428, | |
"nodeType": "Block", | |
"src": "6271:362:1", | |
"statements": [ | |
{ | |
"assignments": [ | |
403 | |
], | |
"declarations": [ | |
{ | |
"constant": false, | |
"id": 403, | |
"mutability": "mutable", | |
"name": "fromBalance", | |
"nameLocation": "6293:11:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 428, | |
"src": "6285:19:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 402, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "6285:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"id": 407, | |
"initialValue": { | |
"baseExpression": { | |
"id": 404, | |
"name": "_balances", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 159, | |
"src": "6307:9:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", | |
"typeString": "mapping(address => uint256)" | |
} | |
}, | |
"id": 406, | |
"indexExpression": { | |
"id": 405, | |
"name": "from", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 384, | |
"src": "6317:4:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"isConstant": false, | |
"isLValue": true, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "IndexAccess", | |
"src": "6307:15:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "VariableDeclarationStatement", | |
"src": "6285:37:1" | |
}, | |
{ | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 410, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 408, | |
"name": "fromBalance", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 403, | |
"src": "6340:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "<", | |
"rightExpression": { | |
"id": 409, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 388, | |
"src": "6354:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "6340:19:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"id": 418, | |
"nodeType": "IfStatement", | |
"src": "6336:115:1", | |
"trueBody": { | |
"id": 417, | |
"nodeType": "Block", | |
"src": "6361:90:1", | |
"statements": [ | |
{ | |
"errorCall": { | |
"arguments": [ | |
{ | |
"id": 412, | |
"name": "from", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 384, | |
"src": "6411:4:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
{ | |
"id": 413, | |
"name": "fromBalance", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 403, | |
"src": "6417:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
{ | |
"id": 414, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 388, | |
"src": "6430:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
{ | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
{ | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
], | |
"id": 411, | |
"name": "ERC20InsufficientBalance", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 11, | |
"src": "6386:24:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_error_pure$_t_address_$_t_uint256_$_t_uint256_$returns$__$", | |
"typeString": "function (address,uint256,uint256) pure" | |
} | |
}, | |
"id": 415, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "6386:50:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_tuple$__$", | |
"typeString": "tuple()" | |
} | |
}, | |
"id": 416, | |
"nodeType": "RevertStatement", | |
"src": "6379:57:1" | |
} | |
] | |
} | |
}, | |
{ | |
"id": 427, | |
"nodeType": "UncheckedBlock", | |
"src": "6464:159:1", | |
"statements": [ | |
{ | |
"expression": { | |
"id": 425, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"baseExpression": { | |
"id": 419, | |
"name": "_balances", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 159, | |
"src": "6571:9:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", | |
"typeString": "mapping(address => uint256)" | |
} | |
}, | |
"id": 421, | |
"indexExpression": { | |
"id": 420, | |
"name": "from", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 384, | |
"src": "6581:4:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"isConstant": false, | |
"isLValue": true, | |
"isPure": false, | |
"lValueRequested": true, | |
"nodeType": "IndexAccess", | |
"src": "6571:15:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "=", | |
"rightHandSide": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 424, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 422, | |
"name": "fromBalance", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 403, | |
"src": "6589:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "-", | |
"rightExpression": { | |
"id": 423, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 388, | |
"src": "6603:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "6589:19:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "6571:37:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 426, | |
"nodeType": "ExpressionStatement", | |
"src": "6571:37:1" | |
} | |
] | |
} | |
] | |
}, | |
"id": 429, | |
"nodeType": "IfStatement", | |
"src": "6093:540:1", | |
"trueBody": { | |
"id": 401, | |
"nodeType": "Block", | |
"src": "6117:148:1", | |
"statements": [ | |
{ | |
"expression": { | |
"id": 399, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 397, | |
"name": "_totalSupply", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 167, | |
"src": "6233:12:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "+=", | |
"rightHandSide": { | |
"id": 398, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 388, | |
"src": "6249:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "6233:21:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 400, | |
"nodeType": "ExpressionStatement", | |
"src": "6233:21:1" | |
} | |
] | |
} | |
}, | |
{ | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"id": 435, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 430, | |
"name": "to", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 386, | |
"src": "6647:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "==", | |
"rightExpression": { | |
"arguments": [ | |
{ | |
"hexValue": "30", | |
"id": 433, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "6661:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
} | |
], | |
"id": 432, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"nodeType": "ElementaryTypeNameExpression", | |
"src": "6653:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_type$_t_address_$", | |
"typeString": "type(address)" | |
}, | |
"typeName": { | |
"id": 431, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "6653:7:1", | |
"typeDescriptions": {} | |
} | |
}, | |
"id": 434, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "typeConversion", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "6653:10:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"src": "6647:16:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"falseBody": { | |
"id": 449, | |
"nodeType": "Block", | |
"src": "6862:206:1", | |
"statements": [ | |
{ | |
"id": 448, | |
"nodeType": "UncheckedBlock", | |
"src": "6876:182:1", | |
"statements": [ | |
{ | |
"expression": { | |
"id": 446, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"baseExpression": { | |
"id": 442, | |
"name": "_balances", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 159, | |
"src": "7021:9:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", | |
"typeString": "mapping(address => uint256)" | |
} | |
}, | |
"id": 444, | |
"indexExpression": { | |
"id": 443, | |
"name": "to", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 386, | |
"src": "7031:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"isConstant": false, | |
"isLValue": true, | |
"isPure": false, | |
"lValueRequested": true, | |
"nodeType": "IndexAccess", | |
"src": "7021:13:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "+=", | |
"rightHandSide": { | |
"id": 445, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 388, | |
"src": "7038:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "7021:22:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 447, | |
"nodeType": "ExpressionStatement", | |
"src": "7021:22:1" | |
} | |
] | |
} | |
] | |
}, | |
"id": 450, | |
"nodeType": "IfStatement", | |
"src": "6643:425:1", | |
"trueBody": { | |
"id": 441, | |
"nodeType": "Block", | |
"src": "6665:191:1", | |
"statements": [ | |
{ | |
"id": 440, | |
"nodeType": "UncheckedBlock", | |
"src": "6679:167:1", | |
"statements": [ | |
{ | |
"expression": { | |
"id": 438, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 436, | |
"name": "_totalSupply", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 167, | |
"src": "6810:12:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "-=", | |
"rightHandSide": { | |
"id": 437, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 388, | |
"src": "6826:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "6810:21:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 439, | |
"nodeType": "ExpressionStatement", | |
"src": "6810:21:1" | |
} | |
] | |
} | |
] | |
} | |
}, | |
{ | |
"eventCall": { | |
"arguments": [ | |
{ | |
"id": 452, | |
"name": "from", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 384, | |
"src": "7092:4:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
{ | |
"id": 453, | |
"name": "to", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 386, | |
"src": "7098:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
{ | |
"id": 454, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 388, | |
"src": "7102:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
{ | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
{ | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
], | |
"id": 451, | |
"name": "Transfer", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 663, | |
"src": "7083:8:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", | |
"typeString": "function (address,address,uint256)" | |
} | |
}, | |
"id": 455, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "7083:25:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_tuple$__$", | |
"typeString": "tuple()" | |
} | |
}, | |
"id": 456, | |
"nodeType": "EmitStatement", | |
"src": "7078:30:1" | |
} | |
] | |
}, | |
"documentation": { | |
"id": 382, | |
"nodeType": "StructuredDocumentation", | |
"src": "5699:304:1", | |
"text": " @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`\n (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding\n this function.\n Emits a {Transfer} event." | |
}, | |
"id": 458, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "_update", | |
"nameLocation": "6017:7:1", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 389, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 384, | |
"mutability": "mutable", | |
"name": "from", | |
"nameLocation": "6033:4:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 458, | |
"src": "6025:12:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 383, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "6025:7:1", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 386, | |
"mutability": "mutable", | |
"name": "to", | |
"nameLocation": "6047:2:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 458, | |
"src": "6039:10:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 385, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "6039:7:1", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 388, | |
"mutability": "mutable", | |
"name": "value", | |
"nameLocation": "6059:5:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 458, | |
"src": "6051:13:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 387, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "6051:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "6024:41:1" | |
}, | |
"returnParameters": { | |
"id": 390, | |
"nodeType": "ParameterList", | |
"parameters": [], | |
"src": "6083:0:1" | |
}, | |
"scope": 651, | |
"src": "6008:1107:1", | |
"stateMutability": "nonpayable", | |
"virtual": true, | |
"visibility": "internal" | |
}, | |
{ | |
"body": { | |
"id": 490, | |
"nodeType": "Block", | |
"src": "7514:152:1", | |
"statements": [ | |
{ | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"id": 471, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 466, | |
"name": "account", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 461, | |
"src": "7528:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "==", | |
"rightExpression": { | |
"arguments": [ | |
{ | |
"hexValue": "30", | |
"id": 469, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "7547:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
} | |
], | |
"id": 468, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"nodeType": "ElementaryTypeNameExpression", | |
"src": "7539:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_type$_t_address_$", | |
"typeString": "type(address)" | |
}, | |
"typeName": { | |
"id": 467, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "7539:7:1", | |
"typeDescriptions": {} | |
} | |
}, | |
"id": 470, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "typeConversion", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "7539:10:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"src": "7528:21:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"id": 480, | |
"nodeType": "IfStatement", | |
"src": "7524:91:1", | |
"trueBody": { | |
"id": 479, | |
"nodeType": "Block", | |
"src": "7551:64:1", | |
"statements": [ | |
{ | |
"errorCall": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"hexValue": "30", | |
"id": 475, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "7601:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
} | |
], | |
"id": 474, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"nodeType": "ElementaryTypeNameExpression", | |
"src": "7593:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_type$_t_address_$", | |
"typeString": "type(address)" | |
}, | |
"typeName": { | |
"id": 473, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "7593:7:1", | |
"typeDescriptions": {} | |
} | |
}, | |
"id": 476, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "typeConversion", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "7593:10:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
], | |
"id": 472, | |
"name": "ERC20InvalidReceiver", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 21, | |
"src": "7572:20:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_error_pure$_t_address_$returns$__$", | |
"typeString": "function (address) pure" | |
} | |
}, | |
"id": 477, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "7572:32:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_tuple$__$", | |
"typeString": "tuple()" | |
} | |
}, | |
"id": 478, | |
"nodeType": "RevertStatement", | |
"src": "7565:39:1" | |
} | |
] | |
} | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"hexValue": "30", | |
"id": 484, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "7640:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
} | |
], | |
"id": 483, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"nodeType": "ElementaryTypeNameExpression", | |
"src": "7632:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_type$_t_address_$", | |
"typeString": "type(address)" | |
}, | |
"typeName": { | |
"id": 482, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "7632:7:1", | |
"typeDescriptions": {} | |
} | |
}, | |
"id": 485, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "typeConversion", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "7632:10:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
{ | |
"id": 486, | |
"name": "account", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 461, | |
"src": "7644:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
{ | |
"id": 487, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 463, | |
"src": "7653:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
{ | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
{ | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
], | |
"id": 481, | |
"name": "_update", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 458, | |
"src": "7624:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", | |
"typeString": "function (address,address,uint256)" | |
} | |
}, | |
"id": 488, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "7624:35:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_tuple$__$", | |
"typeString": "tuple()" | |
} | |
}, | |
"id": 489, | |
"nodeType": "ExpressionStatement", | |
"src": "7624:35:1" | |
} | |
] | |
}, | |
"documentation": { | |
"id": 459, | |
"nodeType": "StructuredDocumentation", | |
"src": "7121:332:1", | |
"text": " @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).\n Relies on the `_update` mechanism\n Emits a {Transfer} event with `from` set to the zero address.\n NOTE: This function is not virtual, {_update} should be overridden instead." | |
}, | |
"id": 491, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "_mint", | |
"nameLocation": "7467:5:1", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 464, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 461, | |
"mutability": "mutable", | |
"name": "account", | |
"nameLocation": "7481:7:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 491, | |
"src": "7473:15:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 460, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "7473:7:1", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 463, | |
"mutability": "mutable", | |
"name": "value", | |
"nameLocation": "7498:5:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 491, | |
"src": "7490:13:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 462, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "7490:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "7472:32:1" | |
}, | |
"returnParameters": { | |
"id": 465, | |
"nodeType": "ParameterList", | |
"parameters": [], | |
"src": "7514:0:1" | |
}, | |
"scope": 651, | |
"src": "7458:208:1", | |
"stateMutability": "nonpayable", | |
"virtual": false, | |
"visibility": "internal" | |
}, | |
{ | |
"body": { | |
"id": 523, | |
"nodeType": "Block", | |
"src": "8040:150:1", | |
"statements": [ | |
{ | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"id": 504, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 499, | |
"name": "account", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 494, | |
"src": "8054:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "==", | |
"rightExpression": { | |
"arguments": [ | |
{ | |
"hexValue": "30", | |
"id": 502, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "8073:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
} | |
], | |
"id": 501, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"nodeType": "ElementaryTypeNameExpression", | |
"src": "8065:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_type$_t_address_$", | |
"typeString": "type(address)" | |
}, | |
"typeName": { | |
"id": 500, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "8065:7:1", | |
"typeDescriptions": {} | |
} | |
}, | |
"id": 503, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "typeConversion", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "8065:10:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"src": "8054:21:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"id": 513, | |
"nodeType": "IfStatement", | |
"src": "8050:89:1", | |
"trueBody": { | |
"id": 512, | |
"nodeType": "Block", | |
"src": "8077:62:1", | |
"statements": [ | |
{ | |
"errorCall": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"hexValue": "30", | |
"id": 508, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "8125:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
} | |
], | |
"id": 507, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"nodeType": "ElementaryTypeNameExpression", | |
"src": "8117:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_type$_t_address_$", | |
"typeString": "type(address)" | |
}, | |
"typeName": { | |
"id": 506, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "8117:7:1", | |
"typeDescriptions": {} | |
} | |
}, | |
"id": 509, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "typeConversion", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "8117:10:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
], | |
"id": 505, | |
"name": "ERC20InvalidSender", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 16, | |
"src": "8098:18:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_error_pure$_t_address_$returns$__$", | |
"typeString": "function (address) pure" | |
} | |
}, | |
"id": 510, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "8098:30:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_tuple$__$", | |
"typeString": "tuple()" | |
} | |
}, | |
"id": 511, | |
"nodeType": "RevertStatement", | |
"src": "8091:37:1" | |
} | |
] | |
} | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"id": 515, | |
"name": "account", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 494, | |
"src": "8156:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
{ | |
"arguments": [ | |
{ | |
"hexValue": "30", | |
"id": 518, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "8173:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
} | |
], | |
"id": 517, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"nodeType": "ElementaryTypeNameExpression", | |
"src": "8165:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_type$_t_address_$", | |
"typeString": "type(address)" | |
}, | |
"typeName": { | |
"id": 516, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "8165:7:1", | |
"typeDescriptions": {} | |
} | |
}, | |
"id": 519, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "typeConversion", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "8165:10:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
{ | |
"id": 520, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 496, | |
"src": "8177:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
{ | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
{ | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
], | |
"id": 514, | |
"name": "_update", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 458, | |
"src": "8148:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", | |
"typeString": "function (address,address,uint256)" | |
} | |
}, | |
"id": 521, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "8148:35:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_tuple$__$", | |
"typeString": "tuple()" | |
} | |
}, | |
"id": 522, | |
"nodeType": "ExpressionStatement", | |
"src": "8148:35:1" | |
} | |
] | |
}, | |
"documentation": { | |
"id": 492, | |
"nodeType": "StructuredDocumentation", | |
"src": "7672:307:1", | |
"text": " @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.\n Relies on the `_update` mechanism.\n Emits a {Transfer} event with `to` set to the zero address.\n NOTE: This function is not virtual, {_update} should be overridden instead" | |
}, | |
"id": 524, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "_burn", | |
"nameLocation": "7993:5:1", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 497, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 494, | |
"mutability": "mutable", | |
"name": "account", | |
"nameLocation": "8007:7:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 524, | |
"src": "7999:15:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 493, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "7999:7:1", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 496, | |
"mutability": "mutable", | |
"name": "value", | |
"nameLocation": "8024:5:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 524, | |
"src": "8016:13:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 495, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "8016:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "7998:32:1" | |
}, | |
"returnParameters": { | |
"id": 498, | |
"nodeType": "ParameterList", | |
"parameters": [], | |
"src": "8040:0:1" | |
}, | |
"scope": 651, | |
"src": "7984:206:1", | |
"stateMutability": "nonpayable", | |
"virtual": false, | |
"visibility": "internal" | |
}, | |
{ | |
"body": { | |
"id": 541, | |
"nodeType": "Block", | |
"src": "8800:54:1", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"id": 535, | |
"name": "owner", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 527, | |
"src": "8819:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
{ | |
"id": 536, | |
"name": "spender", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 529, | |
"src": "8826:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
{ | |
"id": 537, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 531, | |
"src": "8835:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
{ | |
"hexValue": "74727565", | |
"id": 538, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "bool", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "8842:4:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
}, | |
"value": "true" | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
{ | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
{ | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
{ | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
], | |
"id": 534, | |
"name": "_approve", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [ | |
542, | |
602 | |
], | |
"referencedDeclaration": 602, | |
"src": "8810:8:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$_t_bool_$returns$__$", | |
"typeString": "function (address,address,uint256,bool)" | |
} | |
}, | |
"id": 539, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "8810:37:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_tuple$__$", | |
"typeString": "tuple()" | |
} | |
}, | |
"id": 540, | |
"nodeType": "ExpressionStatement", | |
"src": "8810:37:1" | |
} | |
] | |
}, | |
"documentation": { | |
"id": 525, | |
"nodeType": "StructuredDocumentation", | |
"src": "8196:525:1", | |
"text": " @dev Sets `value` as the allowance of `spender` over the `owner` s tokens.\n This internal function is equivalent to `approve`, and can be used to\n e.g. set automatic allowances for certain subsystems, etc.\n Emits an {Approval} event.\n Requirements:\n - `owner` cannot be the zero address.\n - `spender` cannot be the zero address.\n Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument." | |
}, | |
"id": 542, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "_approve", | |
"nameLocation": "8735:8:1", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 532, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 527, | |
"mutability": "mutable", | |
"name": "owner", | |
"nameLocation": "8752:5:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 542, | |
"src": "8744:13:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 526, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "8744:7:1", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 529, | |
"mutability": "mutable", | |
"name": "spender", | |
"nameLocation": "8767:7:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 542, | |
"src": "8759:15:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 528, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "8759:7:1", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 531, | |
"mutability": "mutable", | |
"name": "value", | |
"nameLocation": "8784:5:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 542, | |
"src": "8776:13:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 530, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "8776:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "8743:47:1" | |
}, | |
"returnParameters": { | |
"id": 533, | |
"nodeType": "ParameterList", | |
"parameters": [], | |
"src": "8800:0:1" | |
}, | |
"scope": 651, | |
"src": "8726:128:1", | |
"stateMutability": "nonpayable", | |
"virtual": false, | |
"visibility": "internal" | |
}, | |
{ | |
"body": { | |
"id": 601, | |
"nodeType": "Block", | |
"src": "9799:334:1", | |
"statements": [ | |
{ | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"id": 559, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 554, | |
"name": "owner", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 545, | |
"src": "9813:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "==", | |
"rightExpression": { | |
"arguments": [ | |
{ | |
"hexValue": "30", | |
"id": 557, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "9830:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
} | |
], | |
"id": 556, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"nodeType": "ElementaryTypeNameExpression", | |
"src": "9822:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_type$_t_address_$", | |
"typeString": "type(address)" | |
}, | |
"typeName": { | |
"id": 555, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "9822:7:1", | |
"typeDescriptions": {} | |
} | |
}, | |
"id": 558, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "typeConversion", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "9822:10:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"src": "9813:19:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"id": 568, | |
"nodeType": "IfStatement", | |
"src": "9809:89:1", | |
"trueBody": { | |
"id": 567, | |
"nodeType": "Block", | |
"src": "9834:64:1", | |
"statements": [ | |
{ | |
"errorCall": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"hexValue": "30", | |
"id": 563, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "9884:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
} | |
], | |
"id": 562, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"nodeType": "ElementaryTypeNameExpression", | |
"src": "9876:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_type$_t_address_$", | |
"typeString": "type(address)" | |
}, | |
"typeName": { | |
"id": 561, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "9876:7:1", | |
"typeDescriptions": {} | |
} | |
}, | |
"id": 564, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "typeConversion", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "9876:10:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
], | |
"id": 560, | |
"name": "ERC20InvalidApprover", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 35, | |
"src": "9855:20:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_error_pure$_t_address_$returns$__$", | |
"typeString": "function (address) pure" | |
} | |
}, | |
"id": 565, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "9855:32:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_tuple$__$", | |
"typeString": "tuple()" | |
} | |
}, | |
"id": 566, | |
"nodeType": "RevertStatement", | |
"src": "9848:39:1" | |
} | |
] | |
} | |
}, | |
{ | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"id": 574, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 569, | |
"name": "spender", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 547, | |
"src": "9911:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "==", | |
"rightExpression": { | |
"arguments": [ | |
{ | |
"hexValue": "30", | |
"id": 572, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "9930:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
} | |
], | |
"id": 571, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"nodeType": "ElementaryTypeNameExpression", | |
"src": "9922:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_type$_t_address_$", | |
"typeString": "type(address)" | |
}, | |
"typeName": { | |
"id": 570, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "9922:7:1", | |
"typeDescriptions": {} | |
} | |
}, | |
"id": 573, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "typeConversion", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "9922:10:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"src": "9911:21:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"id": 583, | |
"nodeType": "IfStatement", | |
"src": "9907:90:1", | |
"trueBody": { | |
"id": 582, | |
"nodeType": "Block", | |
"src": "9934:63:1", | |
"statements": [ | |
{ | |
"errorCall": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"hexValue": "30", | |
"id": 578, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "9983:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
} | |
], | |
"id": 577, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"nodeType": "ElementaryTypeNameExpression", | |
"src": "9975:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_type$_t_address_$", | |
"typeString": "type(address)" | |
}, | |
"typeName": { | |
"id": 576, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "9975:7:1", | |
"typeDescriptions": {} | |
} | |
}, | |
"id": 579, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "typeConversion", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "9975:10:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
], | |
"id": 575, | |
"name": "ERC20InvalidSpender", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 40, | |
"src": "9955:19:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_error_pure$_t_address_$returns$__$", | |
"typeString": "function (address) pure" | |
} | |
}, | |
"id": 580, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "9955:31:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_tuple$__$", | |
"typeString": "tuple()" | |
} | |
}, | |
"id": 581, | |
"nodeType": "RevertStatement", | |
"src": "9948:38:1" | |
} | |
] | |
} | |
}, | |
{ | |
"expression": { | |
"id": 590, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"baseExpression": { | |
"baseExpression": { | |
"id": 584, | |
"name": "_allowances", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 165, | |
"src": "10006:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", | |
"typeString": "mapping(address => mapping(address => uint256))" | |
} | |
}, | |
"id": 587, | |
"indexExpression": { | |
"id": 585, | |
"name": "owner", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 545, | |
"src": "10018:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"isConstant": false, | |
"isLValue": true, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "IndexAccess", | |
"src": "10006:18:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", | |
"typeString": "mapping(address => uint256)" | |
} | |
}, | |
"id": 588, | |
"indexExpression": { | |
"id": 586, | |
"name": "spender", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 547, | |
"src": "10025:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"isConstant": false, | |
"isLValue": true, | |
"isPure": false, | |
"lValueRequested": true, | |
"nodeType": "IndexAccess", | |
"src": "10006:27:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "=", | |
"rightHandSide": { | |
"id": 589, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 549, | |
"src": "10036:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "10006:35:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 591, | |
"nodeType": "ExpressionStatement", | |
"src": "10006:35:1" | |
}, | |
{ | |
"condition": { | |
"id": 592, | |
"name": "emitEvent", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 551, | |
"src": "10055:9:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"id": 600, | |
"nodeType": "IfStatement", | |
"src": "10051:76:1", | |
"trueBody": { | |
"id": 599, | |
"nodeType": "Block", | |
"src": "10066:61:1", | |
"statements": [ | |
{ | |
"eventCall": { | |
"arguments": [ | |
{ | |
"id": 594, | |
"name": "owner", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 545, | |
"src": "10094:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
{ | |
"id": 595, | |
"name": "spender", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 547, | |
"src": "10101:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
{ | |
"id": 596, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 549, | |
"src": "10110:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
{ | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
{ | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
], | |
"id": 593, | |
"name": "Approval", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 672, | |
"src": "10085:8:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", | |
"typeString": "function (address,address,uint256)" | |
} | |
}, | |
"id": 597, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "10085:31:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_tuple$__$", | |
"typeString": "tuple()" | |
} | |
}, | |
"id": 598, | |
"nodeType": "EmitStatement", | |
"src": "10080:36:1" | |
} | |
] | |
} | |
} | |
] | |
}, | |
"documentation": { | |
"id": 543, | |
"nodeType": "StructuredDocumentation", | |
"src": "8860:836:1", | |
"text": " @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.\n By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by\n `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any\n `Approval` event during `transferFrom` operations.\n Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to\n true using the following override:\n ```solidity\n function _approve(address owner, address spender, uint256 value, bool) internal virtual override {\n super._approve(owner, spender, value, true);\n }\n ```\n Requirements are the same as {_approve}." | |
}, | |
"id": 602, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "_approve", | |
"nameLocation": "9710:8:1", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 552, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 545, | |
"mutability": "mutable", | |
"name": "owner", | |
"nameLocation": "9727:5:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 602, | |
"src": "9719:13:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 544, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "9719:7:1", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 547, | |
"mutability": "mutable", | |
"name": "spender", | |
"nameLocation": "9742:7:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 602, | |
"src": "9734:15:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 546, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "9734:7:1", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 549, | |
"mutability": "mutable", | |
"name": "value", | |
"nameLocation": "9759:5:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 602, | |
"src": "9751:13:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 548, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "9751:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 551, | |
"mutability": "mutable", | |
"name": "emitEvent", | |
"nameLocation": "9771:9:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 602, | |
"src": "9766:14:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
}, | |
"typeName": { | |
"id": 550, | |
"name": "bool", | |
"nodeType": "ElementaryTypeName", | |
"src": "9766:4:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "9718:63:1" | |
}, | |
"returnParameters": { | |
"id": 553, | |
"nodeType": "ParameterList", | |
"parameters": [], | |
"src": "9799:0:1" | |
}, | |
"scope": 651, | |
"src": "9701:432:1", | |
"stateMutability": "nonpayable", | |
"virtual": true, | |
"visibility": "internal" | |
}, | |
{ | |
"body": { | |
"id": 649, | |
"nodeType": "Block", | |
"src": "10504:387:1", | |
"statements": [ | |
{ | |
"assignments": [ | |
613 | |
], | |
"declarations": [ | |
{ | |
"constant": false, | |
"id": 613, | |
"mutability": "mutable", | |
"name": "currentAllowance", | |
"nameLocation": "10522:16:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 649, | |
"src": "10514:24:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 612, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "10514:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"id": 618, | |
"initialValue": { | |
"arguments": [ | |
{ | |
"id": 615, | |
"name": "owner", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 605, | |
"src": "10551:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
{ | |
"id": 616, | |
"name": "spender", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 607, | |
"src": "10558:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
{ | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
], | |
"id": 614, | |
"name": "allowance", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 278, | |
"src": "10541:9:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_internal_view$_t_address_$_t_address_$returns$_t_uint256_$", | |
"typeString": "function (address,address) view returns (uint256)" | |
} | |
}, | |
"id": 617, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "10541:25:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "VariableDeclarationStatement", | |
"src": "10514:52:1" | |
}, | |
{ | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 625, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 619, | |
"name": "currentAllowance", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 613, | |
"src": "10580:16:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "<", | |
"rightExpression": { | |
"expression": { | |
"arguments": [ | |
{ | |
"id": 622, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"nodeType": "ElementaryTypeNameExpression", | |
"src": "10604:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_type$_t_uint256_$", | |
"typeString": "type(uint256)" | |
}, | |
"typeName": { | |
"id": 621, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "10604:7:1", | |
"typeDescriptions": {} | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_type$_t_uint256_$", | |
"typeString": "type(uint256)" | |
} | |
], | |
"id": 620, | |
"name": "type", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 4294967269, | |
"src": "10599:4:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_metatype_pure$__$returns$__$", | |
"typeString": "function () pure" | |
} | |
}, | |
"id": 623, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "10599:13:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_magic_meta_type_t_uint256", | |
"typeString": "type(uint256)" | |
} | |
}, | |
"id": 624, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"memberLocation": "10613:3:1", | |
"memberName": "max", | |
"nodeType": "MemberAccess", | |
"src": "10599:17:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "10580:36:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"id": 648, | |
"nodeType": "IfStatement", | |
"src": "10576:309:1", | |
"trueBody": { | |
"id": 647, | |
"nodeType": "Block", | |
"src": "10618:267:1", | |
"statements": [ | |
{ | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 628, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 626, | |
"name": "currentAllowance", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 613, | |
"src": "10636:16:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "<", | |
"rightExpression": { | |
"id": 627, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 609, | |
"src": "10655:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "10636:24:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"id": 636, | |
"nodeType": "IfStatement", | |
"src": "10632:130:1", | |
"trueBody": { | |
"id": 635, | |
"nodeType": "Block", | |
"src": "10662:100:1", | |
"statements": [ | |
{ | |
"errorCall": { | |
"arguments": [ | |
{ | |
"id": 630, | |
"name": "spender", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 607, | |
"src": "10714:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
{ | |
"id": 631, | |
"name": "currentAllowance", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 613, | |
"src": "10723:16:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
{ | |
"id": 632, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 609, | |
"src": "10741:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
{ | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
{ | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
], | |
"id": 629, | |
"name": "ERC20InsufficientAllowance", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 30, | |
"src": "10687:26:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_error_pure$_t_address_$_t_uint256_$_t_uint256_$returns$__$", | |
"typeString": "function (address,uint256,uint256) pure" | |
} | |
}, | |
"id": 633, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "10687:60:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_tuple$__$", | |
"typeString": "tuple()" | |
} | |
}, | |
"id": 634, | |
"nodeType": "RevertStatement", | |
"src": "10680:67:1" | |
} | |
] | |
} | |
}, | |
{ | |
"id": 646, | |
"nodeType": "UncheckedBlock", | |
"src": "10775:100:1", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"id": 638, | |
"name": "owner", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 605, | |
"src": "10812:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
{ | |
"id": 639, | |
"name": "spender", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 607, | |
"src": "10819:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
{ | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 642, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 640, | |
"name": "currentAllowance", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 613, | |
"src": "10828:16:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "-", | |
"rightExpression": { | |
"id": 641, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 609, | |
"src": "10847:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "10828:24:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
{ | |
"hexValue": "66616c7365", | |
"id": 643, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "bool", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "10854:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
}, | |
"value": "false" | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
{ | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
{ | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
{ | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
], | |
"id": 637, | |
"name": "_approve", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [ | |
542, | |
602 | |
], | |
"referencedDeclaration": 602, | |
"src": "10803:8:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$_t_bool_$returns$__$", | |
"typeString": "function (address,address,uint256,bool)" | |
} | |
}, | |
"id": 644, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "10803:57:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_tuple$__$", | |
"typeString": "tuple()" | |
} | |
}, | |
"id": 645, | |
"nodeType": "ExpressionStatement", | |
"src": "10803:57:1" | |
} | |
] | |
} | |
] | |
} | |
} | |
] | |
}, | |
"documentation": { | |
"id": 603, | |
"nodeType": "StructuredDocumentation", | |
"src": "10139:271:1", | |
"text": " @dev Updates `owner` s allowance for `spender` based on spent `value`.\n Does not update the allowance value in case of infinite allowance.\n Revert if not enough allowance is available.\n Does not emit an {Approval} event." | |
}, | |
"id": 650, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "_spendAllowance", | |
"nameLocation": "10424:15:1", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 610, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 605, | |
"mutability": "mutable", | |
"name": "owner", | |
"nameLocation": "10448:5:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 650, | |
"src": "10440:13:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 604, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "10440:7:1", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 607, | |
"mutability": "mutable", | |
"name": "spender", | |
"nameLocation": "10463:7:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 650, | |
"src": "10455:15:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 606, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "10455:7:1", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 609, | |
"mutability": "mutable", | |
"name": "value", | |
"nameLocation": "10480:5:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 650, | |
"src": "10472:13:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 608, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "10472:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "10439:47:1" | |
}, | |
"returnParameters": { | |
"id": 611, | |
"nodeType": "ParameterList", | |
"parameters": [], | |
"src": "10504:0:1" | |
}, | |
"scope": 651, | |
"src": "10415:476:1", | |
"stateMutability": "nonpayable", | |
"virtual": true, | |
"visibility": "internal" | |
} | |
], | |
"scope": 652, | |
"src": "1106:9787:1", | |
"usedErrors": [ | |
11, | |
16, | |
21, | |
30, | |
35, | |
40 | |
], | |
"usedEvents": [ | |
663, | |
672 | |
] | |
} | |
], | |
"src": "105:10789:1" | |
}, | |
"id": 1 | |
}, | |
".deps/npm/@openzeppelin/contracts/token/ERC20/IERC20.sol": { | |
"ast": { | |
"absolutePath": ".deps/npm/@openzeppelin/contracts/token/ERC20/IERC20.sol", | |
"exportedSymbols": { | |
"IERC20": [ | |
729 | |
] | |
}, | |
"id": 730, | |
"license": "MIT", | |
"nodeType": "SourceUnit", | |
"nodes": [ | |
{ | |
"id": 653, | |
"literals": [ | |
"solidity", | |
"^", | |
"0.8", | |
".20" | |
], | |
"nodeType": "PragmaDirective", | |
"src": "106:24:2" | |
}, | |
{ | |
"abstract": false, | |
"baseContracts": [], | |
"canonicalName": "IERC20", | |
"contractDependencies": [], | |
"contractKind": "interface", | |
"documentation": { | |
"id": 654, | |
"nodeType": "StructuredDocumentation", | |
"src": "132:71:2", | |
"text": " @dev Interface of the ERC-20 standard as defined in the ERC." | |
}, | |
"fullyImplemented": false, | |
"id": 729, | |
"linearizedBaseContracts": [ | |
729 | |
], | |
"name": "IERC20", | |
"nameLocation": "214:6:2", | |
"nodeType": "ContractDefinition", | |
"nodes": [ | |
{ | |
"anonymous": false, | |
"documentation": { | |
"id": 655, | |
"nodeType": "StructuredDocumentation", | |
"src": "227:158:2", | |
"text": " @dev Emitted when `value` tokens are moved from one account (`from`) to\n another (`to`).\n Note that `value` may be zero." | |
}, | |
"eventSelector": "ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", | |
"id": 663, | |
"name": "Transfer", | |
"nameLocation": "396:8:2", | |
"nodeType": "EventDefinition", | |
"parameters": { | |
"id": 662, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 657, | |
"indexed": true, | |
"mutability": "mutable", | |
"name": "from", | |
"nameLocation": "421:4:2", | |
"nodeType": "VariableDeclaration", | |
"scope": 663, | |
"src": "405:20:2", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 656, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "405:7:2", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 659, | |
"indexed": true, | |
"mutability": "mutable", | |
"name": "to", | |
"nameLocation": "443:2:2", | |
"nodeType": "VariableDeclaration", | |
"scope": 663, | |
"src": "427:18:2", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 658, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "427:7:2", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 661, | |
"indexed": false, | |
"mutability": "mutable", | |
"name": "value", | |
"nameLocation": "455:5:2", | |
"nodeType": "VariableDeclaration", | |
"scope": 663, | |
"src": "447:13:2", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 660, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "447:7:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "404:57:2" | |
}, | |
"src": "390:72:2" | |
}, | |
{ | |
"anonymous": false, | |
"documentation": { | |
"id": 664, | |
"nodeType": "StructuredDocumentation", | |
"src": "468:148:2", | |
"text": " @dev Emitted when the allowance of a `spender` for an `owner` is set by\n a call to {approve}. `value` is the new allowance." | |
}, | |
"eventSelector": "8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925", | |
"id": 672, | |
"name": "Approval", | |
"nameLocation": "627:8:2", | |
"nodeType": "EventDefinition", | |
"parameters": { | |
"id": 671, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 666, | |
"indexed": true, | |
"mutability": "mutable", | |
"name": "owner", | |
"nameLocation": "652:5:2", | |
"nodeType": "VariableDeclaration", | |
"scope": 672, | |
"src": "636:21:2", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 665, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "636:7:2", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 668, | |
"indexed": true, | |
"mutability": "mutable", | |
"name": "spender", | |
"nameLocation": "675:7:2", | |
"nodeType": "VariableDeclaration", | |
"scope": 672, | |
"src": "659:23:2", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 667, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "659:7:2", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 670, | |
"indexed": false, | |
"mutability": "mutable", | |
"name": "value", | |
"nameLocation": "692:5:2", | |
"nodeType": "VariableDeclaration", | |
"scope": 672, | |
"src": "684:13:2", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 669, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "684:7:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "635:63:2" | |
}, | |
"src": "621:78:2" | |
}, | |
{ | |
"documentation": { | |
"id": 673, | |
"nodeType": "StructuredDocumentation", | |
"src": "705:65:2", | |
"text": " @dev Returns the value of tokens in existence." | |
}, | |
"functionSelector": "18160ddd", | |
"id": 678, | |
"implemented": false, | |
"kind": "function", | |
"modifiers": [], | |
"name": "totalSupply", | |
"nameLocation": "784:11:2", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 674, | |
"nodeType": "ParameterList", | |
"parameters": [], | |
"src": "795:2:2" | |
}, | |
"returnParameters": { | |
"id": 677, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 676, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 678, | |
"src": "821:7:2", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 675, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "821:7:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "820:9:2" | |
}, | |
"scope": 729, | |
"src": "775:55:2", | |
"stateMutability": "view", | |
"virtual": false, | |
"visibility": "external" | |
}, | |
{ | |
"documentation": { | |
"id": 679, | |
"nodeType": "StructuredDocumentation", | |
"src": "836:71:2", | |
"text": " @dev Returns the value of tokens owned by `account`." | |
}, | |
"functionSelector": "70a08231", | |
"id": 686, | |
"implemented": false, | |
"kind": "function", | |
"modifiers": [], | |
"name": "balanceOf", | |
"nameLocation": "921:9:2", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 682, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 681, | |
"mutability": "mutable", | |
"name": "account", | |
"nameLocation": "939:7:2", | |
"nodeType": "VariableDeclaration", | |
"scope": 686, | |
"src": "931:15:2", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 680, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "931:7:2", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "930:17:2" | |
}, | |
"returnParameters": { | |
"id": 685, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 684, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 686, | |
"src": "971:7:2", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 683, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "971:7:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "970:9:2" | |
}, | |
"scope": 729, | |
"src": "912:68:2", | |
"stateMutability": "view", | |
"virtual": false, | |
"visibility": "external" | |
}, | |
{ | |
"documentation": { | |
"id": 687, | |
"nodeType": "StructuredDocumentation", | |
"src": "986:213:2", | |
"text": " @dev Moves a `value` amount of tokens from the caller's account to `to`.\n Returns a boolean value indicating whether the operation succeeded.\n Emits a {Transfer} event." | |
}, | |
"functionSelector": "a9059cbb", | |
"id": 696, | |
"implemented": false, | |
"kind": "function", | |
"modifiers": [], | |
"name": "transfer", | |
"nameLocation": "1213:8:2", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 692, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 689, | |
"mutability": "mutable", | |
"name": "to", | |
"nameLocation": "1230:2:2", | |
"nodeType": "VariableDeclaration", | |
"scope": 696, | |
"src": "1222:10:2", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 688, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "1222:7:2", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 691, | |
"mutability": "mutable", | |
"name": "value", | |
"nameLocation": "1242:5:2", | |
"nodeType": "VariableDeclaration", | |
"scope": 696, | |
"src": "1234:13:2", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 690, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "1234:7:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "1221:27:2" | |
}, | |
"returnParameters": { | |
"id": 695, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 694, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 696, | |
"src": "1267:4:2", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
}, | |
"typeName": { | |
"id": 693, | |
"name": "bool", | |
"nodeType": "ElementaryTypeName", | |
"src": "1267:4:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "1266:6:2" | |
}, | |
"scope": 729, | |
"src": "1204:69:2", | |
"stateMutability": "nonpayable", | |
"virtual": false, | |
"visibility": "external" | |
}, | |
{ | |
"documentation": { | |
"id": 697, | |
"nodeType": "StructuredDocumentation", | |
"src": "1279:264:2", | |
"text": " @dev Returns the remaining number of tokens that `spender` will be\n allowed to spend on behalf of `owner` through {transferFrom}. This is\n zero by default.\n This value changes when {approve} or {transferFrom} are called." | |
}, | |
"functionSelector": "dd62ed3e", | |
"id": 706, | |
"implemented": false, | |
"kind": "function", | |
"modifiers": [], | |
"name": "allowance", | |
"nameLocation": "1557:9:2", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 702, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 699, | |
"mutability": "mutable", | |
"name": "owner", | |
"nameLocation": "1575:5:2", | |
"nodeType": "VariableDeclaration", | |
"scope": 706, | |
"src": "1567:13:2", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 698, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "1567:7:2", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 701, | |
"mutability": "mutable", | |
"name": "spender", | |
"nameLocation": "1590:7:2", | |
"nodeType": "VariableDeclaration", | |
"scope": 706, | |
"src": "1582:15:2", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 700, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "1582:7:2", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "1566:32:2" | |
}, | |
"returnParameters": { | |
"id": 705, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 704, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 706, | |
"src": "1622:7:2", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 703, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "1622:7:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "1621:9:2" | |
}, | |
"scope": 729, | |
"src": "1548:83:2", | |
"stateMutability": "view", | |
"virtual": false, | |
"visibility": "external" | |
}, | |
{ | |
"documentation": { | |
"id": 707, | |
"nodeType": "StructuredDocumentation", | |
"src": "1637:667:2", | |
"text": " @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n caller's tokens.\n Returns a boolean value indicating whether the operation succeeded.\n IMPORTANT: Beware that changing an allowance with this method brings the risk\n that someone may use both the old and the new allowance by unfortunate\n transaction ordering. One possible solution to mitigate this race\n condition is to first reduce the spender's allowance to 0 and set the\n desired value afterwards:\n https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n Emits an {Approval} event." | |
}, | |
"functionSelector": "095ea7b3", | |
"id": 716, | |
"implemented": false, | |
"kind": "function", | |
"modifiers": [], | |
"name": "approve", | |
"nameLocation": "2318:7:2", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 712, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 709, | |
"mutability": "mutable", | |
"name": "spender", | |
"nameLocation": "2334:7:2", | |
"nodeType": "VariableDeclaration", | |
"scope": 716, | |
"src": "2326:15:2", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 708, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "2326:7:2", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 711, | |
"mutability": "mutable", | |
"name": "value", | |
"nameLocation": "2351:5:2", | |
"nodeType": "VariableDeclaration", | |
"scope": 716, | |
"src": "2343:13:2", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 710, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "2343:7:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "2325:32:2" | |
}, | |
"returnParameters": { | |
"id": 715, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 714, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 716, | |
"src": "2376:4:2", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
}, | |
"typeName": { | |
"id": 713, | |
"name": "bool", | |
"nodeType": "ElementaryTypeName", | |
"src": "2376:4:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "2375:6:2" | |
}, | |
"scope": 729, | |
"src": "2309:73:2", | |
"stateMutability": "nonpayable", | |
"virtual": false, | |
"visibility": "external" | |
}, | |
{ | |
"documentation": { | |
"id": 717, | |
"nodeType": "StructuredDocumentation", | |
"src": "2388:297:2", | |
"text": " @dev Moves a `value` amount of tokens from `from` to `to` using the\n allowance mechanism. `value` is then deducted from the caller's\n allowance.\n Returns a boolean value indicating whether the operation succeeded.\n Emits a {Transfer} event." | |
}, | |
"functionSelector": "23b872dd", | |
"id": 728, | |
"implemented": false, | |
"kind": "function", | |
"modifiers": [], | |
"name": "transferFrom", | |
"nameLocation": "2699:12:2", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 724, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 719, | |
"mutability": "mutable", | |
"name": "from", | |
"nameLocation": "2720:4:2", | |
"nodeType": "VariableDeclaration", | |
"scope": 728, | |
"src": "2712:12:2", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 718, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "2712:7:2", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 721, | |
"mutability": "mutable", | |
"name": "to", | |
"nameLocation": "2734:2:2", | |
"nodeType": "VariableDeclaration", | |
"scope": 728, | |
"src": "2726:10:2", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 720, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "2726:7:2", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 723, | |
"mutability": "mutable", | |
"name": "value", | |
"nameLocation": "2746:5:2", | |
"nodeType": "VariableDeclaration", | |
"scope": 728, | |
"src": "2738:13:2", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 722, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "2738:7:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "2711:41:2" | |
}, | |
"returnParameters": { | |
"id": 727, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 726, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 728, | |
"src": "2771:4:2", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
}, | |
"typeName": { | |
"id": 725, | |
"name": "bool", | |
"nodeType": "ElementaryTypeName", | |
"src": "2771:4:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "2770:6:2" | |
}, | |
"scope": 729, | |
"src": "2690:87:2", | |
"stateMutability": "nonpayable", | |
"virtual": false, | |
"visibility": "external" | |
} | |
], | |
"scope": 730, | |
"src": "204:2575:2", | |
"usedErrors": [], | |
"usedEvents": [ | |
663, | |
672 | |
] | |
} | |
], | |
"src": "106:2674:2" | |
}, | |
"id": 2 | |
}, | |
".deps/npm/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol": { | |
"ast": { | |
"absolutePath": ".deps/npm/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol", | |
"exportedSymbols": { | |
"IERC20": [ | |
729 | |
], | |
"IERC20Metadata": [ | |
755 | |
] | |
}, | |
"id": 756, | |
"license": "MIT", | |
"nodeType": "SourceUnit", | |
"nodes": [ | |
{ | |
"id": 731, | |
"literals": [ | |
"solidity", | |
"^", | |
"0.8", | |
".20" | |
], | |
"nodeType": "PragmaDirective", | |
"src": "125:24:3" | |
}, | |
{ | |
"absolutePath": ".deps/npm/@openzeppelin/contracts/token/ERC20/IERC20.sol", | |
"file": "../IERC20.sol", | |
"id": 733, | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "ImportDirective", | |
"scope": 756, | |
"sourceUnit": 730, | |
"src": "151:37:3", | |
"symbolAliases": [ | |
{ | |
"foreign": { | |
"id": 732, | |
"name": "IERC20", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 729, | |
"src": "159:6:3", | |
"typeDescriptions": {} | |
}, | |
"nameLocation": "-1:-1:-1" | |
} | |
], | |
"unitAlias": "" | |
}, | |
{ | |
"abstract": false, | |
"baseContracts": [ | |
{ | |
"baseName": { | |
"id": 735, | |
"name": "IERC20", | |
"nameLocations": [ | |
"306:6:3" | |
], | |
"nodeType": "IdentifierPath", | |
"referencedDeclaration": 729, | |
"src": "306:6:3" | |
}, | |
"id": 736, | |
"nodeType": "InheritanceSpecifier", | |
"src": "306:6:3" | |
} | |
], | |
"canonicalName": "IERC20Metadata", | |
"contractDependencies": [], | |
"contractKind": "interface", | |
"documentation": { | |
"id": 734, | |
"nodeType": "StructuredDocumentation", | |
"src": "190:87:3", | |
"text": " @dev Interface for the optional metadata functions from the ERC-20 standard." | |
}, | |
"fullyImplemented": false, | |
"id": 755, | |
"linearizedBaseContracts": [ | |
755, | |
729 | |
], | |
"name": "IERC20Metadata", | |
"nameLocation": "288:14:3", | |
"nodeType": "ContractDefinition", | |
"nodes": [ | |
{ | |
"documentation": { | |
"id": 737, | |
"nodeType": "StructuredDocumentation", | |
"src": "319:54:3", | |
"text": " @dev Returns the name of the token." | |
}, | |
"functionSelector": "06fdde03", | |
"id": 742, | |
"implemented": false, | |
"kind": "function", | |
"modifiers": [], | |
"name": "name", | |
"nameLocation": "387:4:3", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 738, | |
"nodeType": "ParameterList", | |
"parameters": [], | |
"src": "391:2:3" | |
}, | |
"returnParameters": { | |
"id": 741, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 740, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 742, | |
"src": "417:13:3", | |
"stateVariable": false, | |
"storageLocation": "memory", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_memory_ptr", | |
"typeString": "string" | |
}, | |
"typeName": { | |
"id": 739, | |
"name": "string", | |
"nodeType": "ElementaryTypeName", | |
"src": "417:6:3", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_storage_ptr", | |
"typeString": "string" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "416:15:3" | |
}, | |
"scope": 755, | |
"src": "378:54:3", | |
"stateMutability": "view", | |
"virtual": false, | |
"visibility": "external" | |
}, | |
{ | |
"documentation": { | |
"id": 743, | |
"nodeType": "StructuredDocumentation", | |
"src": "438:56:3", | |
"text": " @dev Returns the symbol of the token." | |
}, | |
"functionSelector": "95d89b41", | |
"id": 748, | |
"implemented": false, | |
"kind": "function", | |
"modifiers": [], | |
"name": "symbol", | |
"nameLocation": "508:6:3", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 744, | |
"nodeType": "ParameterList", | |
"parameters": [], | |
"src": "514:2:3" | |
}, | |
"returnParameters": { | |
"id": 747, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 746, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 748, | |
"src": "540:13:3", | |
"stateVariable": false, | |
"storageLocation": "memory", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_memory_ptr", | |
"typeString": "string" | |
}, | |
"typeName": { | |
"id": 745, | |
"name": "string", | |
"nodeType": "ElementaryTypeName", | |
"src": "540:6:3", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_storage_ptr", | |
"typeString": "string" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "539:15:3" | |
}, | |
"scope": 755, | |
"src": "499:56:3", | |
"stateMutability": "view", | |
"virtual": false, | |
"visibility": "external" | |
}, | |
{ | |
"documentation": { | |
"id": 749, | |
"nodeType": "StructuredDocumentation", | |
"src": "561:65:3", | |
"text": " @dev Returns the decimals places of the token." | |
}, | |
"functionSelector": "313ce567", | |
"id": 754, | |
"implemented": false, | |
"kind": "function", | |
"modifiers": [], | |
"name": "decimals", | |
"nameLocation": "640:8:3", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 750, | |
"nodeType": "ParameterList", | |
"parameters": [], | |
"src": "648:2:3" | |
}, | |
"returnParameters": { | |
"id": 753, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 752, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 754, | |
"src": "674:5:3", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint8", | |
"typeString": "uint8" | |
}, | |
"typeName": { | |
"id": 751, | |
"name": "uint8", | |
"nodeType": "ElementaryTypeName", | |
"src": "674:5:3", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint8", | |
"typeString": "uint8" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "673:7:3" | |
}, | |
"scope": 755, | |
"src": "631:50:3", | |
"stateMutability": "view", | |
"virtual": false, | |
"visibility": "external" | |
} | |
], | |
"scope": 756, | |
"src": "278:405:3", | |
"usedErrors": [], | |
"usedEvents": [ | |
663, | |
672 | |
] | |
} | |
], | |
"src": "125:559:3" | |
}, | |
"id": 3 | |
}, | |
".deps/npm/@openzeppelin/contracts/utils/Context.sol": { | |
"ast": { | |
"absolutePath": ".deps/npm/@openzeppelin/contracts/utils/Context.sol", | |
"exportedSymbols": { | |
"Context": [ | |
785 | |
] | |
}, | |
"id": 786, | |
"license": "MIT", | |
"nodeType": "SourceUnit", | |
"nodes": [ | |
{ | |
"id": 757, | |
"literals": [ | |
"solidity", | |
"^", | |
"0.8", | |
".20" | |
], | |
"nodeType": "PragmaDirective", | |
"src": "101:24:4" | |
}, | |
{ | |
"abstract": true, | |
"baseContracts": [], | |
"canonicalName": "Context", | |
"contractDependencies": [], | |
"contractKind": "contract", | |
"documentation": { | |
"id": 758, | |
"nodeType": "StructuredDocumentation", | |
"src": "127:496:4", | |
"text": " @dev Provides information about the current execution context, including the\n sender of the transaction and its data. While these are generally available\n via msg.sender and msg.data, they should not be accessed in such a direct\n manner, since when dealing with meta-transactions the account sending and\n paying for execution may not be the actual sender (as far as an application\n is concerned).\n This contract is only required for intermediate, library-like contracts." | |
}, | |
"fullyImplemented": true, | |
"id": 785, | |
"linearizedBaseContracts": [ | |
785 | |
], | |
"name": "Context", | |
"nameLocation": "642:7:4", | |
"nodeType": "ContractDefinition", | |
"nodes": [ | |
{ | |
"body": { | |
"id": 766, | |
"nodeType": "Block", | |
"src": "718:34:4", | |
"statements": [ | |
{ | |
"expression": { | |
"expression": { | |
"id": 763, | |
"name": "msg", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 4294967281, | |
"src": "735:3:4", | |
"typeDescriptions": { | |
"typeIdentifier": "t_magic_message", | |
"typeString": "msg" | |
} | |
}, | |
"id": 764, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"memberLocation": "739:6:4", | |
"memberName": "sender", | |
"nodeType": "MemberAccess", | |
"src": "735:10:4", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"functionReturnParameters": 762, | |
"id": 765, | |
"nodeType": "Return", | |
"src": "728:17:4" | |
} | |
] | |
}, | |
"id": 767, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "_msgSender", | |
"nameLocation": "665:10:4", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 759, | |
"nodeType": "ParameterList", | |
"parameters": [], | |
"src": "675:2:4" | |
}, | |
"returnParameters": { | |
"id": 762, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 761, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 767, | |
"src": "709:7:4", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 760, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "709:7:4", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "708:9:4" | |
}, | |
"scope": 785, | |
"src": "656:96:4", | |
"stateMutability": "view", | |
"virtual": true, | |
"visibility": "internal" | |
}, | |
{ | |
"body": { | |
"id": 775, | |
"nodeType": "Block", | |
"src": "825:32:4", | |
"statements": [ | |
{ | |
"expression": { | |
"expression": { | |
"id": 772, | |
"name": "msg", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 4294967281, | |
"src": "842:3:4", | |
"typeDescriptions": { | |
"typeIdentifier": "t_magic_message", | |
"typeString": "msg" | |
} | |
}, | |
"id": 773, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"memberLocation": "846:4:4", | |
"memberName": "data", | |
"nodeType": "MemberAccess", | |
"src": "842:8:4", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bytes_calldata_ptr", | |
"typeString": "bytes calldata" | |
} | |
}, | |
"functionReturnParameters": 771, | |
"id": 774, | |
"nodeType": "Return", | |
"src": "835:15:4" | |
} | |
] | |
}, | |
"id": 776, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "_msgData", | |
"nameLocation": "767:8:4", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 768, | |
"nodeType": "ParameterList", | |
"parameters": [], | |
"src": "775:2:4" | |
}, | |
"returnParameters": { | |
"id": 771, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 770, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 776, | |
"src": "809:14:4", | |
"stateVariable": false, | |
"storageLocation": "calldata", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bytes_calldata_ptr", | |
"typeString": "bytes" | |
}, | |
"typeName": { | |
"id": 769, | |
"name": "bytes", | |
"nodeType": "ElementaryTypeName", | |
"src": "809:5:4", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bytes_storage_ptr", | |
"typeString": "bytes" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "808:16:4" | |
}, | |
"scope": 785, | |
"src": "758:99:4", | |
"stateMutability": "view", | |
"virtual": true, | |
"visibility": "internal" | |
}, | |
{ | |
"body": { | |
"id": 783, | |
"nodeType": "Block", | |
"src": "935:25:4", | |
"statements": [ | |
{ | |
"expression": { | |
"hexValue": "30", | |
"id": 781, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "952:1:4", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
}, | |
"functionReturnParameters": 780, | |
"id": 782, | |
"nodeType": "Return", | |
"src": "945:8:4" | |
} | |
] | |
}, | |
"id": 784, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "_contextSuffixLength", | |
"nameLocation": "872:20:4", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 777, | |
"nodeType": "ParameterList", | |
"parameters": [], | |
"src": "892:2:4" | |
}, | |
"returnParameters": { | |
"id": 780, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 779, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 784, | |
"src": "926:7:4", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 778, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "926:7:4", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "925:9:4" | |
}, | |
"scope": 785, | |
"src": "863:97:4", | |
"stateMutability": "view", | |
"virtual": true, | |
"visibility": "internal" | |
} | |
], | |
"scope": 786, | |
"src": "624:338:4", | |
"usedErrors": [], | |
"usedEvents": [] | |
} | |
], | |
"src": "101:862:4" | |
}, | |
"id": 4 | |
} | |
} | |
} | |
} |
{ | |
"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": {}, | |
"generatedSources": [], | |
"linkReferences": {}, | |
"object": "", | |
"opcodes": "", | |
"sourceMap": "" | |
}, | |
"deployedBytecode": { | |
"functionDebugData": {}, | |
"generatedSources": [], | |
"immutableReferences": {}, | |
"linkReferences": {}, | |
"object": "", | |
"opcodes": "", | |
"sourceMap": "" | |
}, | |
"gasEstimates": null, | |
"methodIdentifiers": { | |
"allowance(address,address)": "dd62ed3e", | |
"approve(address,uint256)": "095ea7b3", | |
"balanceOf(address)": "70a08231", | |
"decimals()": "313ce567", | |
"name()": "06fdde03", | |
"symbol()": "95d89b41", | |
"totalSupply()": "18160ddd", | |
"transfer(address,uint256)": "a9059cbb", | |
"transferFrom(address,address,uint256)": "23b872dd" | |
} | |
}, | |
"abi": [ | |
{ | |
"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" | |
}, | |
{ | |
"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": "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": "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": "value", | |
"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": [], | |
"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": "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": "value", | |
"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": "value", | |
"type": "uint256" | |
} | |
], | |
"name": "transferFrom", | |
"outputs": [ | |
{ | |
"internalType": "bool", | |
"name": "", | |
"type": "bool" | |
} | |
], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
} | |
] | |
} |
{ | |
"compiler": { | |
"version": "0.8.20+commit.a1b79de6" | |
}, | |
"language": "Solidity", | |
"output": { | |
"abi": [ | |
{ | |
"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" | |
}, | |
{ | |
"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": "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": "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": "value", | |
"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": [], | |
"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": "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": "value", | |
"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": "value", | |
"type": "uint256" | |
} | |
], | |
"name": "transferFrom", | |
"outputs": [ | |
{ | |
"internalType": "bool", | |
"name": "", | |
"type": "bool" | |
} | |
], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
} | |
], | |
"devdoc": { | |
"details": "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.", | |
"errors": { | |
"ERC20InsufficientAllowance(address,uint256,uint256)": [ | |
{ | |
"details": "Indicates a failure with the `spender`’s `allowance`. Used in transfers.", | |
"params": { | |
"allowance": "Amount of tokens a `spender` is allowed to operate with.", | |
"needed": "Minimum amount required to perform a transfer.", | |
"spender": "Address that may be allowed to operate on tokens without being their owner." | |
} | |
} | |
], | |
"ERC20InsufficientBalance(address,uint256,uint256)": [ | |
{ | |
"details": "Indicates an error related to the current `balance` of a `sender`. Used in transfers.", | |
"params": { | |
"balance": "Current balance for the interacting account.", | |
"needed": "Minimum amount required to perform a transfer.", | |
"sender": "Address whose tokens are being transferred." | |
} | |
} | |
], | |
"ERC20InvalidApprover(address)": [ | |
{ | |
"details": "Indicates a failure with the `approver` of a token to be approved. Used in approvals.", | |
"params": { | |
"approver": "Address initiating an approval operation." | |
} | |
} | |
], | |
"ERC20InvalidReceiver(address)": [ | |
{ | |
"details": "Indicates a failure with the token `receiver`. Used in transfers.", | |
"params": { | |
"receiver": "Address to which tokens are being transferred." | |
} | |
} | |
], | |
"ERC20InvalidSender(address)": [ | |
{ | |
"details": "Indicates a failure with the token `sender`. Used in transfers.", | |
"params": { | |
"sender": "Address whose tokens are being transferred." | |
} | |
} | |
], | |
"ERC20InvalidSpender(address)": [ | |
{ | |
"details": "Indicates a failure with the `spender` to be approved. Used in approvals.", | |
"params": { | |
"spender": "Address that may be allowed to operate on tokens without being their owner." | |
} | |
} | |
] | |
}, | |
"events": { | |
"Approval(address,address,uint256)": { | |
"details": "Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance." | |
}, | |
"Transfer(address,address,uint256)": { | |
"details": "Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero." | |
} | |
}, | |
"kind": "dev", | |
"methods": { | |
"allowance(address,address)": { | |
"details": "See {IERC20-allowance}." | |
}, | |
"approve(address,uint256)": { | |
"details": "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." | |
}, | |
"balanceOf(address)": { | |
"details": "See {IERC20-balanceOf}." | |
}, | |
"constructor": { | |
"details": "Sets the values for {name} and {symbol}. All two of these values are immutable: they can only be set once during construction." | |
}, | |
"decimals()": { | |
"details": "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}." | |
}, | |
"name()": { | |
"details": "Returns the name of the token." | |
}, | |
"symbol()": { | |
"details": "Returns the symbol of the token, usually a shorter version of the name." | |
}, | |
"totalSupply()": { | |
"details": "See {IERC20-totalSupply}." | |
}, | |
"transfer(address,uint256)": { | |
"details": "See {IERC20-transfer}. Requirements: - `to` cannot be the zero address. - the caller must have a balance of at least `value`." | |
}, | |
"transferFrom(address,address,uint256)": { | |
"details": "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`." | |
} | |
}, | |
"version": 1 | |
}, | |
"userdoc": { | |
"kind": "user", | |
"methods": {}, | |
"version": 1 | |
} | |
}, | |
"settings": { | |
"compilationTarget": { | |
".deps/npm/@openzeppelin/contracts/token/ERC20/ERC20.sol": "ERC20" | |
}, | |
"evmVersion": "shanghai", | |
"libraries": {}, | |
"metadata": { | |
"bytecodeHash": "ipfs" | |
}, | |
"optimizer": { | |
"enabled": false, | |
"runs": 200 | |
}, | |
"remappings": [] | |
}, | |
"sources": { | |
".deps/npm/@openzeppelin/contracts/interfaces/draft-IERC6093.sol": { | |
"keccak256": "0x880da465c203cec76b10d72dbd87c80f387df4102274f23eea1f9c9b0918792b", | |
"license": "MIT", | |
"urls": [ | |
"bzz-raw://399594cd8bb0143bc9e55e0f1d071d0d8c850a394fb7a319d50edd55d9ed822b", | |
"dweb:/ipfs/QmbPZzgtT6LEm9CMqWfagQFwETbV1ztpECBB1DtQHrKiRz" | |
] | |
}, | |
".deps/npm/@openzeppelin/contracts/token/ERC20/ERC20.sol": { | |
"keccak256": "0x6ef9389a2c07bc40d8a7ba48914724ab2c108fac391ce12314f01321813e6368", | |
"license": "MIT", | |
"urls": [ | |
"bzz-raw://b7a5cb39b1e6df68f4dd9a5e76e853d745a74ffb3dfd7df4ae4d2ace6992a171", | |
"dweb:/ipfs/QmPbzKR19rdM8X3PLQjsmHRepUKhvoZnedSR63XyGtXZib" | |
] | |
}, | |
".deps/npm/@openzeppelin/contracts/token/ERC20/IERC20.sol": { | |
"keccak256": "0xe06a3f08a987af6ad2e1c1e774405d4fe08f1694b67517438b467cecf0da0ef7", | |
"license": "MIT", | |
"urls": [ | |
"bzz-raw://df6f0c459663c9858b6cba2cda1d14a7d05a985bed6d2de72bd8e78c25ee79db", | |
"dweb:/ipfs/QmeTTxZ7qVk9rjEv2R4CpCwdf8UMCcRqDNMvzNxHc3Fnn9" | |
] | |
}, | |
".deps/npm/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol": { | |
"keccak256": "0x70f2f713b13b7ce4610bcd0ac9fec0f3cc43693b043abcb8dc40a42a726eb330", | |
"license": "MIT", | |
"urls": [ | |
"bzz-raw://c13d13304ac79a83ab1c30168967d19e2203342ebbd6a9bbce4db7550522dcbf", | |
"dweb:/ipfs/QmeN5jKMN2vw5bhacr6tkg78afbTTZUeaacNHqjWt4Ew1r" | |
] | |
}, | |
".deps/npm/@openzeppelin/contracts/utils/Context.sol": { | |
"keccak256": "0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2", | |
"license": "MIT", | |
"urls": [ | |
"bzz-raw://6a708e8a5bdb1011c2c381c9a5cfd8a9a956d7d0a9dc1bd8bcdaf52f76ef2f12", | |
"dweb:/ipfs/Qmax9WHBnVsZP46ZxEMNRQpLQnrdE4dK8LehML1Py8FowF" | |
] | |
} | |
}, | |
"version": 1 | |
} |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts (last updated v5.2.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}. | |
* | |
* 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 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 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/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 | |
pragma solidity >=0.4.22 <0.9.0; | |
library console { | |
address constant CONSOLE_ADDRESS = | |
0x000000000000000000636F6e736F6c652e6c6f67; | |
function _sendLogPayloadImplementation(bytes memory payload) internal view { | |
address consoleAddress = CONSOLE_ADDRESS; | |
/// @solidity memory-safe-assembly | |
assembly { | |
pop( | |
staticcall( | |
gas(), | |
consoleAddress, | |
add(payload, 32), | |
mload(payload), | |
0, | |
0 | |
) | |
) | |
} | |
} | |
function _castToPure( | |
function(bytes memory) internal view fnIn | |
) internal pure returns (function(bytes memory) pure fnOut) { | |
assembly { | |
fnOut := fnIn | |
} | |
} | |
function _sendLogPayload(bytes memory payload) internal pure { | |
_castToPure(_sendLogPayloadImplementation)(payload); | |
} | |
function log() internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log()")); | |
} | |
function logInt(int256 p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(int256)", p0)); | |
} | |
function logUint(uint256 p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256)", p0)); | |
} | |
function logString(string memory p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string)", p0)); | |
} | |
function logBool(bool p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); | |
} | |
function logAddress(address p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address)", p0)); | |
} | |
function logBytes(bytes memory p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bytes)", p0)); | |
} | |
function logBytes1(bytes1 p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bytes1)", p0)); | |
} | |
function logBytes2(bytes2 p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bytes2)", p0)); | |
} | |
function logBytes3(bytes3 p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bytes3)", p0)); | |
} | |
function logBytes4(bytes4 p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bytes4)", p0)); | |
} | |
function logBytes5(bytes5 p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bytes5)", p0)); | |
} | |
function logBytes6(bytes6 p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bytes6)", p0)); | |
} | |
function logBytes7(bytes7 p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bytes7)", p0)); | |
} | |
function logBytes8(bytes8 p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bytes8)", p0)); | |
} | |
function logBytes9(bytes9 p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bytes9)", p0)); | |
} | |
function logBytes10(bytes10 p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bytes10)", p0)); | |
} | |
function logBytes11(bytes11 p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bytes11)", p0)); | |
} | |
function logBytes12(bytes12 p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bytes12)", p0)); | |
} | |
function logBytes13(bytes13 p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bytes13)", p0)); | |
} | |
function logBytes14(bytes14 p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bytes14)", p0)); | |
} | |
function logBytes15(bytes15 p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bytes15)", p0)); | |
} | |
function logBytes16(bytes16 p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bytes16)", p0)); | |
} | |
function logBytes17(bytes17 p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bytes17)", p0)); | |
} | |
function logBytes18(bytes18 p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bytes18)", p0)); | |
} | |
function logBytes19(bytes19 p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bytes19)", p0)); | |
} | |
function logBytes20(bytes20 p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bytes20)", p0)); | |
} | |
function logBytes21(bytes21 p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bytes21)", p0)); | |
} | |
function logBytes22(bytes22 p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bytes22)", p0)); | |
} | |
function logBytes23(bytes23 p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bytes23)", p0)); | |
} | |
function logBytes24(bytes24 p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bytes24)", p0)); | |
} | |
function logBytes25(bytes25 p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bytes25)", p0)); | |
} | |
function logBytes26(bytes26 p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bytes26)", p0)); | |
} | |
function logBytes27(bytes27 p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bytes27)", p0)); | |
} | |
function logBytes28(bytes28 p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bytes28)", p0)); | |
} | |
function logBytes29(bytes29 p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bytes29)", p0)); | |
} | |
function logBytes30(bytes30 p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bytes30)", p0)); | |
} | |
function logBytes31(bytes31 p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bytes31)", p0)); | |
} | |
function logBytes32(bytes32 p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bytes32)", p0)); | |
} | |
function log(uint256 p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256)", p0)); | |
} | |
function log(string memory p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string)", p0)); | |
} | |
function log(bool p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); | |
} | |
function log(address p0) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address)", p0)); | |
} | |
function log(uint256 p0, uint256 p1) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256)", p0, p1)); | |
} | |
function log(uint256 p0, string memory p1) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,string)", p0, p1)); | |
} | |
function log(uint256 p0, bool p1) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool)", p0, p1)); | |
} | |
function log(uint256 p0, address p1) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,address)", p0, p1)); | |
} | |
function log(string memory p0, uint256 p1) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,uint256)", p0, p1)); | |
} | |
function log(string memory p0, string memory p1) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,string)", p0, p1)); | |
} | |
function log(string memory p0, bool p1) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,bool)", p0, p1)); | |
} | |
function log(string memory p0, address p1) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,address)", p0, p1)); | |
} | |
function log(bool p0, uint256 p1) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256)", p0, p1)); | |
} | |
function log(bool p0, string memory p1) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,string)", p0, p1)); | |
} | |
function log(bool p0, bool p1) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,bool)", p0, p1)); | |
} | |
function log(bool p0, address p1) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,address)", p0, p1)); | |
} | |
function log(address p0, uint256 p1) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,uint256)", p0, p1)); | |
} | |
function log(address p0, string memory p1) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,string)", p0, p1)); | |
} | |
function log(address p0, bool p1) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,bool)", p0, p1)); | |
} | |
function log(address p0, address p1) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,address)", p0, p1)); | |
} | |
function log(uint256 p0, uint256 p1, uint256 p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256)", p0, p1, p2)); | |
} | |
function log(uint256 p0, uint256 p1, string memory p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string)", p0, p1, p2)); | |
} | |
function log(uint256 p0, uint256 p1, bool p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool)", p0, p1, p2)); | |
} | |
function log(uint256 p0, uint256 p1, address p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address)", p0, p1, p2)); | |
} | |
function log(uint256 p0, string memory p1, uint256 p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256)", p0, p1, p2)); | |
} | |
function log(uint256 p0, string memory p1, string memory p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,string,string)", p0, p1, p2)); | |
} | |
function log(uint256 p0, string memory p1, bool p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool)", p0, p1, p2)); | |
} | |
function log(uint256 p0, string memory p1, address p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,string,address)", p0, p1, p2)); | |
} | |
function log(uint256 p0, bool p1, uint256 p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256)", p0, p1, p2)); | |
} | |
function log(uint256 p0, bool p1, string memory p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string)", p0, p1, p2)); | |
} | |
function log(uint256 p0, bool p1, bool p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool)", p0, p1, p2)); | |
} | |
function log(uint256 p0, bool p1, address p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address)", p0, p1, p2)); | |
} | |
function log(uint256 p0, address p1, uint256 p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256)", p0, p1, p2)); | |
} | |
function log(uint256 p0, address p1, string memory p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,address,string)", p0, p1, p2)); | |
} | |
function log(uint256 p0, address p1, bool p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool)", p0, p1, p2)); | |
} | |
function log(uint256 p0, address p1, address p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,address,address)", p0, p1, p2)); | |
} | |
function log(string memory p0, uint256 p1, uint256 p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256)", p0, p1, p2)); | |
} | |
function log(string memory p0, uint256 p1, string memory p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,uint256,string)", p0, p1, p2)); | |
} | |
function log(string memory p0, uint256 p1, bool p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool)", p0, p1, p2)); | |
} | |
function log(string memory p0, uint256 p1, address p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,uint256,address)", p0, p1, p2)); | |
} | |
function log(string memory p0, string memory p1, uint256 p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,string,uint256)", p0, p1, p2)); | |
} | |
function log(string memory p0, string memory p1, string memory p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,string,string)", p0, p1, p2)); | |
} | |
function log(string memory p0, string memory p1, bool p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,string,bool)", p0, p1, p2)); | |
} | |
function log(string memory p0, string memory p1, address p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,string,address)", p0, p1, p2)); | |
} | |
function log(string memory p0, bool p1, uint256 p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256)", p0, p1, p2)); | |
} | |
function log(string memory p0, bool p1, string memory p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,bool,string)", p0, p1, p2)); | |
} | |
function log(string memory p0, bool p1, bool p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool)", p0, p1, p2)); | |
} | |
function log(string memory p0, bool p1, address p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,bool,address)", p0, p1, p2)); | |
} | |
function log(string memory p0, address p1, uint256 p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,address,uint256)", p0, p1, p2)); | |
} | |
function log(string memory p0, address p1, string memory p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,address,string)", p0, p1, p2)); | |
} | |
function log(string memory p0, address p1, bool p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,address,bool)", p0, p1, p2)); | |
} | |
function log(string memory p0, address p1, address p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,address,address)", p0, p1, p2)); | |
} | |
function log(bool p0, uint256 p1, uint256 p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256)", p0, p1, p2)); | |
} | |
function log(bool p0, uint256 p1, string memory p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string)", p0, p1, p2)); | |
} | |
function log(bool p0, uint256 p1, bool p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool)", p0, p1, p2)); | |
} | |
function log(bool p0, uint256 p1, address p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address)", p0, p1, p2)); | |
} | |
function log(bool p0, string memory p1, uint256 p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256)", p0, p1, p2)); | |
} | |
function log(bool p0, string memory p1, string memory p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,string,string)", p0, p1, p2)); | |
} | |
function log(bool p0, string memory p1, bool p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool)", p0, p1, p2)); | |
} | |
function log(bool p0, string memory p1, address p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,string,address)", p0, p1, p2)); | |
} | |
function log(bool p0, bool p1, uint256 p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256)", p0, p1, p2)); | |
} | |
function log(bool p0, bool p1, string memory p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string)", p0, p1, p2)); | |
} | |
function log(bool p0, bool p1, bool p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool)", p0, p1, p2)); | |
} | |
function log(bool p0, bool p1, address p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address)", p0, p1, p2)); | |
} | |
function log(bool p0, address p1, uint256 p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256)", p0, p1, p2)); | |
} | |
function log(bool p0, address p1, string memory p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,address,string)", p0, p1, p2)); | |
} | |
function log(bool p0, address p1, bool p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool)", p0, p1, p2)); | |
} | |
function log(bool p0, address p1, address p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,address,address)", p0, p1, p2)); | |
} | |
function log(address p0, uint256 p1, uint256 p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256)", p0, p1, p2)); | |
} | |
function log(address p0, uint256 p1, string memory p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,uint256,string)", p0, p1, p2)); | |
} | |
function log(address p0, uint256 p1, bool p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool)", p0, p1, p2)); | |
} | |
function log(address p0, uint256 p1, address p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,uint256,address)", p0, p1, p2)); | |
} | |
function log(address p0, string memory p1, uint256 p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,string,uint256)", p0, p1, p2)); | |
} | |
function log(address p0, string memory p1, string memory p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,string,string)", p0, p1, p2)); | |
} | |
function log(address p0, string memory p1, bool p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,string,bool)", p0, p1, p2)); | |
} | |
function log(address p0, string memory p1, address p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,string,address)", p0, p1, p2)); | |
} | |
function log(address p0, bool p1, uint256 p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256)", p0, p1, p2)); | |
} | |
function log(address p0, bool p1, string memory p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,bool,string)", p0, p1, p2)); | |
} | |
function log(address p0, bool p1, bool p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool)", p0, p1, p2)); | |
} | |
function log(address p0, bool p1, address p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,bool,address)", p0, p1, p2)); | |
} | |
function log(address p0, address p1, uint256 p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,address,uint256)", p0, p1, p2)); | |
} | |
function log(address p0, address p1, string memory p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,address,string)", p0, p1, p2)); | |
} | |
function log(address p0, address p1, bool p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,address,bool)", p0, p1, p2)); | |
} | |
function log(address p0, address p1, address p2) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,address,address)", p0, p1, p2)); | |
} | |
function log(uint256 p0, uint256 p1, uint256 p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,uint256)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, uint256 p1, uint256 p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,string)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, uint256 p1, uint256 p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,bool)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, uint256 p1, uint256 p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,address)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, uint256 p1, string memory p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,uint256)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, uint256 p1, string memory p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,string)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, uint256 p1, string memory p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,bool)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, uint256 p1, string memory p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,address)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, uint256 p1, bool p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,uint256)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, uint256 p1, bool p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,string)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, uint256 p1, bool p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,bool)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, uint256 p1, bool p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,address)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, uint256 p1, address p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,uint256)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, uint256 p1, address p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,string)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, uint256 p1, address p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,bool)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, uint256 p1, address p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,address)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, string memory p1, uint256 p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,uint256)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, string memory p1, uint256 p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,string)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, string memory p1, uint256 p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,bool)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, string memory p1, uint256 p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,address)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, string memory p1, string memory p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,uint256)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, string memory p1, string memory p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,string)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, string memory p1, string memory p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,bool)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, string memory p1, string memory p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,address)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, string memory p1, bool p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,uint256)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, string memory p1, bool p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,string)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, string memory p1, bool p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,bool)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, string memory p1, bool p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,address)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, string memory p1, address p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,uint256)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, string memory p1, address p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,string)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, string memory p1, address p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,bool)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, string memory p1, address p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,address)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, bool p1, uint256 p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,uint256)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, bool p1, uint256 p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,string)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, bool p1, uint256 p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,bool)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, bool p1, uint256 p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,address)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, bool p1, string memory p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,uint256)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, bool p1, string memory p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,string)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, bool p1, string memory p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,bool)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, bool p1, string memory p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,address)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, bool p1, bool p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,uint256)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, bool p1, bool p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,string)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, bool p1, bool p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,bool)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, bool p1, bool p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,address)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, bool p1, address p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,uint256)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, bool p1, address p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,string)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, bool p1, address p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,bool)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, bool p1, address p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,address)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, address p1, uint256 p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,uint256)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, address p1, uint256 p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,string)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, address p1, uint256 p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,bool)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, address p1, uint256 p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,address)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, address p1, string memory p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,uint256)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, address p1, string memory p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,string)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, address p1, string memory p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,bool)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, address p1, string memory p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,address)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, address p1, bool p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,uint256)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, address p1, bool p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,string)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, address p1, bool p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,bool)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, address p1, bool p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,address)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, address p1, address p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,uint256)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, address p1, address p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,string)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, address p1, address p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,bool)", p0, p1, p2, p3)); | |
} | |
function log(uint256 p0, address p1, address p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,address)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, uint256 p1, uint256 p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,uint256)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, uint256 p1, uint256 p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,string)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, uint256 p1, uint256 p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,bool)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, uint256 p1, uint256 p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,address)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, uint256 p1, string memory p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,uint256)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, uint256 p1, string memory p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,string)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, uint256 p1, string memory p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,bool)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, uint256 p1, string memory p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,address)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, uint256 p1, bool p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,uint256)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, uint256 p1, bool p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,string)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, uint256 p1, bool p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,bool)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, uint256 p1, bool p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,address)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, uint256 p1, address p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,uint256)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, uint256 p1, address p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,string)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, uint256 p1, address p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,bool)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, uint256 p1, address p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,address)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, string memory p1, uint256 p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,uint256)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, string memory p1, uint256 p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,string)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, string memory p1, uint256 p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,bool)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, string memory p1, uint256 p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,address)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, string memory p1, string memory p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,string,string,uint256)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, string memory p1, string memory p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,string,string,string)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, string memory p1, string memory p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,string,string,bool)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, string memory p1, string memory p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,string,string,address)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, string memory p1, bool p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,uint256)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, string memory p1, bool p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,string)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, string memory p1, bool p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,bool)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, string memory p1, bool p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,address)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, string memory p1, address p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,string,address,uint256)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, string memory p1, address p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,string,address,string)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, string memory p1, address p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,string,address,bool)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, string memory p1, address p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,string,address,address)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, bool p1, uint256 p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,uint256)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, bool p1, uint256 p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,string)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, bool p1, uint256 p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,bool)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, bool p1, uint256 p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,address)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, bool p1, string memory p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,uint256)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, bool p1, string memory p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,string)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, bool p1, string memory p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,bool)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, bool p1, string memory p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,address)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, bool p1, bool p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,uint256)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, bool p1, bool p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,string)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, bool p1, bool p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,bool)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, bool p1, bool p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,address)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, bool p1, address p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,uint256)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, bool p1, address p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,string)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, bool p1, address p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,bool)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, bool p1, address p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,address)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, address p1, uint256 p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,uint256)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, address p1, uint256 p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,string)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, address p1, uint256 p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,bool)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, address p1, uint256 p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,address)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, address p1, string memory p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,address,string,uint256)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, address p1, string memory p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,address,string,string)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, address p1, string memory p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,address,string,bool)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, address p1, string memory p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,address,string,address)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, address p1, bool p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,uint256)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, address p1, bool p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,string)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, address p1, bool p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,bool)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, address p1, bool p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,address)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, address p1, address p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,address,address,uint256)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, address p1, address p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,address,address,string)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, address p1, address p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,address,address,bool)", p0, p1, p2, p3)); | |
} | |
function log(string memory p0, address p1, address p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(string,address,address,address)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, uint256 p1, uint256 p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,uint256)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, uint256 p1, uint256 p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,string)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, uint256 p1, uint256 p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,bool)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, uint256 p1, uint256 p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,address)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, uint256 p1, string memory p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,uint256)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, uint256 p1, string memory p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,string)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, uint256 p1, string memory p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,bool)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, uint256 p1, string memory p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,address)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, uint256 p1, bool p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,uint256)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, uint256 p1, bool p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,string)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, uint256 p1, bool p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,bool)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, uint256 p1, bool p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,address)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, uint256 p1, address p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,uint256)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, uint256 p1, address p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,string)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, uint256 p1, address p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,bool)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, uint256 p1, address p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,address)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, string memory p1, uint256 p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,uint256)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, string memory p1, uint256 p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,string)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, string memory p1, uint256 p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,bool)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, string memory p1, uint256 p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,address)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, string memory p1, string memory p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,uint256)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, string memory p1, string memory p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,string)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, string memory p1, string memory p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,bool)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, string memory p1, string memory p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,address)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, string memory p1, bool p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,uint256)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, string memory p1, bool p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,string)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, string memory p1, bool p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,bool)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, string memory p1, bool p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,address)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, string memory p1, address p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,uint256)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, string memory p1, address p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,string)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, string memory p1, address p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,bool)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, string memory p1, address p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,address)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, bool p1, uint256 p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,uint256)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, bool p1, uint256 p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,string)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, bool p1, uint256 p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,bool)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, bool p1, uint256 p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,address)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, bool p1, string memory p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,uint256)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, bool p1, string memory p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,string)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, bool p1, string memory p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,bool)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, bool p1, string memory p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,address)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, bool p1, bool p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,uint256)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, bool p1, bool p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,string)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, bool p1, bool p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,bool)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, bool p1, bool p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,address)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, bool p1, address p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,uint256)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, bool p1, address p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,string)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, bool p1, address p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,bool)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, bool p1, address p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,address)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, address p1, uint256 p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,uint256)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, address p1, uint256 p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,string)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, address p1, uint256 p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,bool)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, address p1, uint256 p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,address)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, address p1, string memory p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,uint256)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, address p1, string memory p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,string)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, address p1, string memory p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,bool)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, address p1, string memory p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,address)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, address p1, bool p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,uint256)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, address p1, bool p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,string)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, address p1, bool p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,bool)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, address p1, bool p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,address)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, address p1, address p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,uint256)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, address p1, address p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,string)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, address p1, address p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,bool)", p0, p1, p2, p3)); | |
} | |
function log(bool p0, address p1, address p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,address)", p0, p1, p2, p3)); | |
} | |
function log(address p0, uint256 p1, uint256 p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,uint256)", p0, p1, p2, p3)); | |
} | |
function log(address p0, uint256 p1, uint256 p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,string)", p0, p1, p2, p3)); | |
} | |
function log(address p0, uint256 p1, uint256 p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,bool)", p0, p1, p2, p3)); | |
} | |
function log(address p0, uint256 p1, uint256 p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,address)", p0, p1, p2, p3)); | |
} | |
function log(address p0, uint256 p1, string memory p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,uint256)", p0, p1, p2, p3)); | |
} | |
function log(address p0, uint256 p1, string memory p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,string)", p0, p1, p2, p3)); | |
} | |
function log(address p0, uint256 p1, string memory p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,bool)", p0, p1, p2, p3)); | |
} | |
function log(address p0, uint256 p1, string memory p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,address)", p0, p1, p2, p3)); | |
} | |
function log(address p0, uint256 p1, bool p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,uint256)", p0, p1, p2, p3)); | |
} | |
function log(address p0, uint256 p1, bool p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,string)", p0, p1, p2, p3)); | |
} | |
function log(address p0, uint256 p1, bool p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,bool)", p0, p1, p2, p3)); | |
} | |
function log(address p0, uint256 p1, bool p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,address)", p0, p1, p2, p3)); | |
} | |
function log(address p0, uint256 p1, address p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,uint256)", p0, p1, p2, p3)); | |
} | |
function log(address p0, uint256 p1, address p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,string)", p0, p1, p2, p3)); | |
} | |
function log(address p0, uint256 p1, address p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,bool)", p0, p1, p2, p3)); | |
} | |
function log(address p0, uint256 p1, address p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,address)", p0, p1, p2, p3)); | |
} | |
function log(address p0, string memory p1, uint256 p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,uint256)", p0, p1, p2, p3)); | |
} | |
function log(address p0, string memory p1, uint256 p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,string)", p0, p1, p2, p3)); | |
} | |
function log(address p0, string memory p1, uint256 p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,bool)", p0, p1, p2, p3)); | |
} | |
function log(address p0, string memory p1, uint256 p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,address)", p0, p1, p2, p3)); | |
} | |
function log(address p0, string memory p1, string memory p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,string,string,uint256)", p0, p1, p2, p3)); | |
} | |
function log(address p0, string memory p1, string memory p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,string,string,string)", p0, p1, p2, p3)); | |
} | |
function log(address p0, string memory p1, string memory p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,string,string,bool)", p0, p1, p2, p3)); | |
} | |
function log(address p0, string memory p1, string memory p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,string,string,address)", p0, p1, p2, p3)); | |
} | |
function log(address p0, string memory p1, bool p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,uint256)", p0, p1, p2, p3)); | |
} | |
function log(address p0, string memory p1, bool p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,string)", p0, p1, p2, p3)); | |
} | |
function log(address p0, string memory p1, bool p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,bool)", p0, p1, p2, p3)); | |
} | |
function log(address p0, string memory p1, bool p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,address)", p0, p1, p2, p3)); | |
} | |
function log(address p0, string memory p1, address p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,string,address,uint256)", p0, p1, p2, p3)); | |
} | |
function log(address p0, string memory p1, address p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,string,address,string)", p0, p1, p2, p3)); | |
} | |
function log(address p0, string memory p1, address p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,string,address,bool)", p0, p1, p2, p3)); | |
} | |
function log(address p0, string memory p1, address p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,string,address,address)", p0, p1, p2, p3)); | |
} | |
function log(address p0, bool p1, uint256 p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,uint256)", p0, p1, p2, p3)); | |
} | |
function log(address p0, bool p1, uint256 p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,string)", p0, p1, p2, p3)); | |
} | |
function log(address p0, bool p1, uint256 p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,bool)", p0, p1, p2, p3)); | |
} | |
function log(address p0, bool p1, uint256 p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,address)", p0, p1, p2, p3)); | |
} | |
function log(address p0, bool p1, string memory p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,uint256)", p0, p1, p2, p3)); | |
} | |
function log(address p0, bool p1, string memory p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,string)", p0, p1, p2, p3)); | |
} | |
function log(address p0, bool p1, string memory p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,bool)", p0, p1, p2, p3)); | |
} | |
function log(address p0, bool p1, string memory p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,address)", p0, p1, p2, p3)); | |
} | |
function log(address p0, bool p1, bool p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,uint256)", p0, p1, p2, p3)); | |
} | |
function log(address p0, bool p1, bool p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,string)", p0, p1, p2, p3)); | |
} | |
function log(address p0, bool p1, bool p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,bool)", p0, p1, p2, p3)); | |
} | |
function log(address p0, bool p1, bool p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,address)", p0, p1, p2, p3)); | |
} | |
function log(address p0, bool p1, address p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,uint256)", p0, p1, p2, p3)); | |
} | |
function log(address p0, bool p1, address p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,string)", p0, p1, p2, p3)); | |
} | |
function log(address p0, bool p1, address p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,bool)", p0, p1, p2, p3)); | |
} | |
function log(address p0, bool p1, address p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,address)", p0, p1, p2, p3)); | |
} | |
function log(address p0, address p1, uint256 p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,uint256)", p0, p1, p2, p3)); | |
} | |
function log(address p0, address p1, uint256 p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,string)", p0, p1, p2, p3)); | |
} | |
function log(address p0, address p1, uint256 p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,bool)", p0, p1, p2, p3)); | |
} | |
function log(address p0, address p1, uint256 p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,address)", p0, p1, p2, p3)); | |
} | |
function log(address p0, address p1, string memory p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,address,string,uint256)", p0, p1, p2, p3)); | |
} | |
function log(address p0, address p1, string memory p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,address,string,string)", p0, p1, p2, p3)); | |
} | |
function log(address p0, address p1, string memory p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,address,string,bool)", p0, p1, p2, p3)); | |
} | |
function log(address p0, address p1, string memory p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,address,string,address)", p0, p1, p2, p3)); | |
} | |
function log(address p0, address p1, bool p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,uint256)", p0, p1, p2, p3)); | |
} | |
function log(address p0, address p1, bool p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,string)", p0, p1, p2, p3)); | |
} | |
function log(address p0, address p1, bool p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,bool)", p0, p1, p2, p3)); | |
} | |
function log(address p0, address p1, bool p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,address)", p0, p1, p2, p3)); | |
} | |
function log(address p0, address p1, address p2, uint256 p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,address,address,uint256)", p0, p1, p2, p3)); | |
} | |
function log(address p0, address p1, address p2, string memory p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,address,address,string)", p0, p1, p2, p3)); | |
} | |
function log(address p0, address p1, address p2, bool p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,address,address,bool)", p0, p1, p2, p3)); | |
} | |
function log(address p0, address p1, address p2, address p3) internal pure { | |
_sendLogPayload(abi.encodeWithSignature("log(address,address,address,address)", p0, p1, p2, p3)); | |
} | |
} |
[core] | |
repositoryformatversion = 0 | |
filemode = false | |
bare = false | |
logallrefupdates = true | |
symlinks = false | |
ignorecase = true | |
[remote "BeadtMODE"] | |
fetch = +refs/heads/*:refs/remotes/BeadtMODE/* | |
url = https://github.com/BeadtMODE/Killem-Westside-Records |
ref: refs/heads/BeadtMODE |
�tOc ��G�\yW$��U�� | |
/��QУy����Z0���Zw� g��Z��ܳ�cd5� _A jmD����9�ۈBɊ�ǒ��V#ܻg�S�W�^�& | |
m�ڔp�6�� | |
o�ó� ���n�31����Hͼ�'�g��'t+?��RM�ͯ��0���՛I��HJƈ/!(��ׂ�L��M_� | |
/��䤄k�����aM��r��+bR�B�D�@ M�/Q�����1��7Y:| ��ZR���"�D�:ՔNyN�&��V#�������2�����s]�ZB�[A�)G��ă1�)Sd^�C���%�iyJ��s(tg|wq��o��'{4���V��ʨ�KAY��~u��#�+�o�]�_�t~a����t6T/��� | |
��wm�9��f*���H�����Ԏv�e�e���ڼ[K,�^T� | |
��� zʗ�����⛲��CK�)�wZ���S��oSB�ɤE6`jb�*�Ef��A�!Λ��F���8������)����Ї�dYw��`�W�V���<Y�?HDI���E��*�������9K����Ĭ�%�N�G_�#��x�>����+�,�2��H��Fv6dE��^��5ϊW?w`�@��*A����0I|�8`3�nv )�H�]z���� l���@. | |
I� � 7 B | |
H� | |
I� �� � � T � | |
CK | |
Ge l ~ � � | |
I� | |
JF | |
I( c � � !P @�����<H$��Re�|6GL�mS�l���32G�tYS� |
(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.)
(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.)