From 2dfe12756d98f05cc692e23814df71a6d37a8240 Mon Sep 17 00:00:00 2001 From: zhl Date: Tue, 10 Jan 2023 17:25:24 +0800 Subject: [PATCH] update abi --- build/contracts/BEBoxMall.json | 2 +- build/contracts/BEChip1155.json | 2 +- build/contracts/BECoin.json | 2 +- build/contracts/BEEquipment.json | 2 +- build/contracts/BEGold.json | 2 +- build/contracts/BEHero.json | 2 +- build/contracts/BENFTMarket.json | 11279 +++++++++++++++++++- build/contracts/BENftMall.json | 2 +- build/contracts/BEPresaleBox.json | 2 +- build/contracts/BEShard.json | 2 +- build/contracts/BETimelockController.json | 2 +- build/contracts/EvolveFactory.json | 2 +- build/contracts/Migrations.json | 4 +- build/contracts/MinterFactory.json | 2 +- build/contracts/NftChipLocker.json | 2 +- build/contracts/UserEvolveFactory.json | 2 +- build/contracts/UserMinterFactory.json | 2 +- init_scripts/update_nft_setting.js | 203 +- 18 files changed, 11380 insertions(+), 136 deletions(-) diff --git a/build/contracts/BEBoxMall.json b/build/contracts/BEBoxMall.json index dff97dc..b9748c5 100644 --- a/build/contracts/BEBoxMall.json +++ b/build/contracts/BEBoxMall.json @@ -46131,7 +46131,7 @@ } }, "schemaVersion": "3.4.4", - "updatedAt": "2022-12-08T03:41:46.988Z", + "updatedAt": "2023-01-10T09:15:27.639Z", "networkType": "ethereum", "devdoc": { "kind": "dev", diff --git a/build/contracts/BEChip1155.json b/build/contracts/BEChip1155.json index f901e41..beb0a29 100644 --- a/build/contracts/BEChip1155.json +++ b/build/contracts/BEChip1155.json @@ -29743,7 +29743,7 @@ } }, "schemaVersion": "3.4.4", - "updatedAt": "2022-12-08T03:41:28.455Z", + "updatedAt": "2023-01-10T09:13:36.539Z", "networkType": "ethereum", "devdoc": { "kind": "dev", diff --git a/build/contracts/BECoin.json b/build/contracts/BECoin.json index c794101..d577a9b 100644 --- a/build/contracts/BECoin.json +++ b/build/contracts/BECoin.json @@ -9829,7 +9829,7 @@ } }, "schemaVersion": "3.4.4", - "updatedAt": "2022-12-08T03:41:12.230Z", + "updatedAt": "2023-01-10T09:12:43.611Z", "networkType": "ethereum", "devdoc": { "kind": "dev", diff --git a/build/contracts/BEEquipment.json b/build/contracts/BEEquipment.json index df5ccd5..6fc0702 100644 --- a/build/contracts/BEEquipment.json +++ b/build/contracts/BEEquipment.json @@ -22571,7 +22571,7 @@ } }, "schemaVersion": "3.4.4", - "updatedAt": "2022-12-08T03:41:25.027Z", + "updatedAt": "2023-01-10T09:13:26.066Z", "networkType": "ethereum", "devdoc": { "kind": "dev", diff --git a/build/contracts/BEGold.json b/build/contracts/BEGold.json index 41c1c5e..c0dd9ae 100644 --- a/build/contracts/BEGold.json +++ b/build/contracts/BEGold.json @@ -11967,7 +11967,7 @@ } }, "schemaVersion": "3.4.4", - "updatedAt": "2022-12-08T03:41:16.467Z", + "updatedAt": "2023-01-10T09:13:00.069Z", "networkType": "ethereum", "devdoc": { "kind": "dev", diff --git a/build/contracts/BEHero.json b/build/contracts/BEHero.json index bda66da..b8723a6 100644 --- a/build/contracts/BEHero.json +++ b/build/contracts/BEHero.json @@ -22767,7 +22767,7 @@ } }, "schemaVersion": "3.4.4", - "updatedAt": "2022-12-08T03:41:20.712Z", + "updatedAt": "2023-01-10T09:13:13.705Z", "networkType": "ethereum", "devdoc": { "kind": "dev", diff --git a/build/contracts/BENFTMarket.json b/build/contracts/BENFTMarket.json index e2a5183..e58fe32 100644 --- a/build/contracts/BENFTMarket.json +++ b/build/contracts/BENFTMarket.json @@ -249,7 +249,8 @@ } ], "stateMutability": "view", - "type": "function" + "type": "function", + "constant": true }, { "inputs": [], @@ -262,7 +263,8 @@ } ], "stateMutability": "view", - "type": "function" + "type": "function", + "constant": true }, { "inputs": [ @@ -281,7 +283,8 @@ } ], "stateMutability": "view", - "type": "function" + "type": "function", + "constant": true }, { "inputs": [ @@ -300,7 +303,8 @@ } ], "stateMutability": "view", - "type": "function" + "type": "function", + "constant": true }, { "inputs": [ @@ -319,7 +323,8 @@ } ], "stateMutability": "view", - "type": "function" + "type": "function", + "constant": true }, { "inputs": [], @@ -332,7 +337,8 @@ } ], "stateMutability": "view", - "type": "function" + "type": "function", + "constant": true }, { "inputs": [], @@ -345,7 +351,8 @@ } ], "stateMutability": "view", - "type": "function" + "type": "function", + "constant": true }, { "inputs": [ @@ -364,7 +371,8 @@ } ], "stateMutability": "view", - "type": "function" + "type": "function", + "constant": true }, { "inputs": [ @@ -383,7 +391,8 @@ } ], "stateMutability": "view", - "type": "function" + "type": "function", + "constant": true }, { "inputs": [ @@ -544,7 +553,8 @@ } ], "stateMutability": "view", - "type": "function" + "type": "function", + "constant": true }, { "inputs": [], @@ -557,7 +567,8 @@ } ], "stateMutability": "view", - "type": "function" + "type": "function", + "constant": true }, { "inputs": [], @@ -583,7 +594,8 @@ } ], "stateMutability": "view", - "type": "function" + "type": "function", + "constant": true }, { "inputs": [], @@ -596,7 +608,8 @@ } ], "stateMutability": "view", - "type": "function" + "type": "function", + "constant": true }, { "inputs": [], @@ -609,7 +622,8 @@ } ], "stateMutability": "view", - "type": "function" + "type": "function", + "constant": true }, { "inputs": [ @@ -31007,6 +31021,11234 @@ ], "src": "32:8557:15" }, + "legacyAST": { + "absolutePath": "project:/contracts/market/BENftMarket.sol", + "exportedSymbols": { + "Address": [ + 1150 + ], + "BENFTMarket": [ + 2076 + ], + "Context": [ + 1172 + ], + "ERC1155Holder": [ + 358 + ], + "ERC1155Receiver": [ + 392 + ], + "ERC165": [ + 1196 + ], + "ERC721Holder": [ + 855 + ], + "IERC1155": [ + 266 + ], + "IERC1155Receiver": [ + 307 + ], + "IERC165": [ + 1208 + ], + "IERC20": [ + 470 + ], + "IERC721": [ + 810 + ], + "IERC721Receiver": [ + 828 + ], + "Ownable": [ + 104 + ], + "ReentrancyGuard": [ + 144 + ], + "SafeERC20": [ + 694 + ] + }, + "id": 2077, + "license": "MIT", + "nodeType": "SourceUnit", + "nodes": [ + { + "id": 1210, + "literals": [ + "solidity", + "0.8", + ".10" + ], + "nodeType": "PragmaDirective", + "src": "32:23:15" + }, + { + "absolutePath": "@openzeppelin/contracts/access/Ownable.sol", + "file": "@openzeppelin/contracts/access/Ownable.sol", + "id": 1211, + "nameLocation": "-1:-1:-1", + "nodeType": "ImportDirective", + "scope": 2077, + "sourceUnit": 105, + "src": "57:52:15", + "symbolAliases": [], + "unitAlias": "" + }, + { + "absolutePath": "@openzeppelin/contracts/token/ERC20/IERC20.sol", + "file": "@openzeppelin/contracts/token/ERC20/IERC20.sol", + "id": 1212, + "nameLocation": "-1:-1:-1", + "nodeType": "ImportDirective", + "scope": 2077, + "sourceUnit": 471, + "src": "110:56:15", + "symbolAliases": [], + "unitAlias": "" + }, + { + "absolutePath": "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol", + "file": "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol", + "id": 1213, + "nameLocation": "-1:-1:-1", + "nodeType": "ImportDirective", + "scope": 2077, + "sourceUnit": 695, + "src": "167:65:15", + "symbolAliases": [], + "unitAlias": "" + }, + { + "absolutePath": "@openzeppelin/contracts/token/ERC721/IERC721.sol", + "file": "@openzeppelin/contracts/token/ERC721/IERC721.sol", + "id": 1214, + "nameLocation": "-1:-1:-1", + "nodeType": "ImportDirective", + "scope": 2077, + "sourceUnit": 811, + "src": "233:58:15", + "symbolAliases": [], + "unitAlias": "" + }, + { + "absolutePath": "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol", + "file": "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol", + "id": 1215, + "nameLocation": "-1:-1:-1", + "nodeType": "ImportDirective", + "scope": 2077, + "sourceUnit": 856, + "src": "292:69:15", + "symbolAliases": [], + "unitAlias": "" + }, + { + "absolutePath": "@openzeppelin/contracts/token/ERC1155/IERC1155.sol", + "file": "@openzeppelin/contracts/token/ERC1155/IERC1155.sol", + "id": 1216, + "nameLocation": "-1:-1:-1", + "nodeType": "ImportDirective", + "scope": 2077, + "sourceUnit": 267, + "src": "362:60:15", + "symbolAliases": [], + "unitAlias": "" + }, + { + "absolutePath": "@openzeppelin/contracts/token/ERC1155/utils/ERC1155Holder.sol", + "file": "@openzeppelin/contracts/token/ERC1155/utils/ERC1155Holder.sol", + "id": 1217, + "nameLocation": "-1:-1:-1", + "nodeType": "ImportDirective", + "scope": 2077, + "sourceUnit": 359, + "src": "423:71:15", + "symbolAliases": [], + "unitAlias": "" + }, + { + "absolutePath": "@openzeppelin/contracts/security/ReentrancyGuard.sol", + "file": "@openzeppelin/contracts/security/ReentrancyGuard.sol", + "id": 1218, + "nameLocation": "-1:-1:-1", + "nodeType": "ImportDirective", + "scope": 2077, + "sourceUnit": 145, + "src": "495:62:15", + "symbolAliases": [], + "unitAlias": "" + }, + { + "abstract": false, + "baseContracts": [ + { + "baseName": { + "id": 1219, + "name": "Ownable", + "nodeType": "IdentifierPath", + "referencedDeclaration": 104, + "src": "583:7:15" + }, + "id": 1220, + "nodeType": "InheritanceSpecifier", + "src": "583:7:15" + }, + { + "baseName": { + "id": 1221, + "name": "ReentrancyGuard", + "nodeType": "IdentifierPath", + "referencedDeclaration": 144, + "src": "592:15:15" + }, + "id": 1222, + "nodeType": "InheritanceSpecifier", + "src": "592:15:15" + }, + { + "baseName": { + "id": 1223, + "name": "ERC1155Holder", + "nodeType": "IdentifierPath", + "referencedDeclaration": 358, + "src": "609:13:15" + }, + "id": 1224, + "nodeType": "InheritanceSpecifier", + "src": "609:13:15" + }, + { + "baseName": { + "id": 1225, + "name": "ERC721Holder", + "nodeType": "IdentifierPath", + "referencedDeclaration": 855, + "src": "623:12:15" + }, + "id": 1226, + "nodeType": "InheritanceSpecifier", + "src": "623:12:15" + } + ], + "canonicalName": "BENFTMarket", + "contractDependencies": [], + "contractKind": "contract", + "fullyImplemented": true, + "id": 2076, + "linearizedBaseContracts": [ + 2076, + 855, + 828, + 358, + 392, + 307, + 1196, + 1208, + 144, + 104, + 1172 + ], + "name": "BENFTMarket", + "nameLocation": "568:11:15", + "nodeType": "ContractDefinition", + "nodes": [ + { + "id": 1230, + "libraryName": { + "id": 1227, + "name": "SafeERC20", + "nodeType": "IdentifierPath", + "referencedDeclaration": 694, + "src": "646:9:15" + }, + "nodeType": "UsingForDirective", + "src": "640:27:15", + "typeName": { + "id": 1229, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 1228, + "name": "IERC20", + "nodeType": "IdentifierPath", + "referencedDeclaration": 470, + "src": "660:6:15" + }, + "referencedDeclaration": 470, + "src": "660:6:15", + "typeDescriptions": { + "typeIdentifier": "t_contract$_IERC20_$470", + "typeString": "contract IERC20" + } + } + }, + { + "canonicalName": "BENFTMarket.OrderInfo", + "id": 1245, + "members": [ + { + "constant": false, + "id": 1232, + "mutability": "mutable", + "name": "orderId", + "nameLocation": "702:7:15", + "nodeType": "VariableDeclaration", + "scope": 1245, + "src": "694:15:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1231, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "694:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 1234, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "723:7:15", + "nodeType": "VariableDeclaration", + "scope": 1245, + "src": "715:15:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1233, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "715:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 1236, + "mutability": "mutable", + "name": "amount", + "nameLocation": "744:6:15", + "nodeType": "VariableDeclaration", + "scope": 1245, + "src": "736:14:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1235, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "736:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 1238, + "mutability": "mutable", + "name": "owner", + "nameLocation": "764:5:15", + "nodeType": "VariableDeclaration", + "scope": 1245, + "src": "756:13:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 1237, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "756:7:15", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 1240, + "mutability": "mutable", + "name": "price", + "nameLocation": "783:5:15", + "nodeType": "VariableDeclaration", + "scope": 1245, + "src": "775:13:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1239, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "775:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 1242, + "mutability": "mutable", + "name": "nftToken", + "nameLocation": "802:8:15", + "nodeType": "VariableDeclaration", + "scope": 1245, + "src": "794:16:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 1241, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "794:7:15", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 1244, + "mutability": "mutable", + "name": "currency", + "nameLocation": "824:8:15", + "nodeType": "VariableDeclaration", + "scope": 1245, + "src": "816:16:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 1243, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "816:7:15", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "name": "OrderInfo", + "nameLocation": "678:9:15", + "nodeType": "StructDefinition", + "scope": 2076, + "src": "671:166:15", + "visibility": "public" + }, + { + "constant": false, + "functionSelector": "6d213f72", + "id": 1249, + "mutability": "mutable", + "name": "erc721Supported", + "nameLocation": "872:15:15", + "nodeType": "VariableDeclaration", + "scope": 2076, + "src": "840:47:15", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + }, + "typeName": { + "id": 1248, + "keyType": { + "id": 1246, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "848:7:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "Mapping", + "src": "840:24:15", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + }, + "valueType": { + "id": 1247, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "859:4:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + } + }, + "visibility": "public" + }, + { + "constant": false, + "functionSelector": "322ba2c8", + "id": 1253, + "mutability": "mutable", + "name": "erc1155Supported", + "nameLocation": "923:16:15", + "nodeType": "VariableDeclaration", + "scope": 2076, + "src": "891:48:15", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + }, + "typeName": { + "id": 1252, + "keyType": { + "id": 1250, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "899:7:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "Mapping", + "src": "891:24:15", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + }, + "valueType": { + "id": 1251, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "910:4:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + } + }, + "visibility": "public" + }, + { + "constant": false, + "functionSelector": "9017f79e", + "id": 1257, + "mutability": "mutable", + "name": "erc20Supported", + "nameLocation": "975:14:15", + "nodeType": "VariableDeclaration", + "scope": 2076, + "src": "943:46:15", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + }, + "typeName": { + "id": 1256, + "keyType": { + "id": 1254, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "951:7:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "Mapping", + "src": "943:24:15", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + }, + "valueType": { + "id": 1255, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "962:4:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + } + }, + "visibility": "public" + }, + { + "constant": false, + "functionSelector": "b4a1753a", + "id": 1262, + "mutability": "mutable", + "name": "orderInfos", + "nameLocation": "1030:10:15", + "nodeType": "VariableDeclaration", + "scope": 2076, + "src": "993:47:15", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_OrderInfo_$1245_storage_$", + "typeString": "mapping(uint256 => struct BENFTMarket.OrderInfo)" + }, + "typeName": { + "id": 1261, + "keyType": { + "id": 1258, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1001:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Mapping", + "src": "993:29:15", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_OrderInfo_$1245_storage_$", + "typeString": "mapping(uint256 => struct BENFTMarket.OrderInfo)" + }, + "valueType": { + "id": 1260, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 1259, + "name": "OrderInfo", + "nodeType": "IdentifierPath", + "referencedDeclaration": 1245, + "src": "1012:9:15" + }, + "referencedDeclaration": 1245, + "src": "1012:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_storage_ptr", + "typeString": "struct BENFTMarket.OrderInfo" + } + } + }, + "visibility": "public" + }, + { + "constant": false, + "functionSelector": "c24bdfc6", + "id": 1266, + "mutability": "mutable", + "name": "nftPriceMaxLimit", + "nameLocation": "1079:16:15", + "nodeType": "VariableDeclaration", + "scope": 2076, + "src": "1044:51:15", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + }, + "typeName": { + "id": 1265, + "keyType": { + "id": 1263, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1052:7:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "Mapping", + "src": "1044:27:15", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + }, + "valueType": { + "id": 1264, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1063:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + }, + "visibility": "public" + }, + { + "constant": false, + "functionSelector": "3d19b468", + "id": 1270, + "mutability": "mutable", + "name": "nftPriceMinLimit", + "nameLocation": "1134:16:15", + "nodeType": "VariableDeclaration", + "scope": 2076, + "src": "1099:51:15", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + }, + "typeName": { + "id": 1269, + "keyType": { + "id": 1267, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1107:7:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "Mapping", + "src": "1099:27:15", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + }, + "valueType": { + "id": 1268, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1118:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + }, + "visibility": "public" + }, + { + "anonymous": false, + "id": 1286, + "name": "SellOrder", + "nameLocation": "1161:9:15", + "nodeType": "EventDefinition", + "parameters": { + "id": 1285, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1272, + "indexed": true, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "1192:7:15", + "nodeType": "VariableDeclaration", + "scope": 1286, + "src": "1176:23:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1271, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1176:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 1274, + "indexed": true, + "mutability": "mutable", + "name": "owner", + "nameLocation": "1221:5:15", + "nodeType": "VariableDeclaration", + "scope": 1286, + "src": "1205:21:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 1273, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1205:7:15", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 1276, + "indexed": true, + "mutability": "mutable", + "name": "nftToken", + "nameLocation": "1248:8:15", + "nodeType": "VariableDeclaration", + "scope": 1286, + "src": "1232:24:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 1275, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1232:7:15", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 1278, + "indexed": false, + "mutability": "mutable", + "name": "amount", + "nameLocation": "1270:6:15", + "nodeType": "VariableDeclaration", + "scope": 1286, + "src": "1262:14:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1277, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1262:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 1280, + "indexed": false, + "mutability": "mutable", + "name": "orderId", + "nameLocation": "1290:7:15", + "nodeType": "VariableDeclaration", + "scope": 1286, + "src": "1282:15:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1279, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1282:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 1282, + "indexed": false, + "mutability": "mutable", + "name": "currency", + "nameLocation": "1311:8:15", + "nodeType": "VariableDeclaration", + "scope": 1286, + "src": "1303:16:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 1281, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1303:7:15", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 1284, + "indexed": false, + "mutability": "mutable", + "name": "price", + "nameLocation": "1333:5:15", + "nodeType": "VariableDeclaration", + "scope": 1286, + "src": "1325:13:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1283, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1325:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "1170:172:15" + }, + "src": "1155:188:15" + }, + { + "anonymous": false, + "id": 1294, + "name": "CancelOrder", + "nameLocation": "1353:11:15", + "nodeType": "EventDefinition", + "parameters": { + "id": 1293, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1288, + "indexed": true, + "mutability": "mutable", + "name": "orderId", + "nameLocation": "1386:7:15", + "nodeType": "VariableDeclaration", + "scope": 1294, + "src": "1370:23:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1287, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1370:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 1290, + "indexed": true, + "mutability": "mutable", + "name": "nftToken", + "nameLocation": "1415:8:15", + "nodeType": "VariableDeclaration", + "scope": 1294, + "src": "1399:24:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 1289, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1399:7:15", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 1292, + "indexed": true, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "1445:7:15", + "nodeType": "VariableDeclaration", + "scope": 1294, + "src": "1429:23:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1291, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1429:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "1364:92:15" + }, + "src": "1347:110:15" + }, + { + "anonymous": false, + "id": 1306, + "name": "PriceUpdate", + "nameLocation": "1467:11:15", + "nodeType": "EventDefinition", + "parameters": { + "id": 1305, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1296, + "indexed": true, + "mutability": "mutable", + "name": "orderId", + "nameLocation": "1500:7:15", + "nodeType": "VariableDeclaration", + "scope": 1306, + "src": "1484:23:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1295, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1484:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 1298, + "indexed": true, + "mutability": "mutable", + "name": "nftToken", + "nameLocation": "1529:8:15", + "nodeType": "VariableDeclaration", + "scope": 1306, + "src": "1513:24:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 1297, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1513:7:15", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 1300, + "indexed": true, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "1559:7:15", + "nodeType": "VariableDeclaration", + "scope": 1306, + "src": "1543:23:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1299, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1543:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 1302, + "indexed": false, + "mutability": "mutable", + "name": "priceOld", + "nameLocation": "1580:8:15", + "nodeType": "VariableDeclaration", + "scope": 1306, + "src": "1572:16:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1301, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1572:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 1304, + "indexed": false, + "mutability": "mutable", + "name": "price", + "nameLocation": "1602:5:15", + "nodeType": "VariableDeclaration", + "scope": 1306, + "src": "1594:13:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1303, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1594:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "1478:133:15" + }, + "src": "1461:151:15" + }, + { + "anonymous": false, + "id": 1324, + "name": "BuyOrder", + "nameLocation": "1622:8:15", + "nodeType": "EventDefinition", + "parameters": { + "id": 1323, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1308, + "indexed": true, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "1652:7:15", + "nodeType": "VariableDeclaration", + "scope": 1324, + "src": "1636:23:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1307, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1636:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 1310, + "indexed": false, + "mutability": "mutable", + "name": "orderId", + "nameLocation": "1673:7:15", + "nodeType": "VariableDeclaration", + "scope": 1324, + "src": "1665:15:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1309, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1665:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 1312, + "indexed": false, + "mutability": "mutable", + "name": "nftToken", + "nameLocation": "1694:8:15", + "nodeType": "VariableDeclaration", + "scope": 1324, + "src": "1686:16:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 1311, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1686:7:15", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 1314, + "indexed": false, + "mutability": "mutable", + "name": "amount", + "nameLocation": "1716:6:15", + "nodeType": "VariableDeclaration", + "scope": 1324, + "src": "1708:14:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1313, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1708:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 1316, + "indexed": false, + "mutability": "mutable", + "name": "seller", + "nameLocation": "1736:6:15", + "nodeType": "VariableDeclaration", + "scope": 1324, + "src": "1728:14:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 1315, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1728:7:15", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 1318, + "indexed": false, + "mutability": "mutable", + "name": "buyer", + "nameLocation": "1756:5:15", + "nodeType": "VariableDeclaration", + "scope": 1324, + "src": "1748:13:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 1317, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1748:7:15", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 1320, + "indexed": false, + "mutability": "mutable", + "name": "erc20", + "nameLocation": "1775:5:15", + "nodeType": "VariableDeclaration", + "scope": 1324, + "src": "1767:13:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 1319, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1767:7:15", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 1322, + "indexed": false, + "mutability": "mutable", + "name": "price", + "nameLocation": "1794:5:15", + "nodeType": "VariableDeclaration", + "scope": 1324, + "src": "1786:13:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1321, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1786:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "1630:173:15" + }, + "src": "1616:188:15" + }, + { + "anonymous": false, + "id": 1328, + "name": "AddNFTSuppout", + "nameLocation": "1814:13:15", + "nodeType": "EventDefinition", + "parameters": { + "id": 1327, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1326, + "indexed": false, + "mutability": "mutable", + "name": "nftToken", + "nameLocation": "1836:8:15", + "nodeType": "VariableDeclaration", + "scope": 1328, + "src": "1828:16:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 1325, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1828:7:15", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "1827:18:15" + }, + "src": "1808:38:15" + }, + { + "anonymous": false, + "id": 1332, + "name": "RemoveNFTSuppout", + "nameLocation": "1855:16:15", + "nodeType": "EventDefinition", + "parameters": { + "id": 1331, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1330, + "indexed": false, + "mutability": "mutable", + "name": "nftToken", + "nameLocation": "1880:8:15", + "nodeType": "VariableDeclaration", + "scope": 1332, + "src": "1872:16:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 1329, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1872:7:15", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "1871:18:15" + }, + "src": "1849:41:15" + }, + { + "anonymous": false, + "id": 1336, + "name": "AddERC20Suppout", + "nameLocation": "1899:15:15", + "nodeType": "EventDefinition", + "parameters": { + "id": 1335, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1334, + "indexed": false, + "mutability": "mutable", + "name": "erc20", + "nameLocation": "1923:5:15", + "nodeType": "VariableDeclaration", + "scope": 1336, + "src": "1915:13:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 1333, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1915:7:15", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "1914:15:15" + }, + "src": "1893:37:15" + }, + { + "anonymous": false, + "id": 1340, + "name": "RemoveERC20Suppout", + "nameLocation": "1939:18:15", + "nodeType": "EventDefinition", + "parameters": { + "id": 1339, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1338, + "indexed": false, + "mutability": "mutable", + "name": "erc20", + "nameLocation": "1966:5:15", + "nodeType": "VariableDeclaration", + "scope": 1340, + "src": "1958:13:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 1337, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1958:7:15", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "1957:15:15" + }, + "src": "1933:40:15" + }, + { + "constant": false, + "functionSelector": "5a43c2e5", + "id": 1342, + "mutability": "mutable", + "name": "tranFeeTotal", + "nameLocation": "1992:12:15", + "nodeType": "VariableDeclaration", + "scope": 2076, + "src": "1977:27:15", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1341, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1977:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "public" + }, + { + "constant": true, + "id": 1345, + "mutability": "constant", + "name": "ROUND", + "nameLocation": "2026:5:15", + "nodeType": "VariableDeclaration", + "scope": 2076, + "src": "2009:32:15", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1343, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "2009:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": { + "hexValue": "31303030303030", + "id": 1344, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2034:7:15", + "typeDescriptions": { + "typeIdentifier": "t_rational_1000000_by_1", + "typeString": "int_const 1000000" + }, + "value": "1000000" + }, + "visibility": "internal" + }, + { + "constant": false, + "functionSelector": "9ed3edf0", + "id": 1353, + "mutability": "mutable", + "name": "transactionFee", + "nameLocation": "2060:14:15", + "nodeType": "VariableDeclaration", + "scope": 2076, + "src": "2045:49:15", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1346, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "2045:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1352, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "leftExpression": { + "components": [ + { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1349, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "leftExpression": { + "hexValue": "33", + "id": 1347, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2078:1:15", + "typeDescriptions": { + "typeIdentifier": "t_rational_3_by_1", + "typeString": "int_const 3" + }, + "value": "3" + }, + "nodeType": "BinaryOperation", + "operator": "*", + "rightExpression": { + "id": 1348, + "name": "ROUND", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1345, + "src": "2082:5:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "2078:9:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "id": 1350, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "2077:11:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "/", + "rightExpression": { + "hexValue": "313030", + "id": 1351, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2091:3:15", + "typeDescriptions": { + "typeIdentifier": "t_rational_100_by_1", + "typeString": "int_const 100" + }, + "value": "100" + }, + "src": "2077:17:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "public" + }, + { + "constant": true, + "functionSelector": "b18c1047", + "id": 1361, + "mutability": "constant", + "name": "MIN_TRANSACTION_FEE", + "nameLocation": "2156:19:15", + "nodeType": "VariableDeclaration", + "scope": 2076, + "src": "2132:64:15", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1354, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "2132:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1360, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "leftExpression": { + "components": [ + { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1357, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "leftExpression": { + "hexValue": "35", + "id": 1355, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2179:1:15", + "typeDescriptions": { + "typeIdentifier": "t_rational_5_by_1", + "typeString": "int_const 5" + }, + "value": "5" + }, + "nodeType": "BinaryOperation", + "operator": "*", + "rightExpression": { + "id": 1356, + "name": "ROUND", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1345, + "src": "2183:5:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "2179:9:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "id": 1358, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "2178:11:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "/", + "rightExpression": { + "hexValue": "31303030", + "id": 1359, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2192:4:15", + "typeDescriptions": { + "typeIdentifier": "t_rational_1000_by_1", + "typeString": "int_const 1000" + }, + "value": "1000" + }, + "src": "2178:18:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "public" + }, + { + "constant": true, + "functionSelector": "6f22d45b", + "id": 1369, + "mutability": "constant", + "name": "MAX_TRANSACTION_FEE", + "nameLocation": "2257:19:15", + "nodeType": "VariableDeclaration", + "scope": 2076, + "src": "2233:64:15", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1362, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "2233:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1368, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "leftExpression": { + "components": [ + { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1365, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "leftExpression": { + "hexValue": "3130", + "id": 1363, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2280:2:15", + "typeDescriptions": { + "typeIdentifier": "t_rational_10_by_1", + "typeString": "int_const 10" + }, + "value": "10" + }, + "nodeType": "BinaryOperation", + "operator": "*", + "rightExpression": { + "id": 1364, + "name": "ROUND", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1345, + "src": "2285:5:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "2280:10:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "id": 1366, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "2279:12:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "/", + "rightExpression": { + "hexValue": "313030", + "id": 1367, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2294:3:15", + "typeDescriptions": { + "typeIdentifier": "t_rational_100_by_1", + "typeString": "int_const 100" + }, + "value": "100" + }, + "src": "2279:18:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "public" + }, + { + "constant": false, + "functionSelector": "083d80f9", + "id": 1371, + "mutability": "mutable", + "name": "feeToAddress", + "nameLocation": "2317:12:15", + "nodeType": "VariableDeclaration", + "scope": 2076, + "src": "2302:27:15", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 1370, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "2302:7:15", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "public" + }, + { + "constant": false, + "functionSelector": "3a27df07", + "id": 1373, + "mutability": "mutable", + "name": "incrId", + "nameLocation": "2349:6:15", + "nodeType": "VariableDeclaration", + "scope": 2076, + "src": "2334:21:15", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1372, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "2334:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "public" + }, + { + "body": { + "id": 1549, + "nodeType": "Block", + "src": "2491:1335:15", + "statements": [ + { + "expression": { + "arguments": [ + { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1389, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 1387, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1379, + "src": "2505:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "!=", + "rightExpression": { + "hexValue": "30", + "id": 1388, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2516:1:15", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "src": "2505:12:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "hexValue": "4e46544d61726b65743a20746f6b656e49642063616e206e6f74206265203021", + "id": 1390, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2519:34:15", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_1fc5a8353b7bcb96529893a4f9e0592462a8f8c7bd48c223d208a6f163e4a4e6", + "typeString": "literal_string \"NFTMarket: tokenId can not be 0!\"" + }, + "value": "NFTMarket: tokenId can not be 0!" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_1fc5a8353b7bcb96529893a4f9e0592462a8f8c7bd48c223d208a6f163e4a4e6", + "typeString": "literal_string \"NFTMarket: tokenId can not be 0!\"" + } + ], + "id": 1386, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 4294967278, + 4294967278 + ], + "referencedDeclaration": 4294967278, + "src": "2497:7:15", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 1391, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "2497:57:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1392, + "nodeType": "ExpressionStatement", + "src": "2497:57:15" + }, + { + "expression": { + "arguments": [ + { + "commonType": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "id": 1400, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "baseExpression": { + "id": 1394, + "name": "erc721Supported", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1249, + "src": "2575:15:15", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + } + }, + "id": 1396, + "indexExpression": { + "id": 1395, + "name": "nftToken", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1375, + "src": "2591:8:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "2575:25:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "BinaryOperation", + "operator": "||", + "rightExpression": { + "baseExpression": { + "id": 1397, + "name": "erc1155Supported", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1253, + "src": "2604:16:15", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + } + }, + "id": 1399, + "indexExpression": { + "id": 1398, + "name": "nftToken", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1375, + "src": "2621:8:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "2604:26:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "src": "2575:55:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "hexValue": "4e46544d61726b65743a20556e737570706f72746564204e4654", + "id": 1401, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2638:28:15", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_668e670f389ea2022d2f202bf010ba2ff684105eb9bb5b434c96388c4e3e7bf3", + "typeString": "literal_string \"NFTMarket: Unsupported NFT\"" + }, + "value": "NFTMarket: Unsupported NFT" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_668e670f389ea2022d2f202bf010ba2ff684105eb9bb5b434c96388c4e3e7bf3", + "typeString": "literal_string \"NFTMarket: Unsupported NFT\"" + } + ], + "id": 1393, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 4294967278, + 4294967278 + ], + "referencedDeclaration": 4294967278, + "src": "2560:7:15", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 1402, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "2560:112:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1403, + "nodeType": "ExpressionStatement", + "src": "2560:112:15" + }, + { + "expression": { + "arguments": [ + { + "baseExpression": { + "id": 1405, + "name": "erc20Supported", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1257, + "src": "2686:14:15", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + } + }, + "id": 1407, + "indexExpression": { + "id": 1406, + "name": "currency", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1377, + "src": "2701:8:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "2686:24:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "hexValue": "4e46544d61726b65743a20556e737570706f7274656420746f6b656e73", + "id": 1408, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2712:31:15", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_7a7ddd2c378b25a00c9aa179120048f3c19b76cd5d3231da609df84a5107a4d7", + "typeString": "literal_string \"NFTMarket: Unsupported tokens\"" + }, + "value": "NFTMarket: Unsupported tokens" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_7a7ddd2c378b25a00c9aa179120048f3c19b76cd5d3231da609df84a5107a4d7", + "typeString": "literal_string \"NFTMarket: Unsupported tokens\"" + } + ], + "id": 1404, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 4294967278, + 4294967278 + ], + "referencedDeclaration": 4294967278, + "src": "2678:7:15", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 1409, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "2678:66:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1410, + "nodeType": "ExpressionStatement", + "src": "2678:66:15" + }, + { + "expression": { + "arguments": [ + { + "commonType": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "id": 1422, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1416, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 1412, + "name": "price", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1381, + "src": "2765:5:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "<=", + "rightExpression": { + "baseExpression": { + "id": 1413, + "name": "nftPriceMaxLimit", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1266, + "src": "2774:16:15", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + } + }, + "id": 1415, + "indexExpression": { + "id": 1414, + "name": "nftToken", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1375, + "src": "2791:8:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "2774:26:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "2765:35:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "BinaryOperation", + "operator": "||", + "rightExpression": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1421, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "baseExpression": { + "id": 1417, + "name": "nftPriceMaxLimit", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1266, + "src": "2804:16:15", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + } + }, + "id": 1419, + "indexExpression": { + "id": 1418, + "name": "nftToken", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1375, + "src": "2821:8:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "2804:26:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "hexValue": "30", + "id": 1420, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2834:1:15", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "src": "2804:31:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "src": "2765:70:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "hexValue": "4e46544d61726b65743a204d6178696d756d207072696365206c696d6974206578636565646564", + "id": 1423, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2843:41:15", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_4cb6df112f38a5e8930a5993583968b49c106f624e768bc7f965587788a9ba13", + "typeString": "literal_string \"NFTMarket: Maximum price limit exceeded\"" + }, + "value": "NFTMarket: Maximum price limit exceeded" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_4cb6df112f38a5e8930a5993583968b49c106f624e768bc7f965587788a9ba13", + "typeString": "literal_string \"NFTMarket: Maximum price limit exceeded\"" + } + ], + "id": 1411, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 4294967278, + 4294967278 + ], + "referencedDeclaration": 4294967278, + "src": "2750:7:15", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 1424, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "2750:140:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1425, + "nodeType": "ExpressionStatement", + "src": "2750:140:15" + }, + { + "expression": { + "arguments": [ + { + "commonType": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "id": 1435, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1431, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 1427, + "name": "price", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1381, + "src": "2911:5:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": ">=", + "rightExpression": { + "baseExpression": { + "id": 1428, + "name": "nftPriceMinLimit", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1270, + "src": "2920:16:15", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + } + }, + "id": 1430, + "indexExpression": { + "id": 1429, + "name": "nftToken", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1375, + "src": "2937:8:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "2920:26:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "2911:35:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "BinaryOperation", + "operator": "&&", + "rightExpression": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1434, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 1432, + "name": "price", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1381, + "src": "2950:5:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "!=", + "rightExpression": { + "hexValue": "30", + "id": 1433, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2959:1:15", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "src": "2950:10:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "src": "2911:49:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "hexValue": "4e46544d61726b65743a2042656c6f7720746865206d696e696d756d207072696365206c696d6974", + "id": 1436, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2968:42:15", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_744b4ba124daa910620675d926ec89aeeb4da774fb91c8cbe522d0cf48a3f6cf", + "typeString": "literal_string \"NFTMarket: Below the minimum price limit\"" + }, + "value": "NFTMarket: Below the minimum price limit" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_744b4ba124daa910620675d926ec89aeeb4da774fb91c8cbe522d0cf48a3f6cf", + "typeString": "literal_string \"NFTMarket: Below the minimum price limit\"" + } + ], + "id": 1426, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 4294967278, + 4294967278 + ], + "referencedDeclaration": 4294967278, + "src": "2896:7:15", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 1437, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "2896:120:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1438, + "nodeType": "ExpressionStatement", + "src": "2896:120:15" + }, + { + "expression": { + "id": 1441, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "id": 1439, + "name": "incrId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1373, + "src": "3022:6:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "+=", + "rightHandSide": { + "hexValue": "31", + "id": 1440, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "3032:1:15", + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + }, + "src": "3022:11:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 1442, + "nodeType": "ExpressionStatement", + "src": "3022:11:15" + }, + { + "assignments": [ + 1445 + ], + "declarations": [ + { + "constant": false, + "id": 1445, + "mutability": "mutable", + "name": "orderInfo", + "nameLocation": "3057:9:15", + "nodeType": "VariableDeclaration", + "scope": 1549, + "src": "3039:27:15", + "stateVariable": false, + "storageLocation": "storage", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_storage_ptr", + "typeString": "struct BENFTMarket.OrderInfo" + }, + "typeName": { + "id": 1444, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 1443, + "name": "OrderInfo", + "nodeType": "IdentifierPath", + "referencedDeclaration": 1245, + "src": "3039:9:15" + }, + "referencedDeclaration": 1245, + "src": "3039:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_storage_ptr", + "typeString": "struct BENFTMarket.OrderInfo" + } + }, + "visibility": "internal" + } + ], + "id": 1449, + "initialValue": { + "baseExpression": { + "id": 1446, + "name": "orderInfos", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1262, + "src": "3069:10:15", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_OrderInfo_$1245_storage_$", + "typeString": "mapping(uint256 => struct BENFTMarket.OrderInfo storage ref)" + } + }, + "id": 1448, + "indexExpression": { + "id": 1447, + "name": "incrId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1373, + "src": "3080:6:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "3069:18:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_storage", + "typeString": "struct BENFTMarket.OrderInfo storage ref" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "3039:48:15" + }, + { + "expression": { + "id": 1454, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "expression": { + "id": 1450, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1445, + "src": "3093:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_storage_ptr", + "typeString": "struct BENFTMarket.OrderInfo storage pointer" + } + }, + "id": 1452, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "orderId", + "nodeType": "MemberAccess", + "referencedDeclaration": 1232, + "src": "3093:17:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "id": 1453, + "name": "incrId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1373, + "src": "3113:6:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "3093:26:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 1455, + "nodeType": "ExpressionStatement", + "src": "3093:26:15" + }, + { + "expression": { + "id": 1460, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "expression": { + "id": 1456, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1445, + "src": "3125:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_storage_ptr", + "typeString": "struct BENFTMarket.OrderInfo storage pointer" + } + }, + "id": 1458, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "tokenId", + "nodeType": "MemberAccess", + "referencedDeclaration": 1234, + "src": "3125:17:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "id": 1459, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1379, + "src": "3145:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "3125:27:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 1461, + "nodeType": "ExpressionStatement", + "src": "3125:27:15" + }, + { + "expression": { + "id": 1466, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "expression": { + "id": 1462, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1445, + "src": "3158:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_storage_ptr", + "typeString": "struct BENFTMarket.OrderInfo storage pointer" + } + }, + "id": 1464, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "amount", + "nodeType": "MemberAccess", + "referencedDeclaration": 1236, + "src": "3158:16:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "id": 1465, + "name": "amount", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1383, + "src": "3177:6:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "3158:25:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 1467, + "nodeType": "ExpressionStatement", + "src": "3158:25:15" + }, + { + "expression": { + "id": 1472, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "expression": { + "id": 1468, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1445, + "src": "3189:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_storage_ptr", + "typeString": "struct BENFTMarket.OrderInfo storage pointer" + } + }, + "id": 1470, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "nftToken", + "nodeType": "MemberAccess", + "referencedDeclaration": 1242, + "src": "3189:18:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "id": 1471, + "name": "nftToken", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1375, + "src": "3210:8:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "src": "3189:29:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "id": 1473, + "nodeType": "ExpressionStatement", + "src": "3189:29:15" + }, + { + "expression": { + "id": 1479, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "expression": { + "id": 1474, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1445, + "src": "3224:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_storage_ptr", + "typeString": "struct BENFTMarket.OrderInfo storage pointer" + } + }, + "id": 1476, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "owner", + "nodeType": "MemberAccess", + "referencedDeclaration": 1238, + "src": "3224:15:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "expression": { + "id": 1477, + "name": "msg", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 4294967281, + "src": "3242:3:15", + "typeDescriptions": { + "typeIdentifier": "t_magic_message", + "typeString": "msg" + } + }, + "id": 1478, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberName": "sender", + "nodeType": "MemberAccess", + "src": "3242:10:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "src": "3224:28:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "id": 1480, + "nodeType": "ExpressionStatement", + "src": "3224:28:15" + }, + { + "expression": { + "id": 1485, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "expression": { + "id": 1481, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1445, + "src": "3258:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_storage_ptr", + "typeString": "struct BENFTMarket.OrderInfo storage pointer" + } + }, + "id": 1483, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "price", + "nodeType": "MemberAccess", + "referencedDeclaration": 1240, + "src": "3258:15:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "id": 1484, + "name": "price", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1381, + "src": "3276:5:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "3258:23:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 1486, + "nodeType": "ExpressionStatement", + "src": "3258:23:15" + }, + { + "expression": { + "id": 1491, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "expression": { + "id": 1487, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1445, + "src": "3287:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_storage_ptr", + "typeString": "struct BENFTMarket.OrderInfo storage pointer" + } + }, + "id": 1489, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "currency", + "nodeType": "MemberAccess", + "referencedDeclaration": 1244, + "src": "3287:18:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "id": 1490, + "name": "currency", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1377, + "src": "3308:8:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "src": "3287:29:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "id": 1492, + "nodeType": "ExpressionStatement", + "src": "3287:29:15" + }, + { + "condition": { + "baseExpression": { + "id": 1493, + "name": "erc721Supported", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1249, + "src": "3326:15:15", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + } + }, + "id": 1495, + "indexExpression": { + "id": 1494, + "name": "nftToken", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1375, + "src": "3342:8:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "3326:25:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "falseBody": { + "condition": { + "baseExpression": { + "id": 1517, + "name": "erc1155Supported", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1253, + "src": "3515:16:15", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + } + }, + "id": 1519, + "indexExpression": { + "id": 1518, + "name": "nftToken", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1375, + "src": "3532:8:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "3515:26:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 1536, + "nodeType": "IfStatement", + "src": "3511:178:15", + "trueBody": { + "id": 1535, + "nodeType": "Block", + "src": "3543:146:15", + "statements": [ + { + "expression": { + "arguments": [ + { + "expression": { + "id": 1524, + "name": "msg", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 4294967281, + "src": "3596:3:15", + "typeDescriptions": { + "typeIdentifier": "t_magic_message", + "typeString": "msg" + } + }, + "id": 1525, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberName": "sender", + "nodeType": "MemberAccess", + "src": "3596:10:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "arguments": [ + { + "id": 1528, + "name": "this", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 4294967268, + "src": "3624:4:15", + "typeDescriptions": { + "typeIdentifier": "t_contract$_BENFTMarket_$2076", + "typeString": "contract BENFTMarket" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_contract$_BENFTMarket_$2076", + "typeString": "contract BENFTMarket" + } + ], + "id": 1527, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "3616:7:15", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 1526, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "3616:7:15", + "typeDescriptions": {} + } + }, + "id": 1529, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "3616:13:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 1530, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1379, + "src": "3639:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "id": 1531, + "name": "amount", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1383, + "src": "3656:6:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "hexValue": "", + "id": 1532, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "3672:2:15", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", + "typeString": "literal_string \"\"" + }, + "value": "" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", + "typeString": "literal_string \"\"" + } + ], + "expression": { + "arguments": [ + { + "id": 1521, + "name": "nftToken", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1375, + "src": "3560:8:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + } + ], + "id": 1520, + "name": "IERC1155", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 266, + "src": "3551:8:15", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_contract$_IERC1155_$266_$", + "typeString": "type(contract IERC1155)" + } + }, + "id": 1522, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "3551:18:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_contract$_IERC1155_$266", + "typeString": "contract IERC1155" + } + }, + "id": 1523, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberName": "safeTransferFrom", + "nodeType": "MemberAccess", + "referencedDeclaration": 249, + "src": "3551:35:15", + "typeDescriptions": { + "typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_address_$_t_uint256_$_t_uint256_$_t_bytes_memory_ptr_$returns$__$", + "typeString": "function (address,address,uint256,uint256,bytes memory) external" + } + }, + "id": 1533, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "3551:131:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1534, + "nodeType": "ExpressionStatement", + "src": "3551:131:15" + } + ] + } + }, + "id": 1537, + "nodeType": "IfStatement", + "src": "3322:367:15", + "trueBody": { + "id": 1516, + "nodeType": "Block", + "src": "3353:152:15", + "statements": [ + { + "expression": { + "arguments": [ + { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1499, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 1497, + "name": "amount", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1383, + "src": "3369:6:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "hexValue": "31", + "id": 1498, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "3379:1:15", + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + }, + "src": "3369:11:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "hexValue": "4e46544d61726b65743a2045524337323120616d6f756e74206d757374206265203120", + "id": 1500, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "3382:37:15", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_8a599a619c1e8bd2d1e81301b146ddc5ec086633a69609a7dfe1d0df5476209f", + "typeString": "literal_string \"NFTMarket: ERC721 amount must be 1 \"" + }, + "value": "NFTMarket: ERC721 amount must be 1 " + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_8a599a619c1e8bd2d1e81301b146ddc5ec086633a69609a7dfe1d0df5476209f", + "typeString": "literal_string \"NFTMarket: ERC721 amount must be 1 \"" + } + ], + "id": 1496, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 4294967278, + 4294967278 + ], + "referencedDeclaration": 4294967278, + "src": "3361:7:15", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 1501, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "3361:59:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1502, + "nodeType": "ExpressionStatement", + "src": "3361:59:15" + }, + { + "expression": { + "arguments": [ + { + "expression": { + "id": 1507, + "name": "msg", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 4294967281, + "src": "3463:3:15", + "typeDescriptions": { + "typeIdentifier": "t_magic_message", + "typeString": "msg" + } + }, + "id": 1508, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberName": "sender", + "nodeType": "MemberAccess", + "src": "3463:10:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "arguments": [ + { + "id": 1511, + "name": "this", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 4294967268, + "src": "3483:4:15", + "typeDescriptions": { + "typeIdentifier": "t_contract$_BENFTMarket_$2076", + "typeString": "contract BENFTMarket" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_contract$_BENFTMarket_$2076", + "typeString": "contract BENFTMarket" + } + ], + "id": 1510, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "3475:7:15", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 1509, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "3475:7:15", + "typeDescriptions": {} + } + }, + "id": 1512, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "3475:13:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 1513, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1379, + "src": "3490:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "expression": { + "arguments": [ + { + "id": 1504, + "name": "nftToken", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1375, + "src": "3436:8:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + } + ], + "id": 1503, + "name": "IERC721", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 810, + "src": "3428:7:15", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_contract$_IERC721_$810_$", + "typeString": "type(contract IERC721)" + } + }, + "id": 1505, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "3428:17:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_contract$_IERC721_$810", + "typeString": "contract IERC721" + } + }, + "id": 1506, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberName": "safeTransferFrom", + "nodeType": "MemberAccess", + "referencedDeclaration": 753, + "src": "3428:34:15", + "typeDescriptions": { + "typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", + "typeString": "function (address,address,uint256) external" + } + }, + "id": 1514, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "3428:70:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1515, + "nodeType": "ExpressionStatement", + "src": "3428:70:15" + } + ] + } + }, + { + "eventCall": { + "arguments": [ + { + "id": 1539, + "name": "tokenId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1379, + "src": "3717:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "expression": { + "id": 1540, + "name": "msg", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 4294967281, + "src": "3732:3:15", + "typeDescriptions": { + "typeIdentifier": "t_magic_message", + "typeString": "msg" + } + }, + "id": 1541, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberName": "sender", + "nodeType": "MemberAccess", + "src": "3732:10:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 1542, + "name": "nftToken", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1375, + "src": "3750:8:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 1543, + "name": "amount", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1383, + "src": "3766:6:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "id": 1544, + "name": "incrId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1373, + "src": "3780:6:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "id": 1545, + "name": "currency", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1377, + "src": "3794:8:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 1546, + "name": "price", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1381, + "src": "3810:5:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 1538, + "name": "SellOrder", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1286, + "src": "3700:9:15", + "typeDescriptions": { + "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_address_$_t_address_$_t_uint256_$_t_uint256_$_t_address_$_t_uint256_$returns$__$", + "typeString": "function (uint256,address,address,uint256,uint256,address,uint256)" + } + }, + "id": 1547, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "3700:121:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1548, + "nodeType": "EmitStatement", + "src": "3695:126:15" + } + ] + }, + "functionSelector": "b8a9ddeb", + "id": 1550, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "sell", + "nameLocation": "2369:4:15", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 1384, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1375, + "mutability": "mutable", + "name": "nftToken", + "nameLocation": "2387:8:15", + "nodeType": "VariableDeclaration", + "scope": 1550, + "src": "2379:16:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 1374, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "2379:7:15", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 1377, + "mutability": "mutable", + "name": "currency", + "nameLocation": "2409:8:15", + "nodeType": "VariableDeclaration", + "scope": 1550, + "src": "2401:16:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 1376, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "2401:7:15", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 1379, + "mutability": "mutable", + "name": "tokenId", + "nameLocation": "2431:7:15", + "nodeType": "VariableDeclaration", + "scope": 1550, + "src": "2423:15:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1378, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "2423:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 1381, + "mutability": "mutable", + "name": "price", + "nameLocation": "2452:5:15", + "nodeType": "VariableDeclaration", + "scope": 1550, + "src": "2444:13:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1380, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "2444:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 1383, + "mutability": "mutable", + "name": "amount", + "nameLocation": "2471:6:15", + "nodeType": "VariableDeclaration", + "scope": 1550, + "src": "2463:14:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1382, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "2463:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "2373:108:15" + }, + "returnParameters": { + "id": 1385, + "nodeType": "ParameterList", + "parameters": [], + "src": "2491:0:15" + }, + "scope": 2076, + "src": "2360:1466:15", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "external" + }, + { + "body": { + "id": 1686, + "nodeType": "Block", + "src": "3882:1187:15", + "statements": [ + { + "assignments": [ + 1559 + ], + "declarations": [ + { + "constant": false, + "id": 1559, + "mutability": "mutable", + "name": "orderInfo", + "nameLocation": "3905:9:15", + "nodeType": "VariableDeclaration", + "scope": 1686, + "src": "3888:26:15", + "stateVariable": false, + "storageLocation": "memory", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_memory_ptr", + "typeString": "struct BENFTMarket.OrderInfo" + }, + "typeName": { + "id": 1558, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 1557, + "name": "OrderInfo", + "nodeType": "IdentifierPath", + "referencedDeclaration": 1245, + "src": "3888:9:15" + }, + "referencedDeclaration": 1245, + "src": "3888:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_storage_ptr", + "typeString": "struct BENFTMarket.OrderInfo" + } + }, + "visibility": "internal" + } + ], + "id": 1563, + "initialValue": { + "baseExpression": { + "id": 1560, + "name": "orderInfos", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1262, + "src": "3917:10:15", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_OrderInfo_$1245_storage_$", + "typeString": "mapping(uint256 => struct BENFTMarket.OrderInfo storage ref)" + } + }, + "id": 1562, + "indexExpression": { + "id": 1561, + "name": "orderId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1552, + "src": "3928:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "3917:19:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_storage", + "typeString": "struct BENFTMarket.OrderInfo storage ref" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "3888:48:15" + }, + { + "expression": { + "arguments": [ + { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1568, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "expression": { + "id": 1565, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1559, + "src": "3950:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_memory_ptr", + "typeString": "struct BENFTMarket.OrderInfo memory" + } + }, + "id": 1566, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "tokenId", + "nodeType": "MemberAccess", + "referencedDeclaration": 1234, + "src": "3950:17:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "!=", + "rightExpression": { + "hexValue": "30", + "id": 1567, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "3971:1:15", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "src": "3950:22:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "hexValue": "4e46544d61726b65743a204e465420646f6573206e6f74206578697374", + "id": 1569, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "3974:31:15", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_91996d5e26724312118a80c49d609267cf3d8859d05119c382cfda0b8758f400", + "typeString": "literal_string \"NFTMarket: NFT does not exist\"" + }, + "value": "NFTMarket: NFT does not exist" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_91996d5e26724312118a80c49d609267cf3d8859d05119c382cfda0b8758f400", + "typeString": "literal_string \"NFTMarket: NFT does not exist\"" + } + ], + "id": 1564, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 4294967278, + 4294967278 + ], + "referencedDeclaration": 4294967278, + "src": "3942:7:15", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 1570, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "3942:64:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1571, + "nodeType": "ExpressionStatement", + "src": "3942:64:15" + }, + { + "assignments": [ + 1573 + ], + "declarations": [ + { + "constant": false, + "id": 1573, + "mutability": "mutable", + "name": "_transactionFee", + "nameLocation": "4020:15:15", + "nodeType": "VariableDeclaration", + "scope": 1686, + "src": "4012:23:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1572, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "4012:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "id": 1581, + "initialValue": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1580, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "components": [ + { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1577, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "expression": { + "id": 1574, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1559, + "src": "4039:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_memory_ptr", + "typeString": "struct BENFTMarket.OrderInfo memory" + } + }, + "id": 1575, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "price", + "nodeType": "MemberAccess", + "referencedDeclaration": 1240, + "src": "4039:15:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "*", + "rightExpression": { + "id": 1576, + "name": "transactionFee", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1353, + "src": "4057:14:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "4039:32:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "id": 1578, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "4038:34:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "/", + "rightExpression": { + "id": 1579, + "name": "ROUND", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1345, + "src": "4075:5:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "4038:42:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "4012:68:15" + }, + { + "expression": { + "id": 1586, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "id": 1582, + "name": "tranFeeTotal", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1342, + "src": "4087:12:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1585, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 1583, + "name": "tranFeeTotal", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1342, + "src": "4102:12:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "+", + "rightExpression": { + "id": 1584, + "name": "_transactionFee", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1573, + "src": "4117:15:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "4102:30:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "4087:45:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 1587, + "nodeType": "ExpressionStatement", + "src": "4087:45:15" + }, + { + "assignments": [ + 1589 + ], + "declarations": [ + { + "constant": false, + "id": 1589, + "mutability": "mutable", + "name": "_amount", + "nameLocation": "4147:7:15", + "nodeType": "VariableDeclaration", + "scope": 1686, + "src": "4139:15:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1588, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "4139:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "id": 1594, + "initialValue": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1593, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "expression": { + "id": 1590, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1559, + "src": "4157:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_memory_ptr", + "typeString": "struct BENFTMarket.OrderInfo memory" + } + }, + "id": 1591, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "price", + "nodeType": "MemberAccess", + "referencedDeclaration": 1240, + "src": "4157:15:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "-", + "rightExpression": { + "id": 1592, + "name": "_transactionFee", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1573, + "src": "4175:15:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "4157:33:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "4139:51:15" + }, + { + "expression": { + "arguments": [ + { + "expression": { + "id": 1600, + "name": "msg", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 4294967281, + "src": "4248:3:15", + "typeDescriptions": { + "typeIdentifier": "t_magic_message", + "typeString": "msg" + } + }, + "id": 1601, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberName": "sender", + "nodeType": "MemberAccess", + "src": "4248:10:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "expression": { + "id": 1602, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1559, + "src": "4266:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_memory_ptr", + "typeString": "struct BENFTMarket.OrderInfo memory" + } + }, + "id": 1603, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "owner", + "nodeType": "MemberAccess", + "referencedDeclaration": 1238, + "src": "4266:15:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 1604, + "name": "_amount", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1589, + "src": "4289:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "expression": { + "arguments": [ + { + "expression": { + "id": 1596, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1559, + "src": "4204:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_memory_ptr", + "typeString": "struct BENFTMarket.OrderInfo memory" + } + }, + "id": 1597, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "currency", + "nodeType": "MemberAccess", + "referencedDeclaration": 1244, + "src": "4204:18:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + } + ], + "id": 1595, + "name": "IERC20", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 470, + "src": "4197:6:15", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_contract$_IERC20_$470_$", + "typeString": "type(contract IERC20)" + } + }, + "id": 1598, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "4197:26:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_contract$_IERC20_$470", + "typeString": "contract IERC20" + } + }, + "id": 1599, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberName": "safeTransferFrom", + "nodeType": "MemberAccess", + "referencedDeclaration": 527, + "src": "4197:43:15", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_nonpayable$_t_contract$_IERC20_$470_$_t_address_$_t_address_$_t_uint256_$returns$__$bound_to$_t_contract$_IERC20_$470_$", + "typeString": "function (contract IERC20,address,address,uint256)" + } + }, + "id": 1605, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "4197:105:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1606, + "nodeType": "ExpressionStatement", + "src": "4197:105:15" + }, + { + "expression": { + "arguments": [ + { + "expression": { + "id": 1612, + "name": "msg", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 4294967281, + "src": "4360:3:15", + "typeDescriptions": { + "typeIdentifier": "t_magic_message", + "typeString": "msg" + } + }, + "id": 1613, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberName": "sender", + "nodeType": "MemberAccess", + "src": "4360:10:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 1614, + "name": "feeToAddress", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1371, + "src": "4378:12:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "id": 1615, + "name": "_transactionFee", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1573, + "src": "4398:15:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "expression": { + "arguments": [ + { + "expression": { + "id": 1608, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1559, + "src": "4316:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_memory_ptr", + "typeString": "struct BENFTMarket.OrderInfo memory" + } + }, + "id": 1609, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "currency", + "nodeType": "MemberAccess", + "referencedDeclaration": 1244, + "src": "4316:18:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + } + ], + "id": 1607, + "name": "IERC20", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 470, + "src": "4309:6:15", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_contract$_IERC20_$470_$", + "typeString": "type(contract IERC20)" + } + }, + "id": 1610, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "4309:26:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_contract$_IERC20_$470", + "typeString": "contract IERC20" + } + }, + "id": 1611, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberName": "safeTransferFrom", + "nodeType": "MemberAccess", + "referencedDeclaration": 527, + "src": "4309:43:15", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_nonpayable$_t_contract$_IERC20_$470_$_t_address_$_t_address_$_t_uint256_$returns$__$bound_to$_t_contract$_IERC20_$470_$", + "typeString": "function (contract IERC20,address,address,uint256)" + } + }, + "id": 1616, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "4309:110:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1617, + "nodeType": "ExpressionStatement", + "src": "4309:110:15" + }, + { + "condition": { + "baseExpression": { + "id": 1618, + "name": "erc721Supported", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1249, + "src": "4429:15:15", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + } + }, + "id": 1621, + "indexExpression": { + "expression": { + "id": 1619, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1559, + "src": "4445:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_memory_ptr", + "typeString": "struct BENFTMarket.OrderInfo memory" + } + }, + "id": 1620, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "nftToken", + "nodeType": "MemberAccess", + "referencedDeclaration": 1242, + "src": "4445:18:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "4429:35:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "falseBody": { + "condition": { + "baseExpression": { + "id": 1638, + "name": "erc1155Supported", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1253, + "src": "4613:16:15", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + } + }, + "id": 1641, + "indexExpression": { + "expression": { + "id": 1639, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1559, + "src": "4630:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_memory_ptr", + "typeString": "struct BENFTMarket.OrderInfo memory" + } + }, + "id": 1640, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "nftToken", + "nodeType": "MemberAccess", + "referencedDeclaration": 1242, + "src": "4630:18:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "4613:36:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 1661, + "nodeType": "IfStatement", + "src": "4609:218:15", + "trueBody": { + "id": 1660, + "nodeType": "Block", + "src": "4651:176:15", + "statements": [ + { + "expression": { + "arguments": [ + { + "arguments": [ + { + "id": 1649, + "name": "this", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 4294967268, + "src": "4722:4:15", + "typeDescriptions": { + "typeIdentifier": "t_contract$_BENFTMarket_$2076", + "typeString": "contract BENFTMarket" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_contract$_BENFTMarket_$2076", + "typeString": "contract BENFTMarket" + } + ], + "id": 1648, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "4714:7:15", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 1647, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "4714:7:15", + "typeDescriptions": {} + } + }, + "id": 1650, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "4714:13:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "expression": { + "id": 1651, + "name": "msg", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 4294967281, + "src": "4737:3:15", + "typeDescriptions": { + "typeIdentifier": "t_magic_message", + "typeString": "msg" + } + }, + "id": 1652, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberName": "sender", + "nodeType": "MemberAccess", + "src": "4737:10:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "expression": { + "id": 1653, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1559, + "src": "4757:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_memory_ptr", + "typeString": "struct BENFTMarket.OrderInfo memory" + } + }, + "id": 1654, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "tokenId", + "nodeType": "MemberAccess", + "referencedDeclaration": 1234, + "src": "4757:17:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "expression": { + "id": 1655, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1559, + "src": "4784:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_memory_ptr", + "typeString": "struct BENFTMarket.OrderInfo memory" + } + }, + "id": 1656, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "amount", + "nodeType": "MemberAccess", + "referencedDeclaration": 1236, + "src": "4784:16:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "hexValue": "", + "id": 1657, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "4810:2:15", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", + "typeString": "literal_string \"\"" + }, + "value": "" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", + "typeString": "literal_string \"\"" + } + ], + "expression": { + "arguments": [ + { + "expression": { + "id": 1643, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1559, + "src": "4668:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_memory_ptr", + "typeString": "struct BENFTMarket.OrderInfo memory" + } + }, + "id": 1644, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "nftToken", + "nodeType": "MemberAccess", + "referencedDeclaration": 1242, + "src": "4668:18:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + } + ], + "id": 1642, + "name": "IERC1155", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 266, + "src": "4659:8:15", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_contract$_IERC1155_$266_$", + "typeString": "type(contract IERC1155)" + } + }, + "id": 1645, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "4659:28:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_contract$_IERC1155_$266", + "typeString": "contract IERC1155" + } + }, + "id": 1646, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberName": "safeTransferFrom", + "nodeType": "MemberAccess", + "referencedDeclaration": 249, + "src": "4659:45:15", + "typeDescriptions": { + "typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_address_$_t_uint256_$_t_uint256_$_t_bytes_memory_ptr_$returns$__$", + "typeString": "function (address,address,uint256,uint256,bytes memory) external" + } + }, + "id": 1658, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "4659:161:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1659, + "nodeType": "ExpressionStatement", + "src": "4659:161:15" + } + ] + } + }, + "id": 1662, + "nodeType": "IfStatement", + "src": "4425:402:15", + "trueBody": { + "id": 1637, + "nodeType": "Block", + "src": "4466:137:15", + "statements": [ + { + "expression": { + "arguments": [ + { + "arguments": [ + { + "id": 1629, + "name": "this", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 4294967268, + "src": "4536:4:15", + "typeDescriptions": { + "typeIdentifier": "t_contract$_BENFTMarket_$2076", + "typeString": "contract BENFTMarket" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_contract$_BENFTMarket_$2076", + "typeString": "contract BENFTMarket" + } + ], + "id": 1628, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "4528:7:15", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 1627, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "4528:7:15", + "typeDescriptions": {} + } + }, + "id": 1630, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "4528:13:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "expression": { + "id": 1631, + "name": "msg", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 4294967281, + "src": "4551:3:15", + "typeDescriptions": { + "typeIdentifier": "t_magic_message", + "typeString": "msg" + } + }, + "id": 1632, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberName": "sender", + "nodeType": "MemberAccess", + "src": "4551:10:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "expression": { + "id": 1633, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1559, + "src": "4571:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_memory_ptr", + "typeString": "struct BENFTMarket.OrderInfo memory" + } + }, + "id": 1634, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "tokenId", + "nodeType": "MemberAccess", + "referencedDeclaration": 1234, + "src": "4571:17:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "expression": { + "arguments": [ + { + "expression": { + "id": 1623, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1559, + "src": "4482:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_memory_ptr", + "typeString": "struct BENFTMarket.OrderInfo memory" + } + }, + "id": 1624, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "nftToken", + "nodeType": "MemberAccess", + "referencedDeclaration": 1242, + "src": "4482:18:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + } + ], + "id": 1622, + "name": "IERC721", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 810, + "src": "4474:7:15", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_contract$_IERC721_$810_$", + "typeString": "type(contract IERC721)" + } + }, + "id": 1625, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "4474:27:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_contract$_IERC721_$810", + "typeString": "contract IERC721" + } + }, + "id": 1626, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberName": "safeTransferFrom", + "nodeType": "MemberAccess", + "referencedDeclaration": 753, + "src": "4474:44:15", + "typeDescriptions": { + "typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", + "typeString": "function (address,address,uint256) external" + } + }, + "id": 1635, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "4474:122:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1636, + "nodeType": "ExpressionStatement", + "src": "4474:122:15" + } + ] + } + }, + { + "eventCall": { + "arguments": [ + { + "expression": { + "id": 1664, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1559, + "src": "4854:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_memory_ptr", + "typeString": "struct BENFTMarket.OrderInfo memory" + } + }, + "id": 1665, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "tokenId", + "nodeType": "MemberAccess", + "referencedDeclaration": 1234, + "src": "4854:17:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "id": 1666, + "name": "orderId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1552, + "src": "4879:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "expression": { + "id": 1667, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1559, + "src": "4894:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_memory_ptr", + "typeString": "struct BENFTMarket.OrderInfo memory" + } + }, + "id": 1668, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "nftToken", + "nodeType": "MemberAccess", + "referencedDeclaration": 1242, + "src": "4894:18:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "expression": { + "id": 1669, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1559, + "src": "4920:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_memory_ptr", + "typeString": "struct BENFTMarket.OrderInfo memory" + } + }, + "id": 1670, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "amount", + "nodeType": "MemberAccess", + "referencedDeclaration": 1236, + "src": "4920:16:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "expression": { + "id": 1671, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1559, + "src": "4944:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_memory_ptr", + "typeString": "struct BENFTMarket.OrderInfo memory" + } + }, + "id": 1672, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "owner", + "nodeType": "MemberAccess", + "referencedDeclaration": 1238, + "src": "4944:15:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "expression": { + "id": 1673, + "name": "msg", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 4294967281, + "src": "4967:3:15", + "typeDescriptions": { + "typeIdentifier": "t_magic_message", + "typeString": "msg" + } + }, + "id": 1674, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberName": "sender", + "nodeType": "MemberAccess", + "src": "4967:10:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "expression": { + "id": 1675, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1559, + "src": "4985:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_memory_ptr", + "typeString": "struct BENFTMarket.OrderInfo memory" + } + }, + "id": 1676, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "currency", + "nodeType": "MemberAccess", + "referencedDeclaration": 1244, + "src": "4985:18:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "expression": { + "id": 1677, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1559, + "src": "5011:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_memory_ptr", + "typeString": "struct BENFTMarket.OrderInfo memory" + } + }, + "id": 1678, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "price", + "nodeType": "MemberAccess", + "referencedDeclaration": 1240, + "src": "5011:15:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 1663, + "name": "BuyOrder", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1324, + "src": "4838:8:15", + "typeDescriptions": { + "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_uint256_$_t_address_$_t_uint256_$_t_address_$_t_address_$_t_address_$_t_uint256_$returns$__$", + "typeString": "function (uint256,uint256,address,uint256,address,address,address,uint256)" + } + }, + "id": 1679, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "4838:194:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1680, + "nodeType": "EmitStatement", + "src": "4833:199:15" + }, + { + "expression": { + "id": 1684, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "delete", + "prefix": true, + "src": "5038:26:15", + "subExpression": { + "baseExpression": { + "id": 1681, + "name": "orderInfos", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1262, + "src": "5045:10:15", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_OrderInfo_$1245_storage_$", + "typeString": "mapping(uint256 => struct BENFTMarket.OrderInfo storage ref)" + } + }, + "id": 1683, + "indexExpression": { + "id": 1682, + "name": "orderId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1552, + "src": "5056:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "5045:19:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_storage", + "typeString": "struct BENFTMarket.OrderInfo storage ref" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1685, + "nodeType": "ExpressionStatement", + "src": "5038:26:15" + } + ] + }, + "functionSelector": "d96a094a", + "id": 1687, + "implemented": true, + "kind": "function", + "modifiers": [ + { + "id": 1555, + "kind": "modifierInvocation", + "modifierName": { + "id": 1554, + "name": "nonReentrant", + "nodeType": "IdentifierPath", + "referencedDeclaration": 143, + "src": "3869:12:15" + }, + "nodeType": "ModifierInvocation", + "src": "3869:12:15" + } + ], + "name": "buy", + "nameLocation": "3839:3:15", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 1553, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1552, + "mutability": "mutable", + "name": "orderId", + "nameLocation": "3851:7:15", + "nodeType": "VariableDeclaration", + "scope": 1687, + "src": "3843:15:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1551, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "3843:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "3842:17:15" + }, + "returnParameters": { + "id": 1556, + "nodeType": "ParameterList", + "parameters": [], + "src": "3882:0:15" + }, + "scope": 2076, + "src": "3830:1239:15", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "external" + }, + { + "body": { + "id": 1770, + "nodeType": "Block", + "src": "5133:682:15", + "statements": [ + { + "expression": { + "arguments": [ + { + "commonType": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "id": 1701, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "expression": { + "baseExpression": { + "id": 1695, + "name": "orderInfos", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1262, + "src": "5154:10:15", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_OrderInfo_$1245_storage_$", + "typeString": "mapping(uint256 => struct BENFTMarket.OrderInfo storage ref)" + } + }, + "id": 1697, + "indexExpression": { + "id": 1696, + "name": "orderId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1689, + "src": "5165:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "5154:19:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_storage", + "typeString": "struct BENFTMarket.OrderInfo storage ref" + } + }, + "id": 1698, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "owner", + "nodeType": "MemberAccess", + "referencedDeclaration": 1238, + "src": "5154:25:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "expression": { + "id": 1699, + "name": "msg", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 4294967281, + "src": "5183:3:15", + "typeDescriptions": { + "typeIdentifier": "t_magic_message", + "typeString": "msg" + } + }, + "id": 1700, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberName": "sender", + "nodeType": "MemberAccess", + "src": "5183:10:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "src": "5154:39:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "hexValue": "4e46544d61726b65743a2063616e63656c2063616c6c6572206973206e6f74206f776e6572", + "id": 1702, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "5201:39:15", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_6c69d55baef5686650b822d5a2151c42b0bd1b4c242a3a333d38245088445ad7", + "typeString": "literal_string \"NFTMarket: cancel caller is not owner\"" + }, + "value": "NFTMarket: cancel caller is not owner" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_6c69d55baef5686650b822d5a2151c42b0bd1b4c242a3a333d38245088445ad7", + "typeString": "literal_string \"NFTMarket: cancel caller is not owner\"" + } + ], + "id": 1694, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 4294967278, + 4294967278 + ], + "referencedDeclaration": 4294967278, + "src": "5139:7:15", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 1703, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "5139:107:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1704, + "nodeType": "ExpressionStatement", + "src": "5139:107:15" + }, + { + "assignments": [ + 1707 + ], + "declarations": [ + { + "constant": false, + "id": 1707, + "mutability": "mutable", + "name": "orderInfo", + "nameLocation": "5269:9:15", + "nodeType": "VariableDeclaration", + "scope": 1770, + "src": "5252:26:15", + "stateVariable": false, + "storageLocation": "memory", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_memory_ptr", + "typeString": "struct BENFTMarket.OrderInfo" + }, + "typeName": { + "id": 1706, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 1705, + "name": "OrderInfo", + "nodeType": "IdentifierPath", + "referencedDeclaration": 1245, + "src": "5252:9:15" + }, + "referencedDeclaration": 1245, + "src": "5252:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_storage_ptr", + "typeString": "struct BENFTMarket.OrderInfo" + } + }, + "visibility": "internal" + } + ], + "id": 1711, + "initialValue": { + "baseExpression": { + "id": 1708, + "name": "orderInfos", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1262, + "src": "5281:10:15", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_OrderInfo_$1245_storage_$", + "typeString": "mapping(uint256 => struct BENFTMarket.OrderInfo storage ref)" + } + }, + "id": 1710, + "indexExpression": { + "id": 1709, + "name": "orderId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1689, + "src": "5292:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "5281:19:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_storage", + "typeString": "struct BENFTMarket.OrderInfo storage ref" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "5252:48:15" + }, + { + "condition": { + "baseExpression": { + "id": 1712, + "name": "erc721Supported", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1249, + "src": "5310:15:15", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + } + }, + "id": 1715, + "indexExpression": { + "expression": { + "id": 1713, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1707, + "src": "5326:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_memory_ptr", + "typeString": "struct BENFTMarket.OrderInfo memory" + } + }, + "id": 1714, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "nftToken", + "nodeType": "MemberAccess", + "referencedDeclaration": 1242, + "src": "5326:18:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "5310:35:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "falseBody": { + "condition": { + "baseExpression": { + "id": 1732, + "name": "erc1155Supported", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1253, + "src": "5494:16:15", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + } + }, + "id": 1735, + "indexExpression": { + "expression": { + "id": 1733, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1707, + "src": "5511:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_memory_ptr", + "typeString": "struct BENFTMarket.OrderInfo memory" + } + }, + "id": 1734, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "nftToken", + "nodeType": "MemberAccess", + "referencedDeclaration": 1242, + "src": "5511:18:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "5494:36:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 1755, + "nodeType": "IfStatement", + "src": "5490:218:15", + "trueBody": { + "id": 1754, + "nodeType": "Block", + "src": "5532:176:15", + "statements": [ + { + "expression": { + "arguments": [ + { + "arguments": [ + { + "id": 1743, + "name": "this", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 4294967268, + "src": "5603:4:15", + "typeDescriptions": { + "typeIdentifier": "t_contract$_BENFTMarket_$2076", + "typeString": "contract BENFTMarket" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_contract$_BENFTMarket_$2076", + "typeString": "contract BENFTMarket" + } + ], + "id": 1742, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "5595:7:15", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 1741, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "5595:7:15", + "typeDescriptions": {} + } + }, + "id": 1744, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "5595:13:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "expression": { + "id": 1745, + "name": "msg", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 4294967281, + "src": "5618:3:15", + "typeDescriptions": { + "typeIdentifier": "t_magic_message", + "typeString": "msg" + } + }, + "id": 1746, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberName": "sender", + "nodeType": "MemberAccess", + "src": "5618:10:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "expression": { + "id": 1747, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1707, + "src": "5638:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_memory_ptr", + "typeString": "struct BENFTMarket.OrderInfo memory" + } + }, + "id": 1748, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "tokenId", + "nodeType": "MemberAccess", + "referencedDeclaration": 1234, + "src": "5638:17:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "expression": { + "id": 1749, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1707, + "src": "5665:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_memory_ptr", + "typeString": "struct BENFTMarket.OrderInfo memory" + } + }, + "id": 1750, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "amount", + "nodeType": "MemberAccess", + "referencedDeclaration": 1236, + "src": "5665:16:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "hexValue": "", + "id": 1751, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "5691:2:15", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", + "typeString": "literal_string \"\"" + }, + "value": "" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", + "typeString": "literal_string \"\"" + } + ], + "expression": { + "arguments": [ + { + "expression": { + "id": 1737, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1707, + "src": "5549:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_memory_ptr", + "typeString": "struct BENFTMarket.OrderInfo memory" + } + }, + "id": 1738, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "nftToken", + "nodeType": "MemberAccess", + "referencedDeclaration": 1242, + "src": "5549:18:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + } + ], + "id": 1736, + "name": "IERC1155", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 266, + "src": "5540:8:15", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_contract$_IERC1155_$266_$", + "typeString": "type(contract IERC1155)" + } + }, + "id": 1739, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "5540:28:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_contract$_IERC1155_$266", + "typeString": "contract IERC1155" + } + }, + "id": 1740, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberName": "safeTransferFrom", + "nodeType": "MemberAccess", + "referencedDeclaration": 249, + "src": "5540:45:15", + "typeDescriptions": { + "typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_address_$_t_uint256_$_t_uint256_$_t_bytes_memory_ptr_$returns$__$", + "typeString": "function (address,address,uint256,uint256,bytes memory) external" + } + }, + "id": 1752, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "5540:161:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1753, + "nodeType": "ExpressionStatement", + "src": "5540:161:15" + } + ] + } + }, + "id": 1756, + "nodeType": "IfStatement", + "src": "5306:402:15", + "trueBody": { + "id": 1731, + "nodeType": "Block", + "src": "5347:137:15", + "statements": [ + { + "expression": { + "arguments": [ + { + "arguments": [ + { + "id": 1723, + "name": "this", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 4294967268, + "src": "5417:4:15", + "typeDescriptions": { + "typeIdentifier": "t_contract$_BENFTMarket_$2076", + "typeString": "contract BENFTMarket" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_contract$_BENFTMarket_$2076", + "typeString": "contract BENFTMarket" + } + ], + "id": 1722, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "5409:7:15", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 1721, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "5409:7:15", + "typeDescriptions": {} + } + }, + "id": 1724, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "5409:13:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "expression": { + "id": 1725, + "name": "msg", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 4294967281, + "src": "5432:3:15", + "typeDescriptions": { + "typeIdentifier": "t_magic_message", + "typeString": "msg" + } + }, + "id": 1726, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberName": "sender", + "nodeType": "MemberAccess", + "src": "5432:10:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "expression": { + "id": 1727, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1707, + "src": "5452:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_memory_ptr", + "typeString": "struct BENFTMarket.OrderInfo memory" + } + }, + "id": 1728, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "tokenId", + "nodeType": "MemberAccess", + "referencedDeclaration": 1234, + "src": "5452:17:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "expression": { + "arguments": [ + { + "expression": { + "id": 1717, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1707, + "src": "5363:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_memory_ptr", + "typeString": "struct BENFTMarket.OrderInfo memory" + } + }, + "id": 1718, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "nftToken", + "nodeType": "MemberAccess", + "referencedDeclaration": 1242, + "src": "5363:18:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + } + ], + "id": 1716, + "name": "IERC721", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 810, + "src": "5355:7:15", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_contract$_IERC721_$810_$", + "typeString": "type(contract IERC721)" + } + }, + "id": 1719, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "5355:27:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_contract$_IERC721_$810", + "typeString": "contract IERC721" + } + }, + "id": 1720, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberName": "safeTransferFrom", + "nodeType": "MemberAccess", + "referencedDeclaration": 753, + "src": "5355:44:15", + "typeDescriptions": { + "typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", + "typeString": "function (address,address,uint256) external" + } + }, + "id": 1729, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "5355:122:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1730, + "nodeType": "ExpressionStatement", + "src": "5355:122:15" + } + ] + } + }, + { + "expression": { + "id": 1760, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "delete", + "prefix": true, + "src": "5713:26:15", + "subExpression": { + "baseExpression": { + "id": 1757, + "name": "orderInfos", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1262, + "src": "5720:10:15", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_OrderInfo_$1245_storage_$", + "typeString": "mapping(uint256 => struct BENFTMarket.OrderInfo storage ref)" + } + }, + "id": 1759, + "indexExpression": { + "id": 1758, + "name": "orderId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1689, + "src": "5731:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "5720:19:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_storage", + "typeString": "struct BENFTMarket.OrderInfo storage ref" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1761, + "nodeType": "ExpressionStatement", + "src": "5713:26:15" + }, + { + "eventCall": { + "arguments": [ + { + "id": 1763, + "name": "orderId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1689, + "src": "5763:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "expression": { + "id": 1764, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1707, + "src": "5772:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_memory_ptr", + "typeString": "struct BENFTMarket.OrderInfo memory" + } + }, + "id": 1765, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "nftToken", + "nodeType": "MemberAccess", + "referencedDeclaration": 1242, + "src": "5772:18:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "expression": { + "id": 1766, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1707, + "src": "5792:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_memory_ptr", + "typeString": "struct BENFTMarket.OrderInfo memory" + } + }, + "id": 1767, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "tokenId", + "nodeType": "MemberAccess", + "referencedDeclaration": 1234, + "src": "5792:17:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 1762, + "name": "CancelOrder", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1294, + "src": "5751:11:15", + "typeDescriptions": { + "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_address_$_t_uint256_$returns$__$", + "typeString": "function (uint256,address,uint256)" + } + }, + "id": 1768, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "5751:59:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1769, + "nodeType": "EmitStatement", + "src": "5746:64:15" + } + ] + }, + "functionSelector": "514fcac7", + "id": 1771, + "implemented": true, + "kind": "function", + "modifiers": [ + { + "id": 1692, + "kind": "modifierInvocation", + "modifierName": { + "id": 1691, + "name": "nonReentrant", + "nodeType": "IdentifierPath", + "referencedDeclaration": 143, + "src": "5120:12:15" + }, + "nodeType": "ModifierInvocation", + "src": "5120:12:15" + } + ], + "name": "cancelOrder", + "nameLocation": "5082:11:15", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 1690, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1689, + "mutability": "mutable", + "name": "orderId", + "nameLocation": "5102:7:15", + "nodeType": "VariableDeclaration", + "scope": 1771, + "src": "5094:15:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1688, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "5094:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "5093:17:15" + }, + "returnParameters": { + "id": 1693, + "nodeType": "ParameterList", + "parameters": [], + "src": "5133:0:15" + }, + "scope": 2076, + "src": "5073:742:15", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "external" + }, + { + "body": { + "id": 1854, + "nodeType": "Block", + "src": "5881:665:15", + "statements": [ + { + "assignments": [ + 1780 + ], + "declarations": [ + { + "constant": false, + "id": 1780, + "mutability": "mutable", + "name": "orderInfo", + "nameLocation": "5904:9:15", + "nodeType": "VariableDeclaration", + "scope": 1854, + "src": "5887:26:15", + "stateVariable": false, + "storageLocation": "memory", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_memory_ptr", + "typeString": "struct BENFTMarket.OrderInfo" + }, + "typeName": { + "id": 1779, + "nodeType": "UserDefinedTypeName", + "pathNode": { + "id": 1778, + "name": "OrderInfo", + "nodeType": "IdentifierPath", + "referencedDeclaration": 1245, + "src": "5887:9:15" + }, + "referencedDeclaration": 1245, + "src": "5887:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_storage_ptr", + "typeString": "struct BENFTMarket.OrderInfo" + } + }, + "visibility": "internal" + } + ], + "id": 1784, + "initialValue": { + "baseExpression": { + "id": 1781, + "name": "orderInfos", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1262, + "src": "5916:10:15", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_OrderInfo_$1245_storage_$", + "typeString": "mapping(uint256 => struct BENFTMarket.OrderInfo storage ref)" + } + }, + "id": 1783, + "indexExpression": { + "id": 1782, + "name": "orderId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1773, + "src": "5927:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "5916:19:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_storage", + "typeString": "struct BENFTMarket.OrderInfo storage ref" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "5887:48:15" + }, + { + "expression": { + "arguments": [ + { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1789, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "expression": { + "id": 1786, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1780, + "src": "5949:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_memory_ptr", + "typeString": "struct BENFTMarket.OrderInfo memory" + } + }, + "id": 1787, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "tokenId", + "nodeType": "MemberAccess", + "referencedDeclaration": 1234, + "src": "5949:17:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "!=", + "rightExpression": { + "hexValue": "30", + "id": 1788, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "5970:1:15", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "src": "5949:22:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "hexValue": "4e46544d61726b65743a204e465420646f6573206e6f74206578697374", + "id": 1790, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "5973:31:15", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_91996d5e26724312118a80c49d609267cf3d8859d05119c382cfda0b8758f400", + "typeString": "literal_string \"NFTMarket: NFT does not exist\"" + }, + "value": "NFTMarket: NFT does not exist" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_91996d5e26724312118a80c49d609267cf3d8859d05119c382cfda0b8758f400", + "typeString": "literal_string \"NFTMarket: NFT does not exist\"" + } + ], + "id": 1785, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 4294967278, + 4294967278 + ], + "referencedDeclaration": 4294967278, + "src": "5941:7:15", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 1791, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "5941:64:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1792, + "nodeType": "ExpressionStatement", + "src": "5941:64:15" + }, + { + "expression": { + "arguments": [ + { + "commonType": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "id": 1798, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "expression": { + "id": 1794, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1780, + "src": "6019:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_memory_ptr", + "typeString": "struct BENFTMarket.OrderInfo memory" + } + }, + "id": 1795, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "owner", + "nodeType": "MemberAccess", + "referencedDeclaration": 1238, + "src": "6019:15:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "expression": { + "id": 1796, + "name": "msg", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 4294967281, + "src": "6038:3:15", + "typeDescriptions": { + "typeIdentifier": "t_magic_message", + "typeString": "msg" + } + }, + "id": 1797, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberName": "sender", + "nodeType": "MemberAccess", + "src": "6038:10:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "src": "6019:29:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "hexValue": "4e46544d61726b65743a2063616c6c6572206973206e6f74206f776e6572", + "id": 1799, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "6050:32:15", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_19812bba446941be332c58af40b198944559ee4ff950fbaaca44d932fa502a47", + "typeString": "literal_string \"NFTMarket: caller is not owner\"" + }, + "value": "NFTMarket: caller is not owner" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_19812bba446941be332c58af40b198944559ee4ff950fbaaca44d932fa502a47", + "typeString": "literal_string \"NFTMarket: caller is not owner\"" + } + ], + "id": 1793, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 4294967278, + 4294967278 + ], + "referencedDeclaration": 4294967278, + "src": "6011:7:15", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 1800, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "6011:72:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1801, + "nodeType": "ExpressionStatement", + "src": "6011:72:15" + }, + { + "expression": { + "arguments": [ + { + "commonType": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "id": 1815, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1808, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 1803, + "name": "price", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1775, + "src": "6104:5:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "<=", + "rightExpression": { + "baseExpression": { + "id": 1804, + "name": "nftPriceMaxLimit", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1266, + "src": "6113:16:15", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + } + }, + "id": 1807, + "indexExpression": { + "expression": { + "id": 1805, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1780, + "src": "6130:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_memory_ptr", + "typeString": "struct BENFTMarket.OrderInfo memory" + } + }, + "id": 1806, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "nftToken", + "nodeType": "MemberAccess", + "referencedDeclaration": 1242, + "src": "6130:18:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "6113:36:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "6104:45:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "BinaryOperation", + "operator": "||", + "rightExpression": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1814, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "baseExpression": { + "id": 1809, + "name": "nftPriceMaxLimit", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1266, + "src": "6153:16:15", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + } + }, + "id": 1812, + "indexExpression": { + "expression": { + "id": 1810, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1780, + "src": "6170:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_memory_ptr", + "typeString": "struct BENFTMarket.OrderInfo memory" + } + }, + "id": 1811, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "nftToken", + "nodeType": "MemberAccess", + "referencedDeclaration": 1242, + "src": "6170:18:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "6153:36:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "hexValue": "30", + "id": 1813, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "6193:1:15", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "src": "6153:41:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "src": "6104:90:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "hexValue": "4e46544d61726b65743a204d6178696d756d207072696365206c696d6974206578636565646564", + "id": 1816, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "6202:41:15", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_4cb6df112f38a5e8930a5993583968b49c106f624e768bc7f965587788a9ba13", + "typeString": "literal_string \"NFTMarket: Maximum price limit exceeded\"" + }, + "value": "NFTMarket: Maximum price limit exceeded" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_4cb6df112f38a5e8930a5993583968b49c106f624e768bc7f965587788a9ba13", + "typeString": "literal_string \"NFTMarket: Maximum price limit exceeded\"" + } + ], + "id": 1802, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 4294967278, + 4294967278 + ], + "referencedDeclaration": 4294967278, + "src": "6089:7:15", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 1817, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "6089:160:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1818, + "nodeType": "ExpressionStatement", + "src": "6089:160:15" + }, + { + "expression": { + "arguments": [ + { + "commonType": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "id": 1829, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1825, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 1820, + "name": "price", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1775, + "src": "6270:5:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": ">=", + "rightExpression": { + "baseExpression": { + "id": 1821, + "name": "nftPriceMinLimit", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1270, + "src": "6279:16:15", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + } + }, + "id": 1824, + "indexExpression": { + "expression": { + "id": 1822, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1780, + "src": "6296:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_memory_ptr", + "typeString": "struct BENFTMarket.OrderInfo memory" + } + }, + "id": 1823, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "nftToken", + "nodeType": "MemberAccess", + "referencedDeclaration": 1242, + "src": "6296:18:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "6279:36:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "6270:45:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "BinaryOperation", + "operator": "&&", + "rightExpression": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1828, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 1826, + "name": "price", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1775, + "src": "6319:5:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "!=", + "rightExpression": { + "hexValue": "30", + "id": 1827, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "6328:1:15", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "src": "6319:10:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "src": "6270:59:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "hexValue": "4e46544d61726b65743a2042656c6f7720746865206d696e696d756d207072696365206c696d6974", + "id": 1830, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "6337:42:15", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_744b4ba124daa910620675d926ec89aeeb4da774fb91c8cbe522d0cf48a3f6cf", + "typeString": "literal_string \"NFTMarket: Below the minimum price limit\"" + }, + "value": "NFTMarket: Below the minimum price limit" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_744b4ba124daa910620675d926ec89aeeb4da774fb91c8cbe522d0cf48a3f6cf", + "typeString": "literal_string \"NFTMarket: Below the minimum price limit\"" + } + ], + "id": 1819, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 4294967278, + 4294967278 + ], + "referencedDeclaration": 4294967278, + "src": "6255:7:15", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 1831, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "6255:130:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1832, + "nodeType": "ExpressionStatement", + "src": "6255:130:15" + }, + { + "assignments": [ + 1834 + ], + "declarations": [ + { + "constant": false, + "id": 1834, + "mutability": "mutable", + "name": "priceOld", + "nameLocation": "6399:8:15", + "nodeType": "VariableDeclaration", + "scope": 1854, + "src": "6391:16:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1833, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "6391:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "id": 1837, + "initialValue": { + "expression": { + "id": 1835, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1780, + "src": "6410:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_memory_ptr", + "typeString": "struct BENFTMarket.OrderInfo memory" + } + }, + "id": 1836, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "price", + "nodeType": "MemberAccess", + "referencedDeclaration": 1240, + "src": "6410:15:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "6391:34:15" + }, + { + "expression": { + "id": 1842, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "expression": { + "id": 1838, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1780, + "src": "6431:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_memory_ptr", + "typeString": "struct BENFTMarket.OrderInfo memory" + } + }, + "id": 1840, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "price", + "nodeType": "MemberAccess", + "referencedDeclaration": 1240, + "src": "6431:15:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "id": 1841, + "name": "price", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1775, + "src": "6449:5:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "6431:23:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 1843, + "nodeType": "ExpressionStatement", + "src": "6431:23:15" + }, + { + "eventCall": { + "arguments": [ + { + "id": 1845, + "name": "orderId", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1773, + "src": "6477:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "expression": { + "id": 1846, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1780, + "src": "6486:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_memory_ptr", + "typeString": "struct BENFTMarket.OrderInfo memory" + } + }, + "id": 1847, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "nftToken", + "nodeType": "MemberAccess", + "referencedDeclaration": 1242, + "src": "6486:18:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + { + "expression": { + "id": 1848, + "name": "orderInfo", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1780, + "src": "6506:9:15", + "typeDescriptions": { + "typeIdentifier": "t_struct$_OrderInfo_$1245_memory_ptr", + "typeString": "struct BENFTMarket.OrderInfo memory" + } + }, + "id": 1849, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "tokenId", + "nodeType": "MemberAccess", + "referencedDeclaration": 1234, + "src": "6506:17:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "id": 1850, + "name": "priceOld", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1834, + "src": "6525:8:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "id": 1851, + "name": "price", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1775, + "src": "6535:5:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_address", + "typeString": "address" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 1844, + "name": "PriceUpdate", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1306, + "src": "6465:11:15", + "typeDescriptions": { + "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_address_$_t_uint256_$_t_uint256_$_t_uint256_$returns$__$", + "typeString": "function (uint256,address,uint256,uint256,uint256)" + } + }, + "id": 1852, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "6465:76:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1853, + "nodeType": "EmitStatement", + "src": "6460:81:15" + } + ] + }, + "functionSelector": "82367b2d", + "id": 1855, + "implemented": true, + "kind": "function", + "modifiers": [], + "name": "updatePrice", + "nameLocation": "5828:11:15", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 1776, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1773, + "mutability": "mutable", + "name": "orderId", + "nameLocation": "5848:7:15", + "nodeType": "VariableDeclaration", + "scope": 1855, + "src": "5840:15:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1772, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "5840:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 1775, + "mutability": "mutable", + "name": "price", + "nameLocation": "5865:5:15", + "nodeType": "VariableDeclaration", + "scope": 1855, + "src": "5857:13:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1774, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "5857:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "5839:32:15" + }, + "returnParameters": { + "id": 1777, + "nodeType": "ParameterList", + "parameters": [], + "src": "5881:0:15" + }, + "scope": 2076, + "src": "5819:727:15", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "external" + }, + { + "body": { + "id": 1872, + "nodeType": "Block", + "src": "6613:77:15", + "statements": [ + { + "expression": { + "id": 1866, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "baseExpression": { + "id": 1862, + "name": "erc721Supported", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1249, + "src": "6619:15:15", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + } + }, + "id": 1864, + "indexExpression": { + "id": 1863, + "name": "nftToken", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1857, + "src": "6635:8:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "6619:25:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "hexValue": "74727565", + "id": 1865, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "bool", + "lValueRequested": false, + "nodeType": "Literal", + "src": "6647:4:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "value": "true" + }, + "src": "6619:32:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 1867, + "nodeType": "ExpressionStatement", + "src": "6619:32:15" + }, + { + "eventCall": { + "arguments": [ + { + "id": 1869, + "name": "nftToken", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1857, + "src": "6676:8:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + } + ], + "id": 1868, + "name": "AddNFTSuppout", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1328, + "src": "6662:13:15", + "typeDescriptions": { + "typeIdentifier": "t_function_event_nonpayable$_t_address_$returns$__$", + "typeString": "function (address)" + } + }, + "id": 1870, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "6662:23:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1871, + "nodeType": "EmitStatement", + "src": "6657:28:15" + } + ] + }, + "functionSelector": "86847c70", + "id": 1873, + "implemented": true, + "kind": "function", + "modifiers": [ + { + "id": 1860, + "kind": "modifierInvocation", + "modifierName": { + "id": 1859, + "name": "onlyOwner", + "nodeType": "IdentifierPath", + "referencedDeclaration": 46, + "src": "6603:9:15" + }, + "nodeType": "ModifierInvocation", + "src": "6603:9:15" + } + ], + "name": "addERC721Support", + "nameLocation": "6559:16:15", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 1858, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1857, + "mutability": "mutable", + "name": "nftToken", + "nameLocation": "6584:8:15", + "nodeType": "VariableDeclaration", + "scope": 1873, + "src": "6576:16:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 1856, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "6576:7:15", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "6575:18:15" + }, + "returnParameters": { + "id": 1861, + "nodeType": "ParameterList", + "parameters": [], + "src": "6613:0:15" + }, + "scope": 2076, + "src": "6550:140:15", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "external" + }, + { + "body": { + "id": 1890, + "nodeType": "Block", + "src": "6760:81:15", + "statements": [ + { + "expression": { + "id": 1884, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "baseExpression": { + "id": 1880, + "name": "erc721Supported", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1249, + "src": "6766:15:15", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + } + }, + "id": 1882, + "indexExpression": { + "id": 1881, + "name": "nftToken", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1875, + "src": "6782:8:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "6766:25:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "hexValue": "66616c7365", + "id": 1883, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "bool", + "lValueRequested": false, + "nodeType": "Literal", + "src": "6794:5:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "value": "false" + }, + "src": "6766:33:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 1885, + "nodeType": "ExpressionStatement", + "src": "6766:33:15" + }, + { + "eventCall": { + "arguments": [ + { + "id": 1887, + "name": "nftToken", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1875, + "src": "6827:8:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + } + ], + "id": 1886, + "name": "RemoveNFTSuppout", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1332, + "src": "6810:16:15", + "typeDescriptions": { + "typeIdentifier": "t_function_event_nonpayable$_t_address_$returns$__$", + "typeString": "function (address)" + } + }, + "id": 1888, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "6810:26:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1889, + "nodeType": "EmitStatement", + "src": "6805:31:15" + } + ] + }, + "functionSelector": "498886ac", + "id": 1891, + "implemented": true, + "kind": "function", + "modifiers": [ + { + "id": 1878, + "kind": "modifierInvocation", + "modifierName": { + "id": 1877, + "name": "onlyOwner", + "nodeType": "IdentifierPath", + "referencedDeclaration": 46, + "src": "6750:9:15" + }, + "nodeType": "ModifierInvocation", + "src": "6750:9:15" + } + ], + "name": "removeERC721Support", + "nameLocation": "6703:19:15", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 1876, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1875, + "mutability": "mutable", + "name": "nftToken", + "nameLocation": "6731:8:15", + "nodeType": "VariableDeclaration", + "scope": 1891, + "src": "6723:16:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 1874, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "6723:7:15", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "6722:18:15" + }, + "returnParameters": { + "id": 1879, + "nodeType": "ParameterList", + "parameters": [], + "src": "6760:0:15" + }, + "scope": 2076, + "src": "6694:147:15", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "external" + }, + { + "body": { + "id": 1908, + "nodeType": "Block", + "src": "6909:78:15", + "statements": [ + { + "expression": { + "id": 1902, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "baseExpression": { + "id": 1898, + "name": "erc1155Supported", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1253, + "src": "6915:16:15", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + } + }, + "id": 1900, + "indexExpression": { + "id": 1899, + "name": "nftToken", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1893, + "src": "6932:8:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "6915:26:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "hexValue": "74727565", + "id": 1901, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "bool", + "lValueRequested": false, + "nodeType": "Literal", + "src": "6944:4:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "value": "true" + }, + "src": "6915:33:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 1903, + "nodeType": "ExpressionStatement", + "src": "6915:33:15" + }, + { + "eventCall": { + "arguments": [ + { + "id": 1905, + "name": "nftToken", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1893, + "src": "6973:8:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + } + ], + "id": 1904, + "name": "AddNFTSuppout", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1328, + "src": "6959:13:15", + "typeDescriptions": { + "typeIdentifier": "t_function_event_nonpayable$_t_address_$returns$__$", + "typeString": "function (address)" + } + }, + "id": 1906, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "6959:23:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1907, + "nodeType": "EmitStatement", + "src": "6954:28:15" + } + ] + }, + "functionSelector": "a5f95558", + "id": 1909, + "implemented": true, + "kind": "function", + "modifiers": [ + { + "id": 1896, + "kind": "modifierInvocation", + "modifierName": { + "id": 1895, + "name": "onlyOwner", + "nodeType": "IdentifierPath", + "referencedDeclaration": 46, + "src": "6899:9:15" + }, + "nodeType": "ModifierInvocation", + "src": "6899:9:15" + } + ], + "name": "addERC1155Support", + "nameLocation": "6854:17:15", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 1894, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1893, + "mutability": "mutable", + "name": "nftToken", + "nameLocation": "6880:8:15", + "nodeType": "VariableDeclaration", + "scope": 1909, + "src": "6872:16:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 1892, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "6872:7:15", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "6871:18:15" + }, + "returnParameters": { + "id": 1897, + "nodeType": "ParameterList", + "parameters": [], + "src": "6909:0:15" + }, + "scope": 2076, + "src": "6845:142:15", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "external" + }, + { + "body": { + "id": 1926, + "nodeType": "Block", + "src": "7058:82:15", + "statements": [ + { + "expression": { + "id": 1920, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "baseExpression": { + "id": 1916, + "name": "erc1155Supported", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1253, + "src": "7064:16:15", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + } + }, + "id": 1918, + "indexExpression": { + "id": 1917, + "name": "nftToken", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1911, + "src": "7081:8:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "7064:26:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "hexValue": "66616c7365", + "id": 1919, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "bool", + "lValueRequested": false, + "nodeType": "Literal", + "src": "7093:5:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "value": "false" + }, + "src": "7064:34:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 1921, + "nodeType": "ExpressionStatement", + "src": "7064:34:15" + }, + { + "eventCall": { + "arguments": [ + { + "id": 1923, + "name": "nftToken", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1911, + "src": "7126:8:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + } + ], + "id": 1922, + "name": "RemoveNFTSuppout", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1332, + "src": "7109:16:15", + "typeDescriptions": { + "typeIdentifier": "t_function_event_nonpayable$_t_address_$returns$__$", + "typeString": "function (address)" + } + }, + "id": 1924, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "7109:26:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1925, + "nodeType": "EmitStatement", + "src": "7104:31:15" + } + ] + }, + "functionSelector": "40a28c56", + "id": 1927, + "implemented": true, + "kind": "function", + "modifiers": [ + { + "id": 1914, + "kind": "modifierInvocation", + "modifierName": { + "id": 1913, + "name": "onlyOwner", + "nodeType": "IdentifierPath", + "referencedDeclaration": 46, + "src": "7048:9:15" + }, + "nodeType": "ModifierInvocation", + "src": "7048:9:15" + } + ], + "name": "removeERC1155Support", + "nameLocation": "7000:20:15", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 1912, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1911, + "mutability": "mutable", + "name": "nftToken", + "nameLocation": "7029:8:15", + "nodeType": "VariableDeclaration", + "scope": 1927, + "src": "7021:16:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 1910, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "7021:7:15", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "7020:18:15" + }, + "returnParameters": { + "id": 1915, + "nodeType": "ParameterList", + "parameters": [], + "src": "7058:0:15" + }, + "scope": 2076, + "src": "6991:149:15", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "external" + }, + { + "body": { + "id": 1954, + "nodeType": "Block", + "src": "7203:142:15", + "statements": [ + { + "expression": { + "arguments": [ + { + "commonType": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "id": 1940, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 1935, + "name": "erc20", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1929, + "src": "7217:5:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "BinaryOperation", + "operator": "!=", + "rightExpression": { + "arguments": [ + { + "hexValue": "30", + "id": 1938, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "7234:1:15", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + } + ], + "id": 1937, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "7226:7:15", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 1936, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "7226:7:15", + "typeDescriptions": {} + } + }, + "id": 1939, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "typeConversion", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "7226:10:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "src": "7217:19:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "hexValue": "4e46544d61726b65743a2045524332302061646472657373206973207a65726f", + "id": 1941, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "7238:34:15", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_807fb10079fb7874d810a3894d618e9fb6b2c9b5fb4e2459717209a06ea12cd4", + "typeString": "literal_string \"NFTMarket: ERC20 address is zero\"" + }, + "value": "NFTMarket: ERC20 address is zero" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_807fb10079fb7874d810a3894d618e9fb6b2c9b5fb4e2459717209a06ea12cd4", + "typeString": "literal_string \"NFTMarket: ERC20 address is zero\"" + } + ], + "id": 1934, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 4294967278, + 4294967278 + ], + "referencedDeclaration": 4294967278, + "src": "7209:7:15", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 1942, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "7209:64:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1943, + "nodeType": "ExpressionStatement", + "src": "7209:64:15" + }, + { + "expression": { + "id": 1948, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "baseExpression": { + "id": 1944, + "name": "erc20Supported", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1257, + "src": "7279:14:15", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + } + }, + "id": 1946, + "indexExpression": { + "id": 1945, + "name": "erc20", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1929, + "src": "7294:5:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "7279:21:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "hexValue": "74727565", + "id": 1947, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "bool", + "lValueRequested": false, + "nodeType": "Literal", + "src": "7303:4:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "value": "true" + }, + "src": "7279:28:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 1949, + "nodeType": "ExpressionStatement", + "src": "7279:28:15" + }, + { + "eventCall": { + "arguments": [ + { + "id": 1951, + "name": "erc20", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1929, + "src": "7334:5:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + } + ], + "id": 1950, + "name": "AddERC20Suppout", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1336, + "src": "7318:15:15", + "typeDescriptions": { + "typeIdentifier": "t_function_event_nonpayable$_t_address_$returns$__$", + "typeString": "function (address)" + } + }, + "id": 1952, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "7318:22:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1953, + "nodeType": "EmitStatement", + "src": "7313:27:15" + } + ] + }, + "functionSelector": "b9d2df61", + "id": 1955, + "implemented": true, + "kind": "function", + "modifiers": [ + { + "id": 1932, + "kind": "modifierInvocation", + "modifierName": { + "id": 1931, + "name": "onlyOwner", + "nodeType": "IdentifierPath", + "referencedDeclaration": 46, + "src": "7193:9:15" + }, + "nodeType": "ModifierInvocation", + "src": "7193:9:15" + } + ], + "name": "addERC20Support", + "nameLocation": "7153:15:15", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 1930, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1929, + "mutability": "mutable", + "name": "erc20", + "nameLocation": "7177:5:15", + "nodeType": "VariableDeclaration", + "scope": 1955, + "src": "7169:13:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 1928, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "7169:7:15", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "7168:15:15" + }, + "returnParameters": { + "id": 1933, + "nodeType": "ParameterList", + "parameters": [], + "src": "7203:0:15" + }, + "scope": 2076, + "src": "7144:201:15", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "external" + }, + { + "body": { + "id": 1972, + "nodeType": "Block", + "src": "7411:76:15", + "statements": [ + { + "expression": { + "id": 1966, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "baseExpression": { + "id": 1962, + "name": "erc20Supported", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1257, + "src": "7417:14:15", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + } + }, + "id": 1964, + "indexExpression": { + "id": 1963, + "name": "erc20", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1957, + "src": "7432:5:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "7417:21:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "hexValue": "66616c7365", + "id": 1965, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "bool", + "lValueRequested": false, + "nodeType": "Literal", + "src": "7441:5:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "value": "false" + }, + "src": "7417:29:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 1967, + "nodeType": "ExpressionStatement", + "src": "7417:29:15" + }, + { + "eventCall": { + "arguments": [ + { + "id": 1969, + "name": "erc20", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1957, + "src": "7476:5:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_address", + "typeString": "address" + } + ], + "id": 1968, + "name": "RemoveERC20Suppout", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1340, + "src": "7457:18:15", + "typeDescriptions": { + "typeIdentifier": "t_function_event_nonpayable$_t_address_$returns$__$", + "typeString": "function (address)" + } + }, + "id": 1970, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "7457:25:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1971, + "nodeType": "EmitStatement", + "src": "7452:30:15" + } + ] + }, + "functionSelector": "fdf397ee", + "id": 1973, + "implemented": true, + "kind": "function", + "modifiers": [ + { + "id": 1960, + "kind": "modifierInvocation", + "modifierName": { + "id": 1959, + "name": "onlyOwner", + "nodeType": "IdentifierPath", + "referencedDeclaration": 46, + "src": "7401:9:15" + }, + "nodeType": "ModifierInvocation", + "src": "7401:9:15" + } + ], + "name": "removeERC20Support", + "nameLocation": "7358:18:15", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 1958, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1957, + "mutability": "mutable", + "name": "erc20", + "nameLocation": "7385:5:15", + "nodeType": "VariableDeclaration", + "scope": 1973, + "src": "7377:13:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 1956, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "7377:7:15", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "7376:15:15" + }, + "returnParameters": { + "id": 1961, + "nodeType": "ParameterList", + "parameters": [], + "src": "7411:0:15" + }, + "scope": 2076, + "src": "7349:138:15", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "external" + }, + { + "body": { + "id": 1997, + "nodeType": "Block", + "src": "7585:174:15", + "statements": [ + { + "expression": { + "arguments": [ + { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 1987, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 1983, + "name": "maxLimit", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1977, + "src": "7606:8:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": ">=", + "rightExpression": { + "baseExpression": { + "id": 1984, + "name": "nftPriceMinLimit", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1270, + "src": "7618:16:15", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + } + }, + "id": 1986, + "indexExpression": { + "id": 1985, + "name": "nftToken", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1975, + "src": "7635:8:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "7618:26:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "7606:38:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "hexValue": "4e46544d61726b65743a206d61784c696d69742063616e206e6f74206265206c657373207468616e206d696e206c696d697421", + "id": 1988, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "7652:53:15", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_1c08654cc37f003c56b475ad00ed98bf68bd23b2805ed7a765ec62d7a0287862", + "typeString": "literal_string \"NFTMarket: maxLimit can not be less than min limit!\"" + }, + "value": "NFTMarket: maxLimit can not be less than min limit!" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_1c08654cc37f003c56b475ad00ed98bf68bd23b2805ed7a765ec62d7a0287862", + "typeString": "literal_string \"NFTMarket: maxLimit can not be less than min limit!\"" + } + ], + "id": 1982, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 4294967278, + 4294967278 + ], + "referencedDeclaration": 4294967278, + "src": "7591:7:15", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 1989, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "7591:120:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 1990, + "nodeType": "ExpressionStatement", + "src": "7591:120:15" + }, + { + "expression": { + "id": 1995, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "baseExpression": { + "id": 1991, + "name": "nftPriceMaxLimit", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1266, + "src": "7717:16:15", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + } + }, + "id": 1993, + "indexExpression": { + "id": 1992, + "name": "nftToken", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1975, + "src": "7734:8:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "7717:26:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "id": 1994, + "name": "maxLimit", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1977, + "src": "7746:8:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "7717:37:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 1996, + "nodeType": "ExpressionStatement", + "src": "7717:37:15" + } + ] + }, + "functionSelector": "b9c214a1", + "id": 1998, + "implemented": true, + "kind": "function", + "modifiers": [ + { + "id": 1980, + "kind": "modifierInvocation", + "modifierName": { + "id": 1979, + "name": "onlyOwner", + "nodeType": "IdentifierPath", + "referencedDeclaration": 46, + "src": "7573:9:15" + }, + "nodeType": "ModifierInvocation", + "src": "7573:9:15" + } + ], + "name": "setNFTPriceMaxLimit", + "nameLocation": "7500:19:15", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 1978, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 1975, + "mutability": "mutable", + "name": "nftToken", + "nameLocation": "7528:8:15", + "nodeType": "VariableDeclaration", + "scope": 1998, + "src": "7520:16:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 1974, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "7520:7:15", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 1977, + "mutability": "mutable", + "name": "maxLimit", + "nameLocation": "7546:8:15", + "nodeType": "VariableDeclaration", + "scope": 1998, + "src": "7538:16:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 1976, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "7538:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "7519:36:15" + }, + "returnParameters": { + "id": 1981, + "nodeType": "ParameterList", + "parameters": [], + "src": "7585:0:15" + }, + "scope": 2076, + "src": "7491:268:15", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "external" + }, + { + "body": { + "id": 2029, + "nodeType": "Block", + "src": "7857:233:15", + "statements": [ + { + "condition": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2011, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "baseExpression": { + "id": 2007, + "name": "nftPriceMaxLimit", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1266, + "src": "7867:16:15", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + } + }, + "id": 2009, + "indexExpression": { + "id": 2008, + "name": "nftToken", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2000, + "src": "7884:8:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "7867:26:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "!=", + "rightExpression": { + "hexValue": "30", + "id": 2010, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "7897:1:15", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "src": "7867:31:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 2022, + "nodeType": "IfStatement", + "src": "7863:180:15", + "trueBody": { + "id": 2021, + "nodeType": "Block", + "src": "7900:143:15", + "statements": [ + { + "expression": { + "arguments": [ + { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2017, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 2013, + "name": "minLimit", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2002, + "src": "7925:8:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "<=", + "rightExpression": { + "baseExpression": { + "id": 2014, + "name": "nftPriceMaxLimit", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1266, + "src": "7937:16:15", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + } + }, + "id": 2016, + "indexExpression": { + "id": 2015, + "name": "nftToken", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2000, + "src": "7954:8:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "7937:26:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "7925:38:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "hexValue": "4e46544d61726b65743a206d696e4c696d69742063616e206e6f74206265206c6172676572207468616e206d6178206c696d697421", + "id": 2018, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "7973:55:15", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_8d707352005b7a9792af61210bacc67770e71e7c95420f16fc3df5d5eb059e74", + "typeString": "literal_string \"NFTMarket: minLimit can not be larger than max limit!\"" + }, + "value": "NFTMarket: minLimit can not be larger than max limit!" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_8d707352005b7a9792af61210bacc67770e71e7c95420f16fc3df5d5eb059e74", + "typeString": "literal_string \"NFTMarket: minLimit can not be larger than max limit!\"" + } + ], + "id": 2012, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 4294967278, + 4294967278 + ], + "referencedDeclaration": 4294967278, + "src": "7908:7:15", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 2019, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "7908:128:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 2020, + "nodeType": "ExpressionStatement", + "src": "7908:128:15" + } + ] + } + }, + { + "expression": { + "id": 2027, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "baseExpression": { + "id": 2023, + "name": "nftPriceMinLimit", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1270, + "src": "8048:16:15", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + } + }, + "id": 2025, + "indexExpression": { + "id": 2024, + "name": "nftToken", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2000, + "src": "8065:8:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "8048:26:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "id": 2026, + "name": "minLimit", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2002, + "src": "8077:8:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "8048:37:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 2028, + "nodeType": "ExpressionStatement", + "src": "8048:37:15" + } + ] + }, + "functionSelector": "28400cf3", + "id": 2030, + "implemented": true, + "kind": "function", + "modifiers": [ + { + "id": 2005, + "kind": "modifierInvocation", + "modifierName": { + "id": 2004, + "name": "onlyOwner", + "nodeType": "IdentifierPath", + "referencedDeclaration": 46, + "src": "7845:9:15" + }, + "nodeType": "ModifierInvocation", + "src": "7845:9:15" + } + ], + "name": "setNFTPriceMinLimit", + "nameLocation": "7772:19:15", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 2003, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 2000, + "mutability": "mutable", + "name": "nftToken", + "nameLocation": "7800:8:15", + "nodeType": "VariableDeclaration", + "scope": 2030, + "src": "7792:16:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 1999, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "7792:7:15", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + }, + { + "constant": false, + "id": 2002, + "mutability": "mutable", + "name": "minLimit", + "nameLocation": "7818:8:15", + "nodeType": "VariableDeclaration", + "scope": 2030, + "src": "7810:16:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 2001, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "7810:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "7791:36:15" + }, + "returnParameters": { + "id": 2006, + "nodeType": "ParameterList", + "parameters": [], + "src": "7857:0:15" + }, + "scope": 2076, + "src": "7763:327:15", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "external" + }, + { + "body": { + "id": 2052, + "nodeType": "Block", + "src": "8165:218:15", + "statements": [ + { + "expression": { + "arguments": [ + { + "commonType": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "id": 2044, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2040, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 2038, + "name": "_transactionFee", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2032, + "src": "8186:15:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": ">=", + "rightExpression": { + "id": 2039, + "name": "MIN_TRANSACTION_FEE", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1361, + "src": "8205:19:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "8186:38:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "BinaryOperation", + "operator": "&&", + "rightExpression": { + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 2043, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 2041, + "name": "_transactionFee", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2032, + "src": "8236:15:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "<=", + "rightExpression": { + "id": 2042, + "name": "MAX_TRANSACTION_FEE", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1369, + "src": "8255:19:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "8236:38:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "src": "8186:88:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "hexValue": "4e46544d61726b65743a205f7472616e73616374696f6e466565206d757374203e3d20302e352520616e64203c3d20313025", + "id": 2045, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "8282:52:15", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_f49c2823e6e88a8da7e3f26c7dd2d3d467d89fe7075a0a9b37119fceb0e765f1", + "typeString": "literal_string \"NFTMarket: _transactionFee must >= 0.5% and <= 10%\"" + }, + "value": "NFTMarket: _transactionFee must >= 0.5% and <= 10%" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_f49c2823e6e88a8da7e3f26c7dd2d3d467d89fe7075a0a9b37119fceb0e765f1", + "typeString": "literal_string \"NFTMarket: _transactionFee must >= 0.5% and <= 10%\"" + } + ], + "id": 2037, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 4294967278, + 4294967278 + ], + "referencedDeclaration": 4294967278, + "src": "8171:7:15", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 2046, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "8171:169:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 2047, + "nodeType": "ExpressionStatement", + "src": "8171:169:15" + }, + { + "expression": { + "id": 2050, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "id": 2048, + "name": "transactionFee", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1353, + "src": "8346:14:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "id": 2049, + "name": "_transactionFee", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2032, + "src": "8363:15:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "8346:32:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 2051, + "nodeType": "ExpressionStatement", + "src": "8346:32:15" + } + ] + }, + "functionSelector": "096a8ab7", + "id": 2053, + "implemented": true, + "kind": "function", + "modifiers": [ + { + "id": 2035, + "kind": "modifierInvocation", + "modifierName": { + "id": 2034, + "name": "onlyOwner", + "nodeType": "IdentifierPath", + "referencedDeclaration": 46, + "src": "8155:9:15" + }, + "nodeType": "ModifierInvocation", + "src": "8155:9:15" + } + ], + "name": "setTransactionFee", + "nameLocation": "8103:17:15", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 2033, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 2032, + "mutability": "mutable", + "name": "_transactionFee", + "nameLocation": "8129:15:15", + "nodeType": "VariableDeclaration", + "scope": 2053, + "src": "8121:23:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 2031, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "8121:7:15", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "visibility": "internal" + } + ], + "src": "8120:25:15" + }, + "returnParameters": { + "id": 2036, + "nodeType": "ParameterList", + "parameters": [], + "src": "8165:0:15" + }, + "scope": 2076, + "src": "8094:289:15", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "external" + }, + { + "body": { + "id": 2074, + "nodeType": "Block", + "src": "8454:132:15", + "statements": [ + { + "expression": { + "arguments": [ + { + "commonType": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "id": 2066, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "id": 2061, + "name": "_feeToAddress", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2055, + "src": "8468:13:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "BinaryOperation", + "operator": "!=", + "rightExpression": { + "arguments": [ + { + "hexValue": "30", + "id": 2064, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "8493:1:15", + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + } + ], + "id": 2063, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "8485:7:15", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_address_$", + "typeString": "type(address)" + }, + "typeName": { + "id": 2062, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "8485:7:15", + "typeDescriptions": {} + } + }, + "id": 2065, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "typeConversion", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "8485:10:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "src": "8468:27:15", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "hexValue": "4e46544d61726b65743a2066656520726563656976656420616464726573732063616e206e6f74206265207a65726f", + "id": 2067, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "8497:49:15", + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_3b04b8e26e4b4f37c4e02792de76b923f7bbb4c995d4be6d4bf338e41a5da1f6", + "typeString": "literal_string \"NFTMarket: fee received address can not be zero\"" + }, + "value": "NFTMarket: fee received address can not be zero" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_3b04b8e26e4b4f37c4e02792de76b923f7bbb4c995d4be6d4bf338e41a5da1f6", + "typeString": "literal_string \"NFTMarket: fee received address can not be zero\"" + } + ], + "id": 2060, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 4294967278, + 4294967278 + ], + "referencedDeclaration": 4294967278, + "src": "8460:7:15", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 2068, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "8460:87:15", + "tryCall": false, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 2069, + "nodeType": "ExpressionStatement", + "src": "8460:87:15" + }, + { + "expression": { + "id": 2072, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "id": 2070, + "name": "feeToAddress", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 1371, + "src": "8553:12:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "id": 2071, + "name": "_feeToAddress", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 2055, + "src": "8568:13:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "src": "8553:28:15", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "id": 2073, + "nodeType": "ExpressionStatement", + "src": "8553:28:15" + } + ] + }, + "functionSelector": "580bb9a5", + "id": 2075, + "implemented": true, + "kind": "function", + "modifiers": [ + { + "id": 2058, + "kind": "modifierInvocation", + "modifierName": { + "id": 2057, + "name": "onlyOwner", + "nodeType": "IdentifierPath", + "referencedDeclaration": 46, + "src": "8444:9:15" + }, + "nodeType": "ModifierInvocation", + "src": "8444:9:15" + } + ], + "name": "setFeeToAddress", + "nameLocation": "8396:15:15", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 2056, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 2055, + "mutability": "mutable", + "name": "_feeToAddress", + "nameLocation": "8420:13:15", + "nodeType": "VariableDeclaration", + "scope": 2075, + "src": "8412:21:15", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 2054, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "8412:7:15", + "stateMutability": "nonpayable", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "visibility": "internal" + } + ], + "src": "8411:23:15" + }, + "returnParameters": { + "id": 2059, + "nodeType": "ParameterList", + "parameters": [], + "src": "8454:0:15" + }, + "scope": 2076, + "src": "8387:199:15", + "stateMutability": "nonpayable", + "virtual": false, + "visibility": "external" + } + ], + "scope": 2077, + "src": "559:8029:15", + "usedErrors": [] + } + ], + "src": "32:8557:15" + }, "compiler": { "name": "solc", "version": "0.8.10+commit.fc410830.Emscripten.clang" @@ -31253,8 +42495,8 @@ } }, "links": {}, - "address": "0x768b5Faed6DC69816f33377d214ffaf00dcDd0cf", - "transactionHash": "0x8bda504b613c4bfaf625aee7815a732d35597bf676e5c0d27b21bee0a253bd6d" + "address": "0xFC628dd79137395F3C9744e33b1c5DE554D94882", + "transactionHash": "0x9a2835c3b3bc4e92e51acd312e61347d1271f1bbcecaea857fd5b040ac00f1b0" }, "80001": { "events": {}, @@ -31263,8 +42505,9 @@ "transactionHash": "0x6b5e8cd156d9ec339b0a71a2f8207b2360df28dd86d2cb30d29a1440bf1193e9" } }, - "schemaVersion": "3.4.11", - "updatedAt": "2023-01-10T09:07:38.797Z", + "schemaVersion": "3.4.4", + "updatedAt": "2023-01-10T09:15:10.858Z", + "networkType": "ethereum", "devdoc": { "kind": "dev", "methods": { diff --git a/build/contracts/BENftMall.json b/build/contracts/BENftMall.json index 38e63e1..1018c8f 100644 --- a/build/contracts/BENftMall.json +++ b/build/contracts/BENftMall.json @@ -46109,7 +46109,7 @@ } }, "schemaVersion": "3.4.4", - "updatedAt": "2022-12-08T03:41:57.124Z", + "updatedAt": "2023-01-10T09:16:07.131Z", "networkType": "ethereum", "devdoc": { "kind": "dev", diff --git a/build/contracts/BEPresaleBox.json b/build/contracts/BEPresaleBox.json index b0c0ce3..7abaac0 100644 --- a/build/contracts/BEPresaleBox.json +++ b/build/contracts/BEPresaleBox.json @@ -26363,7 +26363,7 @@ } }, "schemaVersion": "3.4.4", - "updatedAt": "2022-12-08T03:41:08.137Z", + "updatedAt": "2023-01-10T09:12:17.382Z", "networkType": "ethereum", "devdoc": { "kind": "dev", diff --git a/build/contracts/BEShard.json b/build/contracts/BEShard.json index 777a904..d07f9c5 100644 --- a/build/contracts/BEShard.json +++ b/build/contracts/BEShard.json @@ -29138,7 +29138,7 @@ } }, "schemaVersion": "3.4.4", - "updatedAt": "2022-12-08T03:41:32.956Z", + "updatedAt": "2023-01-10T09:14:07.976Z", "networkType": "ethereum", "devdoc": { "kind": "dev", diff --git a/build/contracts/BETimelockController.json b/build/contracts/BETimelockController.json index d73ac6d..e208cc1 100644 --- a/build/contracts/BETimelockController.json +++ b/build/contracts/BETimelockController.json @@ -25437,7 +25437,7 @@ } }, "schemaVersion": "3.4.4", - "updatedAt": "2022-12-08T03:42:07.285Z", + "updatedAt": "2023-01-10T09:16:23.469Z", "networkType": "ethereum", "devdoc": { "kind": "dev", diff --git a/build/contracts/EvolveFactory.json b/build/contracts/EvolveFactory.json index 654b842..8b61e6f 100644 --- a/build/contracts/EvolveFactory.json +++ b/build/contracts/EvolveFactory.json @@ -33503,7 +33503,7 @@ } }, "schemaVersion": "3.4.4", - "updatedAt": "2022-12-08T03:41:53.713Z", + "updatedAt": "2023-01-10T09:15:57.221Z", "networkType": "ethereum", "devdoc": { "kind": "dev", diff --git a/build/contracts/Migrations.json b/build/contracts/Migrations.json index 27f1414..8520ac3 100644 --- a/build/contracts/Migrations.json +++ b/build/contracts/Migrations.json @@ -3234,8 +3234,8 @@ "transactionHash": "0x3963c496ad636403fa000de1dd33d0c363f7f3104afa6f2140d13dedaccb56a6" } }, - "schemaVersion": "3.4.11", - "updatedAt": "2023-01-05T09:11:36.246Z", + "schemaVersion": "3.4.4", + "updatedAt": "2023-01-10T09:16:23.476Z", "networkType": "ethereum", "devdoc": { "kind": "dev", diff --git a/build/contracts/MinterFactory.json b/build/contracts/MinterFactory.json index 54799f6..925bc2a 100644 --- a/build/contracts/MinterFactory.json +++ b/build/contracts/MinterFactory.json @@ -57056,7 +57056,7 @@ } }, "schemaVersion": "3.4.4", - "updatedAt": "2022-12-08T03:41:39.245Z", + "updatedAt": "2023-01-10T09:14:24.980Z", "networkType": "ethereum", "devdoc": { "kind": "dev", diff --git a/build/contracts/NftChipLocker.json b/build/contracts/NftChipLocker.json index 92b8263..0f4ad8a 100644 --- a/build/contracts/NftChipLocker.json +++ b/build/contracts/NftChipLocker.json @@ -49916,7 +49916,7 @@ } }, "schemaVersion": "3.4.4", - "updatedAt": "2022-12-08T03:42:02.032Z", + "updatedAt": "2023-01-10T09:16:14.578Z", "networkType": "ethereum", "devdoc": { "kind": "dev", diff --git a/build/contracts/UserEvolveFactory.json b/build/contracts/UserEvolveFactory.json index b291da2..1324187 100644 --- a/build/contracts/UserEvolveFactory.json +++ b/build/contracts/UserEvolveFactory.json @@ -14963,7 +14963,7 @@ } }, "schemaVersion": "3.4.4", - "updatedAt": "2022-12-08T03:41:53.726Z", + "updatedAt": "2023-01-10T09:15:57.234Z", "networkType": "ethereum", "devdoc": { "kind": "dev", diff --git a/build/contracts/UserMinterFactory.json b/build/contracts/UserMinterFactory.json index 854e087..6eaa0bc 100644 --- a/build/contracts/UserMinterFactory.json +++ b/build/contracts/UserMinterFactory.json @@ -28699,7 +28699,7 @@ } }, "schemaVersion": "3.4.4", - "updatedAt": "2022-12-08T03:41:39.272Z", + "updatedAt": "2023-01-10T09:14:24.998Z", "networkType": "ethereum", "devdoc": { "kind": "dev", diff --git a/init_scripts/update_nft_setting.js b/init_scripts/update_nft_setting.js index 8821426..a65c229 100644 --- a/init_scripts/update_nft_setting.js +++ b/init_scripts/update_nft_setting.js @@ -33,11 +33,11 @@ module.exports = async function main(callback) { config.market.paymentTokens.push(goldInstance.address); config.market.paymentTokens.push(usdtInstance.address); - // await heroInstance.updateBaseURI(config.token.baseTokenURI); - // console.log("BEHero baseURI update success."); + await heroInstance.updateBaseURI(config.token.baseTokenURI); + console.log("BEHero baseURI update success."); - // await equipInstance.updateBaseURI(config.token.baseTokenURI); - // console.log("Equip baseURI update success."); + await equipInstance.updateBaseURI(config.token.baseTokenURI); + console.log("Equip baseURI update success."); const marketInstance = await MarketPlace.deployed(); const ROUND = 1000000; @@ -88,6 +88,7 @@ module.exports = async function main(callback) { ); for (let token of config.market.paymentTokens) { await marketInstance.addERC20Support(token); + console.log(`add token for market payment: ${token}`) } console.log(`finish update market config`); @@ -102,110 +103,110 @@ module.exports = async function main(callback) { // await chipInstance.setApprovalForAll(marketInstance.address, true); // console.log("finish chipInstance.addApprovalWhitelist"); - // await heroInstance.grantLockRole(config.admins.admin); - // await equipInstance.grantLockRole(config.admins.admin); - // await chipInstance.grantLockRole(config.admins.admin); - // await shardInstance.grantLockRole(config.admins.admin); - // console.log( - // `Allow operation ${marketInstance.address} to reduce gas fee` - // ); + await heroInstance.grantLockRole(config.admins.admin); + await equipInstance.grantLockRole(config.admins.admin); + await chipInstance.grantLockRole(config.admins.admin); + await shardInstance.grantLockRole(config.admins.admin); + console.log( + `Allow operation ${marketInstance.address} to reduce gas fee` + ); } - // const factoryInstance = await MinterFactory.deployed(); - // if (!factoryInstance) { - // console.error("no factoryInstance"); + const factoryInstance = await MinterFactory.deployed(); + if (!factoryInstance) { + console.error("no factoryInstance"); + return; + } + await factoryInstance.init([ + heroInstance.address, + equipInstance.address, + chipInstance.address, + shardInstance.address, + ]); + await factoryInstance.setFeeToAddress(config.market.feeToAddress); + await factoryInstance.updateExecutor(config.admins.admin); + await heroInstance.setMintFactory(factoryInstance.address); + await equipInstance.setMintFactory(factoryInstance.address); + await chipInstance.setMintFactory(factoryInstance.address); + await shardInstance.setMintFactory(factoryInstance.address); + + console.log( + `Allow factory ${factoryInstance.address} to mint contract \n hero: ${heroInstance.address}, \n equip: ${equipInstance.address}, \n chip: ${chipInstance.address}` + ); + await heroInstance.grantBurnRole(factoryInstance.address); + await equipInstance.grantBurnRole(factoryInstance.address); + await chipInstance.grantBurnRole(factoryInstance.address); + await shardInstance.grantBurnRole(factoryInstance.address); + + console.log( + `Allow factory ${factoryInstance.address} to burn contract \n hero: ${heroInstance.address}, \n equip: ${equipInstance.address}, \n chip: ${chipInstance.address}` + ); + + const userFactoryInstance = await UserMinterFactory.deployed(); + if (!userFactoryInstance) { + console.error("no userFactoryInstance"); + return; + } + await factoryInstance.addApprovalList(userFactoryInstance.address); + await userFactoryInstance.init([ + heroInstance.address, + equipInstance.address, + chipInstance.address, + shardInstance.address, + factoryInstance.address, + ]); + const proxyInstance = await EvolveFactory.deployed(); + if (!proxyInstance) { + console.error("no proxyInstance"); + return; + } + await proxyInstance.init(chipInstance.address); + await proxyInstance.addNFTTokenSupport(heroInstance.address); + await proxyInstance.addNFTTokenSupport(equipInstance.address); + await proxyInstance.updateExecutor(config.admins.admin); + await heroInstance.grantBurnRole(proxyInstance.address); + await equipInstance.grantBurnRole(proxyInstance.address); + await chipInstance.grantBurnRole(proxyInstance.address); + console.log( + `Allow proxy ${proxyInstance.address} to burn contract \n hero: ${heroInstance.address}, \n equip: ${equipInstance.address}, \n chip: ${chipInstance.address}` + ); + const userProxyInstance = await UserEvolveFactory.deployed(); + if (!userProxyInstance) { + console.error("no userProxyInstance"); + return; + } + await proxyInstance.addApprovalList(userProxyInstance.address); + await userProxyInstance.init(proxyInstance.address); + + // const boxInstance = await BEBoxMall.deployed(); + // if (!boxInstance) { + // console.error("no boxInstance"); // return; // } - // await factoryInstance.init([ - // heroInstance.address, - // equipInstance.address, - // chipInstance.address, - // shardInstance.address, - // ]); - // await factoryInstance.setFeeToAddress(config.market.feeToAddress); - // await factoryInstance.updateExecutor(config.admins.admin); - // await heroInstance.setMintFactory(factoryInstance.address); - // await equipInstance.setMintFactory(factoryInstance.address); - // await chipInstance.setMintFactory(factoryInstance.address); - // await shardInstance.setMintFactory(factoryInstance.address); - + // await boxInstance.setPaymentReceivedAddress(config.market.mallFeeAddress); // console.log( - // `Allow factory ${factoryInstance.address} to mint contract \n hero: ${heroInstance.address}, \n equip: ${equipInstance.address}, \n chip: ${chipInstance.address}` - // ); - // await heroInstance.grantBurnRole(factoryInstance.address); - // await equipInstance.grantBurnRole(factoryInstance.address); - // await chipInstance.grantBurnRole(factoryInstance.address); - // await shardInstance.grantBurnRole(factoryInstance.address); - - // console.log( - // `Allow factory ${factoryInstance.address} to burn contract \n hero: ${heroInstance.address}, \n equip: ${equipInstance.address}, \n chip: ${chipInstance.address}` + // `update payment received address: ${config.market.mallFeeAddress}` // ); - // const userFactoryInstance = await UserMinterFactory.deployed(); - // if (!userFactoryInstance) { - // console.error("no userFactoryInstance"); - // return; - // } - // await factoryInstance.addApprovalList(userFactoryInstance.address); - // await userFactoryInstance.init([ - // heroInstance.address, - // equipInstance.address, - // chipInstance.address, - // shardInstance.address, - // factoryInstance.address, - // ]); - // const proxyInstance = await EvolveFactory.deployed(); - // if (!proxyInstance) { - // console.error("no proxyInstance"); - // return; - // } - // await proxyInstance.init(chipInstance.address); - // await proxyInstance.addNFTTokenSupport(heroInstance.address); - // await proxyInstance.addNFTTokenSupport(equipInstance.address); - // await proxyInstance.updateExecutor(config.admins.admin); - // await heroInstance.grantBurnRole(proxyInstance.address); - // await equipInstance.grantBurnRole(proxyInstance.address); - // await chipInstance.grantBurnRole(proxyInstance.address); - // console.log( - // `Allow proxy ${proxyInstance.address} to burn contract \n hero: ${heroInstance.address}, \n equip: ${equipInstance.address}, \n chip: ${chipInstance.address}` - // ); - // const userProxyInstance = await UserEvolveFactory.deployed(); - // if (!userProxyInstance) { - // console.error("no userProxyInstance"); - // return; - // } - // await proxyInstance.addApprovalList(userProxyInstance.address); - // await userProxyInstance.init(proxyInstance.address); - - // // const boxInstance = await BEBoxMall.deployed(); - // // if (!boxInstance) { - // // console.error("no boxInstance"); - // // return; - // // } - // // await boxInstance.setPaymentReceivedAddress(config.market.mallFeeAddress); - // // console.log( - // // `update payment received address: ${config.market.mallFeeAddress}` - // // ); - - // const nftMallInstance = await BENftMall.deployed(); - // if (nftMallInstance) { - // await nftMallInstance.setFeeToAddress(config.market.feeToAddress); - // await nftMallInstance.setPaymentTokens(config.market.paymentTokens); - // await nftMallInstance.addNFTTokenSupport(heroInstance.address); - // await nftMallInstance.addNFTTokenSupport(equipInstance.address); - // await nftMallInstance.addNFTTokenSupport(chipInstance.address); - // await heroInstance.setMintFactory(nftMallInstance.address); - // await equipInstance.setMintFactory(nftMallInstance.address); - // await chipInstance.setMintFactory(nftMallInstance.address); - // console.log("update nftMallInstance settings success"); - // } - // const lockerInstance = await NftChipLocker.deployed(); - // if (lockerInstance) { - // await lockerInstance.addNFTTokenSupport(heroInstance.address); - // await lockerInstance.addNFTTokenSupport(equipInstance.address); - // await lockerInstance.addNFTTokenSupport(chipInstance.address); - // console.log("update NftChipLocker addNFTTokenSupport success"); - // } + const nftMallInstance = await BENftMall.deployed(); + if (nftMallInstance) { + await nftMallInstance.setFeeToAddress(config.market.feeToAddress); + await nftMallInstance.setPaymentTokens(config.market.paymentTokens); + await nftMallInstance.addNFTTokenSupport(heroInstance.address); + await nftMallInstance.addNFTTokenSupport(equipInstance.address); + await nftMallInstance.addNFTTokenSupport(chipInstance.address); + await heroInstance.setMintFactory(nftMallInstance.address); + await equipInstance.setMintFactory(nftMallInstance.address); + await chipInstance.setMintFactory(nftMallInstance.address); + console.log("update nftMallInstance settings success"); + } + const lockerInstance = await NftChipLocker.deployed(); + if (lockerInstance) { + await lockerInstance.addNFTTokenSupport(heroInstance.address); + await lockerInstance.addNFTTokenSupport(equipInstance.address); + await lockerInstance.addNFTTokenSupport(chipInstance.address); + console.log("update NftChipLocker addNFTTokenSupport success"); + } callback(0); } catch (error) { console.error(error);