Redeploy. Mainnet and alfajores together

This commit is contained in:
Brian Li 2021-04-04 14:16:04 -07:00
parent 12dabce062
commit 168d16443d
28 changed files with 22948 additions and 22902 deletions

View File

@ -7,25 +7,25 @@
"type": "fallback"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.5.17+commit.d19bba13\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"fallback\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/Users/brianli/dotfiles/tornado-core/contracts/Mocks/BadRecipient.sol\":\"BadRecipient\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/Users/brianli/dotfiles/tornado-core/contracts/Mocks/BadRecipient.sol\":{\"keccak256\":\"0x0329be02a9fec6e4fbd93d8c98887acd5d46bb09af18298232fc2fe72838ca03\",\"urls\":[\"bzz-raw://c4670e578c58b2326efebcba1a2dd2ee0bf6d70c26f84cdaa3e81f67bd0e360d\",\"dweb:/ipfs/QmbVoxKmmrWzjdnLfJkxhWe6UyjrpCFYjMxRP6uRCfGi7r\"]}},\"version\":1}",
"bytecode": "0x6080604052348015600f57600080fd5b50609c80601d6000396000f3fe6080604052348015600f57600080fd5b5060405162461bcd60e51b815260040180806020018281038252602181526020018060476021913960400191505060405180910390fdfe7468697320636f6e747261637420646f6573206e6f742061636365707420455448a265627a7a723158206626eee46135a11b00680288c5ee8c30dfbb35f740cb59e3c43a3c6e983a8cb764736f6c63430005110032",
"deployedBytecode": "0x6080604052348015600f57600080fd5b5060405162461bcd60e51b815260040180806020018281038252602181526020018060476021913960400191505060405180910390fdfe7468697320636f6e747261637420646f6573206e6f742061636365707420455448a265627a7a723158206626eee46135a11b00680288c5ee8c30dfbb35f740cb59e3c43a3c6e983a8cb764736f6c63430005110032",
"metadata": "{\"compiler\":{\"version\":\"0.5.17+commit.d19bba13\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"fallback\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/home/home/dotfiles/tornado-core/contracts/Mocks/BadRecipient.sol\":\"BadRecipient\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/home/home/dotfiles/tornado-core/contracts/Mocks/BadRecipient.sol\":{\"keccak256\":\"0x0329be02a9fec6e4fbd93d8c98887acd5d46bb09af18298232fc2fe72838ca03\",\"urls\":[\"bzz-raw://c4670e578c58b2326efebcba1a2dd2ee0bf6d70c26f84cdaa3e81f67bd0e360d\",\"dweb:/ipfs/QmbVoxKmmrWzjdnLfJkxhWe6UyjrpCFYjMxRP6uRCfGi7r\"]}},\"version\":1}",
"bytecode": "0x6080604052348015600f57600080fd5b50609c80601d6000396000f3fe6080604052348015600f57600080fd5b5060405162461bcd60e51b815260040180806020018281038252602181526020018060476021913960400191505060405180910390fdfe7468697320636f6e747261637420646f6573206e6f742061636365707420455448a265627a7a7231582032df8468882a84a1577428256b3075571818622e500ee7132ec9e216f517c73064736f6c63430005110032",
"deployedBytecode": "0x6080604052348015600f57600080fd5b5060405162461bcd60e51b815260040180806020018281038252602181526020018060476021913960400191505060405180910390fdfe7468697320636f6e747261637420646f6573206e6f742061636365707420455448a265627a7a7231582032df8468882a84a1577428256b3075571818622e500ee7132ec9e216f517c73064736f6c63430005110032",
"sourceMap": "25:110:4:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;25:110:4;;;;;;;",
"deployedSourceMap": "25:110:4:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;77:51:4;;-1:-1:-1;;;77:51:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;",
"source": "pragma solidity ^0.5.0;\n\ncontract BadRecipient {\n function() external {\n require(false, \"this contract does not accept ETH\");\n }\n}\n",
"sourcePath": "/Users/brianli/dotfiles/tornado-core/contracts/Mocks/BadRecipient.sol",
"sourcePath": "/home/home/dotfiles/tornado-core/contracts/Mocks/BadRecipient.sol",
"ast": {
"absolutePath": "/Users/brianli/dotfiles/tornado-core/contracts/Mocks/BadRecipient.sol",
"absolutePath": "/home/home/dotfiles/tornado-core/contracts/Mocks/BadRecipient.sol",
"exportedSymbols": {
"BadRecipient": [
763
754
]
},
"id": 764,
"id": 755,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 753,
"id": 744,
"literals": [
"solidity",
"^",
@ -41,16 +41,16 @@
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 763,
"id": 754,
"linearizedBaseContracts": [
763
754
],
"name": "BadRecipient",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
"id": 761,
"id": 752,
"nodeType": "Block",
"src": "71:62:4",
"statements": [
@ -61,7 +61,7 @@
{
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 757,
"id": 748,
"isConstant": false,
"isLValue": false,
"isPure": true,
@ -79,7 +79,7 @@
{
"argumentTypes": null,
"hexValue": "7468697320636f6e747261637420646f6573206e6f742061636365707420455448",
"id": 758,
"id": 749,
"isConstant": false,
"isLValue": false,
"isPure": true,
@ -106,21 +106,21 @@
"typeString": "literal_string \"this contract does not accept ETH\""
}
],
"id": 756,
"id": 747,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
3263,
3264
3273,
3274
],
"referencedDeclaration": 3264,
"referencedDeclaration": 3274,
"src": "77:7:4",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 759,
"id": 750,
"isConstant": false,
"isLValue": false,
"isPure": false,
@ -134,39 +134,39 @@
"typeString": "tuple()"
}
},
"id": 760,
"id": 751,
"nodeType": "ExpressionStatement",
"src": "77:51:4"
}
]
},
"documentation": null,
"id": 762,
"id": 753,
"implemented": true,
"kind": "fallback",
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 754,
"id": 745,
"nodeType": "ParameterList",
"parameters": [],
"src": "59:2:4"
},
"returnParameters": {
"id": 755,
"id": 746,
"nodeType": "ParameterList",
"parameters": [],
"src": "71:0:4"
},
"scope": 763,
"scope": 754,
"src": "51:82:4",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
}
],
"scope": 764,
"scope": 755,
"src": "25:110:4"
}
],
@ -174,10 +174,10 @@
},
"legacyAST": {
"attributes": {
"absolutePath": "/Users/brianli/dotfiles/tornado-core/contracts/Mocks/BadRecipient.sol",
"absolutePath": "/home/home/dotfiles/tornado-core/contracts/Mocks/BadRecipient.sol",
"exportedSymbols": {
"BadRecipient": [
763
754
]
}
},
@ -191,7 +191,7 @@
".0"
]
},
"id": 753,
"id": 744,
"name": "PragmaDirective",
"src": "0:23:4"
},
@ -207,10 +207,10 @@
"documentation": null,
"fullyImplemented": true,
"linearizedBaseContracts": [
763
754
],
"name": "BadRecipient",
"scope": 764
"scope": 755
},
"children": [
{
@ -223,7 +223,7 @@
null
],
"name": "",
"scope": 763,
"scope": 754,
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
@ -236,7 +236,7 @@
]
},
"children": [],
"id": 754,
"id": 745,
"name": "ParameterList",
"src": "59:2:4"
},
@ -247,7 +247,7 @@
]
},
"children": [],
"id": 755,
"id": 746,
"name": "ParameterList",
"src": "71:0:4"
},
@ -283,14 +283,14 @@
}
],
"overloadedDeclarations": [
3263,
3264
3273,
3274
],
"referencedDeclaration": 3264,
"referencedDeclaration": 3274,
"type": "function (bool,string memory) pure",
"value": "require"
},
"id": 756,
"id": 747,
"name": "Identifier",
"src": "77:7:4"
},
@ -307,7 +307,7 @@
"type": "bool",
"value": "false"
},
"id": 757,
"id": 748,
"name": "Literal",
"src": "85:5:4"
},
@ -324,37 +324,37 @@
"type": "literal_string \"this contract does not accept ETH\"",
"value": "this contract does not accept ETH"
},
"id": 758,
"id": 749,
"name": "Literal",
"src": "92:35:4"
}
],
"id": 759,
"id": 750,
"name": "FunctionCall",
"src": "77:51:4"
}
],
"id": 760,
"id": 751,
"name": "ExpressionStatement",
"src": "77:51:4"
}
],
"id": 761,
"id": 752,
"name": "Block",
"src": "71:62:4"
}
],
"id": 762,
"id": 753,
"name": "FunctionDefinition",
"src": "51:82:4"
}
],
"id": 763,
"id": 754,
"name": "ContractDefinition",
"src": "25:110:4"
}
],
"id": 764,
"id": 755,
"name": "SourceUnit",
"src": "0:136:4"
},
@ -364,7 +364,7 @@
},
"networks": {},
"schemaVersion": "3.3.4",
"updatedAt": "2021-03-14T02:18:33.084Z",
"updatedAt": "2021-04-04T20:21:29.863Z",
"devdoc": {
"methods": {}
},

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -19,14 +19,14 @@
"absolutePath": "@openzeppelin/contracts/GSN/Context.sol",
"exportedSymbols": {
"Context": [
2280
2290
]
},
"id": 2281,
"id": 2291,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 2255,
"id": 2265,
"literals": [
"solidity",
"^",
@ -42,40 +42,40 @@
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 2280,
"id": 2290,
"linearizedBaseContracts": [
2280
2290
],
"name": "Context",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
"id": 2258,
"id": 2268,
"nodeType": "Block",
"src": "726:3:10",
"statements": []
},
"documentation": null,
"id": 2259,
"id": 2269,
"implemented": true,
"kind": "constructor",
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2256,
"id": 2266,
"nodeType": "ParameterList",
"parameters": [],
"src": "714:2:10"
},
"returnParameters": {
"id": 2257,
"id": 2267,
"nodeType": "ParameterList",
"parameters": [],
"src": "726:0:10"
},
"scope": 2280,
"scope": 2290,
"src": "702:27:10",
"stateMutability": "nonpayable",
"superFunction": null,
@ -83,7 +83,7 @@
},
{
"body": {
"id": 2267,
"id": 2277,
"nodeType": "Block",
"src": "850:34:10",
"statements": [
@ -92,18 +92,18 @@
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 2264,
"id": 2274,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3260,
"referencedDeclaration": 3270,
"src": "867:3:10",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 2265,
"id": 2275,
"isConstant": false,
"isLValue": false,
"isPure": false,
@ -117,36 +117,36 @@
"typeString": "address payable"
}
},
"functionReturnParameters": 2263,
"id": 2266,
"functionReturnParameters": 2273,
"id": 2276,
"nodeType": "Return",
"src": "860:17:10"
}
]
},
"documentation": null,
"id": 2268,
"id": 2278,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "_msgSender",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2260,
"id": 2270,
"nodeType": "ParameterList",
"parameters": [],
"src": "807:2:10"
},
"returnParameters": {
"id": 2263,
"id": 2273,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2262,
"id": 2272,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 2268,
"scope": 2278,
"src": "833:15:10",
"stateVariable": false,
"storageLocation": "default",
@ -155,7 +155,7 @@
"typeString": "address payable"
},
"typeName": {
"id": 2261,
"id": 2271,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "833:15:10",
@ -171,7 +171,7 @@
],
"src": "832:17:10"
},
"scope": 2280,
"scope": 2290,
"src": "788:96:10",
"stateMutability": "view",
"superFunction": null,
@ -179,25 +179,25 @@
},
{
"body": {
"id": 2278,
"id": 2288,
"nodeType": "Block",
"src": "947:165:10",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 2273,
"id": 2283,
"name": "this",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3292,
"referencedDeclaration": 3304,
"src": "957:4:10",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Context_$2280",
"typeIdentifier": "t_contract$_Context_$2290",
"typeString": "contract Context"
}
},
"id": 2274,
"id": 2284,
"nodeType": "ExpressionStatement",
"src": "957:4:10"
},
@ -206,18 +206,18 @@
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 2275,
"id": 2285,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3260,
"referencedDeclaration": 3270,
"src": "1097:3:10",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 2276,
"id": 2286,
"isConstant": false,
"isLValue": false,
"isPure": false,
@ -231,36 +231,36 @@
"typeString": "bytes calldata"
}
},
"functionReturnParameters": 2272,
"id": 2277,
"functionReturnParameters": 2282,
"id": 2287,
"nodeType": "Return",
"src": "1090:15:10"
}
]
},
"documentation": null,
"id": 2279,
"id": 2289,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "_msgData",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2269,
"id": 2279,
"nodeType": "ParameterList",
"parameters": [],
"src": "907:2:10"
},
"returnParameters": {
"id": 2272,
"id": 2282,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2271,
"id": 2281,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 2279,
"scope": 2289,
"src": "933:12:10",
"stateVariable": false,
"storageLocation": "memory",
@ -269,7 +269,7 @@
"typeString": "bytes"
},
"typeName": {
"id": 2270,
"id": 2280,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "933:5:10",
@ -284,14 +284,14 @@
],
"src": "932:14:10"
},
"scope": 2280,
"scope": 2290,
"src": "890:222:10",
"stateMutability": "view",
"superFunction": null,
"visibility": "internal"
}
],
"scope": 2281,
"scope": 2291,
"src": "525:589:10"
}
],
@ -302,7 +302,7 @@
"absolutePath": "@openzeppelin/contracts/GSN/Context.sol",
"exportedSymbols": {
"Context": [
2280
2290
]
}
},
@ -316,7 +316,7 @@
".0"
]
},
"id": 2255,
"id": 2265,
"name": "PragmaDirective",
"src": "0:23:10"
},
@ -332,10 +332,10 @@
"documentation": null,
"fullyImplemented": true,
"linearizedBaseContracts": [
2280
2290
],
"name": "Context",
"scope": 2281
"scope": 2291
},
"children": [
{
@ -348,7 +348,7 @@
null
],
"name": "",
"scope": 2280,
"scope": 2290,
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "internal"
@ -361,7 +361,7 @@
]
},
"children": [],
"id": 2256,
"id": 2266,
"name": "ParameterList",
"src": "714:2:10"
},
@ -372,7 +372,7 @@
]
},
"children": [],
"id": 2257,
"id": 2267,
"name": "ParameterList",
"src": "726:0:10"
},
@ -383,12 +383,12 @@
]
},
"children": [],
"id": 2258,
"id": 2268,
"name": "Block",
"src": "726:3:10"
}
],
"id": 2259,
"id": 2269,
"name": "FunctionDefinition",
"src": "702:27:10"
},
@ -402,7 +402,7 @@
null
],
"name": "_msgSender",
"scope": 2280,
"scope": 2290,
"stateMutability": "view",
"superFunction": null,
"visibility": "internal"
@ -415,7 +415,7 @@
]
},
"children": [],
"id": 2260,
"id": 2270,
"name": "ParameterList",
"src": "807:2:10"
},
@ -425,7 +425,7 @@
"attributes": {
"constant": false,
"name": "",
"scope": 2268,
"scope": 2278,
"stateVariable": false,
"storageLocation": "default",
"type": "address payable",
@ -439,17 +439,17 @@
"stateMutability": "payable",
"type": "address payable"
},
"id": 2261,
"id": 2271,
"name": "ElementaryTypeName",
"src": "833:15:10"
}
],
"id": 2262,
"id": 2272,
"name": "VariableDeclaration",
"src": "833:15:10"
}
],
"id": 2263,
"id": 2273,
"name": "ParameterList",
"src": "832:17:10"
},
@ -457,7 +457,7 @@
"children": [
{
"attributes": {
"functionReturnParameters": 2263
"functionReturnParameters": 2273
},
"children": [
{
@ -478,31 +478,31 @@
"overloadedDeclarations": [
null
],
"referencedDeclaration": 3260,
"referencedDeclaration": 3270,
"type": "msg",
"value": "msg"
},
"id": 2264,
"id": 2274,
"name": "Identifier",
"src": "867:3:10"
}
],
"id": 2265,
"id": 2275,
"name": "MemberAccess",
"src": "867:10:10"
}
],
"id": 2266,
"id": 2276,
"name": "Return",
"src": "860:17:10"
}
],
"id": 2267,
"id": 2277,
"name": "Block",
"src": "850:34:10"
}
],
"id": 2268,
"id": 2278,
"name": "FunctionDefinition",
"src": "788:96:10"
},
@ -516,7 +516,7 @@
null
],
"name": "_msgData",
"scope": 2280,
"scope": 2290,
"stateMutability": "view",
"superFunction": null,
"visibility": "internal"
@ -529,7 +529,7 @@
]
},
"children": [],
"id": 2269,
"id": 2279,
"name": "ParameterList",
"src": "907:2:10"
},
@ -539,7 +539,7 @@
"attributes": {
"constant": false,
"name": "",
"scope": 2279,
"scope": 2289,
"stateVariable": false,
"storageLocation": "memory",
"type": "bytes",
@ -552,17 +552,17 @@
"name": "bytes",
"type": "bytes"
},
"id": 2270,
"id": 2280,
"name": "ElementaryTypeName",
"src": "933:5:10"
}
],
"id": 2271,
"id": 2281,
"name": "VariableDeclaration",
"src": "933:12:10"
}
],
"id": 2272,
"id": 2282,
"name": "ParameterList",
"src": "932:14:10"
},
@ -576,22 +576,22 @@
"overloadedDeclarations": [
null
],
"referencedDeclaration": 3292,
"referencedDeclaration": 3304,
"type": "contract Context",
"value": "this"
},
"id": 2273,
"id": 2283,
"name": "Identifier",
"src": "957:4:10"
}
],
"id": 2274,
"id": 2284,
"name": "ExpressionStatement",
"src": "957:4:10"
},
{
"attributes": {
"functionReturnParameters": 2272
"functionReturnParameters": 2282
},
"children": [
{
@ -612,41 +612,41 @@
"overloadedDeclarations": [
null
],
"referencedDeclaration": 3260,
"referencedDeclaration": 3270,
"type": "msg",
"value": "msg"
},
"id": 2275,
"id": 2285,
"name": "Identifier",
"src": "1097:3:10"
}
],
"id": 2276,
"id": 2286,
"name": "MemberAccess",
"src": "1097:8:10"
}
],
"id": 2277,
"id": 2287,
"name": "Return",
"src": "1090:15:10"
}
],
"id": 2278,
"id": 2288,
"name": "Block",
"src": "947:165:10"
}
],
"id": 2279,
"id": 2289,
"name": "FunctionDefinition",
"src": "890:222:10"
}
],
"id": 2280,
"id": 2290,
"name": "ContractDefinition",
"src": "525:589:10"
}
],
"id": 2281,
"id": 2291,
"name": "SourceUnit",
"src": "0:1115:10"
},
@ -656,7 +656,7 @@
},
"networks": {},
"schemaVersion": "3.3.4",
"updatedAt": "2021-03-14T02:18:33.142Z",
"updatedAt": "2021-04-04T20:21:29.907Z",
"devdoc": {
"methods": {}
},

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -357,14 +357,14 @@
"absolutePath": "@openzeppelin/contracts/token/ERC20/ERC20Mintable.sol",
"exportedSymbols": {
"ERC20Mintable": [
3146
3156
]
},
"id": 3147,
"id": 3157,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 3120,
"id": 3130,
"literals": [
"solidity",
"^",
@ -377,10 +377,10 @@
{
"absolutePath": "@openzeppelin/contracts/token/ERC20/ERC20.sol",
"file": "./ERC20.sol",
"id": 3121,
"id": 3131,
"nodeType": "ImportDirective",
"scope": 3147,
"sourceUnit": 3061,
"scope": 3157,
"sourceUnit": 3071,
"src": "25:21:16",
"symbolAliases": [],
"unitAlias": ""
@ -388,10 +388,10 @@
{
"absolutePath": "@openzeppelin/contracts/access/roles/MinterRole.sol",
"file": "../../access/roles/MinterRole.sol",
"id": 3122,
"id": 3132,
"nodeType": "ImportDirective",
"scope": 3147,
"sourceUnit": 2469,
"scope": 3157,
"sourceUnit": 2479,
"src": "47:43:16",
"symbolAliases": [],
"unitAlias": ""
@ -402,17 +402,17 @@
"arguments": null,
"baseName": {
"contractScope": null,
"id": 3123,
"id": 3133,
"name": "ERC20",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 3060,
"referencedDeclaration": 3070,
"src": "348:5:16",
"typeDescriptions": {
"typeIdentifier": "t_contract$_ERC20_$3060",
"typeIdentifier": "t_contract$_ERC20_$3070",
"typeString": "contract ERC20"
}
},
"id": 3124,
"id": 3134,
"nodeType": "InheritanceSpecifier",
"src": "348:5:16"
},
@ -420,44 +420,44 @@
"arguments": null,
"baseName": {
"contractScope": null,
"id": 3125,
"id": 3135,
"name": "MinterRole",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 2468,
"referencedDeclaration": 2478,
"src": "355:10:16",
"typeDescriptions": {
"typeIdentifier": "t_contract$_MinterRole_$2468",
"typeIdentifier": "t_contract$_MinterRole_$2478",
"typeString": "contract MinterRole"
}
},
"id": 3126,
"id": 3136,
"nodeType": "InheritanceSpecifier",
"src": "355:10:16"
}
],
"contractDependencies": [
2280,
2468,
3060,
3215
2290,
2478,
3070,
3225
],
"contractKind": "contract",
"documentation": "@dev Extension of {ERC20} that adds a set of accounts with the {MinterRole},\nwhich have permission to mint (create) new tokens as they see fit.\n * At construction, the deployer of the contract is the only minter.",
"fullyImplemented": true,
"id": 3146,
"id": 3156,
"linearizedBaseContracts": [
3146,
2468,
3060,
3215,
2280
3156,
2478,
3070,
3225,
2290
],
"name": "ERC20Mintable",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
"id": 3144,
"id": 3154,
"nodeType": "Block",
"src": "582:60:16",
"statements": [
@ -467,11 +467,11 @@
"arguments": [
{
"argumentTypes": null,
"id": 3138,
"id": 3148,
"name": "account",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3128,
"referencedDeclaration": 3138,
"src": "598:7:16",
"typeDescriptions": {
"typeIdentifier": "t_address",
@ -480,11 +480,11 @@
},
{
"argumentTypes": null,
"id": 3139,
"id": 3149,
"name": "amount",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3130,
"referencedDeclaration": 3140,
"src": "607:6:16",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
@ -503,18 +503,18 @@
"typeString": "uint256"
}
],
"id": 3137,
"id": 3147,
"name": "_mint",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2944,
"referencedDeclaration": 2954,
"src": "592:5:16",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$",
"typeString": "function (address,uint256)"
}
},
"id": 3140,
"id": 3150,
"isConstant": false,
"isLValue": false,
"isPure": false,
@ -528,7 +528,7 @@
"typeString": "tuple()"
}
},
"id": 3141,
"id": 3151,
"nodeType": "ExpressionStatement",
"src": "592:22:16"
},
@ -536,7 +536,7 @@
"expression": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 3142,
"id": 3152,
"isConstant": false,
"isLValue": false,
"isPure": true,
@ -551,28 +551,28 @@
},
"value": "true"
},
"functionReturnParameters": 3136,
"id": 3143,
"functionReturnParameters": 3146,
"id": 3153,
"nodeType": "Return",
"src": "624:11:16"
}
]
},
"documentation": "@dev See {ERC20-_mint}.\n * Requirements:\n * - the caller must have the {MinterRole}.",
"id": 3145,
"id": 3155,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 3133,
"id": 3143,
"modifierName": {
"argumentTypes": null,
"id": 3132,
"id": 3142,
"name": "onlyMinter",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2401,
"referencedDeclaration": 2411,
"src": "556:10:16",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
@ -586,15 +586,15 @@
"name": "mint",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3131,
"id": 3141,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3128,
"id": 3138,
"name": "account",
"nodeType": "VariableDeclaration",
"scope": 3145,
"scope": 3155,
"src": "516:15:16",
"stateVariable": false,
"storageLocation": "default",
@ -603,7 +603,7 @@
"typeString": "address"
},
"typeName": {
"id": 3127,
"id": 3137,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "516:7:16",
@ -618,10 +618,10 @@
},
{
"constant": false,
"id": 3130,
"id": 3140,
"name": "amount",
"nodeType": "VariableDeclaration",
"scope": 3145,
"scope": 3155,
"src": "533:14:16",
"stateVariable": false,
"storageLocation": "default",
@ -630,7 +630,7 @@
"typeString": "uint256"
},
"typeName": {
"id": 3129,
"id": 3139,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "533:7:16",
@ -646,15 +646,15 @@
"src": "515:33:16"
},
"returnParameters": {
"id": 3136,
"id": 3146,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3135,
"id": 3145,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3145,
"scope": 3155,
"src": "576:4:16",
"stateVariable": false,
"storageLocation": "default",
@ -663,7 +663,7 @@
"typeString": "bool"
},
"typeName": {
"id": 3134,
"id": 3144,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "576:4:16",
@ -678,14 +678,14 @@
],
"src": "575:6:16"
},
"scope": 3146,
"scope": 3156,
"src": "502:140:16",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
"scope": 3147,
"scope": 3157,
"src": "322:322:16"
}
],
@ -696,7 +696,7 @@
"absolutePath": "@openzeppelin/contracts/token/ERC20/ERC20Mintable.sol",
"exportedSymbols": {
"ERC20Mintable": [
3146
3156
]
}
},
@ -710,60 +710,60 @@
".0"
]
},
"id": 3120,
"id": 3130,
"name": "PragmaDirective",
"src": "0:23:16"
},
{
"attributes": {
"SourceUnit": 3061,
"SourceUnit": 3071,
"absolutePath": "@openzeppelin/contracts/token/ERC20/ERC20.sol",
"file": "./ERC20.sol",
"scope": 3147,
"scope": 3157,
"symbolAliases": [
null
],
"unitAlias": ""
},
"id": 3121,
"id": 3131,
"name": "ImportDirective",
"src": "25:21:16"
},
{
"attributes": {
"SourceUnit": 2469,
"SourceUnit": 2479,
"absolutePath": "@openzeppelin/contracts/access/roles/MinterRole.sol",
"file": "../../access/roles/MinterRole.sol",
"scope": 3147,
"scope": 3157,
"symbolAliases": [
null
],
"unitAlias": ""
},
"id": 3122,
"id": 3132,
"name": "ImportDirective",
"src": "47:43:16"
},
{
"attributes": {
"contractDependencies": [
2280,
2468,
3060,
3215
2290,
2478,
3070,
3225
],
"contractKind": "contract",
"documentation": "@dev Extension of {ERC20} that adds a set of accounts with the {MinterRole},\nwhich have permission to mint (create) new tokens as they see fit.\n * At construction, the deployer of the contract is the only minter.",
"fullyImplemented": true,
"linearizedBaseContracts": [
3146,
2468,
3060,
3215,
2280
3156,
2478,
3070,
3225,
2290
],
"name": "ERC20Mintable",
"scope": 3147
"scope": 3157
},
"children": [
{
@ -775,15 +775,15 @@
"attributes": {
"contractScope": null,
"name": "ERC20",
"referencedDeclaration": 3060,
"referencedDeclaration": 3070,
"type": "contract ERC20"
},
"id": 3123,
"id": 3133,
"name": "UserDefinedTypeName",
"src": "348:5:16"
}
],
"id": 3124,
"id": 3134,
"name": "InheritanceSpecifier",
"src": "348:5:16"
},
@ -796,15 +796,15 @@
"attributes": {
"contractScope": null,
"name": "MinterRole",
"referencedDeclaration": 2468,
"referencedDeclaration": 2478,
"type": "contract MinterRole"
},
"id": 3125,
"id": 3135,
"name": "UserDefinedTypeName",
"src": "355:10:16"
}
],
"id": 3126,
"id": 3136,
"name": "InheritanceSpecifier",
"src": "355:10:16"
},
@ -815,7 +815,7 @@
"isConstructor": false,
"kind": "function",
"name": "mint",
"scope": 3146,
"scope": 3156,
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
@ -827,7 +827,7 @@
"attributes": {
"constant": false,
"name": "account",
"scope": 3145,
"scope": 3155,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
@ -841,12 +841,12 @@
"stateMutability": "nonpayable",
"type": "address"
},
"id": 3127,
"id": 3137,
"name": "ElementaryTypeName",
"src": "516:7:16"
}
],
"id": 3128,
"id": 3138,
"name": "VariableDeclaration",
"src": "516:15:16"
},
@ -854,7 +854,7 @@
"attributes": {
"constant": false,
"name": "amount",
"scope": 3145,
"scope": 3155,
"stateVariable": false,
"storageLocation": "default",
"type": "uint256",
@ -867,17 +867,17 @@
"name": "uint256",
"type": "uint256"
},
"id": 3129,
"id": 3139,
"name": "ElementaryTypeName",
"src": "533:7:16"
}
],
"id": 3130,
"id": 3140,
"name": "VariableDeclaration",
"src": "533:14:16"
}
],
"id": 3131,
"id": 3141,
"name": "ParameterList",
"src": "515:33:16"
},
@ -887,7 +887,7 @@
"attributes": {
"constant": false,
"name": "",
"scope": 3145,
"scope": 3155,
"stateVariable": false,
"storageLocation": "default",
"type": "bool",
@ -900,17 +900,17 @@
"name": "bool",
"type": "bool"
},
"id": 3134,
"id": 3144,
"name": "ElementaryTypeName",
"src": "576:4:16"
}
],
"id": 3135,
"id": 3145,
"name": "VariableDeclaration",
"src": "576:4:16"
}
],
"id": 3136,
"id": 3146,
"name": "ParameterList",
"src": "575:6:16"
},
@ -925,16 +925,16 @@
"overloadedDeclarations": [
null
],
"referencedDeclaration": 2401,
"referencedDeclaration": 2411,
"type": "modifier ()",
"value": "onlyMinter"
},
"id": 3132,
"id": 3142,
"name": "Identifier",
"src": "556:10:16"
}
],
"id": 3133,
"id": 3143,
"name": "ModifierInvocation",
"src": "556:10:16"
},
@ -972,11 +972,11 @@
"overloadedDeclarations": [
null
],
"referencedDeclaration": 2944,
"referencedDeclaration": 2954,
"type": "function (address,uint256)",
"value": "_mint"
},
"id": 3137,
"id": 3147,
"name": "Identifier",
"src": "592:5:16"
},
@ -986,11 +986,11 @@
"overloadedDeclarations": [
null
],
"referencedDeclaration": 3128,
"referencedDeclaration": 3138,
"type": "address",
"value": "account"
},
"id": 3138,
"id": 3148,
"name": "Identifier",
"src": "598:7:16"
},
@ -1000,27 +1000,27 @@
"overloadedDeclarations": [
null
],
"referencedDeclaration": 3130,
"referencedDeclaration": 3140,
"type": "uint256",
"value": "amount"
},
"id": 3139,
"id": 3149,
"name": "Identifier",
"src": "607:6:16"
}
],
"id": 3140,
"id": 3150,
"name": "FunctionCall",
"src": "592:22:16"
}
],
"id": 3141,
"id": 3151,
"name": "ExpressionStatement",
"src": "592:22:16"
},
{
"attributes": {
"functionReturnParameters": 3136
"functionReturnParameters": 3146
},
"children": [
{
@ -1036,32 +1036,32 @@
"type": "bool",
"value": "true"
},
"id": 3142,
"id": 3152,
"name": "Literal",
"src": "631:4:16"
}
],
"id": 3143,
"id": 3153,
"name": "Return",
"src": "624:11:16"
}
],
"id": 3144,
"id": 3154,
"name": "Block",
"src": "582:60:16"
}
],
"id": 3145,
"id": 3155,
"name": "FunctionDefinition",
"src": "502:140:16"
}
],
"id": 3146,
"id": 3156,
"name": "ContractDefinition",
"src": "322:322:16"
}
],
"id": 3147,
"id": 3157,
"name": "SourceUnit",
"src": "0:645:16"
},
@ -1071,7 +1071,7 @@
},
"networks": {},
"schemaVersion": "3.3.4",
"updatedAt": "2021-03-14T02:18:33.153Z",
"updatedAt": "2021-04-04T20:21:29.917Z",
"devdoc": {
"details": "Extension of {ERC20} that adds a set of accounts with the {MinterRole}, which have permission to mint (create) new tokens as they see fit. * At construction, the deployer of the contract is the only minter.",
"methods": {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -74,15 +74,15 @@
"type": "function"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.5.17+commit.d19bba13\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_feeToSetter\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"constant\":true,\"inputs\":[],\"name\":\"feeTo\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"feeToSetter\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"_feeTo\",\"type\":\"address\"}],\"name\":\"setFeeTo\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"_feeToSetter\",\"type\":\"address\"}],\"name\":\"setFeeToSetter\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/Users/brianli/dotfiles/tornado-core/contracts/FeeManager.sol\":\"FeeManager\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/Users/brianli/dotfiles/tornado-core/contracts/FeeManager.sol\":{\"keccak256\":\"0x4d54892e74f27c38f1e40bcdaf44a67aa65e2692b30246850b8c32491f1b3d02\",\"urls\":[\"bzz-raw://ca5bd8d25a99b03a29a764ce6f887dd1022b50b9308ef705be0d71ad79687f08\",\"dweb:/ipfs/QmSYMnxLnn4HGNy32YHDEs8rNkNwV6h4xsvDbKCv3vAMMt\"]}},\"version\":1}",
"bytecode": "0x608060405234801561001057600080fd5b506040516102673803806102678339818101604052602081101561003357600080fd5b5051600180546001600160a01b0319166001600160a01b03909216919091179055610204806100636000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c8063017e7e5814610051578063094b741514610075578063a2e74af61461007d578063f46901ed146100a5575b600080fd5b6100596100cb565b604080516001600160a01b039092168252519081900360200190f35b6100596100da565b6100a36004803603602081101561009357600080fd5b50356001600160a01b03166100e9565b005b6100a3600480360360208110156100bb57600080fd5b50356001600160a01b031661015c565b6000546001600160a01b031681565b6001546001600160a01b031681565b6001546001600160a01b0316331461013a576040805162461bcd60e51b815260206004820152600f60248201526e2837b7b31d102327a92124a22222a760891b604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031633146101ad576040805162461bcd60e51b815260206004820152600f60248201526e2837b7b31d102327a92124a22222a760891b604482015290519081900360640190fd5b600080546001600160a01b0319166001600160a01b039290921691909117905556fea265627a7a72315820a0b1c5e2571525fdf052a571d7a5a1b3837ca98305095102ec0d6d1d879183b264736f6c63430005110032",
"deployedBytecode": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c8063017e7e5814610051578063094b741514610075578063a2e74af61461007d578063f46901ed146100a5575b600080fd5b6100596100cb565b604080516001600160a01b039092168252519081900360200190f35b6100596100da565b6100a36004803603602081101561009357600080fd5b50356001600160a01b03166100e9565b005b6100a3600480360360208110156100bb57600080fd5b50356001600160a01b031661015c565b6000546001600160a01b031681565b6001546001600160a01b031681565b6001546001600160a01b0316331461013a576040805162461bcd60e51b815260206004820152600f60248201526e2837b7b31d102327a92124a22222a760891b604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031633146101ad576040805162461bcd60e51b815260206004820152600f60248201526e2837b7b31d102327a92124a22222a760891b604482015290519081900360640190fd5b600080546001600160a01b0319166001600160a01b039290921691909117905556fea265627a7a72315820a0b1c5e2571525fdf052a571d7a5a1b3837ca98305095102ec0d6d1d879183b264736f6c63430005110032",
"metadata": "{\"compiler\":{\"version\":\"0.5.17+commit.d19bba13\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_feeToSetter\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"constant\":true,\"inputs\":[],\"name\":\"feeTo\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"feeToSetter\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"_feeTo\",\"type\":\"address\"}],\"name\":\"setFeeTo\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"_feeToSetter\",\"type\":\"address\"}],\"name\":\"setFeeToSetter\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/home/home/dotfiles/tornado-core/contracts/FeeManager.sol\":\"FeeManager\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/home/home/dotfiles/tornado-core/contracts/FeeManager.sol\":{\"keccak256\":\"0x4d54892e74f27c38f1e40bcdaf44a67aa65e2692b30246850b8c32491f1b3d02\",\"urls\":[\"bzz-raw://ca5bd8d25a99b03a29a764ce6f887dd1022b50b9308ef705be0d71ad79687f08\",\"dweb:/ipfs/QmSYMnxLnn4HGNy32YHDEs8rNkNwV6h4xsvDbKCv3vAMMt\"]}},\"version\":1}",
"bytecode": "0x608060405234801561001057600080fd5b506040516102673803806102678339818101604052602081101561003357600080fd5b5051600180546001600160a01b0319166001600160a01b03909216919091179055610204806100636000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c8063017e7e5814610051578063094b741514610075578063a2e74af61461007d578063f46901ed146100a5575b600080fd5b6100596100cb565b604080516001600160a01b039092168252519081900360200190f35b6100596100da565b6100a36004803603602081101561009357600080fd5b50356001600160a01b03166100e9565b005b6100a3600480360360208110156100bb57600080fd5b50356001600160a01b031661015c565b6000546001600160a01b031681565b6001546001600160a01b031681565b6001546001600160a01b0316331461013a576040805162461bcd60e51b815260206004820152600f60248201526e2837b7b31d102327a92124a22222a760891b604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031633146101ad576040805162461bcd60e51b815260206004820152600f60248201526e2837b7b31d102327a92124a22222a760891b604482015290519081900360640190fd5b600080546001600160a01b0319166001600160a01b039290921691909117905556fea265627a7a723158206a757806aa409461ff72f1edf5093477492e6d063b792779acb98460ba01efdf64736f6c63430005110032",
"deployedBytecode": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c8063017e7e5814610051578063094b741514610075578063a2e74af61461007d578063f46901ed146100a5575b600080fd5b6100596100cb565b604080516001600160a01b039092168252519081900360200190f35b6100596100da565b6100a36004803603602081101561009357600080fd5b50356001600160a01b03166100e9565b005b6100a3600480360360208110156100bb57600080fd5b50356001600160a01b031661015c565b6000546001600160a01b031681565b6001546001600160a01b031681565b6001546001600160a01b0316331461013a576040805162461bcd60e51b815260206004820152600f60248201526e2837b7b31d102327a92124a22222a760891b604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031633146101ad576040805162461bcd60e51b815260206004820152600f60248201526e2837b7b31d102327a92124a22222a760891b604482015290519081900360640190fd5b600080546001600160a01b0319166001600160a01b039290921691909117905556fea265627a7a723158206a757806aa409461ff72f1edf5093477492e6d063b792779acb98460ba01efdf64736f6c63430005110032",
"sourceMap": "25:453:1:-;;;104:78;8:9:-1;5:2;;;30:1;27;20:12;5:2;104:78:1;;;;;;;;;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;104:78:1;151:11;:26;;-1:-1:-1;;;;;;151:26:1;-1:-1:-1;;;;;151:26:1;;;;;;;;;25:453;;;-1:-1:-1;25:453:1;;",
"deployedSourceMap": "25:453:1:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;25:453:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49:20;;;:::i;:::-;;;;-1:-1:-1;;;;;49:20:1;;;;;;;;;;;;;;73:26;;;:::i;321:155::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;321:155:1;-1:-1:-1;;;;;321:155:1;;:::i;:::-;;186:131;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;186:131:1;-1:-1:-1;;;;;186:131:1;;:::i;49:20::-;;;-1:-1:-1;;;;;49:20:1;;:::o;73:26::-;;;-1:-1:-1;;;;;73:26:1;;:::o;321:155::-;406:11;;-1:-1:-1;;;;;406:11:1;392:10;:25;384:53;;;;;-1:-1:-1;;;384:53:1;;;;;;;;;;;;-1:-1:-1;;;384:53:1;;;;;;;;;;;;;;;445:11;:26;;-1:-1:-1;;;;;;445:26:1;-1:-1:-1;;;;;445:26:1;;;;;;;;;;321:155::o;186:131::-;259:11;;-1:-1:-1;;;;;259:11:1;245:10;:25;237:53;;;;;-1:-1:-1;;;237:53:1;;;;;;;;;;;;-1:-1:-1;;;237:53:1;;;;;;;;;;;;;;;298:5;:14;;-1:-1:-1;;;;;;298:14:1;-1:-1:-1;;;;;298:14:1;;;;;;;;;;186:131::o",
"source": "pragma solidity 0.5.17;\n\ncontract FeeManager {\n address public feeTo;\n address public feeToSetter;\n\n constructor(address _feeToSetter) public {\n feeToSetter = _feeToSetter;\n }\n\n function setFeeTo(address _feeTo) external {\n require(msg.sender == feeToSetter, 'Poof: FORBIDDEN');\n feeTo = _feeTo;\n }\n\n function setFeeToSetter(address _feeToSetter) external {\n require(msg.sender == feeToSetter, 'Poof: FORBIDDEN');\n feeToSetter = _feeToSetter;\n }\n}\n",
"sourcePath": "/Users/brianli/dotfiles/tornado-core/contracts/FeeManager.sol",
"sourcePath": "/home/home/dotfiles/tornado-core/contracts/FeeManager.sol",
"ast": {
"absolutePath": "/Users/brianli/dotfiles/tornado-core/contracts/FeeManager.sol",
"absolutePath": "/home/home/dotfiles/tornado-core/contracts/FeeManager.sol",
"exportedSymbols": {
"FeeManager": [
319
@ -304,7 +304,7 @@
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1068,
"referencedDeclaration": 3270,
"src": "245:3:1",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
@ -380,10 +380,10 @@
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
1071,
1072
3273,
3274
],
"referencedDeclaration": 1072,
"referencedDeclaration": 3274,
"src": "237:7:1",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
@ -538,7 +538,7 @@
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1068,
"referencedDeclaration": 3270,
"src": "392:3:1",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
@ -614,10 +614,10 @@
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
1071,
1072
3273,
3274
],
"referencedDeclaration": 1072,
"referencedDeclaration": 3274,
"src": "384:7:1",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
@ -752,7 +752,7 @@
},
"legacyAST": {
"attributes": {
"absolutePath": "/Users/brianli/dotfiles/tornado-core/contracts/FeeManager.sol",
"absolutePath": "/home/home/dotfiles/tornado-core/contracts/FeeManager.sol",
"exportedSymbols": {
"FeeManager": [
319
@ -1061,10 +1061,10 @@
}
],
"overloadedDeclarations": [
1071,
1072
3273,
3274
],
"referencedDeclaration": 1072,
"referencedDeclaration": 3274,
"type": "function (bool,string memory) pure",
"value": "require"
},
@ -1105,7 +1105,7 @@
"overloadedDeclarations": [
null
],
"referencedDeclaration": 1068,
"referencedDeclaration": 3270,
"type": "msg",
"value": "msg"
},
@ -1318,10 +1318,10 @@
}
],
"overloadedDeclarations": [
1071,
1072
3273,
3274
],
"referencedDeclaration": 1072,
"referencedDeclaration": 3274,
"type": "function (bool,string memory) pure",
"value": "require"
},
@ -1362,7 +1362,7 @@
"overloadedDeclarations": [
null
],
"referencedDeclaration": 1068,
"referencedDeclaration": 3270,
"type": "msg",
"value": "msg"
},
@ -1500,12 +1500,18 @@
"42220": {
"events": {},
"links": {},
"address": "0x7d21531Adf9d029Acc8C5b225d77Ce2a819887B6",
"transactionHash": "0x1e7d99d96bbf8bce1e1fb870088e2cd6cbdc27a87e8274d3cdb72042686b285d"
"address": "0x4f5a2d44Cdd06fEcEF8BEb064d2F83dC35718AA6",
"transactionHash": "0xffcbb19dd7ae7801ba05d692c21f2e2ccc3622c46f6b8c186b0dfafae619dd92"
},
"44787": {
"events": {},
"links": {},
"address": "0x607f385971537CB71ec87C4592Cd1b7a6eaE73B9",
"transactionHash": "0x8097e52c23604831ededea9f0b5bd3b38fe4c4bebee56aaf42a7145c2a476767"
}
},
"schemaVersion": "3.3.4",
"updatedAt": "2021-04-02T22:56:11.656Z",
"updatedAt": "2021-04-04T21:13:13.401Z",
"networkType": "ethereum",
"devdoc": {
"methods": {}

View File

@ -40,17 +40,17 @@
"42220": {
"events": {},
"links": {},
"address": "0x5666A6E07d7b991489b1D0f53d37B664B312a1fE",
"transactionHash": "0x70b1d0c40688aed10a6281b09f1159e9a5d44b5654cd18f6ef7d56ee14d68bcf"
"address": "0xeE4628179283Be3f5096b94bc528e443cFAf7c2f",
"transactionHash": "0xf5a72c2f43c0049b81e3c91b678234d09af64589dd2f413246aa73959e68b8c3"
},
"44787": {
"events": {},
"links": {},
"address": "0xd6ae2Af69ECb0A799a00c21e379e07f3bA185d6b",
"transactionHash": "0x0846464344daa2872ed30dc4dcbf9b5d7f5982298d99f1334a580650ca16528a"
"address": "0x415A7775E7B2DC547e071d752CF404316498a43A",
"transactionHash": "0xd60bde6db4fa8478054271acdb0116f350a972d78215152b1902cb2a2c32cb85"
}
},
"schemaVersion": "3.3.4",
"updatedAt": "2021-04-02T22:56:11.658Z",
"updatedAt": "2021-04-04T21:13:13.402Z",
"networkType": "ethereum"
}

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -19,14 +19,14 @@
"absolutePath": "@openzeppelin/contracts/utils/ReentrancyGuard.sol",
"exportedSymbols": {
"ReentrancyGuard": [
3245
3255
]
},
"id": 3246,
"id": 3256,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 3217,
"id": 3227,
"literals": [
"solidity",
"^",
@ -42,19 +42,19 @@
"contractKind": "contract",
"documentation": "@dev Contract module that helps prevent reentrant calls to a function.\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\navailable, which can be applied to functions to make sure there are no nested\n(reentrant) calls to them.\n * Note that because there is a single `nonReentrant` guard, functions marked as\n`nonReentrant` may not call one another. This can be worked around by making\nthose functions `private`, and then adding `external` `nonReentrant` entry\npoints to them.\n * TIP: If you would like to learn more about reentrancy and alternative ways\nto protect against it, check out our blog post\nhttps://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\n * _Since v2.5.0:_ this module is now much more gas efficient, given net gas\nmetering changes introduced in the Istanbul hardfork.",
"fullyImplemented": true,
"id": 3245,
"id": 3255,
"linearizedBaseContracts": [
3245
3255
],
"name": "ReentrancyGuard",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 3219,
"id": 3229,
"name": "_notEntered",
"nodeType": "VariableDeclaration",
"scope": 3245,
"scope": 3255,
"src": "944:24:18",
"stateVariable": true,
"storageLocation": "default",
@ -63,7 +63,7 @@
"typeString": "bool"
},
"typeName": {
"id": 3218,
"id": 3228,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "944:4:18",
@ -77,25 +77,25 @@
},
{
"body": {
"id": 3226,
"id": 3236,
"nodeType": "Block",
"src": "999:447:18",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 3224,
"id": 3234,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 3222,
"id": 3232,
"name": "_notEntered",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3219,
"referencedDeclaration": 3229,
"src": "1421:11:18",
"typeDescriptions": {
"typeIdentifier": "t_bool",
@ -107,7 +107,7 @@
"rightHandSide": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 3223,
"id": 3233,
"isConstant": false,
"isLValue": false,
"isPure": true,
@ -128,32 +128,32 @@
"typeString": "bool"
}
},
"id": 3225,
"id": 3235,
"nodeType": "ExpressionStatement",
"src": "1421:18:18"
}
]
},
"documentation": null,
"id": 3227,
"id": 3237,
"implemented": true,
"kind": "constructor",
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3220,
"id": 3230,
"nodeType": "ParameterList",
"parameters": [],
"src": "987:2:18"
},
"returnParameters": {
"id": 3221,
"id": 3231,
"nodeType": "ParameterList",
"parameters": [],
"src": "999:0:18"
},
"scope": 3245,
"scope": 3255,
"src": "975:471:18",
"stateMutability": "nonpayable",
"superFunction": null,
@ -161,7 +161,7 @@
},
{
"body": {
"id": 3243,
"id": 3253,
"nodeType": "Block",
"src": "1845:410:18",
"statements": [
@ -171,11 +171,11 @@
"arguments": [
{
"argumentTypes": null,
"id": 3230,
"id": 3240,
"name": "_notEntered",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3219,
"referencedDeclaration": 3229,
"src": "1934:11:18",
"typeDescriptions": {
"typeIdentifier": "t_bool",
@ -185,7 +185,7 @@
{
"argumentTypes": null,
"hexValue": "5265656e7472616e637947756172643a207265656e7472616e742063616c6c",
"id": 3231,
"id": 3241,
"isConstant": false,
"isLValue": false,
"isPure": true,
@ -212,21 +212,21 @@
"typeString": "literal_string \"ReentrancyGuard: reentrant call\""
}
],
"id": 3229,
"id": 3239,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
3263,
3264
3273,
3274
],
"referencedDeclaration": 3264,
"referencedDeclaration": 3274,
"src": "1926:7:18",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 3232,
"id": 3242,
"isConstant": false,
"isLValue": false,
"isPure": false,
@ -240,25 +240,25 @@
"typeString": "tuple()"
}
},
"id": 3233,
"id": 3243,
"nodeType": "ExpressionStatement",
"src": "1926:55:18"
},
{
"expression": {
"argumentTypes": null,
"id": 3236,
"id": 3246,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 3234,
"id": 3244,
"name": "_notEntered",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3219,
"referencedDeclaration": 3229,
"src": "2056:11:18",
"typeDescriptions": {
"typeIdentifier": "t_bool",
@ -270,7 +270,7 @@
"rightHandSide": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 3235,
"id": 3245,
"isConstant": false,
"isLValue": false,
"isPure": true,
@ -291,30 +291,30 @@
"typeString": "bool"
}
},
"id": 3237,
"id": 3247,
"nodeType": "ExpressionStatement",
"src": "2056:19:18"
},
{
"id": 3238,
"id": 3248,
"nodeType": "PlaceholderStatement",
"src": "2086:1:18"
},
{
"expression": {
"argumentTypes": null,
"id": 3241,
"id": 3251,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 3239,
"id": 3249,
"name": "_notEntered",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3219,
"referencedDeclaration": 3229,
"src": "2230:11:18",
"typeDescriptions": {
"typeIdentifier": "t_bool",
@ -326,7 +326,7 @@
"rightHandSide": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 3240,
"id": 3250,
"isConstant": false,
"isLValue": false,
"isPure": true,
@ -347,18 +347,18 @@
"typeString": "bool"
}
},
"id": 3242,
"id": 3252,
"nodeType": "ExpressionStatement",
"src": "2230:18:18"
}
]
},
"documentation": "@dev Prevents a contract from calling itself, directly or indirectly.\nCalling a `nonReentrant` function from another `nonReentrant`\nfunction is not supported. It is possible to prevent this from happening\nby making the `nonReentrant` function external, and make it call a\n`private` function that does the actual work.",
"id": 3244,
"id": 3254,
"name": "nonReentrant",
"nodeType": "ModifierDefinition",
"parameters": {
"id": 3228,
"id": 3238,
"nodeType": "ParameterList",
"parameters": [],
"src": "1842:2:18"
@ -367,7 +367,7 @@
"visibility": "internal"
}
],
"scope": 3246,
"scope": 3256,
"src": "913:1344:18"
}
],
@ -378,7 +378,7 @@
"absolutePath": "@openzeppelin/contracts/utils/ReentrancyGuard.sol",
"exportedSymbols": {
"ReentrancyGuard": [
3245
3255
]
}
},
@ -392,7 +392,7 @@
".0"
]
},
"id": 3217,
"id": 3227,
"name": "PragmaDirective",
"src": "0:23:18"
},
@ -408,17 +408,17 @@
"documentation": "@dev Contract module that helps prevent reentrant calls to a function.\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\navailable, which can be applied to functions to make sure there are no nested\n(reentrant) calls to them.\n * Note that because there is a single `nonReentrant` guard, functions marked as\n`nonReentrant` may not call one another. This can be worked around by making\nthose functions `private`, and then adding `external` `nonReentrant` entry\npoints to them.\n * TIP: If you would like to learn more about reentrancy and alternative ways\nto protect against it, check out our blog post\nhttps://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\n * _Since v2.5.0:_ this module is now much more gas efficient, given net gas\nmetering changes introduced in the Istanbul hardfork.",
"fullyImplemented": true,
"linearizedBaseContracts": [
3245
3255
],
"name": "ReentrancyGuard",
"scope": 3246
"scope": 3256
},
"children": [
{
"attributes": {
"constant": false,
"name": "_notEntered",
"scope": 3245,
"scope": 3255,
"stateVariable": true,
"storageLocation": "default",
"type": "bool",
@ -431,12 +431,12 @@
"name": "bool",
"type": "bool"
},
"id": 3218,
"id": 3228,
"name": "ElementaryTypeName",
"src": "944:4:18"
}
],
"id": 3219,
"id": 3229,
"name": "VariableDeclaration",
"src": "944:24:18"
},
@ -450,7 +450,7 @@
null
],
"name": "",
"scope": 3245,
"scope": 3255,
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "internal"
@ -463,7 +463,7 @@
]
},
"children": [],
"id": 3220,
"id": 3230,
"name": "ParameterList",
"src": "987:2:18"
},
@ -474,7 +474,7 @@
]
},
"children": [],
"id": 3221,
"id": 3231,
"name": "ParameterList",
"src": "999:0:18"
},
@ -499,11 +499,11 @@
"overloadedDeclarations": [
null
],
"referencedDeclaration": 3219,
"referencedDeclaration": 3229,
"type": "bool",
"value": "_notEntered"
},
"id": 3222,
"id": 3232,
"name": "Identifier",
"src": "1421:11:18"
},
@ -520,27 +520,27 @@
"type": "bool",
"value": "true"
},
"id": 3223,
"id": 3233,
"name": "Literal",
"src": "1435:4:18"
}
],
"id": 3224,
"id": 3234,
"name": "Assignment",
"src": "1421:18:18"
}
],
"id": 3225,
"id": 3235,
"name": "ExpressionStatement",
"src": "1421:18:18"
}
],
"id": 3226,
"id": 3236,
"name": "Block",
"src": "999:447:18"
}
],
"id": 3227,
"id": 3237,
"name": "FunctionDefinition",
"src": "975:471:18"
},
@ -558,7 +558,7 @@
]
},
"children": [],
"id": 3228,
"id": 3238,
"name": "ParameterList",
"src": "1842:2:18"
},
@ -594,14 +594,14 @@
}
],
"overloadedDeclarations": [
3263,
3264
3273,
3274
],
"referencedDeclaration": 3264,
"referencedDeclaration": 3274,
"type": "function (bool,string memory) pure",
"value": "require"
},
"id": 3229,
"id": 3239,
"name": "Identifier",
"src": "1926:7:18"
},
@ -611,11 +611,11 @@
"overloadedDeclarations": [
null
],
"referencedDeclaration": 3219,
"referencedDeclaration": 3229,
"type": "bool",
"value": "_notEntered"
},
"id": 3230,
"id": 3240,
"name": "Identifier",
"src": "1934:11:18"
},
@ -632,17 +632,17 @@
"type": "literal_string \"ReentrancyGuard: reentrant call\"",
"value": "ReentrancyGuard: reentrant call"
},
"id": 3231,
"id": 3241,
"name": "Literal",
"src": "1947:33:18"
}
],
"id": 3232,
"id": 3242,
"name": "FunctionCall",
"src": "1926:55:18"
}
],
"id": 3233,
"id": 3243,
"name": "ExpressionStatement",
"src": "1926:55:18"
},
@ -665,11 +665,11 @@
"overloadedDeclarations": [
null
],
"referencedDeclaration": 3219,
"referencedDeclaration": 3229,
"type": "bool",
"value": "_notEntered"
},
"id": 3234,
"id": 3244,
"name": "Identifier",
"src": "2056:11:18"
},
@ -686,22 +686,22 @@
"type": "bool",
"value": "false"
},
"id": 3235,
"id": 3245,
"name": "Literal",
"src": "2070:5:18"
}
],
"id": 3236,
"id": 3246,
"name": "Assignment",
"src": "2056:19:18"
}
],
"id": 3237,
"id": 3247,
"name": "ExpressionStatement",
"src": "2056:19:18"
},
{
"id": 3238,
"id": 3248,
"name": "PlaceholderStatement",
"src": "2086:1:18"
},
@ -724,11 +724,11 @@
"overloadedDeclarations": [
null
],
"referencedDeclaration": 3219,
"referencedDeclaration": 3229,
"type": "bool",
"value": "_notEntered"
},
"id": 3239,
"id": 3249,
"name": "Identifier",
"src": "2230:11:18"
},
@ -745,37 +745,37 @@
"type": "bool",
"value": "true"
},
"id": 3240,
"id": 3250,
"name": "Literal",
"src": "2244:4:18"
}
],
"id": 3241,
"id": 3251,
"name": "Assignment",
"src": "2230:18:18"
}
],
"id": 3242,
"id": 3252,
"name": "ExpressionStatement",
"src": "2230:18:18"
}
],
"id": 3243,
"id": 3253,
"name": "Block",
"src": "1845:410:18"
}
],
"id": 3244,
"id": 3254,
"name": "ModifierDefinition",
"src": "1821:434:18"
}
],
"id": 3245,
"id": 3255,
"name": "ContractDefinition",
"src": "913:1344:18"
}
],
"id": 3246,
"id": 3256,
"name": "SourceUnit",
"src": "0:2258:18"
},
@ -785,7 +785,7 @@
},
"networks": {},
"schemaVersion": "3.3.4",
"updatedAt": "2021-03-14T02:18:33.155Z",
"updatedAt": "2021-04-04T20:21:29.919Z",
"devdoc": {
"details": "Contract module that helps prevent reentrant calls to a function. * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier available, which can be applied to functions to make sure there are no nested (reentrant) calls to them. * Note that because there is a single `nonReentrant` guard, functions marked as `nonReentrant` may not call one another. This can be worked around by making those functions `private`, and then adding `external` `nonReentrant` entry points to them. * TIP: If you would like to learn more about reentrancy and alternative ways to protect against it, check out our blog post https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. * _Since v2.5.0:_ this module is now much more gas efficient, given net gas metering changes introduced in the Istanbul hardfork.",
"methods": {}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long