UNPKG

@etherisc/registry-contracts

Version:

Etherisc's smart contracts for the registry.

1,490 lines 498 kB
{ "abi": [ { "inputs": [ { "internalType": "string", "name": "name_", "type": "string" }, { "internalType": "string", "name": "symbol_", "type": "string" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "Approval", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "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": "amount", "type": "uint256" } ], "name": "approve", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "account", "type": "address" } ], "name": "balanceOf", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "decimals", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "subtractedValue", "type": "uint256" } ], "name": "decreaseAllowance", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "addedValue", "type": "uint256" } ], "name": "increaseAllowance", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "name", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "symbol", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "totalSupply", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "transfer", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "transferFrom", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" } ], "allSourcePaths": { "13": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.8.2/contracts/token/ERC20/ERC20.sol", "14": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.8.2/contracts/token/ERC20/IERC20.sol", "15": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.8.2/contracts/token/ERC20/extensions/IERC20Metadata.sol", "23": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.8.2/contracts/utils/Context.sol" }, "ast": { "absolutePath": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.8.2/contracts/token/ERC20/ERC20.sol", "exportedSymbols": { "Context": [ 16878 ], "ERC20": [ 14870 ], "IERC20": [ 16856 ], "IERC20Metadata": [ 12510 ] }, "id": 14871, "license": "MIT", "nodeType": "SourceUnit", "nodes": [ { "id": 14285, "literals": [ "solidity", "^", "0.8", ".0" ], "nodeType": "PragmaDirective", "src": "105:23:13" }, { "absolutePath": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.8.2/contracts/token/ERC20/IERC20.sol", "file": "./IERC20.sol", "id": 14286, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 14871, "sourceUnit": 16857, "src": "130:22:13", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.8.2/contracts/token/ERC20/extensions/IERC20Metadata.sol", "file": "./extensions/IERC20Metadata.sol", "id": 14287, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 14871, "sourceUnit": 12511, "src": "153:41:13", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.8.2/contracts/utils/Context.sol", "file": "../../utils/Context.sol", "id": 14288, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 14871, "sourceUnit": 16879, "src": "195:33:13", "symbolAliases": [], "unitAlias": "" }, { "abstract": false, "baseContracts": [ { "baseName": { "id": 14290, "name": "Context", "nameLocations": [ "1419:7:13" ], "nodeType": "IdentifierPath", "referencedDeclaration": 16878, "src": "1419:7:13" }, "id": 14291, "nodeType": "InheritanceSpecifier", "src": "1419:7:13" }, { "baseName": { "id": 14292, "name": "IERC20", "nameLocations": [ "1428:6:13" ], "nodeType": "IdentifierPath", "referencedDeclaration": 16856, "src": "1428:6:13" }, "id": 14293, "nodeType": "InheritanceSpecifier", "src": "1428:6:13" }, { "baseName": { "id": 14294, "name": "IERC20Metadata", "nameLocations": [ "1436:14:13" ], "nodeType": "IdentifierPath", "referencedDeclaration": 12510, "src": "1436:14:13" }, "id": 14295, "nodeType": "InheritanceSpecifier", "src": "1436:14:13" } ], "canonicalName": "ERC20", "contractDependencies": [], "contractKind": "contract", "documentation": { "id": 14289, "nodeType": "StructuredDocumentation", "src": "230:1170:13", "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 For a generic mechanism see {ERC20PresetMinterPauser}.\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 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 ERC20\n applications.\n Additionally, an {Approval} event is emitted on calls to {transferFrom}.\n This allows applications to reconstruct the allowance for all accounts just\n by listening to said events. Other implementations of the EIP may not emit\n these events, as it isn't required by the specification.\n Finally, the non-standard {decreaseAllowance} and {increaseAllowance}\n functions have been added to mitigate the well-known issues around setting\n allowances. See {IERC20-approve}." }, "fullyImplemented": true, "id": 14870, "linearizedBaseContracts": [ 14870, 12510, 16856, 16878 ], "name": "ERC20", "nameLocation": "1410:5:13", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, "id": 14299, "mutability": "mutable", "name": "_balances", "nameLocation": "1493:9:13", "nodeType": "VariableDeclaration", "scope": 14870, "src": "1457:45:13", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" }, "typeName": { "id": 14298, "keyName": "", "keyNameLocation": "-1:-1:-1", "keyType": { "id": 14296, "name": "address", "nodeType": "ElementaryTypeName", "src": "1465:7:13", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Mapping", "src": "1457:27:13", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" }, "valueName": "", "valueNameLocation": "-1:-1:-1", "valueType": { "id": 14297, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1476:7:13", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } }, "visibility": "private" }, { "constant": false, "id": 14305, "mutability": "mutable", "name": "_allowances", "nameLocation": "1565:11:13", "nodeType": "VariableDeclaration", "scope": 14870, "src": "1509:67:13", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" }, "typeName": { "id": 14304, "keyName": "", "keyNameLocation": "-1:-1:-1", "keyType": { "id": 14300, "name": "address", "nodeType": "ElementaryTypeName", "src": "1517:7:13", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Mapping", "src": "1509:47:13", "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": 14303, "keyName": "", "keyNameLocation": "-1:-1:-1", "keyType": { "id": 14301, "name": "address", "nodeType": "ElementaryTypeName", "src": "1536:7:13", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Mapping", "src": "1528:27:13", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" }, "valueName": "", "valueNameLocation": "-1:-1:-1", "valueType": { "id": 14302, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1547:7:13", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } } }, "visibility": "private" }, { "constant": false, "id": 14307, "mutability": "mutable", "name": "_totalSupply", "nameLocation": "1599:12:13", "nodeType": "VariableDeclaration", "scope": 14870, "src": "1583:28:13", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 14306, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1583:7:13", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "private" }, { "constant": false, "id": 14309, "mutability": "mutable", "name": "_name", "nameLocation": "1633:5:13", "nodeType": "VariableDeclaration", "scope": 14870, "src": "1618:20:13", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string" }, "typeName": { "id": 14308, "name": "string", "nodeType": "ElementaryTypeName", "src": "1618:6:13", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "private" }, { "constant": false, "id": 14311, "mutability": "mutable", "name": "_symbol", "nameLocation": "1659:7:13", "nodeType": "VariableDeclaration", "scope": 14870, "src": "1644:22:13", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string" }, "typeName": { "id": 14310, "name": "string", "nodeType": "ElementaryTypeName", "src": "1644:6:13", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "private" }, { "body": { "id": 14327, "nodeType": "Block", "src": "2032:57:13", "statements": [ { "expression": { "id": 14321, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 14319, "name": "_name", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 14309, "src": "2042:5:13", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "id": 14320, "name": "name_", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 14314, "src": "2050:5:13", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "src": "2042:13:13", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "id": 14322, "nodeType": "ExpressionStatement", "src": "2042:13:13" }, { "expression": { "id": 14325, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 14323, "name": "_symbol", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 14311, "src": "2065:7:13", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "id": 14324, "name": "symbol_", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 14316, "src": "2075:7:13", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "src": "2065:17:13", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "id": 14326, "nodeType": "ExpressionStatement", "src": "2065:17:13" } ] }, "documentation": { "id": 14312, "nodeType": "StructuredDocumentation", "src": "1673:298:13", "text": " @dev Sets the values for {name} and {symbol}.\n The default value of {decimals} is 18. To select a different value for\n {decimals} you should overload it.\n All two of these values are immutable: they can only be set once during\n construction." }, "id": 14328, "implemented": true, "kind": "constructor", "modifiers": [], "name": "", "nameLocation": "-1:-1:-1", "nodeType": "FunctionDefinition", "parameters": { "id": 14317, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 14314, "mutability": "mutable", "name": "name_", "nameLocation": "2002:5:13", "nodeType": "VariableDeclaration", "scope": 14328, "src": "1988:19:13", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 14313, "name": "string", "nodeType": "ElementaryTypeName", "src": "1988:6:13", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" }, { "constant": false, "id": 14316, "mutability": "mutable", "name": "symbol_", "nameLocation": "2023:7:13", "nodeType": "VariableDeclaration", "scope": 14328, "src": "2009:21:13", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 14315, "name": "string", "nodeType": "ElementaryTypeName", "src": "2009:6:13", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "1987:44:13" }, "returnParameters": { "id": 14318, "nodeType": "ParameterList", "parameters": [], "src": "2032:0:13" }, "scope": 14870, "src": "1976:113:13", "stateMutability": "nonpayable", "virtual": false, "visibility": "public" }, { "baseFunctions": [ 12497 ], "body": { "id": 14337, "nodeType": "Block", "src": "2223:29:13", "statements": [ { "expression": { "id": 14335, "name": "_name", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 14309, "src": "2240:5:13", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "functionReturnParameters": 14334, "id": 14336, "nodeType": "Return", "src": "2233:12:13" } ] }, "documentation": { "id": 14329, "nodeType": "StructuredDocumentation", "src": "2095:54:13", "text": " @dev Returns the name of the token." }, "functionSelector": "06fdde03", "id": 14338, "implemented": true, "kind": "function", "modifiers": [], "name": "name", "nameLocation": "2163:4:13", "nodeType": "FunctionDefinition", "overrides": { "id": 14331, "nodeType": "OverrideSpecifier", "overrides": [], "src": "2190:8:13" }, "parameters": { "id": 14330, "nodeType": "ParameterList", "parameters": [], "src": "2167:2:13" }, "returnParameters": { "id": 14334, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 14333, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 14338, "src": "2208:13:13", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 14332, "name": "string", "nodeType": "ElementaryTypeName", "src": "2208:6:13", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "2207:15:13" }, "scope": 14870, "src": "2154:98:13", "stateMutability": "view", "virtual": true, "visibility": "public" }, { "baseFunctions": [ 12503 ], "body": { "id": 14347, "nodeType": "Block", "src": "2436:31:13", "statements": [ { "expression": { "id": 14345, "name": "_symbol", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 14311, "src": "2453:7:13", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "functionReturnParameters": 14344, "id": 14346, "nodeType": "Return", "src": "2446:14:13" } ] }, "documentation": { "id": 14339, "nodeType": "StructuredDocumentation", "src": "2258:102:13", "text": " @dev Returns the symbol of the token, usually a shorter version of the\n name." }, "functionSelector": "95d89b41", "id": 14348, "implemented": true, "kind": "function", "modifiers": [], "name": "symbol", "nameLocation": "2374:6:13", "nodeType": "FunctionDefinition", "overrides": { "id": 14341, "nodeType": "OverrideSpecifier", "overrides": [], "src": "2403:8:13" }, "parameters": { "id": 14340, "nodeType": "ParameterList", "parameters": [], "src": "2380:2:13" }, "returnParameters": { "id": 14344, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 14343, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 14348, "src": "2421:13:13", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 14342, "name": "string", "nodeType": "ElementaryTypeName", "src": "2421:6:13", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "2420:15:13" }, "scope": 14870, "src": "2365:102:13", "stateMutability": "view", "virtual": true, "visibility": "public" }, { "baseFunctions": [ 12509 ], "body": { "id": 14357, "nodeType": "Block", "src": "3156:26:13", "statements": [ { "expression": { "hexValue": "3138", "id": 14355, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "3173:2:13", "typeDescriptions": { "typeIdentifier": "t_rational_18_by_1", "typeString": "int_const 18" }, "value": "18" }, "functionReturnParameters": 14354, "id": 14356, "nodeType": "Return", "src": "3166:9:13" } ] }, "documentation": { "id": 14349, "nodeType": "StructuredDocumentation", "src": "2473:613:13", "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 value {ERC20} uses, unless this function is\n 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": 14358, "implemented": true, "kind": "function", "modifiers": [], "name": "decimals", "nameLocation": "3100:8:13", "nodeType": "FunctionDefinition", "overrides": { "id": 14351, "nodeType": "OverrideSpecifier", "overrides": [], "src": "3131:8:13" }, "parameters": { "id": 14350, "nodeType": "ParameterList", "parameters": [], "src": "3108:2:13" }, "returnParameters": { "id": 14354, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 14353, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 14358, "src": "3149:5:13", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, "typeName": { "id": 14352, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "3149:5:13", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "visibility": "internal" } ], "src": "3148:7:13" }, "scope": 14870, "src": "3091:91:13", "stateMutability": "view", "virtual": true, "visibility": "public" }, { "baseFunctions": [ 16805 ], "body": { "id": 14367, "nodeType": "Block", "src": "3312:36:13", "statements": [ { "expression": { "id": 14365, "name": "_totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 14307, "src": "3329:12:13", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "functionReturnParameters": 14364, "id": 14366, "nodeType": "Return", "src": "3322:19:13" } ] }, "documentation": { "id": 14359, "nodeType": "StructuredDocumentation", "src": "3188:49:13", "text": " @dev See {IERC20-totalSupply}." }, "functionSelector": "18160ddd", "id": 14368, "implemented": true, "kind": "function", "modifiers": [], "name": "totalSupply", "nameLocation": "3251:11:13", "nodeType": "FunctionDefinition", "overrides": { "id": 14361, "nodeType": "OverrideSpecifier", "overrides": [], "src": "3285:8:13" }, "parameters": { "id": 14360, "nodeType": "ParameterList", "parameters": [], "src": "3262:2:13" }, "returnParameters": { "id": 14364, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 14363, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 14368, "src": "3303:7:13", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 14362, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3303:7:13", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "3302:9:13" }, "scope": 14870, "src": "3242:106:13", "stateMutability": "view", "virtual": true, "visibility": "public" }, { "baseFunctions": [ 16813 ], "body": { "id": 14381, "nodeType": "Block", "src": "3489:42:13", "statements": [ { "expression": { "baseExpression": { "id": 14377, "name": "_balances", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 14299, "src": "3506:9:13", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, "id": 14379, "indexExpression": { "id": 14378, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 14371, "src": "3516:7:13", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "3506:18:13", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "functionReturnParameters": 14376, "id": 14380, "nodeType": "Return", "src": "3499:25:13" } ] }, "documentation": { "id": 14369, "nodeType": "StructuredDocumentation", "src": "3354:47:13", "text": " @dev See {IERC20-balanceOf}." }, "functionSelector": "70a08231", "id": 14382, "implemented": true, "kind": "function", "modifiers": [], "name": "balanceOf", "nameLocation": "3415:9:13", "nodeType": "FunctionDefinition", "overrides": { "id": 14373, "nodeType": "OverrideSpecifier", "overrides": [], "src": "3462:8:13" }, "parameters": { "id": 14372, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 14371, "mutability": "mutable", "name": "account", "nameLocation": "3433:7:13", "nodeType": "VariableDeclaration", "scope": 14382, "src": "3425:15:13", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 14370, "name": "address", "nodeType": "ElementaryTypeName", "src": "3425:7:13", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "3424:17:13" }, "returnParameters": { "id": 14376, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 14375, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 14382, "src": "3480:7:13", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 14374, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3480:7:13", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "3479:9:13" }, "scope": 14870, "src": "3406:125:13", "stateMutability": "view", "virtual": true, "visibility": "public" }, { "baseFunctions": [ 16823 ], "body": { "id": 14406, "nodeType": "Block", "src": "3812:104:13", "statements": [ { "assignments": [ 14394 ], "declarations": [ { "constant": false, "id": 14394, "mutability": "mutable", "name": "owner", "nameLocation": "3830:5:13", "nodeType": "VariableDeclaration", "scope": 14406, "src": "3822:13:13", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 14393, "name": "address", "nodeType": "ElementaryTypeName", "src": "3822:7:13", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "id": 14397, "initialValue": { "arguments": [], "expression": { "argumentTypes": [], "id": 14395, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 16868, "src": "3838:10:13", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$", "typeString": "function () view returns (address)" } }, "id": 14396, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "3838:12:13", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "VariableDeclarationStatement", "src": "3822:28:13" }, { "expression": { "arguments": [ { "id": 14399, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 14394, "src": "3870:5:13", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "id": 14400, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 14385, "src": "3877:2:13", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "id": 14401, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 14387, "src": "3881:6:13", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 14398, "name": "_transfer", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 14630, "src": "3860:9:13", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_ad