Skip to content

Commit

Permalink
Opensourcing cake_sniper
Browse files Browse the repository at this point in the history
  • Loading branch information
Supercycled committed Jul 10, 2021
0 parents commit a4251b3
Show file tree
Hide file tree
Showing 99 changed files with 1,053,000 additions and 0 deletions.
Binary file added __pycache__/variables.cpython-38.pyc
Binary file not shown.
328 changes: 328 additions & 0 deletions build/contracts/Context.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,328 @@
{
"abi": [],
"allSourcePaths": {
"0": "contracts/Context.sol"
},
"ast": {
"absolutePath": "contracts/Context.sol",
"exportedSymbols": {
"Context": [
1378
]
},
"id": 1379,
"license": "GPL-3.0",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1354,
"literals": [
"solidity",
"^",
"0.8",
".0"
],
"nodeType": "PragmaDirective",
"src": "41:23:0"
},
{
"abstract": true,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
"id": 1378,
"linearizedBaseContracts": [
1378
],
"name": "Context",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
"id": 1365,
"nodeType": "Block",
"src": "683:45:0",
"statements": [
{
"expression": {
"arguments": [
{
"expression": {
"id": 1361,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": -15,
"src": "709:3:0",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 1362,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"src": "709:10:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 1360,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "701:8:0",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_payable_$",
"typeString": "type(address payable)"
},
"typeName": {
"id": 1359,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "701:8:0",
"stateMutability": "payable",
"typeDescriptions": {}
}
},
"id": 1363,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "701:19:0",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
},
"functionReturnParameters": 1358,
"id": 1364,
"nodeType": "Return",
"src": "694:26:0"
}
]
},
"id": 1366,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "_msgSender",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1355,
"nodeType": "ParameterList",
"parameters": [],
"src": "632:2:0"
},
"returnParameters": {
"id": 1358,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1357,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1366,
"src": "666:15:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
},
"typeName": {
"id": 1356,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "666:15:0",
"stateMutability": "payable",
"typeDescriptions": {
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
},
"visibility": "internal"
}
],
"src": "665:17:0"
},
"scope": 1378,
"src": "613:115:0",
"stateMutability": "view",
"virtual": true,
"visibility": "internal"
},
{
"body": {
"id": 1376,
"nodeType": "Block",
"src": "801:168:0",
"statements": [
{
"expression": {
"id": 1371,
"name": "this",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": -28,
"src": "812:4:0",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Context_$1378",
"typeString": "contract Context"
}
},
"id": 1372,
"nodeType": "ExpressionStatement",
"src": "812:4:0"
},
{
"expression": {
"expression": {
"id": 1373,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": -15,
"src": "953:3:0",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 1374,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "data",
"nodeType": "MemberAccess",
"src": "953:8:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes calldata"
}
},
"functionReturnParameters": 1370,
"id": 1375,
"nodeType": "Return",
"src": "946:15:0"
}
]
},
"id": 1377,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "_msgData",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1367,
"nodeType": "ParameterList",
"parameters": [],
"src": "753:2:0"
},
"returnParameters": {
"id": 1370,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1369,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1377,
"src": "787:12:0",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 1368,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "787:5:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
}
],
"src": "786:14:0"
},
"scope": 1378,
"src": "736:233:0",
"stateMutability": "view",
"virtual": true,
"visibility": "internal"
}
],
"scope": 1379,
"src": "580:392:0"
}
],
"src": "41:931:0"
},
"bytecode": "",
"bytecodeSha1": "da39a3ee5e6b4b0d3255bfef95601890afd80709",
"compiler": {
"evm_version": "istanbul",
"optimizer": {
"enabled": true,
"runs": 200
},
"version": "0.8.0+commit.c7dfd78e"
},
"contractName": "Context",
"coverageMap": {
"branches": {},
"statements": {}
},
"dependencies": [],
"deployedBytecode": "",
"deployedSourceMap": "",
"language": "Solidity",
"natspec": {
"kind": "dev",
"methods": {},
"version": 1
},
"offset": [
580,
972
],
"opcodes": "",
"pcMap": {},
"sha1": "8d9e8c46273c925663ec5c1eddc0ea9a758f5b76",
"source": "// SPDX-License-Identifier: GPL-3.0\n\n\npragma solidity ^0.8.0;\n/*\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with GSN meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\n\n\nabstract contract Context {\n function _msgSender() internal view virtual returns (address payable) {\n return payable(msg.sender);\n }\n\n function _msgData() internal view virtual returns (bytes memory) {\n this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691\n return msg.data;\n }\n}",
"sourceMap": "",
"sourcePath": "contracts/Context.sol",
"type": "contract"
}
Loading

0 comments on commit a4251b3

Please sign in to comment.