@etherisc/registry-contracts
Version:
Etherisc's smart contracts for the registry.
1,503 lines (1,502 loc) • 315 kB
JSON
{
"abi": [
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "spender",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "Approval",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
},
{
"inputs": [],
"name": "DECIMALS",
"outputs": [
{
"internalType": "uint8",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "INITIAL_SUPPLY",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"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": [
{
"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": "pure",
"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",
"64": "contracts/test/Tokens.sol"
},
"ast": {
"absolutePath": "contracts/test/Tokens.sol",
"exportedSymbols": {
"DIP": [
11222
],
"ERC20": [
14870
],
"USD1": [
11098
],
"USD2": [
11138
],
"USD3": [
11178
]
},
"id": 11223,
"license": "Apache-2.0",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 10970,
"literals": [
"solidity",
"^",
"0.8",
".19"
],
"nodeType": "PragmaDirective",
"src": "39:24:64"
},
{
"absolutePath": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.8.2/contracts/token/ERC20/ERC20.sol",
"file": "@openzeppelin/contracts/token/ERC20/ERC20.sol",
"id": 10972,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 11223,
"sourceUnit": 14871,
"src": "65:68:64",
"symbolAliases": [
{
"foreign": {
"id": 10971,
"name": "ERC20",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 14870,
"src": "73:5:64",
"typeDescriptions": {}
},
"nameLocation": "-1:-1:-1"
}
],
"unitAlias": ""
},
{
"abstract": false,
"baseContracts": [
{
"baseName": {
"id": 10973,
"name": "ERC20",
"nameLocations": [
"152:5:64"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 14870,
"src": "152:5:64"
},
"id": 10974,
"nodeType": "InheritanceSpecifier",
"src": "152:5:64"
}
],
"canonicalName": "USD1",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
"id": 11098,
"linearizedBaseContracts": [
11098,
14870,
12510,
16856,
16878
],
"name": "USD1",
"nameLocation": "144:4:64",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": true,
"functionSelector": "a3f4df7e",
"id": 10977,
"mutability": "constant",
"name": "NAME",
"nameLocation": "285:4:64",
"nodeType": "VariableDeclaration",
"scope": 11098,
"src": "262:48:64",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 10975,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "262:6:64",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": {
"hexValue": "55534420436f696e202d2044554d4d59",
"id": 10976,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "292:18:64",
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_f1f77fb2c2c60421f2302e24a7e4cd9881e813fbb52a287a66078d21b2506554",
"typeString": "literal_string \"USD Coin - DUMMY\""
},
"value": "USD Coin - DUMMY"
},
"visibility": "public"
},
{
"constant": true,
"functionSelector": "f76f8d78",
"id": 10980,
"mutability": "constant",
"name": "SYMBOL",
"nameLocation": "339:6:64",
"nodeType": "VariableDeclaration",
"scope": 11098,
"src": "316:38:64",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 10978,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "316:6:64",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": {
"hexValue": "55534443",
"id": 10979,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "348:6:64",
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_d6aca1be9729c13d677335161321649cccae6a591554772516700f986f942eaa",
"typeString": "literal_string \"USDC\""
},
"value": "USDC"
},
"visibility": "public"
},
{
"constant": true,
"functionSelector": "2e0f2625",
"id": 10983,
"mutability": "constant",
"name": "DECIMALS",
"nameLocation": "382:8:64",
"nodeType": "VariableDeclaration",
"scope": 11098,
"src": "360:34:64",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 10981,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "360:5:64",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"value": {
"hexValue": "36",
"id": 10982,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "393:1:64",
"typeDescriptions": {
"typeIdentifier": "t_rational_6_by_1",
"typeString": "int_const 6"
},
"value": "6"
},
"visibility": "public"
},
{
"constant": true,
"functionSelector": "2ff2e9dc",
"id": 10988,
"mutability": "constant",
"name": "INITIAL_SUPPLY",
"nameLocation": "425:14:64",
"nodeType": "VariableDeclaration",
"scope": 11098,
"src": "401:47:64",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 10984,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "401:7:64",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": {
"commonType": {
"typeIdentifier": "t_rational_1000000000000000000000000_by_1",
"typeString": "int_const 1000000000000000000000000"
},
"id": 10987,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"leftExpression": {
"hexValue": "3130",
"id": 10985,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "442:2:64",
"typeDescriptions": {
"typeIdentifier": "t_rational_10_by_1",
"typeString": "int_const 10"
},
"value": "10"
},
"nodeType": "BinaryOperation",
"operator": "**",
"rightExpression": {
"hexValue": "3234",
"id": 10986,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "446:2:64",
"typeDescriptions": {
"typeIdentifier": "t_rational_24_by_1",
"typeString": "int_const 24"
},
"value": "24"
},
"src": "442:6:64",
"typeDescriptions": {
"typeIdentifier": "t_rational_1000000000000000000000000_by_1",
"typeString": "int_const 1000000000000000000000000"
}
},
"visibility": "public"
},
{
"anonymous": false,
"eventSelector": "ce4d50197324ce75c52edf3e59b7b98b34ef1a98951180ad2134990f048554ff",
"id": 11000,
"name": "LogUsd1Transfer",
"nameLocation": "461:15:64",
"nodeType": "EventDefinition",
"parameters": {
"id": 10999,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 10990,
"indexed": false,
"mutability": "mutable",
"name": "from",
"nameLocation": "485:4:64",
"nodeType": "VariableDeclaration",
"scope": 11000,
"src": "477:12:64",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 10989,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "477:7:64",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 10992,
"indexed": false,
"mutability": "mutable",
"name": "to",
"nameLocation": "499:2:64",
"nodeType": "VariableDeclaration",
"scope": 11000,
"src": "491:10:64",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 10991,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "491:7:64",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 10994,
"indexed": false,
"mutability": "mutable",
"name": "amount",
"nameLocation": "511:6:64",
"nodeType": "VariableDeclaration",
"scope": 11000,
"src": "503:14:64",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 10993,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "503:7:64",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 10996,
"indexed": false,
"mutability": "mutable",
"name": "time",
"nameLocation": "527:4:64",
"nodeType": "VariableDeclaration",
"scope": 11000,
"src": "519:12:64",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 10995,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "519:7:64",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 10998,
"indexed": false,
"mutability": "mutable",
"name": "blockNumber",
"nameLocation": "541:11:64",
"nodeType": "VariableDeclaration",
"scope": 11000,
"src": "533:19:64",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 10997,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "533:7:64",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "476:77:64"
},
"src": "455:99:64"
},
{
"anonymous": false,
"eventSelector": "bebbf968ce34a42435040695b1cae18b56e2b2592359e5bf161f2f6993caa9bc",
"id": 11012,
"name": "LogUsd1TransferFrom",
"nameLocation": "565:19:64",
"nodeType": "EventDefinition",
"parameters": {
"id": 11011,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 11002,
"indexed": false,
"mutability": "mutable",
"name": "from",
"nameLocation": "593:4:64",
"nodeType": "VariableDeclaration",
"scope": 11012,
"src": "585:12:64",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 11001,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "585:7:64",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 11004,
"indexed": false,
"mutability": "mutable",
"name": "to",
"nameLocation": "607:2:64",
"nodeType": "VariableDeclaration",
"scope": 11012,
"src": "599:10:64",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 11003,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "599:7:64",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 11006,
"indexed": false,
"mutability": "mutable",
"name": "amount",
"nameLocation": "619:6:64",
"nodeType": "VariableDeclaration",
"scope": 11012,
"src": "611:14:64",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 11005,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "611:7:64",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 11008,
"indexed": false,
"mutability": "mutable",
"name": "time",
"nameLocation": "635:4:64",
"nodeType": "VariableDeclaration",
"scope": 11012,
"src": "627:12:64",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 11007,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "627:7:64",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 11010,
"indexed": false,
"mutability": "mutable",
"name": "blockNumber",
"nameLocation": "649:11:64",
"nodeType": "VariableDeclaration",
"scope": 11012,
"src": "641:19:64",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 11009,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "641:7:64",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "584:77:64"
},
"src": "559:103:64"
},
{
"body": {
"id": 11025,
"nodeType": "Block",
"src": "713:86:64",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 11020,
"name": "_msgSender",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 16868,
"src": "742:10:64",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$__$returns$_t_address_$",
"typeString": "function () view returns (address)"
}
},
"id": 11021,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "742:12:64",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"id": 11022,
"name": "INITIAL_SUPPLY",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 10988,
"src": "768:14:64",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 11019,
"name": "_mint",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 14687,
"src": "723:5:64",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$",
"typeString": "function (address,uint256)"
}
},
"id": 11023,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "723:69:64",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 11024,
"nodeType": "ExpressionStatement",
"src": "723:69:64"
}
]
},
"id": 11026,
"implemented": true,
"kind": "constructor",
"modifiers": [
{
"arguments": [
{
"id": 11015,
"name": "NAME",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 10977,
"src": "695:4:64",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
},
{
"id": 11016,
"name": "SYMBOL",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 10980,
"src": "701:6:64",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
}
],
"id": 11017,
"kind": "baseConstructorSpecifier",
"modifierName": {
"id": 11014,
"name": "ERC20",
"nameLocations": [
"689:5:64"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 14870,
"src": "689:5:64"
},
"nodeType": "ModifierInvocation",
"src": "689:19:64"
}
],
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 11013,
"nodeType": "ParameterList",
"parameters": [],
"src": "678:2:64"
},
"returnParameters": {
"id": 11018,
"nodeType": "ParameterList",
"parameters": [],
"src": "713:0:64"
},
"scope": 11098,
"src": "667:132:64",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "public"
},
{
"baseFunctions": [
14358
],
"body": {
"id": 11034,
"nodeType": "Block",
"src": "861:32:64",
"statements": [
{
"expression": {
"id": 11032,
"name": "DECIMALS",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 10983,
"src": "878:8:64",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"functionReturnParameters": 11031,
"id": 11033,
"nodeType": "Return",
"src": "871:15:64"
}
]
},
"functionSelector": "313ce567",
"id": 11035,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "decimals",
"nameLocation": "814:8:64",
"nodeType": "FunctionDefinition",
"overrides": {
"id": 11028,
"nodeType": "OverrideSpecifier",
"overrides": [],
"src": "837:8:64"
},
"parameters": {
"id": 11027,
"nodeType": "ParameterList",
"parameters": [],
"src": "822:2:64"
},
"returnParameters": {
"id": 11031,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 11030,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 11035,
"src": "854:5:64",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 11029,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "854:5:64",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"visibility": "internal"
}
],
"src": "853:7:64"
},
"scope": 11098,
"src": "805:88:64",
"stateMutability": "pure",
"virtual": false,
"visibility": "public"
},
{
"baseFunctions": [
14407
],
"body": {
"id": 11066,
"nodeType": "Block",
"src": "984:225:64",
"statements": [
{
"assignments": [
11046
],
"declarations": [
{
"constant": false,
"id": 11046,
"mutability": "mutable",
"name": "from",
"nameLocation": "1002:4:64",
"nodeType": "VariableDeclaration",
"scope": 11066,
"src": "994:12:64",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 11045,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "994:7:64",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"id": 11049,
"initialValue": {
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 11047,
"name": "_msgSender",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 16868,
"src": "1009:10:64",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$__$returns$_t_address_$",
"typeString": "function () view returns (address)"
}
},
"id": 11048,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "1009:12:64",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "994:27:64"
},
{
"eventCall": {
"arguments": [
{
"id": 11051,
"name": "from",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 11046,
"src": "1111:4:64",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"id": 11052,
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 11037,
"src": "1117:2:64",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"id": 11053,
"name": "amount",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 11039,
"src": "1121:6:64",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"expression": {
"id": 11054,
"name": "block",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": -4,
"src": "1129:5:64",
"typeDescriptions": {
"typeIdentifier": "t_magic_block",
"typeString": "block"
}
},
"id": 11055,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberLocation": "1135:9:64",
"memberName": "timestamp",
"nodeType": "MemberAccess",
"src": "1129:15:64",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"expression": {
"id": 11056,
"name": "block",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": -4,
"src": "1146:5:64",
"typeDescriptions": {
"typeIdentifier": "t_magic_block",
"typeString": "block"
}
},
"id": 11057,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberLocation": "1152:6:64",
"memberName": "number",
"nodeType": "MemberAccess",
"src": "1146:12:64",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 11050,
"name": "LogUsd1TransferFrom",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 11012,
"src": "1091:19:64",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$_t_uint256_$_t_uint256_$returns$__$",
"typeString": "function (address,address,uint256,uint256,uint256)"
}
},
"id": 11058,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "1091:68:64",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 11059,
"nodeType": "EmitStatement",
"src": "1086:73:64"
},
{
"expression": {
"arguments": [
{
"id": 11062,
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 11037,
"src": "1191:2:64",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"id": 11063,
"name": "amount",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 11039,
"src": "1195:6:64",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"expression": {
"id": 11060,
"name": "super",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": -25,
"src": "1176:5:64",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_super$_USD1_$11098_$",
"typeString": "type(contract super USD1)"
}
},
"id": 11061,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberLocation": "1182:8:64",
"memberName": "transfer",
"nodeType": "MemberAccess",
"referencedDeclaration": 14407,
"src": "1176:14:64",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$_t_bool_$",
"typeString": "function (address,uint256) returns (bool)"
}