1172 lines
43 KiB
JSON
1172 lines
43 KiB
JSON
{
|
|
"contractName": "IEvolveFactory",
|
|
"abi": [
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "to",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "nftAddress",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256[2]",
|
|
"name": "tokenIds",
|
|
"type": "uint256[2]"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "startTime",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "saltNonce",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "bytes",
|
|
"name": "signature",
|
|
"type": "bytes"
|
|
}
|
|
],
|
|
"name": "evolve721NFT",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "to",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256[]",
|
|
"name": "tokenIds",
|
|
"type": "uint256[]"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "startTime",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "saltNonce",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "bytes",
|
|
"name": "signature",
|
|
"type": "bytes"
|
|
}
|
|
],
|
|
"name": "evolveChip",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "bytes",
|
|
"name": "signature",
|
|
"type": "bytes"
|
|
}
|
|
],
|
|
"name": "useSignature",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
}
|
|
],
|
|
"metadata": "{\"compiler\":{\"version\":\"0.8.10+commit.fc410830\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"nftAddress\",\"type\":\"address\"},{\"internalType\":\"uint256[2]\",\"name\":\"tokenIds\",\"type\":\"uint256[2]\"},{\"internalType\":\"uint256\",\"name\":\"startTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"saltNonce\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"evolve721NFT\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"tokenIds\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"startTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"saltNonce\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"evolveChip\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"useSignature\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"project:/contracts/interfaces/IEvolveFactory.sol\":\"IEvolveFactory\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/token/ERC1155/IERC1155.sol\":{\"keccak256\":\"0x8e93de94c9062ebc94fb7e2e3929b0781ac6a2b7772e2f7a59045861c93e5be9\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f920a631bf986c610fe573d3c70a2bb6f224f86f4a8550016470c7ee476c9ab5\",\"dweb:/ipfs/QmYzsyVMfnaREKHcHv5RPS8Xg5r1Q38E2SDsGBTnXeFWzb\"]},\"@openzeppelin/contracts/token/ERC721/IERC721.sol\":{\"keccak256\":\"0x516a22876c1fab47f49b1bc22b4614491cd05338af8bd2e7b382da090a079990\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a439187f7126d31add4557f82d8aed6be0162007cd7182c48fd934dbab8f3849\",\"dweb:/ipfs/QmRPLguRFvrRJS7r6F1bcLvsx6q1VrgjEpZafyeL8D7xZh\"]},\"@openzeppelin/contracts/utils/introspection/IERC165.sol\":{\"keccak256\":\"0x447a5f3ddc18419d41ff92b3773fb86471b1db25773e07f877f548918a185bf1\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://be161e54f24e5c6fae81a12db1a8ae87bc5ae1b0ddc805d82a1440a68455088f\",\"dweb:/ipfs/QmP7C3CHdY9urF4dEMb9wmsp1wMxHF6nhA2yQE5SKiPAdy\"]},\"project:/contracts/interfaces/IBEERC1155.sol\":{\"keccak256\":\"0xc9d1380ce3922c5371d33fbe838bad53ca56c753455e6b6aae2e55e167c002e8\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d0a8f6b5f12a1a03c05860b15c26424faae7e6c4893545f2558ec3cb6b989ae0\",\"dweb:/ipfs/QmRVYFZLzTVBvLK1rQSj97RnvTAhpqqeq3VdnAf4rpzVEc\"]},\"project:/contracts/interfaces/IBEERC721.sol\":{\"keccak256\":\"0x6a842711fe7377f3d20c61823c817a25f98e746eb3974c3be2617b17e81cabfc\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://85702bafdc7bd7fa964ab5c3c41271d5276abf932b3d722b6c39f56d0d4b1927\",\"dweb:/ipfs/QmNV1R5sZ5DmaUjYsp1ZCq5E6CBquduhWbPntc5bXLppWX\"]},\"project:/contracts/interfaces/IEvolveFactory.sol\":{\"keccak256\":\"0x767b8cf24502a9158e52a103f8b3ef2cbfc9ec179493bcc188afffd72c515a19\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a9748866d96e990f3f026f4fcbcdd134453cfd66e396d9109691366e06001f4f\",\"dweb:/ipfs/QmdEWB4kShrYXViqkPniaiuYFfSXKiPfZGL7vkdjEVGx84\"]}},\"version\":1}",
|
|
"bytecode": "0x",
|
|
"deployedBytecode": "0x",
|
|
"immutableReferences": {},
|
|
"generatedSources": [],
|
|
"deployedGeneratedSources": [],
|
|
"sourceMap": "",
|
|
"deployedSourceMap": "",
|
|
"source": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.10;\nimport \"../interfaces/IBEERC721.sol\";\nimport \"../interfaces/IBEERC1155.sol\";\n\ninterface IEvolveFactory {\n function evolve721NFT(\n address to,\n address nftAddress,\n uint256[2] calldata tokenIds,\n uint256 startTime,\n uint256 saltNonce,\n bytes calldata signature\n ) external;\n\n function evolveChip(\n address to,\n uint256[] memory tokenIds,\n uint256 startTime,\n uint256 saltNonce,\n bytes calldata signature\n ) external;\n\n function useSignature(bytes calldata signature) external;\n}\n",
|
|
"sourcePath": "/Users/zhl/Documents/workspace/game/becrypto/contracts/interfaces/IEvolveFactory.sol",
|
|
"ast": {
|
|
"absolutePath": "project:/contracts/interfaces/IEvolveFactory.sol",
|
|
"exportedSymbols": {
|
|
"IBEERC1155": [
|
|
5188
|
|
],
|
|
"IBEERC721": [
|
|
5222
|
|
],
|
|
"IERC1155": [
|
|
1461
|
|
],
|
|
"IERC165": [
|
|
4248
|
|
],
|
|
"IERC721": [
|
|
2871
|
|
],
|
|
"IEvolveFactory": [
|
|
5263
|
|
]
|
|
},
|
|
"id": 5264,
|
|
"license": "MIT",
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"id": 5224,
|
|
"literals": [
|
|
"solidity",
|
|
"0.8",
|
|
".10"
|
|
],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "32:23:27"
|
|
},
|
|
{
|
|
"absolutePath": "project:/contracts/interfaces/IBEERC721.sol",
|
|
"file": "../interfaces/IBEERC721.sol",
|
|
"id": 5225,
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "ImportDirective",
|
|
"scope": 5264,
|
|
"sourceUnit": 5223,
|
|
"src": "56:37:27",
|
|
"symbolAliases": [],
|
|
"unitAlias": ""
|
|
},
|
|
{
|
|
"absolutePath": "project:/contracts/interfaces/IBEERC1155.sol",
|
|
"file": "../interfaces/IBEERC1155.sol",
|
|
"id": 5226,
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "ImportDirective",
|
|
"scope": 5264,
|
|
"sourceUnit": 5189,
|
|
"src": "94:38:27",
|
|
"symbolAliases": [],
|
|
"unitAlias": ""
|
|
},
|
|
{
|
|
"abstract": false,
|
|
"baseContracts": [],
|
|
"canonicalName": "IEvolveFactory",
|
|
"contractDependencies": [],
|
|
"contractKind": "interface",
|
|
"fullyImplemented": false,
|
|
"id": 5263,
|
|
"linearizedBaseContracts": [
|
|
5263
|
|
],
|
|
"name": "IEvolveFactory",
|
|
"nameLocation": "144:14:27",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"functionSelector": "e7e46064",
|
|
"id": 5243,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "evolve721NFT",
|
|
"nameLocation": "172:12:27",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 5241,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 5228,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "198:2:27",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 5243,
|
|
"src": "190:10:27",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 5227,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "190:7:27",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 5230,
|
|
"mutability": "mutable",
|
|
"name": "nftAddress",
|
|
"nameLocation": "214:10:27",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 5243,
|
|
"src": "206:18:27",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 5229,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "206:7:27",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 5234,
|
|
"mutability": "mutable",
|
|
"name": "tokenIds",
|
|
"nameLocation": "250:8:27",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 5243,
|
|
"src": "230:28:27",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$2_calldata_ptr",
|
|
"typeString": "uint256[2]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 5231,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "230:7:27",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 5233,
|
|
"length": {
|
|
"hexValue": "32",
|
|
"id": 5232,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "238:1:27",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_2_by_1",
|
|
"typeString": "int_const 2"
|
|
},
|
|
"value": "2"
|
|
},
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "230:10:27",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$2_storage_ptr",
|
|
"typeString": "uint256[2]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 5236,
|
|
"mutability": "mutable",
|
|
"name": "startTime",
|
|
"nameLocation": "272:9:27",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 5243,
|
|
"src": "264:17:27",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 5235,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "264:7:27",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 5238,
|
|
"mutability": "mutable",
|
|
"name": "saltNonce",
|
|
"nameLocation": "295:9:27",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 5243,
|
|
"src": "287:17:27",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 5237,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "287:7:27",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 5240,
|
|
"mutability": "mutable",
|
|
"name": "signature",
|
|
"nameLocation": "325:9:27",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 5243,
|
|
"src": "310:24:27",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_calldata_ptr",
|
|
"typeString": "bytes"
|
|
},
|
|
"typeName": {
|
|
"id": 5239,
|
|
"name": "bytes",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "310:5:27",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "184:154:27"
|
|
},
|
|
"returnParameters": {
|
|
"id": 5242,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "347:0:27"
|
|
},
|
|
"scope": 5263,
|
|
"src": "163:185:27",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "2beb3dbf",
|
|
"id": 5257,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "evolveChip",
|
|
"nameLocation": "361:10:27",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 5255,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 5245,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "385:2:27",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 5257,
|
|
"src": "377:10:27",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 5244,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "377:7:27",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 5248,
|
|
"mutability": "mutable",
|
|
"name": "tokenIds",
|
|
"nameLocation": "410:8:27",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 5257,
|
|
"src": "393:25:27",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
|
|
"typeString": "uint256[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 5246,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "393:7:27",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 5247,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "393:9:27",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
|
|
"typeString": "uint256[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 5250,
|
|
"mutability": "mutable",
|
|
"name": "startTime",
|
|
"nameLocation": "432:9:27",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 5257,
|
|
"src": "424:17:27",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 5249,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "424:7:27",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 5252,
|
|
"mutability": "mutable",
|
|
"name": "saltNonce",
|
|
"nameLocation": "455:9:27",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 5257,
|
|
"src": "447:17:27",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 5251,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "447:7:27",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 5254,
|
|
"mutability": "mutable",
|
|
"name": "signature",
|
|
"nameLocation": "485:9:27",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 5257,
|
|
"src": "470:24:27",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_calldata_ptr",
|
|
"typeString": "bytes"
|
|
},
|
|
"typeName": {
|
|
"id": 5253,
|
|
"name": "bytes",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "470:5:27",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "371:127:27"
|
|
},
|
|
"returnParameters": {
|
|
"id": 5256,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "507:0:27"
|
|
},
|
|
"scope": 5263,
|
|
"src": "352:156:27",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "773c3fff",
|
|
"id": 5262,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "useSignature",
|
|
"nameLocation": "521:12:27",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 5260,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 5259,
|
|
"mutability": "mutable",
|
|
"name": "signature",
|
|
"nameLocation": "549:9:27",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 5262,
|
|
"src": "534:24:27",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_calldata_ptr",
|
|
"typeString": "bytes"
|
|
},
|
|
"typeName": {
|
|
"id": 5258,
|
|
"name": "bytes",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "534:5:27",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "533:26:27"
|
|
},
|
|
"returnParameters": {
|
|
"id": 5261,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "568:0:27"
|
|
},
|
|
"scope": 5263,
|
|
"src": "512:57:27",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
}
|
|
],
|
|
"scope": 5264,
|
|
"src": "134:437:27",
|
|
"usedErrors": []
|
|
}
|
|
],
|
|
"src": "32:540:27"
|
|
},
|
|
"legacyAST": {
|
|
"absolutePath": "project:/contracts/interfaces/IEvolveFactory.sol",
|
|
"exportedSymbols": {
|
|
"IBEERC1155": [
|
|
5188
|
|
],
|
|
"IBEERC721": [
|
|
5222
|
|
],
|
|
"IERC1155": [
|
|
1461
|
|
],
|
|
"IERC165": [
|
|
4248
|
|
],
|
|
"IERC721": [
|
|
2871
|
|
],
|
|
"IEvolveFactory": [
|
|
5263
|
|
]
|
|
},
|
|
"id": 5264,
|
|
"license": "MIT",
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"id": 5224,
|
|
"literals": [
|
|
"solidity",
|
|
"0.8",
|
|
".10"
|
|
],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "32:23:27"
|
|
},
|
|
{
|
|
"absolutePath": "project:/contracts/interfaces/IBEERC721.sol",
|
|
"file": "../interfaces/IBEERC721.sol",
|
|
"id": 5225,
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "ImportDirective",
|
|
"scope": 5264,
|
|
"sourceUnit": 5223,
|
|
"src": "56:37:27",
|
|
"symbolAliases": [],
|
|
"unitAlias": ""
|
|
},
|
|
{
|
|
"absolutePath": "project:/contracts/interfaces/IBEERC1155.sol",
|
|
"file": "../interfaces/IBEERC1155.sol",
|
|
"id": 5226,
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "ImportDirective",
|
|
"scope": 5264,
|
|
"sourceUnit": 5189,
|
|
"src": "94:38:27",
|
|
"symbolAliases": [],
|
|
"unitAlias": ""
|
|
},
|
|
{
|
|
"abstract": false,
|
|
"baseContracts": [],
|
|
"canonicalName": "IEvolveFactory",
|
|
"contractDependencies": [],
|
|
"contractKind": "interface",
|
|
"fullyImplemented": false,
|
|
"id": 5263,
|
|
"linearizedBaseContracts": [
|
|
5263
|
|
],
|
|
"name": "IEvolveFactory",
|
|
"nameLocation": "144:14:27",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"functionSelector": "e7e46064",
|
|
"id": 5243,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "evolve721NFT",
|
|
"nameLocation": "172:12:27",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 5241,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 5228,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "198:2:27",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 5243,
|
|
"src": "190:10:27",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 5227,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "190:7:27",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 5230,
|
|
"mutability": "mutable",
|
|
"name": "nftAddress",
|
|
"nameLocation": "214:10:27",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 5243,
|
|
"src": "206:18:27",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 5229,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "206:7:27",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 5234,
|
|
"mutability": "mutable",
|
|
"name": "tokenIds",
|
|
"nameLocation": "250:8:27",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 5243,
|
|
"src": "230:28:27",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$2_calldata_ptr",
|
|
"typeString": "uint256[2]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 5231,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "230:7:27",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 5233,
|
|
"length": {
|
|
"hexValue": "32",
|
|
"id": 5232,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "number",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "238:1:27",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_rational_2_by_1",
|
|
"typeString": "int_const 2"
|
|
},
|
|
"value": "2"
|
|
},
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "230:10:27",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$2_storage_ptr",
|
|
"typeString": "uint256[2]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 5236,
|
|
"mutability": "mutable",
|
|
"name": "startTime",
|
|
"nameLocation": "272:9:27",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 5243,
|
|
"src": "264:17:27",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 5235,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "264:7:27",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 5238,
|
|
"mutability": "mutable",
|
|
"name": "saltNonce",
|
|
"nameLocation": "295:9:27",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 5243,
|
|
"src": "287:17:27",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 5237,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "287:7:27",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 5240,
|
|
"mutability": "mutable",
|
|
"name": "signature",
|
|
"nameLocation": "325:9:27",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 5243,
|
|
"src": "310:24:27",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_calldata_ptr",
|
|
"typeString": "bytes"
|
|
},
|
|
"typeName": {
|
|
"id": 5239,
|
|
"name": "bytes",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "310:5:27",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "184:154:27"
|
|
},
|
|
"returnParameters": {
|
|
"id": 5242,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "347:0:27"
|
|
},
|
|
"scope": 5263,
|
|
"src": "163:185:27",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "2beb3dbf",
|
|
"id": 5257,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "evolveChip",
|
|
"nameLocation": "361:10:27",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 5255,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 5245,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "385:2:27",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 5257,
|
|
"src": "377:10:27",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 5244,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "377:7:27",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 5248,
|
|
"mutability": "mutable",
|
|
"name": "tokenIds",
|
|
"nameLocation": "410:8:27",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 5257,
|
|
"src": "393:25:27",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
|
|
"typeString": "uint256[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 5246,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "393:7:27",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"id": 5247,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "393:9:27",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
|
|
"typeString": "uint256[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 5250,
|
|
"mutability": "mutable",
|
|
"name": "startTime",
|
|
"nameLocation": "432:9:27",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 5257,
|
|
"src": "424:17:27",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 5249,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "424:7:27",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 5252,
|
|
"mutability": "mutable",
|
|
"name": "saltNonce",
|
|
"nameLocation": "455:9:27",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 5257,
|
|
"src": "447:17:27",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 5251,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "447:7:27",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 5254,
|
|
"mutability": "mutable",
|
|
"name": "signature",
|
|
"nameLocation": "485:9:27",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 5257,
|
|
"src": "470:24:27",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_calldata_ptr",
|
|
"typeString": "bytes"
|
|
},
|
|
"typeName": {
|
|
"id": 5253,
|
|
"name": "bytes",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "470:5:27",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "371:127:27"
|
|
},
|
|
"returnParameters": {
|
|
"id": 5256,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "507:0:27"
|
|
},
|
|
"scope": 5263,
|
|
"src": "352:156:27",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "773c3fff",
|
|
"id": 5262,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "useSignature",
|
|
"nameLocation": "521:12:27",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 5260,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 5259,
|
|
"mutability": "mutable",
|
|
"name": "signature",
|
|
"nameLocation": "549:9:27",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 5262,
|
|
"src": "534:24:27",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_calldata_ptr",
|
|
"typeString": "bytes"
|
|
},
|
|
"typeName": {
|
|
"id": 5258,
|
|
"name": "bytes",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "534:5:27",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "533:26:27"
|
|
},
|
|
"returnParameters": {
|
|
"id": 5261,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "568:0:27"
|
|
},
|
|
"scope": 5263,
|
|
"src": "512:57:27",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
}
|
|
],
|
|
"scope": 5264,
|
|
"src": "134:437:27",
|
|
"usedErrors": []
|
|
}
|
|
],
|
|
"src": "32:540:27"
|
|
},
|
|
"compiler": {
|
|
"name": "solc",
|
|
"version": "0.8.10+commit.fc410830.Emscripten.clang"
|
|
},
|
|
"networks": {},
|
|
"schemaVersion": "3.4.4",
|
|
"updatedAt": "2022-11-04T05:07:06.287Z",
|
|
"devdoc": {
|
|
"kind": "dev",
|
|
"methods": {},
|
|
"version": 1
|
|
},
|
|
"userdoc": {
|
|
"kind": "user",
|
|
"methods": {},
|
|
"version": 1
|
|
}
|
|
} |