{ "contractName": "AdNetwork", "abi": [ { "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "adId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "inventoryId", "type": "uint256" } ], "name": "AdApproved", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "inventoryId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "adId", "type": "uint256" } ], "name": "AdCreated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "adId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "inventoryId", "type": "uint256" } ], "name": "AdRejected", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "inventoryId", "type": "uint256" }, { "indexed": false, "internalType": "bytes32", "name": "requestHash", "type": "bytes32" }, { "indexed": false, "internalType": "bytes32", "name": "adHash", "type": "bytes32" } ], "name": "AdReviewRequestSent", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "inventoryId", "type": "uint256" } ], "name": "InventoryCreated", "type": "event" }, { "inputs": [ { "internalType": "string", "name": "name", "type": "string" }, { "internalType": "string", "name": "uri", "type": "string" }, { "internalType": "string", "name": "publicKey", "type": "string" }, { "internalType": "uint256", "name": "floorPrice", "type": "uint256" } ], "name": "createAdInventory", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_inventoryId", "type": "uint256" } ], "name": "removeAdInventory", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_inventoryId", "type": "uint256" }, { "internalType": "bytes32", "name": "_hash", "type": "bytes32" }, { "internalType": "bytes32", "name": "_hashForDelivery", "type": "bytes32" }, { "internalType": "uint32", "name": "_start", "type": "uint32" }, { "internalType": "uint32", "name": "_end", "type": "uint32" } ], "name": "createAd", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "payable", "type": "function", "payable": true }, { "inputs": [ { "internalType": "uint256", "name": "_inventoryId", "type": "uint256" }, { "internalType": "uint256", "name": "_adId", "type": "uint256" } ], "name": "approveAd", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_inventoryId", "type": "uint256" }, { "internalType": "uint256", "name": "_adId", "type": "uint256" } ], "name": "rejectAd", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_inventoryId", "type": "uint256" }, { "internalType": "uint256", "name": "_adId", "type": "uint256" } ], "name": "collectAd", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_inventoryId", "type": "uint256" } ], "name": "getAdsOf", "outputs": [ { "internalType": "uint256[]", "name": "adIds", "type": "uint256[]" }, { "internalType": "uint256[]", "name": "inventoryIds", "type": "uint256[]" }, { "internalType": "bytes32[]", "name": "adHashes", "type": "bytes32[]" }, { "internalType": "bytes32[]", "name": "adHashForDeliveries", "type": "bytes32[]" }, { "internalType": "uint32[]", "name": "starts", "type": "uint32[]" }, { "internalType": "uint32[]", "name": "ends", "type": "uint32[]" }, { "internalType": "bool[]", "name": "approved", "type": "bool[]" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [ { "internalType": "address", "name": "_ownerAddress", "type": "address" } ], "name": "getAdsByOwnerAddress", "outputs": [ { "internalType": "uint256[]", "name": "adIds", "type": "uint256[]" }, { "internalType": "uint256[]", "name": "inventoryIds", "type": "uint256[]" }, { "internalType": "bytes32[]", "name": "adHashes", "type": "bytes32[]" }, { "internalType": "uint32[]", "name": "starts", "type": "uint32[]" }, { "internalType": "uint32[]", "name": "ends", "type": "uint32[]" }, { "internalType": "bool[]", "name": "approved", "type": "bool[]" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [ { "internalType": "address", "name": "_ownerAddress", "type": "address" } ], "name": "getInventoriesByOwnerAddress", "outputs": [ { "internalType": "uint256[]", "name": "inventoryIds", "type": "uint256[]" }, { "internalType": "address[]", "name": "owners", "type": "address[]" }, { "internalType": "string[]", "name": "names", "type": "string[]" }, { "internalType": "string[]", "name": "uris", "type": "string[]" }, { "internalType": "string[]", "name": "publicKeys", "type": "string[]" }, { "internalType": "uint256[]", "name": "floorPrices", "type": "uint256[]" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [ { "internalType": "uint256", "name": "_inventoryId", "type": "uint256" } ], "name": "getInventory", "outputs": [ { "internalType": "uint256", "name": "inventoryId", "type": "uint256" }, { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "string", "name": "name", "type": "string" }, { "internalType": "string", "name": "uri", "type": "string" }, { "internalType": "string", "name": "publicKey", "type": "string" }, { "internalType": "uint256", "name": "floorPrice", "type": "uint256" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [ { "internalType": "uint256", "name": "offset", "type": "uint256" }, { "internalType": "uint256", "name": "limit", "type": "uint256" } ], "name": "getInventories", "outputs": [ { "internalType": "uint256[]", "name": "inventoryIds", "type": "uint256[]" }, { "internalType": "address[]", "name": "owners", "type": "address[]" }, { "internalType": "string[]", "name": "names", "type": "string[]" }, { "internalType": "string[]", "name": "uris", "type": "string[]" }, { "internalType": "string[]", "name": "publicKeys", "type": "string[]" }, { "internalType": "uint256[]", "name": "floorPrices", "type": "uint256[]" } ], "stateMutability": "view", "type": "function", "constant": true }, { "inputs": [ { "internalType": "uint256", "name": "_inventoryId", "type": "uint256" } ], "name": "getExpiredAdIds", "outputs": [ { "internalType": "uint256[]", "name": "", "type": "uint256[]" } ], "stateMutability": "view", "type": "function", "constant": true } ], "metadata": "{\"compiler\":{\"version\":\"0.8.11+commit.d7f03943\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"adId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"inventoryId\",\"type\":\"uint256\"}],\"name\":\"AdApproved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"inventoryId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"adId\",\"type\":\"uint256\"}],\"name\":\"AdCreated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"adId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"inventoryId\",\"type\":\"uint256\"}],\"name\":\"AdRejected\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"inventoryId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"requestHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"adHash\",\"type\":\"bytes32\"}],\"name\":\"AdReviewRequestSent\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"inventoryId\",\"type\":\"uint256\"}],\"name\":\"InventoryCreated\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_inventoryId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_adId\",\"type\":\"uint256\"}],\"name\":\"approveAd\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_inventoryId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_adId\",\"type\":\"uint256\"}],\"name\":\"collectAd\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_inventoryId\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"_hash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"_hashForDelivery\",\"type\":\"bytes32\"},{\"internalType\":\"uint32\",\"name\":\"_start\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"_end\",\"type\":\"uint32\"}],\"name\":\"createAd\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"publicKey\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"floorPrice\",\"type\":\"uint256\"}],\"name\":\"createAdInventory\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_ownerAddress\",\"type\":\"address\"}],\"name\":\"getAdsByOwnerAddress\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"adIds\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"inventoryIds\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes32[]\",\"name\":\"adHashes\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint32[]\",\"name\":\"starts\",\"type\":\"uint32[]\"},{\"internalType\":\"uint32[]\",\"name\":\"ends\",\"type\":\"uint32[]\"},{\"internalType\":\"bool[]\",\"name\":\"approved\",\"type\":\"bool[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_inventoryId\",\"type\":\"uint256\"}],\"name\":\"getAdsOf\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"adIds\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"inventoryIds\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes32[]\",\"name\":\"adHashes\",\"type\":\"bytes32[]\"},{\"internalType\":\"bytes32[]\",\"name\":\"adHashForDeliveries\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint32[]\",\"name\":\"starts\",\"type\":\"uint32[]\"},{\"internalType\":\"uint32[]\",\"name\":\"ends\",\"type\":\"uint32[]\"},{\"internalType\":\"bool[]\",\"name\":\"approved\",\"type\":\"bool[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_inventoryId\",\"type\":\"uint256\"}],\"name\":\"getExpiredAdIds\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"offset\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"limit\",\"type\":\"uint256\"}],\"name\":\"getInventories\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"inventoryIds\",\"type\":\"uint256[]\"},{\"internalType\":\"address[]\",\"name\":\"owners\",\"type\":\"address[]\"},{\"internalType\":\"string[]\",\"name\":\"names\",\"type\":\"string[]\"},{\"internalType\":\"string[]\",\"name\":\"uris\",\"type\":\"string[]\"},{\"internalType\":\"string[]\",\"name\":\"publicKeys\",\"type\":\"string[]\"},{\"internalType\":\"uint256[]\",\"name\":\"floorPrices\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_ownerAddress\",\"type\":\"address\"}],\"name\":\"getInventoriesByOwnerAddress\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"inventoryIds\",\"type\":\"uint256[]\"},{\"internalType\":\"address[]\",\"name\":\"owners\",\"type\":\"address[]\"},{\"internalType\":\"string[]\",\"name\":\"names\",\"type\":\"string[]\"},{\"internalType\":\"string[]\",\"name\":\"uris\",\"type\":\"string[]\"},{\"internalType\":\"string[]\",\"name\":\"publicKeys\",\"type\":\"string[]\"},{\"internalType\":\"uint256[]\",\"name\":\"floorPrices\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_inventoryId\",\"type\":\"uint256\"}],\"name\":\"getInventory\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"inventoryId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"publicKey\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"floorPrice\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_inventoryId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_adId\",\"type\":\"uint256\"}],\"name\":\"rejectAd\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_inventoryId\",\"type\":\"uint256\"}],\"name\":\"removeAdInventory\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"stateVariables\":{\"MIN_DELIVERY_TIME\":{\"details\":\"Delivery time must be at least 1 hour.\"},\"MIN_TIME_REQUIRED_TO_START_DELIVERY\":{\"details\":\"Since there is a high possibility that the screening will not be completed in time, it is necessary to allow at least 12 hours before the distribution starts.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"project:/contracts/AdNetwork.sol\":\"AdNetwork\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/utils/Counters.sol\":{\"keccak256\":\"0xf0018c2440fbe238dd3a8732fa8e17a0f9dce84d31451dc8a32f6d62b349c9f1\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://59e1c62884d55b70f3ae5432b44bb3166ad71ae3acd19c57ab6ddc3c87c325ee\",\"dweb:/ipfs/QmezuXg5GK5oeA4F91EZhozBFekhq5TD966bHPH18cCqhu\"]},\"@openzeppelin/contracts/utils/math/Math.sol\":{\"keccak256\":\"0xfaad496c1c944b6259b7dc70b4865eb1775d6402bc0c81b38a0b24d9f525ae37\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://2f60ddc4639589b1d7a87cd647561be4c71ddf9a9dcf55f38db75e24ef1f6c5b\",\"dweb:/ipfs/QmTocvyQx3DPrzsFePtrhDGM6eYxUh3v8iBN3D59yoeuBt\"]},\"project:/contracts/AdNetwork.sol\":{\"keccak256\":\"0xe05141174bc8e43f56c3f5ee058d6e9eafb0a4d96f9f599bfba9f5dacea6c5da\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://9b651b775082d9d56b5db91640cbbafaae7db85144292867578e553005cbb1f1\",\"dweb:/ipfs/QmSqopZWgBN8XYZ2HM4a4693U4TUjhNiqFDnWWbASA8po2\"]},\"project:/contracts/AdNetworkSet.sol\":{\"keccak256\":\"0x6c8464cc402ed102d8f1236bb07a223dbf3469644b789e85e4f7c2cb35adfa8f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://9a23a20fa3fe62d36786f559ea3124abc7877bec00e9c83e58fbdc1c0cf919b5\",\"dweb:/ipfs/QmfDNfALhjeRPeGn9gWYsJCRDQvVPQQphRWaaWHpdL8ZXV\"]}},\"version\":1}", "bytecode": "0x608060405234801561001057600080fd5b506154a6806100206000396000f3fe6080604052600436106100a75760003560e01c806372af45561161006457806372af4556146101e957806383739c301461022b578063d68fb2fc14610254578063e815c06e14610296578063eba58b3e146102c6578063fd58ac9c14610308576100a7565b806304216974146100ac57806324bfee7d146100d55780632e9d3ffb1461011257806331eae2611461013b578063518de44d1461017e5780635b298d32146101a7575b600080fd5b3480156100b857600080fd5b506100d360048036038101906100ce919061390f565b610345565b005b3480156100e157600080fd5b506100fc60048036038101906100f7919061394f565b61069b565b6040516101099190613a3a565b60405180910390f35b34801561011e57600080fd5b506101396004803603810190610134919061394f565b61086b565b005b34801561014757600080fd5b50610162600480360381019061015d919061394f565b610a18565b6040516101759796959493929190613cbc565b60405180910390f35b34801561018a57600080fd5b506101a560048036038101906101a0919061390f565b610e62565b005b3480156101b357600080fd5b506101ce60048036038101906101c9919061394f565b61111c565b6040516101e096959493929190613e45565b60405180910390f35b3480156101f557600080fd5b50610210600480360381019061020b919061390f565b61136f565b60405161022296959493929190614085565b60405180910390f35b34801561023757600080fd5b50610252600480360381019061024d919061390f565b611907565b005b34801561026057600080fd5b5061027b6004803603810190610276919061413c565b611e56565b60405161028d96959493929190614085565b60405180910390f35b6102b060048036038101906102ab91906141c1565b61240e565b6040516102bd919061423c565b60405180910390f35b3480156102d257600080fd5b506102ed60048036038101906102e8919061413c565b612843565b6040516102ff96959493929190614257565b60405180910390f35b34801561031457600080fd5b5061032f600480360381019061032a9190614417565b612c64565b60405161033c919061423c565b60405180910390f35b8160066000838152602001908152602001600020541461039a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103919061456a565b60405180910390fd5b60006103b0836001612e3590919063ffffffff16565b90503373ffffffffffffffffffffffffffffffffffffffff168160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610444576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161043b906145fc565b60405180910390fd5b6006600083815260200190815260200160002060009055600c6000848152602001908152602001600020600081819054906101000a900463ffffffff168092919061048e9061464b565b91906101000a81548163ffffffff021916908363ffffffff1602179055505060006104c3836004612ecd90919063ffffffff16565b9050600960008260020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081819054906101000a900463ffffffff16809291906105489061464b565b91906101000a81548163ffffffff021916908363ffffffff1602179055505060008160020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008260060154905060008273ffffffffffffffffffffffffffffffffffffffff16826040516105bf906146a6565b60006040518083038185875af1925050503d80600081146105fc576040519150601f19603f3d011682016040523d82523d6000602084013e610601565b606091505b5050905080610645576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161063c90614707565b60405180910390fd5b610659866004612f6590919063ffffffff16565b50857fec59ec7badaba136e5e5c61eb40f664c254682415c2e42cad5bd1f46aa90f8dd8860405161068a919061423c565b60405180910390a250505050505050565b60606000805b600460000180549050811015610744576000600460000182815481106106ca576106c9614727565b5b9060005260206000209060070201905084600760008360000154815260200190815260200160002054146106fe5750610731565b428160050160049054906101000a900463ffffffff1663ffffffff16111561072f57828061072b90614756565b9350505b505b808061073c90614756565b9150506106a1565b5060008167ffffffffffffffff811115610761576107606142ec565b5b60405190808252806020026020018201604052801561078f5781602001602082028036833780820191505090505b5090506000915060005b600460000180549050811015610860576000600460000182815481106107c2576107c1614727565b5b9060005260206000209060070201905085600760008360000154815260200190815260200160002054146107f6575061084d565b428160050160049054906101000a900463ffffffff1663ffffffff16111561084b5780600001548385815181106108305761082f614727565b5b602002602001018181525050838061084790614756565b9450505b505b808061085890614756565b915050610799565b508092505050919050565b6000600b600083815260200190815260200160002060009054906101000a900463ffffffff1663ffffffff16146108d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108ce90614837565b60405180910390fd5b60006108ed826001612e3590919063ffffffff16565b90503373ffffffffffffffffffffffffffffffffffffffff168160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610981576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610978906148c9565b60405180910390fd5b61099582600161320a90919063ffffffff16565b50600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081819054906101000a900463ffffffff16809291906109f59061464b565b91906101000a81548163ffffffff021916908363ffffffff160217905550505050565b60608060608060608060606000600c60008a815260200190815260200160002060009054906101000a900463ffffffff16600b60008b815260200190815260200160002060009054906101000a900463ffffffff16610a7791906148e9565b63ffffffff1690508067ffffffffffffffff811115610a9957610a986142ec565b5b604051908082528060200260200182016040528015610ac75781602001602082028036833780820191505090505b5097508067ffffffffffffffff811115610ae457610ae36142ec565b5b604051908082528060200260200182016040528015610b125781602001602082028036833780820191505090505b5096508067ffffffffffffffff811115610b2f57610b2e6142ec565b5b604051908082528060200260200182016040528015610b5d5781602001602082028036833780820191505090505b5095508067ffffffffffffffff811115610b7a57610b796142ec565b5b604051908082528060200260200182016040528015610ba85781602001602082028036833780820191505090505b5094508067ffffffffffffffff811115610bc557610bc46142ec565b5b604051908082528060200260200182016040528015610bf35781602001602082028036833780820191505090505b5093508067ffffffffffffffff811115610c1057610c0f6142ec565b5b604051908082528060200260200182016040528015610c3e5781602001602082028036833780820191505090505b5092508067ffffffffffffffff811115610c5b57610c5a6142ec565b5b604051908082528060200260200182016040528015610c895781602001602082028036833780820191505090505b5091506000805b600460000180549050811015610e5457600060046000018281548110610cb957610cb8614727565b5b906000526020600020906007020190508b816001015414610cda5750610e41565b80600001548b8481518110610cf257610cf1614727565b5b60200260200101818152505080600101548a8481518110610d1657610d15614727565b5b6020026020010181815250508060030154898481518110610d3a57610d39614727565b5b6020026020010181815250508060040154888481518110610d5e57610d5d614727565b5b6020026020010181815250508060050160009054906101000a900463ffffffff16878481518110610d9257610d91614727565b5b602002602001019063ffffffff16908163ffffffff16815250508060050160049054906101000a900463ffffffff16868481518110610dd457610dd3614727565b5b602002602001019063ffffffff16908163ffffffff1681525050806001015460076000836000015481526020019081526020016000205414858481518110610e1f57610e1e614727565b5b6020026020010190151590811515815250508280610e3c90614756565b935050505b8080610e4c90614756565b915050610c90565b505050919395979092949650565b600a600b600084815260200190815260200160002060009054906101000a900463ffffffff1663ffffffff1610610ece576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec5906149bb565b60405180910390fd5b81600660008381526020019081526020016000205414610f23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1a9061456a565b60405180910390fd5b6000610f39836001612e3590919063ffffffff16565b90503373ffffffffffffffffffffffffffffffffffffffff168160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610fcd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc490614a4d565b60405180910390fd5b6000610fe3836004612ecd90919063ffffffff16565b90508060050160009054906101000a900463ffffffff1663ffffffff16421061100b57600080fd5b6006600084815260200190815260200160002060009055600b6000858152602001908152602001600020600081819054906101000a900463ffffffff168092919061105590614a6d565b91906101000a81548163ffffffff021916908363ffffffff16021790555050600c6000858152602001908152602001600020600081819054906101000a900463ffffffff16809291906110a79061464b565b91906101000a81548163ffffffff021916908363ffffffff16021790555050836007600085815260200190815260200160002081905550827f01bc73444a1de7fde87f242676d52ebb9e3d193f9dd4837e1de58bc79e4210328560405161110e919061423c565b60405180910390a250505050565b600080606080606060008061113b886001612e3590919063ffffffff16565b905087816000015414611183576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117a90614b0c565b60405180910390fd5b806000015496508060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1695508060020180546111c090614b5b565b80601f01602080910402602001604051908101604052809291908181526020018280546111ec90614b5b565b80156112395780601f1061120e57610100808354040283529160200191611239565b820191906000526020600020905b81548152906001019060200180831161121c57829003601f168201915b5050505050945080600301805461124f90614b5b565b80601f016020809104026020016040519081016040528092919081815260200182805461127b90614b5b565b80156112c85780601f1061129d576101008083540402835291602001916112c8565b820191906000526020600020905b8154815290600101906020018083116112ab57829003601f168201915b505050505093508060040180546112de90614b5b565b80601f016020809104026020016040519081016040528092919081815260200182805461130a90614b5b565b80156113575780601f1061132c57610100808354040283529160200191611357565b820191906000526020600020905b81548152906001019060200180831161133a57829003601f168201915b50505050509250806005015491505091939550919395565b606080606080606080600087118015611389575060328711155b6113c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113bf90614bff565b60405180910390fd5b600088101580156113e157506001600001805490508811155b6113ea57600080fd5b6000611412888a6113fb9190614c1f565b60016000018054905061346d90919063ffffffff16565b90508067ffffffffffffffff81111561142e5761142d6142ec565b5b60405190808252806020026020018201604052801561145c5781602001602082028036833780820191505090505b5096508067ffffffffffffffff811115611479576114786142ec565b5b6040519080825280602002602001820160405280156114a75781602001602082028036833780820191505090505b5095508067ffffffffffffffff8111156114c4576114c36142ec565b5b6040519080825280602002602001820160405280156114f757816020015b60608152602001906001900390816114e25790505b5094508067ffffffffffffffff811115611514576115136142ec565b5b60405190808252806020026020018201604052801561154757816020015b60608152602001906001900390816115325790505b5093508067ffffffffffffffff811115611564576115636142ec565b5b60405190808252806020026020018201604052801561159757816020015b60608152602001906001900390816115825790505b5092508067ffffffffffffffff8111156115b4576115b36142ec565b5b6040519080825280602002602001820160405280156115e25781602001602082028036833780820191505090505b5091506000808a90505b828110156118fa5760006001600001828154811061160d5761160c614727565b5b9060005260206000209060060201905080600001548a848151811061163557611634614727565b5b6020026020010181815250508060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1689848151811061167957611678614727565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508060020180546116c290614b5b565b80601f01602080910402602001604051908101604052809291908181526020018280546116ee90614b5b565b801561173b5780601f106117105761010080835404028352916020019161173b565b820191906000526020600020905b81548152906001019060200180831161171e57829003601f168201915b505050505088848151811061175357611752614727565b5b602002602001018190525080600301805461176d90614b5b565b80601f016020809104026020016040519081016040528092919081815260200182805461179990614b5b565b80156117e65780601f106117bb576101008083540402835291602001916117e6565b820191906000526020600020905b8154815290600101906020018083116117c957829003601f168201915b50505050508784815181106117fe576117fd614727565b5b602002602001018190525080600401805461181890614b5b565b80601f016020809104026020016040519081016040528092919081815260200182805461184490614b5b565b80156118915780601f1061186657610100808354040283529160200191611891565b820191906000526020600020905b81548152906001019060200180831161187457829003601f168201915b50505050508684815181106118a9576118a8614727565b5b602002602001018190525080600501548584815181106118cc576118cb614727565b5b60200260200101818152505082806118e390614756565b9350505080806118f290614756565b9150506115ec565b5050509295509295509295565b8160076000838152602001908152602001600020541461195c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195390614ce7565b60405180910390fd5b6000611972826004612ecd90919063ffffffff16565b90508060050160049054906101000a900463ffffffff1663ffffffff164210156119d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119c890614d79565b60405180910390fd5b60006119e7846001612e3590919063ffffffff16565b90508060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611a9657508160020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611ad5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611acc90614e31565b60405180910390fd5b8060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415611ba1578060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc83600601549081150290604051600060405180830381858888f19350505050158015611b9b573d6000803e3d6000fd5b50611d1b565b8160020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415611d1a576000611c31600a611c233a600a8760060154611c159190614e80565b61346d90919063ffffffff16565b61346d90919063ffffffff16565b90508260020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611c9d573d6000803e3d6000fd5b508160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc828560060154611cec9190614eb1565b9081150290604051600060405180830381858888f19350505050158015611d17573d6000803e3d6000fd5b50505b5b6007600084815260200190815260200160002060009055600960008360020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081819054906101000a900463ffffffff1680929190611db59061464b565b91906101000a81548163ffffffff021916908363ffffffff16021790555050600b6000858152602001908152602001600020600081819054906101000a900463ffffffff1680929190611e079061464b565b91906101000a81548163ffffffff021916908363ffffffff16021790555050611e3a836004612f6590919063ffffffff16565b50611e4f84600161320a90919063ffffffff16565b5050505050565b6060806060806060806000600a60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900463ffffffff1663ffffffff1690508067ffffffffffffffff811115611ed357611ed26142ec565b5b604051908082528060200260200182016040528015611f015781602001602082028036833780820191505090505b5096508067ffffffffffffffff811115611f1e57611f1d6142ec565b5b604051908082528060200260200182016040528015611f4c5781602001602082028036833780820191505090505b5095508067ffffffffffffffff811115611f6957611f686142ec565b5b604051908082528060200260200182016040528015611f9c57816020015b6060815260200190600190039081611f875790505b5094508067ffffffffffffffff811115611fb957611fb86142ec565b5b604051908082528060200260200182016040528015611fec57816020015b6060815260200190600190039081611fd75790505b5093508067ffffffffffffffff811115612009576120086142ec565b5b60405190808252806020026020018201604052801561203c57816020015b60608152602001906001900390816120275790505b5092508067ffffffffffffffff811115612059576120586142ec565b5b6040519080825280602002602001820160405280156120875781602001602082028036833780820191505090505b5091506000805b600160000180549050811015612402576000600160000182815481106120b7576120b6614727565b5b906000526020600020906006020190508a73ffffffffffffffffffffffffffffffffffffffff168160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461212457506123ef565b80600001548a848151811061213c5761213b614727565b5b6020026020010181815250508060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168984815181106121805761217f614727565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508060020180546121c990614b5b565b80601f01602080910402602001604051908101604052809291908181526020018280546121f590614b5b565b80156122425780601f1061221757610100808354040283529160200191612242565b820191906000526020600020905b81548152906001019060200180831161222557829003601f168201915b505050505088848151811061225a57612259614727565b5b602002602001018190525080600301805461227490614b5b565b80601f01602080910402602001604051908101604052809291908181526020018280546122a090614b5b565b80156122ed5780601f106122c2576101008083540402835291602001916122ed565b820191906000526020600020905b8154815290600101906020018083116122d057829003601f168201915b505050505087848151811061230557612304614727565b5b602002602001018190525080600401805461231f90614b5b565b80601f016020809104026020016040519081016040528092919081815260200182805461234b90614b5b565b80156123985780601f1061236d57610100808354040283529160200191612398565b820191906000526020600020905b81548152906001019060200180831161237b57829003601f168201915b50505050508684815181106123b0576123af614727565b5b602002602001018190525080600501548584815181106123d3576123d2614727565b5b60200260200101818152505082806123ea90614756565b935050505b80806123fa90614756565b91505061208e565b50505091939550919395565b6000600a600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900463ffffffff1663ffffffff16106124a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161249f90614f7d565b60405180910390fd5b8263ffffffff168263ffffffff161180156124d65750610e1083836124cd9190614f9d565b63ffffffff1610155b612515576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250c9061508f565b60405180910390fd5b428363ffffffff1611801561253d575061a8c0428463ffffffff1661253a9190614eb1565b10155b61257c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161257390615147565b60405180910390fd5b600a600b600088815260200190815260200160002060009054906101000a900463ffffffff1663ffffffff16106125e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125df906149bb565b60405180910390fd5b60006125fe876001612e3590919063ffffffff16565b90508060050154341015612647576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161263e906151d9565b60405180910390fd5b6126516003613486565b600061265d600361349c565b905060006040518061010001604052808381526020018a81526020013373ffffffffffffffffffffffffffffffffffffffff1681526020018981526020018881526020018763ffffffff1681526020018663ffffffff1681526020013481525090506126d5828260046134aa9092919063ffffffff16565b612714576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161270b90615245565b60405180910390fd5b886006600084815260200190815260200160002081905550600c60008a8152602001908152602001600020600081819054906101000a900463ffffffff168092919061275f90614a6d565b91906101000a81548163ffffffff021916908363ffffffff16021790555050600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081819054906101000a900463ffffffff16809291906127dd90614a6d565b91906101000a81548163ffffffff021916908363ffffffff16021790555050887ff2c4fd593196bf9bbf9c80225837e14dcdd5a1f789df2a341a3f4d7181d4af418360405161282c919061423c565b60405180910390a281935050505095945050505050565b6060806060806060806000600960008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900463ffffffff1663ffffffff1690508067ffffffffffffffff8111156128c0576128bf6142ec565b5b6040519080825280602002602001820160405280156128ee5781602001602082028036833780820191505090505b5096508067ffffffffffffffff81111561290b5761290a6142ec565b5b6040519080825280602002602001820160405280156129395781602001602082028036833780820191505090505b5095508067ffffffffffffffff811115612956576129556142ec565b5b6040519080825280602002602001820160405280156129845781602001602082028036833780820191505090505b5094508067ffffffffffffffff8111156129a1576129a06142ec565b5b6040519080825280602002602001820160405280156129cf5781602001602082028036833780820191505090505b5093508067ffffffffffffffff8111156129ec576129eb6142ec565b5b604051908082528060200260200182016040528015612a1a5781602001602082028036833780820191505090505b5092508067ffffffffffffffff811115612a3757612a366142ec565b5b604051908082528060200260200182016040528015612a655781602001602082028036833780820191505090505b5091506000805b600460000180549050811015612c5857600060046000018281548110612a9557612a94614727565b5b906000526020600020906007020190508a73ffffffffffffffffffffffffffffffffffffffff168160020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612b025750612c45565b80600001548a8481518110612b1a57612b19614727565b5b6020026020010181815250508060010154898481518110612b3e57612b3d614727565b5b6020026020010181815250508060030154888481518110612b6257612b61614727565b5b6020026020010181815250508060050160009054906101000a900463ffffffff16878481518110612b9657612b95614727565b5b602002602001019063ffffffff16908163ffffffff16815250508060050160049054906101000a900463ffffffff16868481518110612bd857612bd7614727565b5b602002602001019063ffffffff16908163ffffffff1681525050806001015460076000836000015481526020019081526020016000205414858481518110612c2357612c22614727565b5b6020026020010190151590811515815250508280612c4090614756565b935050505b8080612c5090614756565b915050612a6c565b50505091939550919395565b6000600a8060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900463ffffffff1663ffffffff1610612cfd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cf490615323565b60405180910390fd5b612d076000613486565b6000612d13600061349c565b905060006040518060c001604052808381526020013373ffffffffffffffffffffffffffffffffffffffff168152602001888152602001878152602001868152602001858152509050612d72828260016135e79092919063ffffffff16565b50600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081819054906101000a900463ffffffff1680929190612dd290614a6d565b91906101000a81548163ffffffff021916908363ffffffff160217905550507f7953a3310142a9a0726ec6fd5129a712fff3b30a59304c3489524b0e6cffc52982604051612e20919061423c565b60405180910390a18192505050949350505050565b6000808360010160008481526020019081526020016000205490506000811415612e94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e8b906153b5565b60405180910390fd5b83600001600182612ea59190614eb1565b81548110612eb657612eb5614727565b5b906000526020600020906006020191505092915050565b6000808360010160008481526020019081526020016000205490506000811415612f2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f2390615421565b60405180910390fd5b83600001600182612f3d9190614eb1565b81548110612f4e57612f4d614727565b5b906000526020600020906007020191505092915050565b600080836001016000848152602001908152602001600020549050600081146131fe576000600182612f979190614eb1565b9050600060018660000180549050612faf9190614eb1565b905081811461312f576000866000018281548110612fd057612fcf614727565b5b9060005260206000209060070201905080876000018481548110612ff757612ff6614727565b5b906000526020600020906007020160008201548160000155600182015481600101556002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060038201548160030155600482015481600401556005820160009054906101000a900463ffffffff168160050160006101000a81548163ffffffff021916908363ffffffff1602179055506005820160049054906101000a900463ffffffff168160050160046101000a81548163ffffffff021916908363ffffffff16021790555060068201548160060155905050828760010160008360000154815260200190815260200160002081905550505b8560000180548061314357613142615441565b5b600190038181906000526020600020906007020160008082016000905560018201600090556002820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600382016000905560048201600090556005820160006101000a81549063ffffffff02191690556005820160046101000a81549063ffffffff02191690556006820160009055505090558560010160008681526020019081526020016000206000905560019350505050613204565b60009150505b92915050565b6000808360010160008481526020019081526020016000205490506000811461346157600060018261323c9190614eb1565b90506000600186600001805490506132549190614eb1565b90508181146133a857600086600001828154811061327557613274614727565b5b906000526020600020906006020190508087600001848154811061329c5761329b614727565b5b9060005260206000209060060201600082015481600001556001820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600282018160020190805461332f90614b5b565b61333a929190613755565b50600382018160030190805461334f90614b5b565b61335a929190613755565b50600482018160040190805461336f90614b5b565b61337a929190613755565b5060058201548160050155905050828760010160008360000154815260200190815260200160002081905550505b856000018054806133bc576133bb615441565b5b60019003818190600052602060002090600602016000808201600090556001820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905560028201600061341091906137e2565b60038201600061342091906137e2565b60048201600061343091906137e2565b6005820160009055505090558560010160008681526020019081526020016000206000905560019350505050613467565b60009150505b92915050565b600081831061347c578161347e565b825b905092915050565b6001816000016000828254019250508190555050565b600081600001549050919050565b60006134b6848461370f565b6135db5783600001829080600181540180825580915050600190039060005260206000209060070201600090919091909150600082015181600001556020820151816001015560408201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550606082015181600301556080820151816004015560a08201518160050160006101000a81548163ffffffff021916908363ffffffff16021790555060c08201518160050160046101000a81548163ffffffff021916908363ffffffff16021790555060e082015181600601555050836000018054905084600101600085815260200190815260200160002081905550600190506135e0565b600090505b9392505050565b60006135f38484613732565b61370357836000018290806001815401808255809150506001900390600052602060002090600602016000909190919091506000820151816000015560208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506040820151816002019080519060200190613692929190613822565b5060608201518160030190805190602001906136af929190613822565b5060808201518160040190805190602001906136cc929190613822565b5060a08201518160050155505083600001805490508460010160008581526020019081526020016000208190555060019050613708565b600090505b9392505050565b600080836001016000848152602001908152602001600020541415905092915050565b600080836001016000848152602001908152602001600020541415905092915050565b82805461376190614b5b565b90600052602060002090601f01602090048101928261378357600085556137d1565b82601f1061379457805485556137d1565b828001600101855582156137d157600052602060002091601f016020900482015b828111156137d05782548255916001019190600101906137b5565b5b5090506137de91906138a8565b5090565b5080546137ee90614b5b565b6000825580601f10613800575061381f565b601f01602090049060005260206000209081019061381e91906138a8565b5b50565b82805461382e90614b5b565b90600052602060002090601f0160209004810192826138505760008555613897565b82601f1061386957805160ff1916838001178555613897565b82800160010185558215613897579182015b8281111561389657825182559160200191906001019061387b565b5b5090506138a491906138a8565b5090565b5b808211156138c15760008160009055506001016138a9565b5090565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b6138ec816138d9565b81146138f757600080fd5b50565b600081359050613909816138e3565b92915050565b60008060408385031215613926576139256138cf565b5b6000613934858286016138fa565b9250506020613945858286016138fa565b9150509250929050565b600060208284031215613965576139646138cf565b5b6000613973848285016138fa565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6139b1816138d9565b82525050565b60006139c383836139a8565b60208301905092915050565b6000602082019050919050565b60006139e78261397c565b6139f18185613987565b93506139fc83613998565b8060005b83811015613a2d578151613a1488826139b7565b9750613a1f836139cf565b925050600181019050613a00565b5085935050505092915050565b60006020820190508181036000830152613a5481846139dc565b905092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000819050919050565b613a9b81613a88565b82525050565b6000613aad8383613a92565b60208301905092915050565b6000602082019050919050565b6000613ad182613a5c565b613adb8185613a67565b9350613ae683613a78565b8060005b83811015613b17578151613afe8882613aa1565b9750613b0983613ab9565b925050600181019050613aea565b5085935050505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600063ffffffff82169050919050565b613b6981613b50565b82525050565b6000613b7b8383613b60565b60208301905092915050565b6000602082019050919050565b6000613b9f82613b24565b613ba98185613b2f565b9350613bb483613b40565b8060005b83811015613be5578151613bcc8882613b6f565b9750613bd783613b87565b925050600181019050613bb8565b5085935050505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b613c3381613c1e565b82525050565b6000613c458383613c2a565b60208301905092915050565b6000602082019050919050565b6000613c6982613bf2565b613c738185613bfd565b9350613c7e83613c0e565b8060005b83811015613caf578151613c968882613c39565b9750613ca183613c51565b925050600181019050613c82565b5085935050505092915050565b600060e0820190508181036000830152613cd6818a6139dc565b90508181036020830152613cea81896139dc565b90508181036040830152613cfe8188613ac6565b90508181036060830152613d128187613ac6565b90508181036080830152613d268186613b94565b905081810360a0830152613d3a8185613b94565b905081810360c0830152613d4e8184613c5e565b905098975050505050505050565b613d65816138d9565b82525050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613d9682613d6b565b9050919050565b613da681613d8b565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613de6578082015181840152602081019050613dcb565b83811115613df5576000848401525b50505050565b6000601f19601f8301169050919050565b6000613e1782613dac565b613e218185613db7565b9350613e31818560208601613dc8565b613e3a81613dfb565b840191505092915050565b600060c082019050613e5a6000830189613d5c565b613e676020830188613d9d565b8181036040830152613e798187613e0c565b90508181036060830152613e8d8186613e0c565b90508181036080830152613ea18185613e0c565b9050613eb060a0830184613d5c565b979650505050505050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613ef081613d8b565b82525050565b6000613f028383613ee7565b60208301905092915050565b6000602082019050919050565b6000613f2682613ebb565b613f308185613ec6565b9350613f3b83613ed7565b8060005b83811015613f6c578151613f538882613ef6565b9750613f5e83613f0e565b925050600181019050613f3f565b5085935050505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600082825260208201905092915050565b6000613fc182613dac565b613fcb8185613fa5565b9350613fdb818560208601613dc8565b613fe481613dfb565b840191505092915050565b6000613ffb8383613fb6565b905092915050565b6000602082019050919050565b600061401b82613f79565b6140258185613f84565b93508360208202850161403785613f95565b8060005b8581101561407357848403895281516140548582613fef565b945061405f83614003565b925060208a0199505060018101905061403b565b50829750879550505050505092915050565b600060c082019050818103600083015261409f81896139dc565b905081810360208301526140b38188613f1b565b905081810360408301526140c78187614010565b905081810360608301526140db8186614010565b905081810360808301526140ef8185614010565b905081810360a083015261410381846139dc565b9050979650505050505050565b61411981613d8b565b811461412457600080fd5b50565b60008135905061413681614110565b92915050565b600060208284031215614152576141516138cf565b5b600061416084828501614127565b91505092915050565b61417281613a88565b811461417d57600080fd5b50565b60008135905061418f81614169565b92915050565b61419e81613b50565b81146141a957600080fd5b50565b6000813590506141bb81614195565b92915050565b600080600080600060a086880312156141dd576141dc6138cf565b5b60006141eb888289016138fa565b95505060206141fc88828901614180565b945050604061420d88828901614180565b935050606061421e888289016141ac565b925050608061422f888289016141ac565b9150509295509295909350565b60006020820190506142516000830184613d5c565b92915050565b600060c082019050818103600083015261427181896139dc565b9050818103602083015261428581886139dc565b905081810360408301526142998187613ac6565b905081810360608301526142ad8186613b94565b905081810360808301526142c18185613b94565b905081810360a08301526142d58184613c5e565b9050979650505050505050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61432482613dfb565b810181811067ffffffffffffffff82111715614343576143426142ec565b5b80604052505050565b60006143566138c5565b9050614362828261431b565b919050565b600067ffffffffffffffff821115614382576143816142ec565b5b61438b82613dfb565b9050602081019050919050565b82818337600083830152505050565b60006143ba6143b584614367565b61434c565b9050828152602081018484840111156143d6576143d56142e7565b5b6143e1848285614398565b509392505050565b600082601f8301126143fe576143fd6142e2565b5b813561440e8482602086016143a7565b91505092915050565b60008060008060808587031215614431576144306138cf565b5b600085013567ffffffffffffffff81111561444f5761444e6138d4565b5b61445b878288016143e9565b945050602085013567ffffffffffffffff81111561447c5761447b6138d4565b5b614488878288016143e9565b935050604085013567ffffffffffffffff8111156144a9576144a86138d4565b5b6144b5878288016143e9565b92505060606144c6878288016138fa565b91505092959194509250565b7f4164766572746973696e6720666f72207468652074617267657420696e76656e60008201527f746f7279206973206e6f742063757272656e746c7920756e646572207265766960208201527f6577000000000000000000000000000000000000000000000000000000000000604082015250565b6000614554604283613db7565b915061455f826144d2565b606082019050919050565b6000602082019050818103600083015261458381614547565b9050919050565b7f4f6e6c7920696e76656e746f7279206f776e6572732063616e2072656a65637460008201527f206164732e000000000000000000000000000000000000000000000000000000602082015250565b60006145e6602583613db7565b91506145f18261458a565b604082019050919050565b60006020820190508181036000830152614615816145d9565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061465682613b50565b9150600082141561466a5761466961461c565b5b600182039050919050565b600081905092915050565b50565b6000614690600083614675565b915061469b82614680565b600082019050919050565b60006146b182614683565b9150819050919050565b7f4661696c656420746f207061796261636b206c6f636b2076616c756573000000600082015250565b60006146f1601d83613db7565b91506146fc826146bb565b602082019050919050565b60006020820190508181036000830152614720816146e4565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000614761826138d9565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156147945761479361461c565b5b600182019050919050565b7f596f752063616e27742064656c65746520616e20696e76656e746f727920696660008201527f2074686572652061726520616473206c65667420696e2074686520696e76656e60208201527f746f72792e000000000000000000000000000000000000000000000000000000604082015250565b6000614821604583613db7565b915061482c8261479f565b606082019050919050565b6000602082019050818103600083015261485081614814565b9050919050565b7f4f6e6c7920696e76656e746f7279206f776e6572732063616e2072656d6f766560008201527f20696e76656e746f72792e000000000000000000000000000000000000000000602082015250565b60006148b3602b83613db7565b91506148be82614857565b604082019050919050565b600060208201905081810360008301526148e2816148a6565b9050919050565b60006148f482613b50565b91506148ff83613b50565b92508263ffffffff038211156149185761491761461c565b5b828201905092915050565b7f457863656564656420746865206c696d6974206f66206164732074686174206360008201527f616e2062652064656c69766572656420746f20796f757220696e76656e746f7260208201527f792e000000000000000000000000000000000000000000000000000000000000604082015250565b60006149a5604283613db7565b91506149b082614923565b606082019050919050565b600060208201905081810360008301526149d481614998565b9050919050565b7f4f6e6c7920696e76656e746f7279206f776e6572732063616e20617070726f7660008201527f65206164732e0000000000000000000000000000000000000000000000000000602082015250565b6000614a37602683613db7565b9150614a42826149db565b604082019050919050565b60006020820190508181036000830152614a6681614a2a565b9050919050565b6000614a7882613b50565b915063ffffffff821415614a8f57614a8e61461c565b5b600182019050919050565b7f72657175657374656420696e76656e746f727920696420697320696e76616c6960008201527f6400000000000000000000000000000000000000000000000000000000000000602082015250565b6000614af6602183613db7565b9150614b0182614a9a565b604082019050919050565b60006020820190508181036000830152614b2581614ae9565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614b7357607f821691505b60208210811415614b8757614b86614b2c565b5b50919050565b7f496e76656e746f72792063616e20626520726574726965766520757020746f2060008201527f3330206974656d73206174207468652073616d652074696d6500000000000000602082015250565b6000614be9603983613db7565b9150614bf482614b8d565b604082019050919050565b60006020820190508181036000830152614c1881614bdc565b9050919050565b6000614c2a826138d9565b9150614c35836138d9565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614c6a57614c6961461c565b5b828201905092915050565b7f4f6e6c792061647320746861742061726520696e2074686520696e76656e746f60008201527f72792063616e20626520636f6c6c65637465642e000000000000000000000000602082015250565b6000614cd1603483613db7565b9150614cdc82614c75565b604082019050919050565b60006020820190508181036000830152614d0081614cc4565b9050919050565b7f4f6e6c79206164732074686174206861766520657870697265642063616e206260008201527f6520636f6c6c65637465642e0000000000000000000000000000000000000000602082015250565b6000614d63602c83613db7565b9150614d6e82614d07565b604082019050919050565b60006020820190508181036000830152614d9281614d56565b9050919050565b7f4f6e6c7920746865206f776e6572206f662074686520696e76656e746f72792060008201527f6f7220746865206f776e6572206f66207468652061642063616e20636f6c6c6560208201527f6374207468652061642e00000000000000000000000000000000000000000000604082015250565b6000614e1b604a83613db7565b9150614e2682614d99565b606082019050919050565b60006020820190508181036000830152614e4a81614e0e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614e8b826138d9565b9150614e96836138d9565b925082614ea657614ea5614e51565b5b828204905092915050565b6000614ebc826138d9565b9150614ec7836138d9565b925082821015614eda57614ed961461c565b5b828203905092915050565b7f596f752068617665207265616368656420746865206d6178696d756d206e756d60008201527f626572206f662061647320796f752063616e206372656174652e20596f75206e60208201527f65656420746f2072656d6f766520756e77616e746564206164732e0000000000604082015250565b6000614f67605b83613db7565b9150614f7282614ee5565b606082019050919050565b60006020820190508181036000830152614f9681614f5a565b9050919050565b6000614fa882613b50565b9150614fb383613b50565b925082821015614fc657614fc561461c565b5b828203905092915050565b7f5468652064656c69766572792073746172742074696d65206d7573742062652060008201527f6265666f7265207468652064656c697665727920656e642074696d652c20616e60208201527f642061206d696e696d756d2064656c697665727920706572696f64206d75737460408201527f206265207365742e000000000000000000000000000000000000000000000000606082015250565b6000615079606883613db7565b915061508482614fd1565b608082019050919050565b600060208201905081810360008301526150a88161506c565b9050919050565b7f4974206973206e656365737361727920746f20616c6c6f77206120636572746160008201527f696e20616d6f756e74206f662074696d65206265666f7265207468652064697360208201527f747269627574696f6e207374617274732e000000000000000000000000000000604082015250565b6000615131605183613db7565b915061513c826150af565b606082019050919050565b6000602082019050818103600083015261516081615124565b9050919050565b7f6164207072696365206d757374206265206c6172676572207468616e20666c6f60008201527f6f722070726963652073657420627920696e76656e746f7279206f776e65722e602082015250565b60006151c3604083613db7565b91506151ce82615167565b604082019050919050565b600060208201905081810360008301526151f2816151b6565b9050919050565b7f616473206d75737420626520616464656420636f72726563746c790000000000600082015250565b600061522f601b83613db7565b915061523a826151f9565b602082019050919050565b6000602082019050818103600083015261525e81615222565b9050919050565b7f596f752068617665207265616368656420746865206d6178696d756d206e756d60008201527f626572206f6620696e76656e746f727920796f752063616e206372656174652e60208201527f20596f75206e65656420746f2072656d6f766520756e77616e74656420696e7660408201527f656e746f72792e00000000000000000000000000000000000000000000000000606082015250565b600061530d606783613db7565b915061531882615265565b608082019050919050565b6000602082019050818103600083015261533c81615300565b9050919050565b7f72657175657374656420696e76656e746f7279496420646f6573206e6f74206560008201527f7869737400000000000000000000000000000000000000000000000000000000602082015250565b600061539f602483613db7565b91506153aa82615343565b604082019050919050565b600060208201905081810360008301526153ce81615392565b9050919050565b7f726571756573746564206164496420646f6573206e6f74206578697374000000600082015250565b600061540b601d83613db7565b9150615416826153d5565b602082019050919050565b6000602082019050818103600083015261543a816153fe565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea26469706673582212206f8b745fe9824bb14875d1358646382777625ad095923de78394fbd13823317064736f6c634300080b0033", "deployedBytecode": "0x6080604052600436106100a75760003560e01c806372af45561161006457806372af4556146101e957806383739c301461022b578063d68fb2fc14610254578063e815c06e14610296578063eba58b3e146102c6578063fd58ac9c14610308576100a7565b806304216974146100ac57806324bfee7d146100d55780632e9d3ffb1461011257806331eae2611461013b578063518de44d1461017e5780635b298d32146101a7575b600080fd5b3480156100b857600080fd5b506100d360048036038101906100ce919061390f565b610345565b005b3480156100e157600080fd5b506100fc60048036038101906100f7919061394f565b61069b565b6040516101099190613a3a565b60405180910390f35b34801561011e57600080fd5b506101396004803603810190610134919061394f565b61086b565b005b34801561014757600080fd5b50610162600480360381019061015d919061394f565b610a18565b6040516101759796959493929190613cbc565b60405180910390f35b34801561018a57600080fd5b506101a560048036038101906101a0919061390f565b610e62565b005b3480156101b357600080fd5b506101ce60048036038101906101c9919061394f565b61111c565b6040516101e096959493929190613e45565b60405180910390f35b3480156101f557600080fd5b50610210600480360381019061020b919061390f565b61136f565b60405161022296959493929190614085565b60405180910390f35b34801561023757600080fd5b50610252600480360381019061024d919061390f565b611907565b005b34801561026057600080fd5b5061027b6004803603810190610276919061413c565b611e56565b60405161028d96959493929190614085565b60405180910390f35b6102b060048036038101906102ab91906141c1565b61240e565b6040516102bd919061423c565b60405180910390f35b3480156102d257600080fd5b506102ed60048036038101906102e8919061413c565b612843565b6040516102ff96959493929190614257565b60405180910390f35b34801561031457600080fd5b5061032f600480360381019061032a9190614417565b612c64565b60405161033c919061423c565b60405180910390f35b8160066000838152602001908152602001600020541461039a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103919061456a565b60405180910390fd5b60006103b0836001612e3590919063ffffffff16565b90503373ffffffffffffffffffffffffffffffffffffffff168160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610444576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161043b906145fc565b60405180910390fd5b6006600083815260200190815260200160002060009055600c6000848152602001908152602001600020600081819054906101000a900463ffffffff168092919061048e9061464b565b91906101000a81548163ffffffff021916908363ffffffff1602179055505060006104c3836004612ecd90919063ffffffff16565b9050600960008260020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081819054906101000a900463ffffffff16809291906105489061464b565b91906101000a81548163ffffffff021916908363ffffffff1602179055505060008160020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008260060154905060008273ffffffffffffffffffffffffffffffffffffffff16826040516105bf906146a6565b60006040518083038185875af1925050503d80600081146105fc576040519150601f19603f3d011682016040523d82523d6000602084013e610601565b606091505b5050905080610645576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161063c90614707565b60405180910390fd5b610659866004612f6590919063ffffffff16565b50857fec59ec7badaba136e5e5c61eb40f664c254682415c2e42cad5bd1f46aa90f8dd8860405161068a919061423c565b60405180910390a250505050505050565b60606000805b600460000180549050811015610744576000600460000182815481106106ca576106c9614727565b5b9060005260206000209060070201905084600760008360000154815260200190815260200160002054146106fe5750610731565b428160050160049054906101000a900463ffffffff1663ffffffff16111561072f57828061072b90614756565b9350505b505b808061073c90614756565b9150506106a1565b5060008167ffffffffffffffff811115610761576107606142ec565b5b60405190808252806020026020018201604052801561078f5781602001602082028036833780820191505090505b5090506000915060005b600460000180549050811015610860576000600460000182815481106107c2576107c1614727565b5b9060005260206000209060070201905085600760008360000154815260200190815260200160002054146107f6575061084d565b428160050160049054906101000a900463ffffffff1663ffffffff16111561084b5780600001548385815181106108305761082f614727565b5b602002602001018181525050838061084790614756565b9450505b505b808061085890614756565b915050610799565b508092505050919050565b6000600b600083815260200190815260200160002060009054906101000a900463ffffffff1663ffffffff16146108d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108ce90614837565b60405180910390fd5b60006108ed826001612e3590919063ffffffff16565b90503373ffffffffffffffffffffffffffffffffffffffff168160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610981576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610978906148c9565b60405180910390fd5b61099582600161320a90919063ffffffff16565b50600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081819054906101000a900463ffffffff16809291906109f59061464b565b91906101000a81548163ffffffff021916908363ffffffff160217905550505050565b60608060608060608060606000600c60008a815260200190815260200160002060009054906101000a900463ffffffff16600b60008b815260200190815260200160002060009054906101000a900463ffffffff16610a7791906148e9565b63ffffffff1690508067ffffffffffffffff811115610a9957610a986142ec565b5b604051908082528060200260200182016040528015610ac75781602001602082028036833780820191505090505b5097508067ffffffffffffffff811115610ae457610ae36142ec565b5b604051908082528060200260200182016040528015610b125781602001602082028036833780820191505090505b5096508067ffffffffffffffff811115610b2f57610b2e6142ec565b5b604051908082528060200260200182016040528015610b5d5781602001602082028036833780820191505090505b5095508067ffffffffffffffff811115610b7a57610b796142ec565b5b604051908082528060200260200182016040528015610ba85781602001602082028036833780820191505090505b5094508067ffffffffffffffff811115610bc557610bc46142ec565b5b604051908082528060200260200182016040528015610bf35781602001602082028036833780820191505090505b5093508067ffffffffffffffff811115610c1057610c0f6142ec565b5b604051908082528060200260200182016040528015610c3e5781602001602082028036833780820191505090505b5092508067ffffffffffffffff811115610c5b57610c5a6142ec565b5b604051908082528060200260200182016040528015610c895781602001602082028036833780820191505090505b5091506000805b600460000180549050811015610e5457600060046000018281548110610cb957610cb8614727565b5b906000526020600020906007020190508b816001015414610cda5750610e41565b80600001548b8481518110610cf257610cf1614727565b5b60200260200101818152505080600101548a8481518110610d1657610d15614727565b5b6020026020010181815250508060030154898481518110610d3a57610d39614727565b5b6020026020010181815250508060040154888481518110610d5e57610d5d614727565b5b6020026020010181815250508060050160009054906101000a900463ffffffff16878481518110610d9257610d91614727565b5b602002602001019063ffffffff16908163ffffffff16815250508060050160049054906101000a900463ffffffff16868481518110610dd457610dd3614727565b5b602002602001019063ffffffff16908163ffffffff1681525050806001015460076000836000015481526020019081526020016000205414858481518110610e1f57610e1e614727565b5b6020026020010190151590811515815250508280610e3c90614756565b935050505b8080610e4c90614756565b915050610c90565b505050919395979092949650565b600a600b600084815260200190815260200160002060009054906101000a900463ffffffff1663ffffffff1610610ece576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec5906149bb565b60405180910390fd5b81600660008381526020019081526020016000205414610f23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1a9061456a565b60405180910390fd5b6000610f39836001612e3590919063ffffffff16565b90503373ffffffffffffffffffffffffffffffffffffffff168160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610fcd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc490614a4d565b60405180910390fd5b6000610fe3836004612ecd90919063ffffffff16565b90508060050160009054906101000a900463ffffffff1663ffffffff16421061100b57600080fd5b6006600084815260200190815260200160002060009055600b6000858152602001908152602001600020600081819054906101000a900463ffffffff168092919061105590614a6d565b91906101000a81548163ffffffff021916908363ffffffff16021790555050600c6000858152602001908152602001600020600081819054906101000a900463ffffffff16809291906110a79061464b565b91906101000a81548163ffffffff021916908363ffffffff16021790555050836007600085815260200190815260200160002081905550827f01bc73444a1de7fde87f242676d52ebb9e3d193f9dd4837e1de58bc79e4210328560405161110e919061423c565b60405180910390a250505050565b600080606080606060008061113b886001612e3590919063ffffffff16565b905087816000015414611183576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117a90614b0c565b60405180910390fd5b806000015496508060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1695508060020180546111c090614b5b565b80601f01602080910402602001604051908101604052809291908181526020018280546111ec90614b5b565b80156112395780601f1061120e57610100808354040283529160200191611239565b820191906000526020600020905b81548152906001019060200180831161121c57829003601f168201915b5050505050945080600301805461124f90614b5b565b80601f016020809104026020016040519081016040528092919081815260200182805461127b90614b5b565b80156112c85780601f1061129d576101008083540402835291602001916112c8565b820191906000526020600020905b8154815290600101906020018083116112ab57829003601f168201915b505050505093508060040180546112de90614b5b565b80601f016020809104026020016040519081016040528092919081815260200182805461130a90614b5b565b80156113575780601f1061132c57610100808354040283529160200191611357565b820191906000526020600020905b81548152906001019060200180831161133a57829003601f168201915b50505050509250806005015491505091939550919395565b606080606080606080600087118015611389575060328711155b6113c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113bf90614bff565b60405180910390fd5b600088101580156113e157506001600001805490508811155b6113ea57600080fd5b6000611412888a6113fb9190614c1f565b60016000018054905061346d90919063ffffffff16565b90508067ffffffffffffffff81111561142e5761142d6142ec565b5b60405190808252806020026020018201604052801561145c5781602001602082028036833780820191505090505b5096508067ffffffffffffffff811115611479576114786142ec565b5b6040519080825280602002602001820160405280156114a75781602001602082028036833780820191505090505b5095508067ffffffffffffffff8111156114c4576114c36142ec565b5b6040519080825280602002602001820160405280156114f757816020015b60608152602001906001900390816114e25790505b5094508067ffffffffffffffff811115611514576115136142ec565b5b60405190808252806020026020018201604052801561154757816020015b60608152602001906001900390816115325790505b5093508067ffffffffffffffff811115611564576115636142ec565b5b60405190808252806020026020018201604052801561159757816020015b60608152602001906001900390816115825790505b5092508067ffffffffffffffff8111156115b4576115b36142ec565b5b6040519080825280602002602001820160405280156115e25781602001602082028036833780820191505090505b5091506000808a90505b828110156118fa5760006001600001828154811061160d5761160c614727565b5b9060005260206000209060060201905080600001548a848151811061163557611634614727565b5b6020026020010181815250508060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1689848151811061167957611678614727565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508060020180546116c290614b5b565b80601f01602080910402602001604051908101604052809291908181526020018280546116ee90614b5b565b801561173b5780601f106117105761010080835404028352916020019161173b565b820191906000526020600020905b81548152906001019060200180831161171e57829003601f168201915b505050505088848151811061175357611752614727565b5b602002602001018190525080600301805461176d90614b5b565b80601f016020809104026020016040519081016040528092919081815260200182805461179990614b5b565b80156117e65780601f106117bb576101008083540402835291602001916117e6565b820191906000526020600020905b8154815290600101906020018083116117c957829003601f168201915b50505050508784815181106117fe576117fd614727565b5b602002602001018190525080600401805461181890614b5b565b80601f016020809104026020016040519081016040528092919081815260200182805461184490614b5b565b80156118915780601f1061186657610100808354040283529160200191611891565b820191906000526020600020905b81548152906001019060200180831161187457829003601f168201915b50505050508684815181106118a9576118a8614727565b5b602002602001018190525080600501548584815181106118cc576118cb614727565b5b60200260200101818152505082806118e390614756565b9350505080806118f290614756565b9150506115ec565b5050509295509295509295565b8160076000838152602001908152602001600020541461195c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195390614ce7565b60405180910390fd5b6000611972826004612ecd90919063ffffffff16565b90508060050160049054906101000a900463ffffffff1663ffffffff164210156119d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119c890614d79565b60405180910390fd5b60006119e7846001612e3590919063ffffffff16565b90508060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611a9657508160020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611ad5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611acc90614e31565b60405180910390fd5b8060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415611ba1578060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc83600601549081150290604051600060405180830381858888f19350505050158015611b9b573d6000803e3d6000fd5b50611d1b565b8160020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415611d1a576000611c31600a611c233a600a8760060154611c159190614e80565b61346d90919063ffffffff16565b61346d90919063ffffffff16565b90508260020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611c9d573d6000803e3d6000fd5b508160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc828560060154611cec9190614eb1565b9081150290604051600060405180830381858888f19350505050158015611d17573d6000803e3d6000fd5b50505b5b6007600084815260200190815260200160002060009055600960008360020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081819054906101000a900463ffffffff1680929190611db59061464b565b91906101000a81548163ffffffff021916908363ffffffff16021790555050600b6000858152602001908152602001600020600081819054906101000a900463ffffffff1680929190611e079061464b565b91906101000a81548163ffffffff021916908363ffffffff16021790555050611e3a836004612f6590919063ffffffff16565b50611e4f84600161320a90919063ffffffff16565b5050505050565b6060806060806060806000600a60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900463ffffffff1663ffffffff1690508067ffffffffffffffff811115611ed357611ed26142ec565b5b604051908082528060200260200182016040528015611f015781602001602082028036833780820191505090505b5096508067ffffffffffffffff811115611f1e57611f1d6142ec565b5b604051908082528060200260200182016040528015611f4c5781602001602082028036833780820191505090505b5095508067ffffffffffffffff811115611f6957611f686142ec565b5b604051908082528060200260200182016040528015611f9c57816020015b6060815260200190600190039081611f875790505b5094508067ffffffffffffffff811115611fb957611fb86142ec565b5b604051908082528060200260200182016040528015611fec57816020015b6060815260200190600190039081611fd75790505b5093508067ffffffffffffffff811115612009576120086142ec565b5b60405190808252806020026020018201604052801561203c57816020015b60608152602001906001900390816120275790505b5092508067ffffffffffffffff811115612059576120586142ec565b5b6040519080825280602002602001820160405280156120875781602001602082028036833780820191505090505b5091506000805b600160000180549050811015612402576000600160000182815481106120b7576120b6614727565b5b906000526020600020906006020190508a73ffffffffffffffffffffffffffffffffffffffff168160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461212457506123ef565b80600001548a848151811061213c5761213b614727565b5b6020026020010181815250508060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168984815181106121805761217f614727565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508060020180546121c990614b5b565b80601f01602080910402602001604051908101604052809291908181526020018280546121f590614b5b565b80156122425780601f1061221757610100808354040283529160200191612242565b820191906000526020600020905b81548152906001019060200180831161222557829003601f168201915b505050505088848151811061225a57612259614727565b5b602002602001018190525080600301805461227490614b5b565b80601f01602080910402602001604051908101604052809291908181526020018280546122a090614b5b565b80156122ed5780601f106122c2576101008083540402835291602001916122ed565b820191906000526020600020905b8154815290600101906020018083116122d057829003601f168201915b505050505087848151811061230557612304614727565b5b602002602001018190525080600401805461231f90614b5b565b80601f016020809104026020016040519081016040528092919081815260200182805461234b90614b5b565b80156123985780601f1061236d57610100808354040283529160200191612398565b820191906000526020600020905b81548152906001019060200180831161237b57829003601f168201915b50505050508684815181106123b0576123af614727565b5b602002602001018190525080600501548584815181106123d3576123d2614727565b5b60200260200101818152505082806123ea90614756565b935050505b80806123fa90614756565b91505061208e565b50505091939550919395565b6000600a600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900463ffffffff1663ffffffff16106124a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161249f90614f7d565b60405180910390fd5b8263ffffffff168263ffffffff161180156124d65750610e1083836124cd9190614f9d565b63ffffffff1610155b612515576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250c9061508f565b60405180910390fd5b428363ffffffff1611801561253d575061a8c0428463ffffffff1661253a9190614eb1565b10155b61257c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161257390615147565b60405180910390fd5b600a600b600088815260200190815260200160002060009054906101000a900463ffffffff1663ffffffff16106125e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125df906149bb565b60405180910390fd5b60006125fe876001612e3590919063ffffffff16565b90508060050154341015612647576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161263e906151d9565b60405180910390fd5b6126516003613486565b600061265d600361349c565b905060006040518061010001604052808381526020018a81526020013373ffffffffffffffffffffffffffffffffffffffff1681526020018981526020018881526020018763ffffffff1681526020018663ffffffff1681526020013481525090506126d5828260046134aa9092919063ffffffff16565b612714576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161270b90615245565b60405180910390fd5b886006600084815260200190815260200160002081905550600c60008a8152602001908152602001600020600081819054906101000a900463ffffffff168092919061275f90614a6d565b91906101000a81548163ffffffff021916908363ffffffff16021790555050600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081819054906101000a900463ffffffff16809291906127dd90614a6d565b91906101000a81548163ffffffff021916908363ffffffff16021790555050887ff2c4fd593196bf9bbf9c80225837e14dcdd5a1f789df2a341a3f4d7181d4af418360405161282c919061423c565b60405180910390a281935050505095945050505050565b6060806060806060806000600960008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900463ffffffff1663ffffffff1690508067ffffffffffffffff8111156128c0576128bf6142ec565b5b6040519080825280602002602001820160405280156128ee5781602001602082028036833780820191505090505b5096508067ffffffffffffffff81111561290b5761290a6142ec565b5b6040519080825280602002602001820160405280156129395781602001602082028036833780820191505090505b5095508067ffffffffffffffff811115612956576129556142ec565b5b6040519080825280602002602001820160405280156129845781602001602082028036833780820191505090505b5094508067ffffffffffffffff8111156129a1576129a06142ec565b5b6040519080825280602002602001820160405280156129cf5781602001602082028036833780820191505090505b5093508067ffffffffffffffff8111156129ec576129eb6142ec565b5b604051908082528060200260200182016040528015612a1a5781602001602082028036833780820191505090505b5092508067ffffffffffffffff811115612a3757612a366142ec565b5b604051908082528060200260200182016040528015612a655781602001602082028036833780820191505090505b5091506000805b600460000180549050811015612c5857600060046000018281548110612a9557612a94614727565b5b906000526020600020906007020190508a73ffffffffffffffffffffffffffffffffffffffff168160020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612b025750612c45565b80600001548a8481518110612b1a57612b19614727565b5b6020026020010181815250508060010154898481518110612b3e57612b3d614727565b5b6020026020010181815250508060030154888481518110612b6257612b61614727565b5b6020026020010181815250508060050160009054906101000a900463ffffffff16878481518110612b9657612b95614727565b5b602002602001019063ffffffff16908163ffffffff16815250508060050160049054906101000a900463ffffffff16868481518110612bd857612bd7614727565b5b602002602001019063ffffffff16908163ffffffff1681525050806001015460076000836000015481526020019081526020016000205414858481518110612c2357612c22614727565b5b6020026020010190151590811515815250508280612c4090614756565b935050505b8080612c5090614756565b915050612a6c565b50505091939550919395565b6000600a8060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900463ffffffff1663ffffffff1610612cfd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cf490615323565b60405180910390fd5b612d076000613486565b6000612d13600061349c565b905060006040518060c001604052808381526020013373ffffffffffffffffffffffffffffffffffffffff168152602001888152602001878152602001868152602001858152509050612d72828260016135e79092919063ffffffff16565b50600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081819054906101000a900463ffffffff1680929190612dd290614a6d565b91906101000a81548163ffffffff021916908363ffffffff160217905550507f7953a3310142a9a0726ec6fd5129a712fff3b30a59304c3489524b0e6cffc52982604051612e20919061423c565b60405180910390a18192505050949350505050565b6000808360010160008481526020019081526020016000205490506000811415612e94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e8b906153b5565b60405180910390fd5b83600001600182612ea59190614eb1565b81548110612eb657612eb5614727565b5b906000526020600020906006020191505092915050565b6000808360010160008481526020019081526020016000205490506000811415612f2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f2390615421565b60405180910390fd5b83600001600182612f3d9190614eb1565b81548110612f4e57612f4d614727565b5b906000526020600020906007020191505092915050565b600080836001016000848152602001908152602001600020549050600081146131fe576000600182612f979190614eb1565b9050600060018660000180549050612faf9190614eb1565b905081811461312f576000866000018281548110612fd057612fcf614727565b5b9060005260206000209060070201905080876000018481548110612ff757612ff6614727565b5b906000526020600020906007020160008201548160000155600182015481600101556002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060038201548160030155600482015481600401556005820160009054906101000a900463ffffffff168160050160006101000a81548163ffffffff021916908363ffffffff1602179055506005820160049054906101000a900463ffffffff168160050160046101000a81548163ffffffff021916908363ffffffff16021790555060068201548160060155905050828760010160008360000154815260200190815260200160002081905550505b8560000180548061314357613142615441565b5b600190038181906000526020600020906007020160008082016000905560018201600090556002820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600382016000905560048201600090556005820160006101000a81549063ffffffff02191690556005820160046101000a81549063ffffffff02191690556006820160009055505090558560010160008681526020019081526020016000206000905560019350505050613204565b60009150505b92915050565b6000808360010160008481526020019081526020016000205490506000811461346157600060018261323c9190614eb1565b90506000600186600001805490506132549190614eb1565b90508181146133a857600086600001828154811061327557613274614727565b5b906000526020600020906006020190508087600001848154811061329c5761329b614727565b5b9060005260206000209060060201600082015481600001556001820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600282018160020190805461332f90614b5b565b61333a929190613755565b50600382018160030190805461334f90614b5b565b61335a929190613755565b50600482018160040190805461336f90614b5b565b61337a929190613755565b5060058201548160050155905050828760010160008360000154815260200190815260200160002081905550505b856000018054806133bc576133bb615441565b5b60019003818190600052602060002090600602016000808201600090556001820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905560028201600061341091906137e2565b60038201600061342091906137e2565b60048201600061343091906137e2565b6005820160009055505090558560010160008681526020019081526020016000206000905560019350505050613467565b60009150505b92915050565b600081831061347c578161347e565b825b905092915050565b6001816000016000828254019250508190555050565b600081600001549050919050565b60006134b6848461370f565b6135db5783600001829080600181540180825580915050600190039060005260206000209060070201600090919091909150600082015181600001556020820151816001015560408201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550606082015181600301556080820151816004015560a08201518160050160006101000a81548163ffffffff021916908363ffffffff16021790555060c08201518160050160046101000a81548163ffffffff021916908363ffffffff16021790555060e082015181600601555050836000018054905084600101600085815260200190815260200160002081905550600190506135e0565b600090505b9392505050565b60006135f38484613732565b61370357836000018290806001815401808255809150506001900390600052602060002090600602016000909190919091506000820151816000015560208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506040820151816002019080519060200190613692929190613822565b5060608201518160030190805190602001906136af929190613822565b5060808201518160040190805190602001906136cc929190613822565b5060a08201518160050155505083600001805490508460010160008581526020019081526020016000208190555060019050613708565b600090505b9392505050565b600080836001016000848152602001908152602001600020541415905092915050565b600080836001016000848152602001908152602001600020541415905092915050565b82805461376190614b5b565b90600052602060002090601f01602090048101928261378357600085556137d1565b82601f1061379457805485556137d1565b828001600101855582156137d157600052602060002091601f016020900482015b828111156137d05782548255916001019190600101906137b5565b5b5090506137de91906138a8565b5090565b5080546137ee90614b5b565b6000825580601f10613800575061381f565b601f01602090049060005260206000209081019061381e91906138a8565b5b50565b82805461382e90614b5b565b90600052602060002090601f0160209004810192826138505760008555613897565b82601f1061386957805160ff1916838001178555613897565b82800160010185558215613897579182015b8281111561389657825182559160200191906001019061387b565b5b5090506138a491906138a8565b5090565b5b808211156138c15760008160009055506001016138a9565b5090565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b6138ec816138d9565b81146138f757600080fd5b50565b600081359050613909816138e3565b92915050565b60008060408385031215613926576139256138cf565b5b6000613934858286016138fa565b9250506020613945858286016138fa565b9150509250929050565b600060208284031215613965576139646138cf565b5b6000613973848285016138fa565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6139b1816138d9565b82525050565b60006139c383836139a8565b60208301905092915050565b6000602082019050919050565b60006139e78261397c565b6139f18185613987565b93506139fc83613998565b8060005b83811015613a2d578151613a1488826139b7565b9750613a1f836139cf565b925050600181019050613a00565b5085935050505092915050565b60006020820190508181036000830152613a5481846139dc565b905092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000819050919050565b613a9b81613a88565b82525050565b6000613aad8383613a92565b60208301905092915050565b6000602082019050919050565b6000613ad182613a5c565b613adb8185613a67565b9350613ae683613a78565b8060005b83811015613b17578151613afe8882613aa1565b9750613b0983613ab9565b925050600181019050613aea565b5085935050505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600063ffffffff82169050919050565b613b6981613b50565b82525050565b6000613b7b8383613b60565b60208301905092915050565b6000602082019050919050565b6000613b9f82613b24565b613ba98185613b2f565b9350613bb483613b40565b8060005b83811015613be5578151613bcc8882613b6f565b9750613bd783613b87565b925050600181019050613bb8565b5085935050505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b613c3381613c1e565b82525050565b6000613c458383613c2a565b60208301905092915050565b6000602082019050919050565b6000613c6982613bf2565b613c738185613bfd565b9350613c7e83613c0e565b8060005b83811015613caf578151613c968882613c39565b9750613ca183613c51565b925050600181019050613c82565b5085935050505092915050565b600060e0820190508181036000830152613cd6818a6139dc565b90508181036020830152613cea81896139dc565b90508181036040830152613cfe8188613ac6565b90508181036060830152613d128187613ac6565b90508181036080830152613d268186613b94565b905081810360a0830152613d3a8185613b94565b905081810360c0830152613d4e8184613c5e565b905098975050505050505050565b613d65816138d9565b82525050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613d9682613d6b565b9050919050565b613da681613d8b565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613de6578082015181840152602081019050613dcb565b83811115613df5576000848401525b50505050565b6000601f19601f8301169050919050565b6000613e1782613dac565b613e218185613db7565b9350613e31818560208601613dc8565b613e3a81613dfb565b840191505092915050565b600060c082019050613e5a6000830189613d5c565b613e676020830188613d9d565b8181036040830152613e798187613e0c565b90508181036060830152613e8d8186613e0c565b90508181036080830152613ea18185613e0c565b9050613eb060a0830184613d5c565b979650505050505050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613ef081613d8b565b82525050565b6000613f028383613ee7565b60208301905092915050565b6000602082019050919050565b6000613f2682613ebb565b613f308185613ec6565b9350613f3b83613ed7565b8060005b83811015613f6c578151613f538882613ef6565b9750613f5e83613f0e565b925050600181019050613f3f565b5085935050505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600082825260208201905092915050565b6000613fc182613dac565b613fcb8185613fa5565b9350613fdb818560208601613dc8565b613fe481613dfb565b840191505092915050565b6000613ffb8383613fb6565b905092915050565b6000602082019050919050565b600061401b82613f79565b6140258185613f84565b93508360208202850161403785613f95565b8060005b8581101561407357848403895281516140548582613fef565b945061405f83614003565b925060208a0199505060018101905061403b565b50829750879550505050505092915050565b600060c082019050818103600083015261409f81896139dc565b905081810360208301526140b38188613f1b565b905081810360408301526140c78187614010565b905081810360608301526140db8186614010565b905081810360808301526140ef8185614010565b905081810360a083015261410381846139dc565b9050979650505050505050565b61411981613d8b565b811461412457600080fd5b50565b60008135905061413681614110565b92915050565b600060208284031215614152576141516138cf565b5b600061416084828501614127565b91505092915050565b61417281613a88565b811461417d57600080fd5b50565b60008135905061418f81614169565b92915050565b61419e81613b50565b81146141a957600080fd5b50565b6000813590506141bb81614195565b92915050565b600080600080600060a086880312156141dd576141dc6138cf565b5b60006141eb888289016138fa565b95505060206141fc88828901614180565b945050604061420d88828901614180565b935050606061421e888289016141ac565b925050608061422f888289016141ac565b9150509295509295909350565b60006020820190506142516000830184613d5c565b92915050565b600060c082019050818103600083015261427181896139dc565b9050818103602083015261428581886139dc565b905081810360408301526142998187613ac6565b905081810360608301526142ad8186613b94565b905081810360808301526142c18185613b94565b905081810360a08301526142d58184613c5e565b9050979650505050505050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61432482613dfb565b810181811067ffffffffffffffff82111715614343576143426142ec565b5b80604052505050565b60006143566138c5565b9050614362828261431b565b919050565b600067ffffffffffffffff821115614382576143816142ec565b5b61438b82613dfb565b9050602081019050919050565b82818337600083830152505050565b60006143ba6143b584614367565b61434c565b9050828152602081018484840111156143d6576143d56142e7565b5b6143e1848285614398565b509392505050565b600082601f8301126143fe576143fd6142e2565b5b813561440e8482602086016143a7565b91505092915050565b60008060008060808587031215614431576144306138cf565b5b600085013567ffffffffffffffff81111561444f5761444e6138d4565b5b61445b878288016143e9565b945050602085013567ffffffffffffffff81111561447c5761447b6138d4565b5b614488878288016143e9565b935050604085013567ffffffffffffffff8111156144a9576144a86138d4565b5b6144b5878288016143e9565b92505060606144c6878288016138fa565b91505092959194509250565b7f4164766572746973696e6720666f72207468652074617267657420696e76656e60008201527f746f7279206973206e6f742063757272656e746c7920756e646572207265766960208201527f6577000000000000000000000000000000000000000000000000000000000000604082015250565b6000614554604283613db7565b915061455f826144d2565b606082019050919050565b6000602082019050818103600083015261458381614547565b9050919050565b7f4f6e6c7920696e76656e746f7279206f776e6572732063616e2072656a65637460008201527f206164732e000000000000000000000000000000000000000000000000000000602082015250565b60006145e6602583613db7565b91506145f18261458a565b604082019050919050565b60006020820190508181036000830152614615816145d9565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061465682613b50565b9150600082141561466a5761466961461c565b5b600182039050919050565b600081905092915050565b50565b6000614690600083614675565b915061469b82614680565b600082019050919050565b60006146b182614683565b9150819050919050565b7f4661696c656420746f207061796261636b206c6f636b2076616c756573000000600082015250565b60006146f1601d83613db7565b91506146fc826146bb565b602082019050919050565b60006020820190508181036000830152614720816146e4565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000614761826138d9565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156147945761479361461c565b5b600182019050919050565b7f596f752063616e27742064656c65746520616e20696e76656e746f727920696660008201527f2074686572652061726520616473206c65667420696e2074686520696e76656e60208201527f746f72792e000000000000000000000000000000000000000000000000000000604082015250565b6000614821604583613db7565b915061482c8261479f565b606082019050919050565b6000602082019050818103600083015261485081614814565b9050919050565b7f4f6e6c7920696e76656e746f7279206f776e6572732063616e2072656d6f766560008201527f20696e76656e746f72792e000000000000000000000000000000000000000000602082015250565b60006148b3602b83613db7565b91506148be82614857565b604082019050919050565b600060208201905081810360008301526148e2816148a6565b9050919050565b60006148f482613b50565b91506148ff83613b50565b92508263ffffffff038211156149185761491761461c565b5b828201905092915050565b7f457863656564656420746865206c696d6974206f66206164732074686174206360008201527f616e2062652064656c69766572656420746f20796f757220696e76656e746f7260208201527f792e000000000000000000000000000000000000000000000000000000000000604082015250565b60006149a5604283613db7565b91506149b082614923565b606082019050919050565b600060208201905081810360008301526149d481614998565b9050919050565b7f4f6e6c7920696e76656e746f7279206f776e6572732063616e20617070726f7660008201527f65206164732e0000000000000000000000000000000000000000000000000000602082015250565b6000614a37602683613db7565b9150614a42826149db565b604082019050919050565b60006020820190508181036000830152614a6681614a2a565b9050919050565b6000614a7882613b50565b915063ffffffff821415614a8f57614a8e61461c565b5b600182019050919050565b7f72657175657374656420696e76656e746f727920696420697320696e76616c6960008201527f6400000000000000000000000000000000000000000000000000000000000000602082015250565b6000614af6602183613db7565b9150614b0182614a9a565b604082019050919050565b60006020820190508181036000830152614b2581614ae9565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614b7357607f821691505b60208210811415614b8757614b86614b2c565b5b50919050565b7f496e76656e746f72792063616e20626520726574726965766520757020746f2060008201527f3330206974656d73206174207468652073616d652074696d6500000000000000602082015250565b6000614be9603983613db7565b9150614bf482614b8d565b604082019050919050565b60006020820190508181036000830152614c1881614bdc565b9050919050565b6000614c2a826138d9565b9150614c35836138d9565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614c6a57614c6961461c565b5b828201905092915050565b7f4f6e6c792061647320746861742061726520696e2074686520696e76656e746f60008201527f72792063616e20626520636f6c6c65637465642e000000000000000000000000602082015250565b6000614cd1603483613db7565b9150614cdc82614c75565b604082019050919050565b60006020820190508181036000830152614d0081614cc4565b9050919050565b7f4f6e6c79206164732074686174206861766520657870697265642063616e206260008201527f6520636f6c6c65637465642e0000000000000000000000000000000000000000602082015250565b6000614d63602c83613db7565b9150614d6e82614d07565b604082019050919050565b60006020820190508181036000830152614d9281614d56565b9050919050565b7f4f6e6c7920746865206f776e6572206f662074686520696e76656e746f72792060008201527f6f7220746865206f776e6572206f66207468652061642063616e20636f6c6c6560208201527f6374207468652061642e00000000000000000000000000000000000000000000604082015250565b6000614e1b604a83613db7565b9150614e2682614d99565b606082019050919050565b60006020820190508181036000830152614e4a81614e0e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614e8b826138d9565b9150614e96836138d9565b925082614ea657614ea5614e51565b5b828204905092915050565b6000614ebc826138d9565b9150614ec7836138d9565b925082821015614eda57614ed961461c565b5b828203905092915050565b7f596f752068617665207265616368656420746865206d6178696d756d206e756d60008201527f626572206f662061647320796f752063616e206372656174652e20596f75206e60208201527f65656420746f2072656d6f766520756e77616e746564206164732e0000000000604082015250565b6000614f67605b83613db7565b9150614f7282614ee5565b606082019050919050565b60006020820190508181036000830152614f9681614f5a565b9050919050565b6000614fa882613b50565b9150614fb383613b50565b925082821015614fc657614fc561461c565b5b828203905092915050565b7f5468652064656c69766572792073746172742074696d65206d7573742062652060008201527f6265666f7265207468652064656c697665727920656e642074696d652c20616e60208201527f642061206d696e696d756d2064656c697665727920706572696f64206d75737460408201527f206265207365742e000000000000000000000000000000000000000000000000606082015250565b6000615079606883613db7565b915061508482614fd1565b608082019050919050565b600060208201905081810360008301526150a88161506c565b9050919050565b7f4974206973206e656365737361727920746f20616c6c6f77206120636572746160008201527f696e20616d6f756e74206f662074696d65206265666f7265207468652064697360208201527f747269627574696f6e207374617274732e000000000000000000000000000000604082015250565b6000615131605183613db7565b915061513c826150af565b606082019050919050565b6000602082019050818103600083015261516081615124565b9050919050565b7f6164207072696365206d757374206265206c6172676572207468616e20666c6f60008201527f6f722070726963652073657420627920696e76656e746f7279206f776e65722e602082015250565b60006151c3604083613db7565b91506151ce82615167565b604082019050919050565b600060208201905081810360008301526151f2816151b6565b9050919050565b7f616473206d75737420626520616464656420636f72726563746c790000000000600082015250565b600061522f601b83613db7565b915061523a826151f9565b602082019050919050565b6000602082019050818103600083015261525e81615222565b9050919050565b7f596f752068617665207265616368656420746865206d6178696d756d206e756d60008201527f626572206f6620696e76656e746f727920796f752063616e206372656174652e60208201527f20596f75206e65656420746f2072656d6f766520756e77616e74656420696e7660408201527f656e746f72792e00000000000000000000000000000000000000000000000000606082015250565b600061530d606783613db7565b915061531882615265565b608082019050919050565b6000602082019050818103600083015261533c81615300565b9050919050565b7f72657175657374656420696e76656e746f7279496420646f6573206e6f74206560008201527f7869737400000000000000000000000000000000000000000000000000000000602082015250565b600061539f602483613db7565b91506153aa82615343565b604082019050919050565b600060208201905081810360008301526153ce81615392565b9050919050565b7f726571756573746564206164496420646f6573206e6f74206578697374000000600082015250565b600061540b601d83613db7565b9150615416826153d5565b602082019050919050565b6000602082019050818103600083015261543a816153fe565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea26469706673582212206f8b745fe9824bb14875d1358646382777625ad095923de78394fbd13823317064736f6c634300080b0033", "immutableReferences": {}, "generatedSources": [], "deployedGeneratedSources": [ { "ast": { "nodeType": "YulBlock", "src": "0:51576:4", "statements": [ { "body": { "nodeType": "YulBlock", "src": "47:35:4", "statements": [ { "nodeType": "YulAssignment", "src": "57:19:4", "value": { "arguments": [ { "kind": "number", "nodeType": "YulLiteral", "src": "73:2:4", "type": "", "value": "64" } ], "functionName": { "name": "mload", "nodeType": "YulIdentifier", "src": "67:5:4" }, "nodeType": "YulFunctionCall", "src": "67:9:4" }, "variableNames": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "57:6:4" } ] } ] }, "name": "allocate_unbounded", "nodeType": "YulFunctionDefinition", "returnVariables": [ { "name": "memPtr", "nodeType": "YulTypedName", "src": "40:6:4", "type": "" } ], "src": "7:75:4" }, { "body": { "nodeType": "YulBlock", "src": "177:28:4", "statements": [ { "expression": { "arguments": [ { "kind": "number", "nodeType": "YulLiteral", "src": "194:1:4", "type": "", "value": "0" }, { "kind": "number", "nodeType": "YulLiteral", "src": "197:1:4", "type": "", "value": "0" } ], "functionName": { "name": "revert", "nodeType": "YulIdentifier", "src": "187:6:4" }, "nodeType": "YulFunctionCall", "src": "187:12:4" }, "nodeType": "YulExpressionStatement", "src": "187:12:4" } ] }, "name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", "nodeType": "YulFunctionDefinition", "src": "88:117:4" }, { "body": { "nodeType": "YulBlock", "src": "300:28:4", "statements": [ { "expression": { "arguments": [ { "kind": "number", "nodeType": "YulLiteral", "src": "317:1:4", "type": "", "value": "0" }, { "kind": "number", "nodeType": "YulLiteral", "src": "320:1:4", "type": "", "value": "0" } ], "functionName": { "name": "revert", "nodeType": "YulIdentifier", "src": "310:6:4" }, "nodeType": "YulFunctionCall", "src": "310:12:4" }, "nodeType": "YulExpressionStatement", "src": "310:12:4" } ] }, "name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db", "nodeType": "YulFunctionDefinition", "src": "211:117:4" }, { "body": { "nodeType": "YulBlock", "src": "379:32:4", "statements": [ { "nodeType": "YulAssignment", "src": "389:16:4", "value": { "name": "value", "nodeType": "YulIdentifier", "src": "400:5:4" }, "variableNames": [ { "name": "cleaned", "nodeType": "YulIdentifier", "src": "389:7:4" } ] } ] }, "name": "cleanup_t_uint256", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "361:5:4", "type": "" } ], "returnVariables": [ { "name": "cleaned", "nodeType": "YulTypedName", "src": "371:7:4", "type": "" } ], "src": "334:77:4" }, { "body": { "nodeType": "YulBlock", "src": "460:79:4", "statements": [ { "body": { "nodeType": "YulBlock", "src": "517:16:4", "statements": [ { "expression": { "arguments": [ { "kind": "number", "nodeType": "YulLiteral", "src": "526:1:4", "type": "", "value": "0" }, { "kind": "number", "nodeType": "YulLiteral", "src": "529:1:4", "type": "", "value": "0" } ], "functionName": { "name": "revert", "nodeType": "YulIdentifier", "src": "519:6:4" }, "nodeType": "YulFunctionCall", "src": "519:12:4" }, "nodeType": "YulExpressionStatement", "src": "519:12:4" } ] }, "condition": { "arguments": [ { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "483:5:4" }, { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "508:5:4" } ], "functionName": { "name": "cleanup_t_uint256", "nodeType": "YulIdentifier", "src": "490:17:4" }, "nodeType": "YulFunctionCall", "src": "490:24:4" } ], "functionName": { "name": "eq", "nodeType": "YulIdentifier", "src": "480:2:4" }, "nodeType": "YulFunctionCall", "src": "480:35:4" } ], "functionName": { "name": "iszero", "nodeType": "YulIdentifier", "src": "473:6:4" }, "nodeType": "YulFunctionCall", "src": "473:43:4" }, "nodeType": "YulIf", "src": "470:63:4" } ] }, "name": "validator_revert_t_uint256", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "453:5:4", "type": "" } ], "src": "417:122:4" }, { "body": { "nodeType": "YulBlock", "src": "597:87:4", "statements": [ { "nodeType": "YulAssignment", "src": "607:29:4", "value": { "arguments": [ { "name": "offset", "nodeType": "YulIdentifier", "src": "629:6:4" } ], "functionName": { "name": "calldataload", "nodeType": "YulIdentifier", "src": "616:12:4" }, "nodeType": "YulFunctionCall", "src": "616:20:4" }, "variableNames": [ { "name": "value", "nodeType": "YulIdentifier", "src": "607:5:4" } ] }, { "expression": { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "672:5:4" } ], "functionName": { "name": "validator_revert_t_uint256", "nodeType": "YulIdentifier", "src": "645:26:4" }, "nodeType": "YulFunctionCall", "src": "645:33:4" }, "nodeType": "YulExpressionStatement", "src": "645:33:4" } ] }, "name": "abi_decode_t_uint256", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "offset", "nodeType": "YulTypedName", "src": "575:6:4", "type": "" }, { "name": "end", "nodeType": "YulTypedName", "src": "583:3:4", "type": "" } ], "returnVariables": [ { "name": "value", "nodeType": "YulTypedName", "src": "591:5:4", "type": "" } ], "src": "545:139:4" }, { "body": { "nodeType": "YulBlock", "src": "773:391:4", "statements": [ { "body": { "nodeType": "YulBlock", "src": "819:83:4", "statements": [ { "expression": { "arguments": [], "functionName": { "name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", "nodeType": "YulIdentifier", "src": "821:77:4" }, "nodeType": "YulFunctionCall", "src": "821:79:4" }, "nodeType": "YulExpressionStatement", "src": "821:79:4" } ] }, "condition": { "arguments": [ { "arguments": [ { "name": "dataEnd", "nodeType": "YulIdentifier", "src": "794:7:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "803:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "790:3:4" }, "nodeType": "YulFunctionCall", "src": "790:23:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "815:2:4", "type": "", "value": "64" } ], "functionName": { "name": "slt", "nodeType": "YulIdentifier", "src": "786:3:4" }, "nodeType": "YulFunctionCall", "src": "786:32:4" }, "nodeType": "YulIf", "src": "783:119:4" }, { "nodeType": "YulBlock", "src": "912:117:4", "statements": [ { "nodeType": "YulVariableDeclaration", "src": "927:15:4", "value": { "kind": "number", "nodeType": "YulLiteral", "src": "941:1:4", "type": "", "value": "0" }, "variables": [ { "name": "offset", "nodeType": "YulTypedName", "src": "931:6:4", "type": "" } ] }, { "nodeType": "YulAssignment", "src": "956:63:4", "value": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "991:9:4" }, { "name": "offset", "nodeType": "YulIdentifier", "src": "1002:6:4" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "987:3:4" }, "nodeType": "YulFunctionCall", "src": "987:22:4" }, { "name": "dataEnd", "nodeType": "YulIdentifier", "src": "1011:7:4" } ], "functionName": { "name": "abi_decode_t_uint256", "nodeType": "YulIdentifier", "src": "966:20:4" }, "nodeType": "YulFunctionCall", "src": "966:53:4" }, "variableNames": [ { "name": "value0", "nodeType": "YulIdentifier", "src": "956:6:4" } ] } ] }, { "nodeType": "YulBlock", "src": "1039:118:4", "statements": [ { "nodeType": "YulVariableDeclaration", "src": "1054:16:4", "value": { "kind": "number", "nodeType": "YulLiteral", "src": "1068:2:4", "type": "", "value": "32" }, "variables": [ { "name": "offset", "nodeType": "YulTypedName", "src": "1058:6:4", "type": "" } ] }, { "nodeType": "YulAssignment", "src": "1084:63:4", "value": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "1119:9:4" }, { "name": "offset", "nodeType": "YulIdentifier", "src": "1130:6:4" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "1115:3:4" }, "nodeType": "YulFunctionCall", "src": "1115:22:4" }, { "name": "dataEnd", "nodeType": "YulIdentifier", "src": "1139:7:4" } ], "functionName": { "name": "abi_decode_t_uint256", "nodeType": "YulIdentifier", "src": "1094:20:4" }, "nodeType": "YulFunctionCall", "src": "1094:53:4" }, "variableNames": [ { "name": "value1", "nodeType": "YulIdentifier", "src": "1084:6:4" } ] } ] } ] }, "name": "abi_decode_tuple_t_uint256t_uint256", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "735:9:4", "type": "" }, { "name": "dataEnd", "nodeType": "YulTypedName", "src": "746:7:4", "type": "" } ], "returnVariables": [ { "name": "value0", "nodeType": "YulTypedName", "src": "758:6:4", "type": "" }, { "name": "value1", "nodeType": "YulTypedName", "src": "766:6:4", "type": "" } ], "src": "690:474:4" }, { "body": { "nodeType": "YulBlock", "src": "1236:263:4", "statements": [ { "body": { "nodeType": "YulBlock", "src": "1282:83:4", "statements": [ { "expression": { "arguments": [], "functionName": { "name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", "nodeType": "YulIdentifier", "src": "1284:77:4" }, "nodeType": "YulFunctionCall", "src": "1284:79:4" }, "nodeType": "YulExpressionStatement", "src": "1284:79:4" } ] }, "condition": { "arguments": [ { "arguments": [ { "name": "dataEnd", "nodeType": "YulIdentifier", "src": "1257:7:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "1266:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "1253:3:4" }, "nodeType": "YulFunctionCall", "src": "1253:23:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "1278:2:4", "type": "", "value": "32" } ], "functionName": { "name": "slt", "nodeType": "YulIdentifier", "src": "1249:3:4" }, "nodeType": "YulFunctionCall", "src": "1249:32:4" }, "nodeType": "YulIf", "src": "1246:119:4" }, { "nodeType": "YulBlock", "src": "1375:117:4", "statements": [ { "nodeType": "YulVariableDeclaration", "src": "1390:15:4", "value": { "kind": "number", "nodeType": "YulLiteral", "src": "1404:1:4", "type": "", "value": "0" }, "variables": [ { "name": "offset", "nodeType": "YulTypedName", "src": "1394:6:4", "type": "" } ] }, { "nodeType": "YulAssignment", "src": "1419:63:4", "value": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "1454:9:4" }, { "name": "offset", "nodeType": "YulIdentifier", "src": "1465:6:4" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "1450:3:4" }, "nodeType": "YulFunctionCall", "src": "1450:22:4" }, { "name": "dataEnd", "nodeType": "YulIdentifier", "src": "1474:7:4" } ], "functionName": { "name": "abi_decode_t_uint256", "nodeType": "YulIdentifier", "src": "1429:20:4" }, "nodeType": "YulFunctionCall", "src": "1429:53:4" }, "variableNames": [ { "name": "value0", "nodeType": "YulIdentifier", "src": "1419:6:4" } ] } ] } ] }, "name": "abi_decode_tuple_t_uint256", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "1206:9:4", "type": "" }, { "name": "dataEnd", "nodeType": "YulTypedName", "src": "1217:7:4", "type": "" } ], "returnVariables": [ { "name": "value0", "nodeType": "YulTypedName", "src": "1229:6:4", "type": "" } ], "src": "1170:329:4" }, { "body": { "nodeType": "YulBlock", "src": "1579:40:4", "statements": [ { "nodeType": "YulAssignment", "src": "1590:22:4", "value": { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "1606:5:4" } ], "functionName": { "name": "mload", "nodeType": "YulIdentifier", "src": "1600:5:4" }, "nodeType": "YulFunctionCall", "src": "1600:12:4" }, "variableNames": [ { "name": "length", "nodeType": "YulIdentifier", "src": "1590:6:4" } ] } ] }, "name": "array_length_t_array$_t_uint256_$dyn_memory_ptr", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "1562:5:4", "type": "" } ], "returnVariables": [ { "name": "length", "nodeType": "YulTypedName", "src": "1572:6:4", "type": "" } ], "src": "1505:114:4" }, { "body": { "nodeType": "YulBlock", "src": "1736:73:4", "statements": [ { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "1753:3:4" }, { "name": "length", "nodeType": "YulIdentifier", "src": "1758:6:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "1746:6:4" }, "nodeType": "YulFunctionCall", "src": "1746:19:4" }, "nodeType": "YulExpressionStatement", "src": "1746:19:4" }, { "nodeType": "YulAssignment", "src": "1774:29:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "1793:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "1798:4:4", "type": "", "value": "0x20" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "1789:3:4" }, "nodeType": "YulFunctionCall", "src": "1789:14:4" }, "variableNames": [ { "name": "updated_pos", "nodeType": "YulIdentifier", "src": "1774:11:4" } ] } ] }, "name": "array_storeLengthForEncoding_t_array$_t_uint256_$dyn_memory_ptr_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "pos", "nodeType": "YulTypedName", "src": "1708:3:4", "type": "" }, { "name": "length", "nodeType": "YulTypedName", "src": "1713:6:4", "type": "" } ], "returnVariables": [ { "name": "updated_pos", "nodeType": "YulTypedName", "src": "1724:11:4", "type": "" } ], "src": "1625:184:4" }, { "body": { "nodeType": "YulBlock", "src": "1887:60:4", "statements": [ { "nodeType": "YulAssignment", "src": "1897:11:4", "value": { "name": "ptr", "nodeType": "YulIdentifier", "src": "1905:3:4" }, "variableNames": [ { "name": "data", "nodeType": "YulIdentifier", "src": "1897:4:4" } ] }, { "nodeType": "YulAssignment", "src": "1918:22:4", "value": { "arguments": [ { "name": "ptr", "nodeType": "YulIdentifier", "src": "1930:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "1935:4:4", "type": "", "value": "0x20" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "1926:3:4" }, "nodeType": "YulFunctionCall", "src": "1926:14:4" }, "variableNames": [ { "name": "data", "nodeType": "YulIdentifier", "src": "1918:4:4" } ] } ] }, "name": "array_dataslot_t_array$_t_uint256_$dyn_memory_ptr", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "ptr", "nodeType": "YulTypedName", "src": "1874:3:4", "type": "" } ], "returnVariables": [ { "name": "data", "nodeType": "YulTypedName", "src": "1882:4:4", "type": "" } ], "src": "1815:132:4" }, { "body": { "nodeType": "YulBlock", "src": "2008:53:4", "statements": [ { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "2025:3:4" }, { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "2048:5:4" } ], "functionName": { "name": "cleanup_t_uint256", "nodeType": "YulIdentifier", "src": "2030:17:4" }, "nodeType": "YulFunctionCall", "src": "2030:24:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "2018:6:4" }, "nodeType": "YulFunctionCall", "src": "2018:37:4" }, "nodeType": "YulExpressionStatement", "src": "2018:37:4" } ] }, "name": "abi_encode_t_uint256_to_t_uint256", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "1996:5:4", "type": "" }, { "name": "pos", "nodeType": "YulTypedName", "src": "2003:3:4", "type": "" } ], "src": "1953:108:4" }, { "body": { "nodeType": "YulBlock", "src": "2147:99:4", "statements": [ { "expression": { "arguments": [ { "name": "value0", "nodeType": "YulIdentifier", "src": "2191:6:4" }, { "name": "pos", "nodeType": "YulIdentifier", "src": "2199:3:4" } ], "functionName": { "name": "abi_encode_t_uint256_to_t_uint256", "nodeType": "YulIdentifier", "src": "2157:33:4" }, "nodeType": "YulFunctionCall", "src": "2157:46:4" }, "nodeType": "YulExpressionStatement", "src": "2157:46:4" }, { "nodeType": "YulAssignment", "src": "2212:28:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "2230:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "2235:4:4", "type": "", "value": "0x20" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "2226:3:4" }, "nodeType": "YulFunctionCall", "src": "2226:14:4" }, "variableNames": [ { "name": "updatedPos", "nodeType": "YulIdentifier", "src": "2212:10:4" } ] } ] }, "name": "abi_encodeUpdatedPos_t_uint256_to_t_uint256", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value0", "nodeType": "YulTypedName", "src": "2120:6:4", "type": "" }, { "name": "pos", "nodeType": "YulTypedName", "src": "2128:3:4", "type": "" } ], "returnVariables": [ { "name": "updatedPos", "nodeType": "YulTypedName", "src": "2136:10:4", "type": "" } ], "src": "2067:179:4" }, { "body": { "nodeType": "YulBlock", "src": "2327:38:4", "statements": [ { "nodeType": "YulAssignment", "src": "2337:22:4", "value": { "arguments": [ { "name": "ptr", "nodeType": "YulIdentifier", "src": "2349:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "2354:4:4", "type": "", "value": "0x20" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "2345:3:4" }, "nodeType": "YulFunctionCall", "src": "2345:14:4" }, "variableNames": [ { "name": "next", "nodeType": "YulIdentifier", "src": "2337:4:4" } ] } ] }, "name": "array_nextElement_t_array$_t_uint256_$dyn_memory_ptr", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "ptr", "nodeType": "YulTypedName", "src": "2314:3:4", "type": "" } ], "returnVariables": [ { "name": "next", "nodeType": "YulTypedName", "src": "2322:4:4", "type": "" } ], "src": "2252:113:4" }, { "body": { "nodeType": "YulBlock", "src": "2525:608:4", "statements": [ { "nodeType": "YulVariableDeclaration", "src": "2535:68:4", "value": { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "2597:5:4" } ], "functionName": { "name": "array_length_t_array$_t_uint256_$dyn_memory_ptr", "nodeType": "YulIdentifier", "src": "2549:47:4" }, "nodeType": "YulFunctionCall", "src": "2549:54:4" }, "variables": [ { "name": "length", "nodeType": "YulTypedName", "src": "2539:6:4", "type": "" } ] }, { "nodeType": "YulAssignment", "src": "2612:93:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "2693:3:4" }, { "name": "length", "nodeType": "YulIdentifier", "src": "2698:6:4" } ], "functionName": { "name": "array_storeLengthForEncoding_t_array$_t_uint256_$dyn_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "2619:73:4" }, "nodeType": "YulFunctionCall", "src": "2619:86:4" }, "variableNames": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "2612:3:4" } ] }, { "nodeType": "YulVariableDeclaration", "src": "2714:71:4", "value": { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "2779:5:4" } ], "functionName": { "name": "array_dataslot_t_array$_t_uint256_$dyn_memory_ptr", "nodeType": "YulIdentifier", "src": "2729:49:4" }, "nodeType": "YulFunctionCall", "src": "2729:56:4" }, "variables": [ { "name": "baseRef", "nodeType": "YulTypedName", "src": "2718:7:4", "type": "" } ] }, { "nodeType": "YulVariableDeclaration", "src": "2794:21:4", "value": { "name": "baseRef", "nodeType": "YulIdentifier", "src": "2808:7:4" }, "variables": [ { "name": "srcPtr", "nodeType": "YulTypedName", "src": "2798:6:4", "type": "" } ] }, { "body": { "nodeType": "YulBlock", "src": "2884:224:4", "statements": [ { "nodeType": "YulVariableDeclaration", "src": "2898:34:4", "value": { "arguments": [ { "name": "srcPtr", "nodeType": "YulIdentifier", "src": "2925:6:4" } ], "functionName": { "name": "mload", "nodeType": "YulIdentifier", "src": "2919:5:4" }, "nodeType": "YulFunctionCall", "src": "2919:13:4" }, "variables": [ { "name": "elementValue0", "nodeType": "YulTypedName", "src": "2902:13:4", "type": "" } ] }, { "nodeType": "YulAssignment", "src": "2945:70:4", "value": { "arguments": [ { "name": "elementValue0", "nodeType": "YulIdentifier", "src": "2996:13:4" }, { "name": "pos", "nodeType": "YulIdentifier", "src": "3011:3:4" } ], "functionName": { "name": "abi_encodeUpdatedPos_t_uint256_to_t_uint256", "nodeType": "YulIdentifier", "src": "2952:43:4" }, "nodeType": "YulFunctionCall", "src": "2952:63:4" }, "variableNames": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "2945:3:4" } ] }, { "nodeType": "YulAssignment", "src": "3028:70:4", "value": { "arguments": [ { "name": "srcPtr", "nodeType": "YulIdentifier", "src": "3091:6:4" } ], "functionName": { "name": "array_nextElement_t_array$_t_uint256_$dyn_memory_ptr", "nodeType": "YulIdentifier", "src": "3038:52:4" }, "nodeType": "YulFunctionCall", "src": "3038:60:4" }, "variableNames": [ { "name": "srcPtr", "nodeType": "YulIdentifier", "src": "3028:6:4" } ] } ] }, "condition": { "arguments": [ { "name": "i", "nodeType": "YulIdentifier", "src": "2846:1:4" }, { "name": "length", "nodeType": "YulIdentifier", "src": "2849:6:4" } ], "functionName": { "name": "lt", "nodeType": "YulIdentifier", "src": "2843:2:4" }, "nodeType": "YulFunctionCall", "src": "2843:13:4" }, "nodeType": "YulForLoop", "post": { "nodeType": "YulBlock", "src": "2857:18:4", "statements": [ { "nodeType": "YulAssignment", "src": "2859:14:4", "value": { "arguments": [ { "name": "i", "nodeType": "YulIdentifier", "src": "2868:1:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "2871:1:4", "type": "", "value": "1" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "2864:3:4" }, "nodeType": "YulFunctionCall", "src": "2864:9:4" }, "variableNames": [ { "name": "i", "nodeType": "YulIdentifier", "src": "2859:1:4" } ] } ] }, "pre": { "nodeType": "YulBlock", "src": "2828:14:4", "statements": [ { "nodeType": "YulVariableDeclaration", "src": "2830:10:4", "value": { "kind": "number", "nodeType": "YulLiteral", "src": "2839:1:4", "type": "", "value": "0" }, "variables": [ { "name": "i", "nodeType": "YulTypedName", "src": "2834:1:4", "type": "" } ] } ] }, "src": "2824:284:4" }, { "nodeType": "YulAssignment", "src": "3117:10:4", "value": { "name": "pos", "nodeType": "YulIdentifier", "src": "3124:3:4" }, "variableNames": [ { "name": "end", "nodeType": "YulIdentifier", "src": "3117:3:4" } ] } ] }, "name": "abi_encode_t_array$_t_uint256_$dyn_memory_ptr_to_t_array$_t_uint256_$dyn_memory_ptr_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "2504:5:4", "type": "" }, { "name": "pos", "nodeType": "YulTypedName", "src": "2511:3:4", "type": "" } ], "returnVariables": [ { "name": "end", "nodeType": "YulTypedName", "src": "2520:3:4", "type": "" } ], "src": "2401:732:4" }, { "body": { "nodeType": "YulBlock", "src": "3287:225:4", "statements": [ { "nodeType": "YulAssignment", "src": "3297:26:4", "value": { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "3309:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "3320:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "3305:3:4" }, "nodeType": "YulFunctionCall", "src": "3305:18:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "3297:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "3344:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "3355:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "3340:3:4" }, "nodeType": "YulFunctionCall", "src": "3340:17:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "3363:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "3369:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "3359:3:4" }, "nodeType": "YulFunctionCall", "src": "3359:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "3333:6:4" }, "nodeType": "YulFunctionCall", "src": "3333:47:4" }, "nodeType": "YulExpressionStatement", "src": "3333:47:4" }, { "nodeType": "YulAssignment", "src": "3389:116:4", "value": { "arguments": [ { "name": "value0", "nodeType": "YulIdentifier", "src": "3491:6:4" }, { "name": "tail", "nodeType": "YulIdentifier", "src": "3500:4:4" } ], "functionName": { "name": "abi_encode_t_array$_t_uint256_$dyn_memory_ptr_to_t_array$_t_uint256_$dyn_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "3397:93:4" }, "nodeType": "YulFunctionCall", "src": "3397:108:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "3389:4:4" } ] } ] }, "name": "abi_encode_tuple_t_array$_t_uint256_$dyn_memory_ptr__to_t_array$_t_uint256_$dyn_memory_ptr__fromStack_reversed", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "3259:9:4", "type": "" }, { "name": "value0", "nodeType": "YulTypedName", "src": "3271:6:4", "type": "" } ], "returnVariables": [ { "name": "tail", "nodeType": "YulTypedName", "src": "3282:4:4", "type": "" } ], "src": "3139:373:4" }, { "body": { "nodeType": "YulBlock", "src": "3592:40:4", "statements": [ { "nodeType": "YulAssignment", "src": "3603:22:4", "value": { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "3619:5:4" } ], "functionName": { "name": "mload", "nodeType": "YulIdentifier", "src": "3613:5:4" }, "nodeType": "YulFunctionCall", "src": "3613:12:4" }, "variableNames": [ { "name": "length", "nodeType": "YulIdentifier", "src": "3603:6:4" } ] } ] }, "name": "array_length_t_array$_t_bytes32_$dyn_memory_ptr", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "3575:5:4", "type": "" } ], "returnVariables": [ { "name": "length", "nodeType": "YulTypedName", "src": "3585:6:4", "type": "" } ], "src": "3518:114:4" }, { "body": { "nodeType": "YulBlock", "src": "3749:73:4", "statements": [ { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "3766:3:4" }, { "name": "length", "nodeType": "YulIdentifier", "src": "3771:6:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "3759:6:4" }, "nodeType": "YulFunctionCall", "src": "3759:19:4" }, "nodeType": "YulExpressionStatement", "src": "3759:19:4" }, { "nodeType": "YulAssignment", "src": "3787:29:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "3806:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "3811:4:4", "type": "", "value": "0x20" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "3802:3:4" }, "nodeType": "YulFunctionCall", "src": "3802:14:4" }, "variableNames": [ { "name": "updated_pos", "nodeType": "YulIdentifier", "src": "3787:11:4" } ] } ] }, "name": "array_storeLengthForEncoding_t_array$_t_bytes32_$dyn_memory_ptr_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "pos", "nodeType": "YulTypedName", "src": "3721:3:4", "type": "" }, { "name": "length", "nodeType": "YulTypedName", "src": "3726:6:4", "type": "" } ], "returnVariables": [ { "name": "updated_pos", "nodeType": "YulTypedName", "src": "3737:11:4", "type": "" } ], "src": "3638:184:4" }, { "body": { "nodeType": "YulBlock", "src": "3900:60:4", "statements": [ { "nodeType": "YulAssignment", "src": "3910:11:4", "value": { "name": "ptr", "nodeType": "YulIdentifier", "src": "3918:3:4" }, "variableNames": [ { "name": "data", "nodeType": "YulIdentifier", "src": "3910:4:4" } ] }, { "nodeType": "YulAssignment", "src": "3931:22:4", "value": { "arguments": [ { "name": "ptr", "nodeType": "YulIdentifier", "src": "3943:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "3948:4:4", "type": "", "value": "0x20" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "3939:3:4" }, "nodeType": "YulFunctionCall", "src": "3939:14:4" }, "variableNames": [ { "name": "data", "nodeType": "YulIdentifier", "src": "3931:4:4" } ] } ] }, "name": "array_dataslot_t_array$_t_bytes32_$dyn_memory_ptr", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "ptr", "nodeType": "YulTypedName", "src": "3887:3:4", "type": "" } ], "returnVariables": [ { "name": "data", "nodeType": "YulTypedName", "src": "3895:4:4", "type": "" } ], "src": "3828:132:4" }, { "body": { "nodeType": "YulBlock", "src": "4011:32:4", "statements": [ { "nodeType": "YulAssignment", "src": "4021:16:4", "value": { "name": "value", "nodeType": "YulIdentifier", "src": "4032:5:4" }, "variableNames": [ { "name": "cleaned", "nodeType": "YulIdentifier", "src": "4021:7:4" } ] } ] }, "name": "cleanup_t_bytes32", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "3993:5:4", "type": "" } ], "returnVariables": [ { "name": "cleaned", "nodeType": "YulTypedName", "src": "4003:7:4", "type": "" } ], "src": "3966:77:4" }, { "body": { "nodeType": "YulBlock", "src": "4104:53:4", "statements": [ { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "4121:3:4" }, { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "4144:5:4" } ], "functionName": { "name": "cleanup_t_bytes32", "nodeType": "YulIdentifier", "src": "4126:17:4" }, "nodeType": "YulFunctionCall", "src": "4126:24:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "4114:6:4" }, "nodeType": "YulFunctionCall", "src": "4114:37:4" }, "nodeType": "YulExpressionStatement", "src": "4114:37:4" } ] }, "name": "abi_encode_t_bytes32_to_t_bytes32", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "4092:5:4", "type": "" }, { "name": "pos", "nodeType": "YulTypedName", "src": "4099:3:4", "type": "" } ], "src": "4049:108:4" }, { "body": { "nodeType": "YulBlock", "src": "4243:99:4", "statements": [ { "expression": { "arguments": [ { "name": "value0", "nodeType": "YulIdentifier", "src": "4287:6:4" }, { "name": "pos", "nodeType": "YulIdentifier", "src": "4295:3:4" } ], "functionName": { "name": "abi_encode_t_bytes32_to_t_bytes32", "nodeType": "YulIdentifier", "src": "4253:33:4" }, "nodeType": "YulFunctionCall", "src": "4253:46:4" }, "nodeType": "YulExpressionStatement", "src": "4253:46:4" }, { "nodeType": "YulAssignment", "src": "4308:28:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "4326:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "4331:4:4", "type": "", "value": "0x20" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "4322:3:4" }, "nodeType": "YulFunctionCall", "src": "4322:14:4" }, "variableNames": [ { "name": "updatedPos", "nodeType": "YulIdentifier", "src": "4308:10:4" } ] } ] }, "name": "abi_encodeUpdatedPos_t_bytes32_to_t_bytes32", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value0", "nodeType": "YulTypedName", "src": "4216:6:4", "type": "" }, { "name": "pos", "nodeType": "YulTypedName", "src": "4224:3:4", "type": "" } ], "returnVariables": [ { "name": "updatedPos", "nodeType": "YulTypedName", "src": "4232:10:4", "type": "" } ], "src": "4163:179:4" }, { "body": { "nodeType": "YulBlock", "src": "4423:38:4", "statements": [ { "nodeType": "YulAssignment", "src": "4433:22:4", "value": { "arguments": [ { "name": "ptr", "nodeType": "YulIdentifier", "src": "4445:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "4450:4:4", "type": "", "value": "0x20" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "4441:3:4" }, "nodeType": "YulFunctionCall", "src": "4441:14:4" }, "variableNames": [ { "name": "next", "nodeType": "YulIdentifier", "src": "4433:4:4" } ] } ] }, "name": "array_nextElement_t_array$_t_bytes32_$dyn_memory_ptr", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "ptr", "nodeType": "YulTypedName", "src": "4410:3:4", "type": "" } ], "returnVariables": [ { "name": "next", "nodeType": "YulTypedName", "src": "4418:4:4", "type": "" } ], "src": "4348:113:4" }, { "body": { "nodeType": "YulBlock", "src": "4621:608:4", "statements": [ { "nodeType": "YulVariableDeclaration", "src": "4631:68:4", "value": { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "4693:5:4" } ], "functionName": { "name": "array_length_t_array$_t_bytes32_$dyn_memory_ptr", "nodeType": "YulIdentifier", "src": "4645:47:4" }, "nodeType": "YulFunctionCall", "src": "4645:54:4" }, "variables": [ { "name": "length", "nodeType": "YulTypedName", "src": "4635:6:4", "type": "" } ] }, { "nodeType": "YulAssignment", "src": "4708:93:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "4789:3:4" }, { "name": "length", "nodeType": "YulIdentifier", "src": "4794:6:4" } ], "functionName": { "name": "array_storeLengthForEncoding_t_array$_t_bytes32_$dyn_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "4715:73:4" }, "nodeType": "YulFunctionCall", "src": "4715:86:4" }, "variableNames": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "4708:3:4" } ] }, { "nodeType": "YulVariableDeclaration", "src": "4810:71:4", "value": { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "4875:5:4" } ], "functionName": { "name": "array_dataslot_t_array$_t_bytes32_$dyn_memory_ptr", "nodeType": "YulIdentifier", "src": "4825:49:4" }, "nodeType": "YulFunctionCall", "src": "4825:56:4" }, "variables": [ { "name": "baseRef", "nodeType": "YulTypedName", "src": "4814:7:4", "type": "" } ] }, { "nodeType": "YulVariableDeclaration", "src": "4890:21:4", "value": { "name": "baseRef", "nodeType": "YulIdentifier", "src": "4904:7:4" }, "variables": [ { "name": "srcPtr", "nodeType": "YulTypedName", "src": "4894:6:4", "type": "" } ] }, { "body": { "nodeType": "YulBlock", "src": "4980:224:4", "statements": [ { "nodeType": "YulVariableDeclaration", "src": "4994:34:4", "value": { "arguments": [ { "name": "srcPtr", "nodeType": "YulIdentifier", "src": "5021:6:4" } ], "functionName": { "name": "mload", "nodeType": "YulIdentifier", "src": "5015:5:4" }, "nodeType": "YulFunctionCall", "src": "5015:13:4" }, "variables": [ { "name": "elementValue0", "nodeType": "YulTypedName", "src": "4998:13:4", "type": "" } ] }, { "nodeType": "YulAssignment", "src": "5041:70:4", "value": { "arguments": [ { "name": "elementValue0", "nodeType": "YulIdentifier", "src": "5092:13:4" }, { "name": "pos", "nodeType": "YulIdentifier", "src": "5107:3:4" } ], "functionName": { "name": "abi_encodeUpdatedPos_t_bytes32_to_t_bytes32", "nodeType": "YulIdentifier", "src": "5048:43:4" }, "nodeType": "YulFunctionCall", "src": "5048:63:4" }, "variableNames": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "5041:3:4" } ] }, { "nodeType": "YulAssignment", "src": "5124:70:4", "value": { "arguments": [ { "name": "srcPtr", "nodeType": "YulIdentifier", "src": "5187:6:4" } ], "functionName": { "name": "array_nextElement_t_array$_t_bytes32_$dyn_memory_ptr", "nodeType": "YulIdentifier", "src": "5134:52:4" }, "nodeType": "YulFunctionCall", "src": "5134:60:4" }, "variableNames": [ { "name": "srcPtr", "nodeType": "YulIdentifier", "src": "5124:6:4" } ] } ] }, "condition": { "arguments": [ { "name": "i", "nodeType": "YulIdentifier", "src": "4942:1:4" }, { "name": "length", "nodeType": "YulIdentifier", "src": "4945:6:4" } ], "functionName": { "name": "lt", "nodeType": "YulIdentifier", "src": "4939:2:4" }, "nodeType": "YulFunctionCall", "src": "4939:13:4" }, "nodeType": "YulForLoop", "post": { "nodeType": "YulBlock", "src": "4953:18:4", "statements": [ { "nodeType": "YulAssignment", "src": "4955:14:4", "value": { "arguments": [ { "name": "i", "nodeType": "YulIdentifier", "src": "4964:1:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "4967:1:4", "type": "", "value": "1" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "4960:3:4" }, "nodeType": "YulFunctionCall", "src": "4960:9:4" }, "variableNames": [ { "name": "i", "nodeType": "YulIdentifier", "src": "4955:1:4" } ] } ] }, "pre": { "nodeType": "YulBlock", "src": "4924:14:4", "statements": [ { "nodeType": "YulVariableDeclaration", "src": "4926:10:4", "value": { "kind": "number", "nodeType": "YulLiteral", "src": "4935:1:4", "type": "", "value": "0" }, "variables": [ { "name": "i", "nodeType": "YulTypedName", "src": "4930:1:4", "type": "" } ] } ] }, "src": "4920:284:4" }, { "nodeType": "YulAssignment", "src": "5213:10:4", "value": { "name": "pos", "nodeType": "YulIdentifier", "src": "5220:3:4" }, "variableNames": [ { "name": "end", "nodeType": "YulIdentifier", "src": "5213:3:4" } ] } ] }, "name": "abi_encode_t_array$_t_bytes32_$dyn_memory_ptr_to_t_array$_t_bytes32_$dyn_memory_ptr_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "4600:5:4", "type": "" }, { "name": "pos", "nodeType": "YulTypedName", "src": "4607:3:4", "type": "" } ], "returnVariables": [ { "name": "end", "nodeType": "YulTypedName", "src": "4616:3:4", "type": "" } ], "src": "4497:732:4" }, { "body": { "nodeType": "YulBlock", "src": "5308:40:4", "statements": [ { "nodeType": "YulAssignment", "src": "5319:22:4", "value": { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "5335:5:4" } ], "functionName": { "name": "mload", "nodeType": "YulIdentifier", "src": "5329:5:4" }, "nodeType": "YulFunctionCall", "src": "5329:12:4" }, "variableNames": [ { "name": "length", "nodeType": "YulIdentifier", "src": "5319:6:4" } ] } ] }, "name": "array_length_t_array$_t_uint32_$dyn_memory_ptr", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "5291:5:4", "type": "" } ], "returnVariables": [ { "name": "length", "nodeType": "YulTypedName", "src": "5301:6:4", "type": "" } ], "src": "5235:113:4" }, { "body": { "nodeType": "YulBlock", "src": "5464:73:4", "statements": [ { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "5481:3:4" }, { "name": "length", "nodeType": "YulIdentifier", "src": "5486:6:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "5474:6:4" }, "nodeType": "YulFunctionCall", "src": "5474:19:4" }, "nodeType": "YulExpressionStatement", "src": "5474:19:4" }, { "nodeType": "YulAssignment", "src": "5502:29:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "5521:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "5526:4:4", "type": "", "value": "0x20" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "5517:3:4" }, "nodeType": "YulFunctionCall", "src": "5517:14:4" }, "variableNames": [ { "name": "updated_pos", "nodeType": "YulIdentifier", "src": "5502:11:4" } ] } ] }, "name": "array_storeLengthForEncoding_t_array$_t_uint32_$dyn_memory_ptr_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "pos", "nodeType": "YulTypedName", "src": "5436:3:4", "type": "" }, { "name": "length", "nodeType": "YulTypedName", "src": "5441:6:4", "type": "" } ], "returnVariables": [ { "name": "updated_pos", "nodeType": "YulTypedName", "src": "5452:11:4", "type": "" } ], "src": "5354:183:4" }, { "body": { "nodeType": "YulBlock", "src": "5614:60:4", "statements": [ { "nodeType": "YulAssignment", "src": "5624:11:4", "value": { "name": "ptr", "nodeType": "YulIdentifier", "src": "5632:3:4" }, "variableNames": [ { "name": "data", "nodeType": "YulIdentifier", "src": "5624:4:4" } ] }, { "nodeType": "YulAssignment", "src": "5645:22:4", "value": { "arguments": [ { "name": "ptr", "nodeType": "YulIdentifier", "src": "5657:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "5662:4:4", "type": "", "value": "0x20" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "5653:3:4" }, "nodeType": "YulFunctionCall", "src": "5653:14:4" }, "variableNames": [ { "name": "data", "nodeType": "YulIdentifier", "src": "5645:4:4" } ] } ] }, "name": "array_dataslot_t_array$_t_uint32_$dyn_memory_ptr", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "ptr", "nodeType": "YulTypedName", "src": "5601:3:4", "type": "" } ], "returnVariables": [ { "name": "data", "nodeType": "YulTypedName", "src": "5609:4:4", "type": "" } ], "src": "5543:131:4" }, { "body": { "nodeType": "YulBlock", "src": "5724:49:4", "statements": [ { "nodeType": "YulAssignment", "src": "5734:33:4", "value": { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "5749:5:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "5756:10:4", "type": "", "value": "0xffffffff" } ], "functionName": { "name": "and", "nodeType": "YulIdentifier", "src": "5745:3:4" }, "nodeType": "YulFunctionCall", "src": "5745:22:4" }, "variableNames": [ { "name": "cleaned", "nodeType": "YulIdentifier", "src": "5734:7:4" } ] } ] }, "name": "cleanup_t_uint32", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "5706:5:4", "type": "" } ], "returnVariables": [ { "name": "cleaned", "nodeType": "YulTypedName", "src": "5716:7:4", "type": "" } ], "src": "5680:93:4" }, { "body": { "nodeType": "YulBlock", "src": "5832:52:4", "statements": [ { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "5849:3:4" }, { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "5871:5:4" } ], "functionName": { "name": "cleanup_t_uint32", "nodeType": "YulIdentifier", "src": "5854:16:4" }, "nodeType": "YulFunctionCall", "src": "5854:23:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "5842:6:4" }, "nodeType": "YulFunctionCall", "src": "5842:36:4" }, "nodeType": "YulExpressionStatement", "src": "5842:36:4" } ] }, "name": "abi_encode_t_uint32_to_t_uint32", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "5820:5:4", "type": "" }, { "name": "pos", "nodeType": "YulTypedName", "src": "5827:3:4", "type": "" } ], "src": "5779:105:4" }, { "body": { "nodeType": "YulBlock", "src": "5968:97:4", "statements": [ { "expression": { "arguments": [ { "name": "value0", "nodeType": "YulIdentifier", "src": "6010:6:4" }, { "name": "pos", "nodeType": "YulIdentifier", "src": "6018:3:4" } ], "functionName": { "name": "abi_encode_t_uint32_to_t_uint32", "nodeType": "YulIdentifier", "src": "5978:31:4" }, "nodeType": "YulFunctionCall", "src": "5978:44:4" }, "nodeType": "YulExpressionStatement", "src": "5978:44:4" }, { "nodeType": "YulAssignment", "src": "6031:28:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "6049:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "6054:4:4", "type": "", "value": "0x20" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "6045:3:4" }, "nodeType": "YulFunctionCall", "src": "6045:14:4" }, "variableNames": [ { "name": "updatedPos", "nodeType": "YulIdentifier", "src": "6031:10:4" } ] } ] }, "name": "abi_encodeUpdatedPos_t_uint32_to_t_uint32", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value0", "nodeType": "YulTypedName", "src": "5941:6:4", "type": "" }, { "name": "pos", "nodeType": "YulTypedName", "src": "5949:3:4", "type": "" } ], "returnVariables": [ { "name": "updatedPos", "nodeType": "YulTypedName", "src": "5957:10:4", "type": "" } ], "src": "5890:175:4" }, { "body": { "nodeType": "YulBlock", "src": "6145:38:4", "statements": [ { "nodeType": "YulAssignment", "src": "6155:22:4", "value": { "arguments": [ { "name": "ptr", "nodeType": "YulIdentifier", "src": "6167:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "6172:4:4", "type": "", "value": "0x20" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "6163:3:4" }, "nodeType": "YulFunctionCall", "src": "6163:14:4" }, "variableNames": [ { "name": "next", "nodeType": "YulIdentifier", "src": "6155:4:4" } ] } ] }, "name": "array_nextElement_t_array$_t_uint32_$dyn_memory_ptr", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "ptr", "nodeType": "YulTypedName", "src": "6132:3:4", "type": "" } ], "returnVariables": [ { "name": "next", "nodeType": "YulTypedName", "src": "6140:4:4", "type": "" } ], "src": "6071:112:4" }, { "body": { "nodeType": "YulBlock", "src": "6339:602:4", "statements": [ { "nodeType": "YulVariableDeclaration", "src": "6349:67:4", "value": { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "6410:5:4" } ], "functionName": { "name": "array_length_t_array$_t_uint32_$dyn_memory_ptr", "nodeType": "YulIdentifier", "src": "6363:46:4" }, "nodeType": "YulFunctionCall", "src": "6363:53:4" }, "variables": [ { "name": "length", "nodeType": "YulTypedName", "src": "6353:6:4", "type": "" } ] }, { "nodeType": "YulAssignment", "src": "6425:92:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "6505:3:4" }, { "name": "length", "nodeType": "YulIdentifier", "src": "6510:6:4" } ], "functionName": { "name": "array_storeLengthForEncoding_t_array$_t_uint32_$dyn_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "6432:72:4" }, "nodeType": "YulFunctionCall", "src": "6432:85:4" }, "variableNames": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "6425:3:4" } ] }, { "nodeType": "YulVariableDeclaration", "src": "6526:70:4", "value": { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "6590:5:4" } ], "functionName": { "name": "array_dataslot_t_array$_t_uint32_$dyn_memory_ptr", "nodeType": "YulIdentifier", "src": "6541:48:4" }, "nodeType": "YulFunctionCall", "src": "6541:55:4" }, "variables": [ { "name": "baseRef", "nodeType": "YulTypedName", "src": "6530:7:4", "type": "" } ] }, { "nodeType": "YulVariableDeclaration", "src": "6605:21:4", "value": { "name": "baseRef", "nodeType": "YulIdentifier", "src": "6619:7:4" }, "variables": [ { "name": "srcPtr", "nodeType": "YulTypedName", "src": "6609:6:4", "type": "" } ] }, { "body": { "nodeType": "YulBlock", "src": "6695:221:4", "statements": [ { "nodeType": "YulVariableDeclaration", "src": "6709:34:4", "value": { "arguments": [ { "name": "srcPtr", "nodeType": "YulIdentifier", "src": "6736:6:4" } ], "functionName": { "name": "mload", "nodeType": "YulIdentifier", "src": "6730:5:4" }, "nodeType": "YulFunctionCall", "src": "6730:13:4" }, "variables": [ { "name": "elementValue0", "nodeType": "YulTypedName", "src": "6713:13:4", "type": "" } ] }, { "nodeType": "YulAssignment", "src": "6756:68:4", "value": { "arguments": [ { "name": "elementValue0", "nodeType": "YulIdentifier", "src": "6805:13:4" }, { "name": "pos", "nodeType": "YulIdentifier", "src": "6820:3:4" } ], "functionName": { "name": "abi_encodeUpdatedPos_t_uint32_to_t_uint32", "nodeType": "YulIdentifier", "src": "6763:41:4" }, "nodeType": "YulFunctionCall", "src": "6763:61:4" }, "variableNames": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "6756:3:4" } ] }, { "nodeType": "YulAssignment", "src": "6837:69:4", "value": { "arguments": [ { "name": "srcPtr", "nodeType": "YulIdentifier", "src": "6899:6:4" } ], "functionName": { "name": "array_nextElement_t_array$_t_uint32_$dyn_memory_ptr", "nodeType": "YulIdentifier", "src": "6847:51:4" }, "nodeType": "YulFunctionCall", "src": "6847:59:4" }, "variableNames": [ { "name": "srcPtr", "nodeType": "YulIdentifier", "src": "6837:6:4" } ] } ] }, "condition": { "arguments": [ { "name": "i", "nodeType": "YulIdentifier", "src": "6657:1:4" }, { "name": "length", "nodeType": "YulIdentifier", "src": "6660:6:4" } ], "functionName": { "name": "lt", "nodeType": "YulIdentifier", "src": "6654:2:4" }, "nodeType": "YulFunctionCall", "src": "6654:13:4" }, "nodeType": "YulForLoop", "post": { "nodeType": "YulBlock", "src": "6668:18:4", "statements": [ { "nodeType": "YulAssignment", "src": "6670:14:4", "value": { "arguments": [ { "name": "i", "nodeType": "YulIdentifier", "src": "6679:1:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "6682:1:4", "type": "", "value": "1" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "6675:3:4" }, "nodeType": "YulFunctionCall", "src": "6675:9:4" }, "variableNames": [ { "name": "i", "nodeType": "YulIdentifier", "src": "6670:1:4" } ] } ] }, "pre": { "nodeType": "YulBlock", "src": "6639:14:4", "statements": [ { "nodeType": "YulVariableDeclaration", "src": "6641:10:4", "value": { "kind": "number", "nodeType": "YulLiteral", "src": "6650:1:4", "type": "", "value": "0" }, "variables": [ { "name": "i", "nodeType": "YulTypedName", "src": "6645:1:4", "type": "" } ] } ] }, "src": "6635:281:4" }, { "nodeType": "YulAssignment", "src": "6925:10:4", "value": { "name": "pos", "nodeType": "YulIdentifier", "src": "6932:3:4" }, "variableNames": [ { "name": "end", "nodeType": "YulIdentifier", "src": "6925:3:4" } ] } ] }, "name": "abi_encode_t_array$_t_uint32_$dyn_memory_ptr_to_t_array$_t_uint32_$dyn_memory_ptr_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "6318:5:4", "type": "" }, { "name": "pos", "nodeType": "YulTypedName", "src": "6325:3:4", "type": "" } ], "returnVariables": [ { "name": "end", "nodeType": "YulTypedName", "src": "6334:3:4", "type": "" } ], "src": "6217:724:4" }, { "body": { "nodeType": "YulBlock", "src": "7018:40:4", "statements": [ { "nodeType": "YulAssignment", "src": "7029:22:4", "value": { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "7045:5:4" } ], "functionName": { "name": "mload", "nodeType": "YulIdentifier", "src": "7039:5:4" }, "nodeType": "YulFunctionCall", "src": "7039:12:4" }, "variableNames": [ { "name": "length", "nodeType": "YulIdentifier", "src": "7029:6:4" } ] } ] }, "name": "array_length_t_array$_t_bool_$dyn_memory_ptr", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "7001:5:4", "type": "" } ], "returnVariables": [ { "name": "length", "nodeType": "YulTypedName", "src": "7011:6:4", "type": "" } ], "src": "6947:111:4" }, { "body": { "nodeType": "YulBlock", "src": "7172:73:4", "statements": [ { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "7189:3:4" }, { "name": "length", "nodeType": "YulIdentifier", "src": "7194:6:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "7182:6:4" }, "nodeType": "YulFunctionCall", "src": "7182:19:4" }, "nodeType": "YulExpressionStatement", "src": "7182:19:4" }, { "nodeType": "YulAssignment", "src": "7210:29:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "7229:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "7234:4:4", "type": "", "value": "0x20" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "7225:3:4" }, "nodeType": "YulFunctionCall", "src": "7225:14:4" }, "variableNames": [ { "name": "updated_pos", "nodeType": "YulIdentifier", "src": "7210:11:4" } ] } ] }, "name": "array_storeLengthForEncoding_t_array$_t_bool_$dyn_memory_ptr_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "pos", "nodeType": "YulTypedName", "src": "7144:3:4", "type": "" }, { "name": "length", "nodeType": "YulTypedName", "src": "7149:6:4", "type": "" } ], "returnVariables": [ { "name": "updated_pos", "nodeType": "YulTypedName", "src": "7160:11:4", "type": "" } ], "src": "7064:181:4" }, { "body": { "nodeType": "YulBlock", "src": "7320:60:4", "statements": [ { "nodeType": "YulAssignment", "src": "7330:11:4", "value": { "name": "ptr", "nodeType": "YulIdentifier", "src": "7338:3:4" }, "variableNames": [ { "name": "data", "nodeType": "YulIdentifier", "src": "7330:4:4" } ] }, { "nodeType": "YulAssignment", "src": "7351:22:4", "value": { "arguments": [ { "name": "ptr", "nodeType": "YulIdentifier", "src": "7363:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "7368:4:4", "type": "", "value": "0x20" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "7359:3:4" }, "nodeType": "YulFunctionCall", "src": "7359:14:4" }, "variableNames": [ { "name": "data", "nodeType": "YulIdentifier", "src": "7351:4:4" } ] } ] }, "name": "array_dataslot_t_array$_t_bool_$dyn_memory_ptr", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "ptr", "nodeType": "YulTypedName", "src": "7307:3:4", "type": "" } ], "returnVariables": [ { "name": "data", "nodeType": "YulTypedName", "src": "7315:4:4", "type": "" } ], "src": "7251:129:4" }, { "body": { "nodeType": "YulBlock", "src": "7428:48:4", "statements": [ { "nodeType": "YulAssignment", "src": "7438:32:4", "value": { "arguments": [ { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "7463:5:4" } ], "functionName": { "name": "iszero", "nodeType": "YulIdentifier", "src": "7456:6:4" }, "nodeType": "YulFunctionCall", "src": "7456:13:4" } ], "functionName": { "name": "iszero", "nodeType": "YulIdentifier", "src": "7449:6:4" }, "nodeType": "YulFunctionCall", "src": "7449:21:4" }, "variableNames": [ { "name": "cleaned", "nodeType": "YulIdentifier", "src": "7438:7:4" } ] } ] }, "name": "cleanup_t_bool", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "7410:5:4", "type": "" } ], "returnVariables": [ { "name": "cleaned", "nodeType": "YulTypedName", "src": "7420:7:4", "type": "" } ], "src": "7386:90:4" }, { "body": { "nodeType": "YulBlock", "src": "7531:50:4", "statements": [ { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "7548:3:4" }, { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "7568:5:4" } ], "functionName": { "name": "cleanup_t_bool", "nodeType": "YulIdentifier", "src": "7553:14:4" }, "nodeType": "YulFunctionCall", "src": "7553:21:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "7541:6:4" }, "nodeType": "YulFunctionCall", "src": "7541:34:4" }, "nodeType": "YulExpressionStatement", "src": "7541:34:4" } ] }, "name": "abi_encode_t_bool_to_t_bool", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "7519:5:4", "type": "" }, { "name": "pos", "nodeType": "YulTypedName", "src": "7526:3:4", "type": "" } ], "src": "7482:99:4" }, { "body": { "nodeType": "YulBlock", "src": "7661:93:4", "statements": [ { "expression": { "arguments": [ { "name": "value0", "nodeType": "YulIdentifier", "src": "7699:6:4" }, { "name": "pos", "nodeType": "YulIdentifier", "src": "7707:3:4" } ], "functionName": { "name": "abi_encode_t_bool_to_t_bool", "nodeType": "YulIdentifier", "src": "7671:27:4" }, "nodeType": "YulFunctionCall", "src": "7671:40:4" }, "nodeType": "YulExpressionStatement", "src": "7671:40:4" }, { "nodeType": "YulAssignment", "src": "7720:28:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "7738:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "7743:4:4", "type": "", "value": "0x20" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "7734:3:4" }, "nodeType": "YulFunctionCall", "src": "7734:14:4" }, "variableNames": [ { "name": "updatedPos", "nodeType": "YulIdentifier", "src": "7720:10:4" } ] } ] }, "name": "abi_encodeUpdatedPos_t_bool_to_t_bool", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value0", "nodeType": "YulTypedName", "src": "7634:6:4", "type": "" }, { "name": "pos", "nodeType": "YulTypedName", "src": "7642:3:4", "type": "" } ], "returnVariables": [ { "name": "updatedPos", "nodeType": "YulTypedName", "src": "7650:10:4", "type": "" } ], "src": "7587:167:4" }, { "body": { "nodeType": "YulBlock", "src": "7832:38:4", "statements": [ { "nodeType": "YulAssignment", "src": "7842:22:4", "value": { "arguments": [ { "name": "ptr", "nodeType": "YulIdentifier", "src": "7854:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "7859:4:4", "type": "", "value": "0x20" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "7850:3:4" }, "nodeType": "YulFunctionCall", "src": "7850:14:4" }, "variableNames": [ { "name": "next", "nodeType": "YulIdentifier", "src": "7842:4:4" } ] } ] }, "name": "array_nextElement_t_array$_t_bool_$dyn_memory_ptr", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "ptr", "nodeType": "YulTypedName", "src": "7819:3:4", "type": "" } ], "returnVariables": [ { "name": "next", "nodeType": "YulTypedName", "src": "7827:4:4", "type": "" } ], "src": "7760:110:4" }, { "body": { "nodeType": "YulBlock", "src": "8018:590:4", "statements": [ { "nodeType": "YulVariableDeclaration", "src": "8028:65:4", "value": { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "8087:5:4" } ], "functionName": { "name": "array_length_t_array$_t_bool_$dyn_memory_ptr", "nodeType": "YulIdentifier", "src": "8042:44:4" }, "nodeType": "YulFunctionCall", "src": "8042:51:4" }, "variables": [ { "name": "length", "nodeType": "YulTypedName", "src": "8032:6:4", "type": "" } ] }, { "nodeType": "YulAssignment", "src": "8102:90:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "8180:3:4" }, { "name": "length", "nodeType": "YulIdentifier", "src": "8185:6:4" } ], "functionName": { "name": "array_storeLengthForEncoding_t_array$_t_bool_$dyn_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "8109:70:4" }, "nodeType": "YulFunctionCall", "src": "8109:83:4" }, "variableNames": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "8102:3:4" } ] }, { "nodeType": "YulVariableDeclaration", "src": "8201:68:4", "value": { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "8263:5:4" } ], "functionName": { "name": "array_dataslot_t_array$_t_bool_$dyn_memory_ptr", "nodeType": "YulIdentifier", "src": "8216:46:4" }, "nodeType": "YulFunctionCall", "src": "8216:53:4" }, "variables": [ { "name": "baseRef", "nodeType": "YulTypedName", "src": "8205:7:4", "type": "" } ] }, { "nodeType": "YulVariableDeclaration", "src": "8278:21:4", "value": { "name": "baseRef", "nodeType": "YulIdentifier", "src": "8292:7:4" }, "variables": [ { "name": "srcPtr", "nodeType": "YulTypedName", "src": "8282:6:4", "type": "" } ] }, { "body": { "nodeType": "YulBlock", "src": "8368:215:4", "statements": [ { "nodeType": "YulVariableDeclaration", "src": "8382:34:4", "value": { "arguments": [ { "name": "srcPtr", "nodeType": "YulIdentifier", "src": "8409:6:4" } ], "functionName": { "name": "mload", "nodeType": "YulIdentifier", "src": "8403:5:4" }, "nodeType": "YulFunctionCall", "src": "8403:13:4" }, "variables": [ { "name": "elementValue0", "nodeType": "YulTypedName", "src": "8386:13:4", "type": "" } ] }, { "nodeType": "YulAssignment", "src": "8429:64:4", "value": { "arguments": [ { "name": "elementValue0", "nodeType": "YulIdentifier", "src": "8474:13:4" }, { "name": "pos", "nodeType": "YulIdentifier", "src": "8489:3:4" } ], "functionName": { "name": "abi_encodeUpdatedPos_t_bool_to_t_bool", "nodeType": "YulIdentifier", "src": "8436:37:4" }, "nodeType": "YulFunctionCall", "src": "8436:57:4" }, "variableNames": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "8429:3:4" } ] }, { "nodeType": "YulAssignment", "src": "8506:67:4", "value": { "arguments": [ { "name": "srcPtr", "nodeType": "YulIdentifier", "src": "8566:6:4" } ], "functionName": { "name": "array_nextElement_t_array$_t_bool_$dyn_memory_ptr", "nodeType": "YulIdentifier", "src": "8516:49:4" }, "nodeType": "YulFunctionCall", "src": "8516:57:4" }, "variableNames": [ { "name": "srcPtr", "nodeType": "YulIdentifier", "src": "8506:6:4" } ] } ] }, "condition": { "arguments": [ { "name": "i", "nodeType": "YulIdentifier", "src": "8330:1:4" }, { "name": "length", "nodeType": "YulIdentifier", "src": "8333:6:4" } ], "functionName": { "name": "lt", "nodeType": "YulIdentifier", "src": "8327:2:4" }, "nodeType": "YulFunctionCall", "src": "8327:13:4" }, "nodeType": "YulForLoop", "post": { "nodeType": "YulBlock", "src": "8341:18:4", "statements": [ { "nodeType": "YulAssignment", "src": "8343:14:4", "value": { "arguments": [ { "name": "i", "nodeType": "YulIdentifier", "src": "8352:1:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "8355:1:4", "type": "", "value": "1" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "8348:3:4" }, "nodeType": "YulFunctionCall", "src": "8348:9:4" }, "variableNames": [ { "name": "i", "nodeType": "YulIdentifier", "src": "8343:1:4" } ] } ] }, "pre": { "nodeType": "YulBlock", "src": "8312:14:4", "statements": [ { "nodeType": "YulVariableDeclaration", "src": "8314:10:4", "value": { "kind": "number", "nodeType": "YulLiteral", "src": "8323:1:4", "type": "", "value": "0" }, "variables": [ { "name": "i", "nodeType": "YulTypedName", "src": "8318:1:4", "type": "" } ] } ] }, "src": "8308:275:4" }, { "nodeType": "YulAssignment", "src": "8592:10:4", "value": { "name": "pos", "nodeType": "YulIdentifier", "src": "8599:3:4" }, "variableNames": [ { "name": "end", "nodeType": "YulIdentifier", "src": "8592:3:4" } ] } ] }, "name": "abi_encode_t_array$_t_bool_$dyn_memory_ptr_to_t_array$_t_bool_$dyn_memory_ptr_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "7997:5:4", "type": "" }, { "name": "pos", "nodeType": "YulTypedName", "src": "8004:3:4", "type": "" } ], "returnVariables": [ { "name": "end", "nodeType": "YulTypedName", "src": "8013:3:4", "type": "" } ], "src": "7900:708:4" }, { "body": { "nodeType": "YulBlock", "src": "9220:1317:4", "statements": [ { "nodeType": "YulAssignment", "src": "9230:27:4", "value": { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "9242:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "9253:3:4", "type": "", "value": "224" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "9238:3:4" }, "nodeType": "YulFunctionCall", "src": "9238:19:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "9230:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "9278:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "9289:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "9274:3:4" }, "nodeType": "YulFunctionCall", "src": "9274:17:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "9297:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "9303:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "9293:3:4" }, "nodeType": "YulFunctionCall", "src": "9293:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "9267:6:4" }, "nodeType": "YulFunctionCall", "src": "9267:47:4" }, "nodeType": "YulExpressionStatement", "src": "9267:47:4" }, { "nodeType": "YulAssignment", "src": "9323:116:4", "value": { "arguments": [ { "name": "value0", "nodeType": "YulIdentifier", "src": "9425:6:4" }, { "name": "tail", "nodeType": "YulIdentifier", "src": "9434:4:4" } ], "functionName": { "name": "abi_encode_t_array$_t_uint256_$dyn_memory_ptr_to_t_array$_t_uint256_$dyn_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "9331:93:4" }, "nodeType": "YulFunctionCall", "src": "9331:108:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "9323:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "9460:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "9471:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "9456:3:4" }, "nodeType": "YulFunctionCall", "src": "9456:18:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "9480:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "9486:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "9476:3:4" }, "nodeType": "YulFunctionCall", "src": "9476:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "9449:6:4" }, "nodeType": "YulFunctionCall", "src": "9449:48:4" }, "nodeType": "YulExpressionStatement", "src": "9449:48:4" }, { "nodeType": "YulAssignment", "src": "9506:116:4", "value": { "arguments": [ { "name": "value1", "nodeType": "YulIdentifier", "src": "9608:6:4" }, { "name": "tail", "nodeType": "YulIdentifier", "src": "9617:4:4" } ], "functionName": { "name": "abi_encode_t_array$_t_uint256_$dyn_memory_ptr_to_t_array$_t_uint256_$dyn_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "9514:93:4" }, "nodeType": "YulFunctionCall", "src": "9514:108:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "9506:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "9643:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "9654:2:4", "type": "", "value": "64" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "9639:3:4" }, "nodeType": "YulFunctionCall", "src": "9639:18:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "9663:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "9669:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "9659:3:4" }, "nodeType": "YulFunctionCall", "src": "9659:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "9632:6:4" }, "nodeType": "YulFunctionCall", "src": "9632:48:4" }, "nodeType": "YulExpressionStatement", "src": "9632:48:4" }, { "nodeType": "YulAssignment", "src": "9689:116:4", "value": { "arguments": [ { "name": "value2", "nodeType": "YulIdentifier", "src": "9791:6:4" }, { "name": "tail", "nodeType": "YulIdentifier", "src": "9800:4:4" } ], "functionName": { "name": "abi_encode_t_array$_t_bytes32_$dyn_memory_ptr_to_t_array$_t_bytes32_$dyn_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "9697:93:4" }, "nodeType": "YulFunctionCall", "src": "9697:108:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "9689:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "9826:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "9837:2:4", "type": "", "value": "96" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "9822:3:4" }, "nodeType": "YulFunctionCall", "src": "9822:18:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "9846:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "9852:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "9842:3:4" }, "nodeType": "YulFunctionCall", "src": "9842:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "9815:6:4" }, "nodeType": "YulFunctionCall", "src": "9815:48:4" }, "nodeType": "YulExpressionStatement", "src": "9815:48:4" }, { "nodeType": "YulAssignment", "src": "9872:116:4", "value": { "arguments": [ { "name": "value3", "nodeType": "YulIdentifier", "src": "9974:6:4" }, { "name": "tail", "nodeType": "YulIdentifier", "src": "9983:4:4" } ], "functionName": { "name": "abi_encode_t_array$_t_bytes32_$dyn_memory_ptr_to_t_array$_t_bytes32_$dyn_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "9880:93:4" }, "nodeType": "YulFunctionCall", "src": "9880:108:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "9872:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "10009:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "10020:3:4", "type": "", "value": "128" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "10005:3:4" }, "nodeType": "YulFunctionCall", "src": "10005:19:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "10030:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "10036:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "10026:3:4" }, "nodeType": "YulFunctionCall", "src": "10026:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "9998:6:4" }, "nodeType": "YulFunctionCall", "src": "9998:49:4" }, "nodeType": "YulExpressionStatement", "src": "9998:49:4" }, { "nodeType": "YulAssignment", "src": "10056:114:4", "value": { "arguments": [ { "name": "value4", "nodeType": "YulIdentifier", "src": "10156:6:4" }, { "name": "tail", "nodeType": "YulIdentifier", "src": "10165:4:4" } ], "functionName": { "name": "abi_encode_t_array$_t_uint32_$dyn_memory_ptr_to_t_array$_t_uint32_$dyn_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "10064:91:4" }, "nodeType": "YulFunctionCall", "src": "10064:106:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "10056:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "10191:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "10202:3:4", "type": "", "value": "160" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "10187:3:4" }, "nodeType": "YulFunctionCall", "src": "10187:19:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "10212:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "10218:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "10208:3:4" }, "nodeType": "YulFunctionCall", "src": "10208:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "10180:6:4" }, "nodeType": "YulFunctionCall", "src": "10180:49:4" }, "nodeType": "YulExpressionStatement", "src": "10180:49:4" }, { "nodeType": "YulAssignment", "src": "10238:114:4", "value": { "arguments": [ { "name": "value5", "nodeType": "YulIdentifier", "src": "10338:6:4" }, { "name": "tail", "nodeType": "YulIdentifier", "src": "10347:4:4" } ], "functionName": { "name": "abi_encode_t_array$_t_uint32_$dyn_memory_ptr_to_t_array$_t_uint32_$dyn_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "10246:91:4" }, "nodeType": "YulFunctionCall", "src": "10246:106:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "10238:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "10373:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "10384:3:4", "type": "", "value": "192" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "10369:3:4" }, "nodeType": "YulFunctionCall", "src": "10369:19:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "10394:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "10400:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "10390:3:4" }, "nodeType": "YulFunctionCall", "src": "10390:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "10362:6:4" }, "nodeType": "YulFunctionCall", "src": "10362:49:4" }, "nodeType": "YulExpressionStatement", "src": "10362:49:4" }, { "nodeType": "YulAssignment", "src": "10420:110:4", "value": { "arguments": [ { "name": "value6", "nodeType": "YulIdentifier", "src": "10516:6:4" }, { "name": "tail", "nodeType": "YulIdentifier", "src": "10525:4:4" } ], "functionName": { "name": "abi_encode_t_array$_t_bool_$dyn_memory_ptr_to_t_array$_t_bool_$dyn_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "10428:87:4" }, "nodeType": "YulFunctionCall", "src": "10428:102:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "10420:4:4" } ] } ] }, "name": "abi_encode_tuple_t_array$_t_uint256_$dyn_memory_ptr_t_array$_t_uint256_$dyn_memory_ptr_t_array$_t_bytes32_$dyn_memory_ptr_t_array$_t_bytes32_$dyn_memory_ptr_t_array$_t_uint32_$dyn_memory_ptr_t_array$_t_uint32_$dyn_memory_ptr_t_array$_t_bool_$dyn_memory_ptr__to_t_array$_t_uint256_$dyn_memory_ptr_t_array$_t_uint256_$dyn_memory_ptr_t_array$_t_bytes32_$dyn_memory_ptr_t_array$_t_bytes32_$dyn_memory_ptr_t_array$_t_uint32_$dyn_memory_ptr_t_array$_t_uint32_$dyn_memory_ptr_t_array$_t_bool_$dyn_memory_ptr__fromStack_reversed", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "9144:9:4", "type": "" }, { "name": "value6", "nodeType": "YulTypedName", "src": "9156:6:4", "type": "" }, { "name": "value5", "nodeType": "YulTypedName", "src": "9164:6:4", "type": "" }, { "name": "value4", "nodeType": "YulTypedName", "src": "9172:6:4", "type": "" }, { "name": "value3", "nodeType": "YulTypedName", "src": "9180:6:4", "type": "" }, { "name": "value2", "nodeType": "YulTypedName", "src": "9188:6:4", "type": "" }, { "name": "value1", "nodeType": "YulTypedName", "src": "9196:6:4", "type": "" }, { "name": "value0", "nodeType": "YulTypedName", "src": "9204:6:4", "type": "" } ], "returnVariables": [ { "name": "tail", "nodeType": "YulTypedName", "src": "9215:4:4", "type": "" } ], "src": "8614:1923:4" }, { "body": { "nodeType": "YulBlock", "src": "10608:53:4", "statements": [ { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "10625:3:4" }, { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "10648:5:4" } ], "functionName": { "name": "cleanup_t_uint256", "nodeType": "YulIdentifier", "src": "10630:17:4" }, "nodeType": "YulFunctionCall", "src": "10630:24:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "10618:6:4" }, "nodeType": "YulFunctionCall", "src": "10618:37:4" }, "nodeType": "YulExpressionStatement", "src": "10618:37:4" } ] }, "name": "abi_encode_t_uint256_to_t_uint256_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "10596:5:4", "type": "" }, { "name": "pos", "nodeType": "YulTypedName", "src": "10603:3:4", "type": "" } ], "src": "10543:118:4" }, { "body": { "nodeType": "YulBlock", "src": "10712:81:4", "statements": [ { "nodeType": "YulAssignment", "src": "10722:65:4", "value": { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "10737:5:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "10744:42:4", "type": "", "value": "0xffffffffffffffffffffffffffffffffffffffff" } ], "functionName": { "name": "and", "nodeType": "YulIdentifier", "src": "10733:3:4" }, "nodeType": "YulFunctionCall", "src": "10733:54:4" }, "variableNames": [ { "name": "cleaned", "nodeType": "YulIdentifier", "src": "10722:7:4" } ] } ] }, "name": "cleanup_t_uint160", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "10694:5:4", "type": "" } ], "returnVariables": [ { "name": "cleaned", "nodeType": "YulTypedName", "src": "10704:7:4", "type": "" } ], "src": "10667:126:4" }, { "body": { "nodeType": "YulBlock", "src": "10844:51:4", "statements": [ { "nodeType": "YulAssignment", "src": "10854:35:4", "value": { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "10883:5:4" } ], "functionName": { "name": "cleanup_t_uint160", "nodeType": "YulIdentifier", "src": "10865:17:4" }, "nodeType": "YulFunctionCall", "src": "10865:24:4" }, "variableNames": [ { "name": "cleaned", "nodeType": "YulIdentifier", "src": "10854:7:4" } ] } ] }, "name": "cleanup_t_address", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "10826:5:4", "type": "" } ], "returnVariables": [ { "name": "cleaned", "nodeType": "YulTypedName", "src": "10836:7:4", "type": "" } ], "src": "10799:96:4" }, { "body": { "nodeType": "YulBlock", "src": "10966:53:4", "statements": [ { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "10983:3:4" }, { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "11006:5:4" } ], "functionName": { "name": "cleanup_t_address", "nodeType": "YulIdentifier", "src": "10988:17:4" }, "nodeType": "YulFunctionCall", "src": "10988:24:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "10976:6:4" }, "nodeType": "YulFunctionCall", "src": "10976:37:4" }, "nodeType": "YulExpressionStatement", "src": "10976:37:4" } ] }, "name": "abi_encode_t_address_to_t_address_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "10954:5:4", "type": "" }, { "name": "pos", "nodeType": "YulTypedName", "src": "10961:3:4", "type": "" } ], "src": "10901:118:4" }, { "body": { "nodeType": "YulBlock", "src": "11084:40:4", "statements": [ { "nodeType": "YulAssignment", "src": "11095:22:4", "value": { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "11111:5:4" } ], "functionName": { "name": "mload", "nodeType": "YulIdentifier", "src": "11105:5:4" }, "nodeType": "YulFunctionCall", "src": "11105:12:4" }, "variableNames": [ { "name": "length", "nodeType": "YulIdentifier", "src": "11095:6:4" } ] } ] }, "name": "array_length_t_string_memory_ptr", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "11067:5:4", "type": "" } ], "returnVariables": [ { "name": "length", "nodeType": "YulTypedName", "src": "11077:6:4", "type": "" } ], "src": "11025:99:4" }, { "body": { "nodeType": "YulBlock", "src": "11226:73:4", "statements": [ { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "11243:3:4" }, { "name": "length", "nodeType": "YulIdentifier", "src": "11248:6:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "11236:6:4" }, "nodeType": "YulFunctionCall", "src": "11236:19:4" }, "nodeType": "YulExpressionStatement", "src": "11236:19:4" }, { "nodeType": "YulAssignment", "src": "11264:29:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "11283:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "11288:4:4", "type": "", "value": "0x20" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "11279:3:4" }, "nodeType": "YulFunctionCall", "src": "11279:14:4" }, "variableNames": [ { "name": "updated_pos", "nodeType": "YulIdentifier", "src": "11264:11:4" } ] } ] }, "name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "pos", "nodeType": "YulTypedName", "src": "11198:3:4", "type": "" }, { "name": "length", "nodeType": "YulTypedName", "src": "11203:6:4", "type": "" } ], "returnVariables": [ { "name": "updated_pos", "nodeType": "YulTypedName", "src": "11214:11:4", "type": "" } ], "src": "11130:169:4" }, { "body": { "nodeType": "YulBlock", "src": "11354:258:4", "statements": [ { "nodeType": "YulVariableDeclaration", "src": "11364:10:4", "value": { "kind": "number", "nodeType": "YulLiteral", "src": "11373:1:4", "type": "", "value": "0" }, "variables": [ { "name": "i", "nodeType": "YulTypedName", "src": "11368:1:4", "type": "" } ] }, { "body": { "nodeType": "YulBlock", "src": "11433:63:4", "statements": [ { "expression": { "arguments": [ { "arguments": [ { "name": "dst", "nodeType": "YulIdentifier", "src": "11458:3:4" }, { "name": "i", "nodeType": "YulIdentifier", "src": "11463:1:4" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "11454:3:4" }, "nodeType": "YulFunctionCall", "src": "11454:11:4" }, { "arguments": [ { "arguments": [ { "name": "src", "nodeType": "YulIdentifier", "src": "11477:3:4" }, { "name": "i", "nodeType": "YulIdentifier", "src": "11482:1:4" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "11473:3:4" }, "nodeType": "YulFunctionCall", "src": "11473:11:4" } ], "functionName": { "name": "mload", "nodeType": "YulIdentifier", "src": "11467:5:4" }, "nodeType": "YulFunctionCall", "src": "11467:18:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "11447:6:4" }, "nodeType": "YulFunctionCall", "src": "11447:39:4" }, "nodeType": "YulExpressionStatement", "src": "11447:39:4" } ] }, "condition": { "arguments": [ { "name": "i", "nodeType": "YulIdentifier", "src": "11394:1:4" }, { "name": "length", "nodeType": "YulIdentifier", "src": "11397:6:4" } ], "functionName": { "name": "lt", "nodeType": "YulIdentifier", "src": "11391:2:4" }, "nodeType": "YulFunctionCall", "src": "11391:13:4" }, "nodeType": "YulForLoop", "post": { "nodeType": "YulBlock", "src": "11405:19:4", "statements": [ { "nodeType": "YulAssignment", "src": "11407:15:4", "value": { "arguments": [ { "name": "i", "nodeType": "YulIdentifier", "src": "11416:1:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "11419:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "11412:3:4" }, "nodeType": "YulFunctionCall", "src": "11412:10:4" }, "variableNames": [ { "name": "i", "nodeType": "YulIdentifier", "src": "11407:1:4" } ] } ] }, "pre": { "nodeType": "YulBlock", "src": "11387:3:4", "statements": [] }, "src": "11383:113:4" }, { "body": { "nodeType": "YulBlock", "src": "11530:76:4", "statements": [ { "expression": { "arguments": [ { "arguments": [ { "name": "dst", "nodeType": "YulIdentifier", "src": "11580:3:4" }, { "name": "length", "nodeType": "YulIdentifier", "src": "11585:6:4" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "11576:3:4" }, "nodeType": "YulFunctionCall", "src": "11576:16:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "11594:1:4", "type": "", "value": "0" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "11569:6:4" }, "nodeType": "YulFunctionCall", "src": "11569:27:4" }, "nodeType": "YulExpressionStatement", "src": "11569:27:4" } ] }, "condition": { "arguments": [ { "name": "i", "nodeType": "YulIdentifier", "src": "11511:1:4" }, { "name": "length", "nodeType": "YulIdentifier", "src": "11514:6:4" } ], "functionName": { "name": "gt", "nodeType": "YulIdentifier", "src": "11508:2:4" }, "nodeType": "YulFunctionCall", "src": "11508:13:4" }, "nodeType": "YulIf", "src": "11505:101:4" } ] }, "name": "copy_memory_to_memory", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "src", "nodeType": "YulTypedName", "src": "11336:3:4", "type": "" }, { "name": "dst", "nodeType": "YulTypedName", "src": "11341:3:4", "type": "" }, { "name": "length", "nodeType": "YulTypedName", "src": "11346:6:4", "type": "" } ], "src": "11305:307:4" }, { "body": { "nodeType": "YulBlock", "src": "11666:54:4", "statements": [ { "nodeType": "YulAssignment", "src": "11676:38:4", "value": { "arguments": [ { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "11694:5:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "11701:2:4", "type": "", "value": "31" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "11690:3:4" }, "nodeType": "YulFunctionCall", "src": "11690:14:4" }, { "arguments": [ { "kind": "number", "nodeType": "YulLiteral", "src": "11710:2:4", "type": "", "value": "31" } ], "functionName": { "name": "not", "nodeType": "YulIdentifier", "src": "11706:3:4" }, "nodeType": "YulFunctionCall", "src": "11706:7:4" } ], "functionName": { "name": "and", "nodeType": "YulIdentifier", "src": "11686:3:4" }, "nodeType": "YulFunctionCall", "src": "11686:28:4" }, "variableNames": [ { "name": "result", "nodeType": "YulIdentifier", "src": "11676:6:4" } ] } ] }, "name": "round_up_to_mul_of_32", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "11649:5:4", "type": "" } ], "returnVariables": [ { "name": "result", "nodeType": "YulTypedName", "src": "11659:6:4", "type": "" } ], "src": "11618:102:4" }, { "body": { "nodeType": "YulBlock", "src": "11818:272:4", "statements": [ { "nodeType": "YulVariableDeclaration", "src": "11828:53:4", "value": { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "11875:5:4" } ], "functionName": { "name": "array_length_t_string_memory_ptr", "nodeType": "YulIdentifier", "src": "11842:32:4" }, "nodeType": "YulFunctionCall", "src": "11842:39:4" }, "variables": [ { "name": "length", "nodeType": "YulTypedName", "src": "11832:6:4", "type": "" } ] }, { "nodeType": "YulAssignment", "src": "11890:78:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "11956:3:4" }, { "name": "length", "nodeType": "YulIdentifier", "src": "11961:6:4" } ], "functionName": { "name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "11897:58:4" }, "nodeType": "YulFunctionCall", "src": "11897:71:4" }, "variableNames": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "11890:3:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "12003:5:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "12010:4:4", "type": "", "value": "0x20" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "11999:3:4" }, "nodeType": "YulFunctionCall", "src": "11999:16:4" }, { "name": "pos", "nodeType": "YulIdentifier", "src": "12017:3:4" }, { "name": "length", "nodeType": "YulIdentifier", "src": "12022:6:4" } ], "functionName": { "name": "copy_memory_to_memory", "nodeType": "YulIdentifier", "src": "11977:21:4" }, "nodeType": "YulFunctionCall", "src": "11977:52:4" }, "nodeType": "YulExpressionStatement", "src": "11977:52:4" }, { "nodeType": "YulAssignment", "src": "12038:46:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "12049:3:4" }, { "arguments": [ { "name": "length", "nodeType": "YulIdentifier", "src": "12076:6:4" } ], "functionName": { "name": "round_up_to_mul_of_32", "nodeType": "YulIdentifier", "src": "12054:21:4" }, "nodeType": "YulFunctionCall", "src": "12054:29:4" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "12045:3:4" }, "nodeType": "YulFunctionCall", "src": "12045:39:4" }, "variableNames": [ { "name": "end", "nodeType": "YulIdentifier", "src": "12038:3:4" } ] } ] }, "name": "abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "11799:5:4", "type": "" }, { "name": "pos", "nodeType": "YulTypedName", "src": "11806:3:4", "type": "" } ], "returnVariables": [ { "name": "end", "nodeType": "YulTypedName", "src": "11814:3:4", "type": "" } ], "src": "11726:364:4" }, { "body": { "nodeType": "YulBlock", "src": "12394:750:4", "statements": [ { "nodeType": "YulAssignment", "src": "12404:27:4", "value": { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "12416:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "12427:3:4", "type": "", "value": "192" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "12412:3:4" }, "nodeType": "YulFunctionCall", "src": "12412:19:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "12404:4:4" } ] }, { "expression": { "arguments": [ { "name": "value0", "nodeType": "YulIdentifier", "src": "12485:6:4" }, { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "12498:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "12509:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "12494:3:4" }, "nodeType": "YulFunctionCall", "src": "12494:17:4" } ], "functionName": { "name": "abi_encode_t_uint256_to_t_uint256_fromStack", "nodeType": "YulIdentifier", "src": "12441:43:4" }, "nodeType": "YulFunctionCall", "src": "12441:71:4" }, "nodeType": "YulExpressionStatement", "src": "12441:71:4" }, { "expression": { "arguments": [ { "name": "value1", "nodeType": "YulIdentifier", "src": "12566:6:4" }, { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "12579:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "12590:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "12575:3:4" }, "nodeType": "YulFunctionCall", "src": "12575:18:4" } ], "functionName": { "name": "abi_encode_t_address_to_t_address_fromStack", "nodeType": "YulIdentifier", "src": "12522:43:4" }, "nodeType": "YulFunctionCall", "src": "12522:72:4" }, "nodeType": "YulExpressionStatement", "src": "12522:72:4" }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "12615:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "12626:2:4", "type": "", "value": "64" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "12611:3:4" }, "nodeType": "YulFunctionCall", "src": "12611:18:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "12635:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "12641:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "12631:3:4" }, "nodeType": "YulFunctionCall", "src": "12631:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "12604:6:4" }, "nodeType": "YulFunctionCall", "src": "12604:48:4" }, "nodeType": "YulExpressionStatement", "src": "12604:48:4" }, { "nodeType": "YulAssignment", "src": "12661:86:4", "value": { "arguments": [ { "name": "value2", "nodeType": "YulIdentifier", "src": "12733:6:4" }, { "name": "tail", "nodeType": "YulIdentifier", "src": "12742:4:4" } ], "functionName": { "name": "abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "12669:63:4" }, "nodeType": "YulFunctionCall", "src": "12669:78:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "12661:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "12768:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "12779:2:4", "type": "", "value": "96" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "12764:3:4" }, "nodeType": "YulFunctionCall", "src": "12764:18:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "12788:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "12794:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "12784:3:4" }, "nodeType": "YulFunctionCall", "src": "12784:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "12757:6:4" }, "nodeType": "YulFunctionCall", "src": "12757:48:4" }, "nodeType": "YulExpressionStatement", "src": "12757:48:4" }, { "nodeType": "YulAssignment", "src": "12814:86:4", "value": { "arguments": [ { "name": "value3", "nodeType": "YulIdentifier", "src": "12886:6:4" }, { "name": "tail", "nodeType": "YulIdentifier", "src": "12895:4:4" } ], "functionName": { "name": "abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "12822:63:4" }, "nodeType": "YulFunctionCall", "src": "12822:78:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "12814:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "12921:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "12932:3:4", "type": "", "value": "128" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "12917:3:4" }, "nodeType": "YulFunctionCall", "src": "12917:19:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "12942:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "12948:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "12938:3:4" }, "nodeType": "YulFunctionCall", "src": "12938:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "12910:6:4" }, "nodeType": "YulFunctionCall", "src": "12910:49:4" }, "nodeType": "YulExpressionStatement", "src": "12910:49:4" }, { "nodeType": "YulAssignment", "src": "12968:86:4", "value": { "arguments": [ { "name": "value4", "nodeType": "YulIdentifier", "src": "13040:6:4" }, { "name": "tail", "nodeType": "YulIdentifier", "src": "13049:4:4" } ], "functionName": { "name": "abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "12976:63:4" }, "nodeType": "YulFunctionCall", "src": "12976:78:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "12968:4:4" } ] }, { "expression": { "arguments": [ { "name": "value5", "nodeType": "YulIdentifier", "src": "13108:6:4" }, { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "13121:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "13132:3:4", "type": "", "value": "160" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "13117:3:4" }, "nodeType": "YulFunctionCall", "src": "13117:19:4" } ], "functionName": { "name": "abi_encode_t_uint256_to_t_uint256_fromStack", "nodeType": "YulIdentifier", "src": "13064:43:4" }, "nodeType": "YulFunctionCall", "src": "13064:73:4" }, "nodeType": "YulExpressionStatement", "src": "13064:73:4" } ] }, "name": "abi_encode_tuple_t_uint256_t_address_t_string_memory_ptr_t_string_memory_ptr_t_string_memory_ptr_t_uint256__to_t_uint256_t_address_t_string_memory_ptr_t_string_memory_ptr_t_string_memory_ptr_t_uint256__fromStack_reversed", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "12326:9:4", "type": "" }, { "name": "value5", "nodeType": "YulTypedName", "src": "12338:6:4", "type": "" }, { "name": "value4", "nodeType": "YulTypedName", "src": "12346:6:4", "type": "" }, { "name": "value3", "nodeType": "YulTypedName", "src": "12354:6:4", "type": "" }, { "name": "value2", "nodeType": "YulTypedName", "src": "12362:6:4", "type": "" }, { "name": "value1", "nodeType": "YulTypedName", "src": "12370:6:4", "type": "" }, { "name": "value0", "nodeType": "YulTypedName", "src": "12378:6:4", "type": "" } ], "returnVariables": [ { "name": "tail", "nodeType": "YulTypedName", "src": "12389:4:4", "type": "" } ], "src": "12096:1048:4" }, { "body": { "nodeType": "YulBlock", "src": "13224:40:4", "statements": [ { "nodeType": "YulAssignment", "src": "13235:22:4", "value": { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "13251:5:4" } ], "functionName": { "name": "mload", "nodeType": "YulIdentifier", "src": "13245:5:4" }, "nodeType": "YulFunctionCall", "src": "13245:12:4" }, "variableNames": [ { "name": "length", "nodeType": "YulIdentifier", "src": "13235:6:4" } ] } ] }, "name": "array_length_t_array$_t_address_$dyn_memory_ptr", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "13207:5:4", "type": "" } ], "returnVariables": [ { "name": "length", "nodeType": "YulTypedName", "src": "13217:6:4", "type": "" } ], "src": "13150:114:4" }, { "body": { "nodeType": "YulBlock", "src": "13381:73:4", "statements": [ { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "13398:3:4" }, { "name": "length", "nodeType": "YulIdentifier", "src": "13403:6:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "13391:6:4" }, "nodeType": "YulFunctionCall", "src": "13391:19:4" }, "nodeType": "YulExpressionStatement", "src": "13391:19:4" }, { "nodeType": "YulAssignment", "src": "13419:29:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "13438:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "13443:4:4", "type": "", "value": "0x20" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "13434:3:4" }, "nodeType": "YulFunctionCall", "src": "13434:14:4" }, "variableNames": [ { "name": "updated_pos", "nodeType": "YulIdentifier", "src": "13419:11:4" } ] } ] }, "name": "array_storeLengthForEncoding_t_array$_t_address_$dyn_memory_ptr_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "pos", "nodeType": "YulTypedName", "src": "13353:3:4", "type": "" }, { "name": "length", "nodeType": "YulTypedName", "src": "13358:6:4", "type": "" } ], "returnVariables": [ { "name": "updated_pos", "nodeType": "YulTypedName", "src": "13369:11:4", "type": "" } ], "src": "13270:184:4" }, { "body": { "nodeType": "YulBlock", "src": "13532:60:4", "statements": [ { "nodeType": "YulAssignment", "src": "13542:11:4", "value": { "name": "ptr", "nodeType": "YulIdentifier", "src": "13550:3:4" }, "variableNames": [ { "name": "data", "nodeType": "YulIdentifier", "src": "13542:4:4" } ] }, { "nodeType": "YulAssignment", "src": "13563:22:4", "value": { "arguments": [ { "name": "ptr", "nodeType": "YulIdentifier", "src": "13575:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "13580:4:4", "type": "", "value": "0x20" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "13571:3:4" }, "nodeType": "YulFunctionCall", "src": "13571:14:4" }, "variableNames": [ { "name": "data", "nodeType": "YulIdentifier", "src": "13563:4:4" } ] } ] }, "name": "array_dataslot_t_array$_t_address_$dyn_memory_ptr", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "ptr", "nodeType": "YulTypedName", "src": "13519:3:4", "type": "" } ], "returnVariables": [ { "name": "data", "nodeType": "YulTypedName", "src": "13527:4:4", "type": "" } ], "src": "13460:132:4" }, { "body": { "nodeType": "YulBlock", "src": "13653:53:4", "statements": [ { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "13670:3:4" }, { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "13693:5:4" } ], "functionName": { "name": "cleanup_t_address", "nodeType": "YulIdentifier", "src": "13675:17:4" }, "nodeType": "YulFunctionCall", "src": "13675:24:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "13663:6:4" }, "nodeType": "YulFunctionCall", "src": "13663:37:4" }, "nodeType": "YulExpressionStatement", "src": "13663:37:4" } ] }, "name": "abi_encode_t_address_to_t_address", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "13641:5:4", "type": "" }, { "name": "pos", "nodeType": "YulTypedName", "src": "13648:3:4", "type": "" } ], "src": "13598:108:4" }, { "body": { "nodeType": "YulBlock", "src": "13792:99:4", "statements": [ { "expression": { "arguments": [ { "name": "value0", "nodeType": "YulIdentifier", "src": "13836:6:4" }, { "name": "pos", "nodeType": "YulIdentifier", "src": "13844:3:4" } ], "functionName": { "name": "abi_encode_t_address_to_t_address", "nodeType": "YulIdentifier", "src": "13802:33:4" }, "nodeType": "YulFunctionCall", "src": "13802:46:4" }, "nodeType": "YulExpressionStatement", "src": "13802:46:4" }, { "nodeType": "YulAssignment", "src": "13857:28:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "13875:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "13880:4:4", "type": "", "value": "0x20" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "13871:3:4" }, "nodeType": "YulFunctionCall", "src": "13871:14:4" }, "variableNames": [ { "name": "updatedPos", "nodeType": "YulIdentifier", "src": "13857:10:4" } ] } ] }, "name": "abi_encodeUpdatedPos_t_address_to_t_address", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value0", "nodeType": "YulTypedName", "src": "13765:6:4", "type": "" }, { "name": "pos", "nodeType": "YulTypedName", "src": "13773:3:4", "type": "" } ], "returnVariables": [ { "name": "updatedPos", "nodeType": "YulTypedName", "src": "13781:10:4", "type": "" } ], "src": "13712:179:4" }, { "body": { "nodeType": "YulBlock", "src": "13972:38:4", "statements": [ { "nodeType": "YulAssignment", "src": "13982:22:4", "value": { "arguments": [ { "name": "ptr", "nodeType": "YulIdentifier", "src": "13994:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "13999:4:4", "type": "", "value": "0x20" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "13990:3:4" }, "nodeType": "YulFunctionCall", "src": "13990:14:4" }, "variableNames": [ { "name": "next", "nodeType": "YulIdentifier", "src": "13982:4:4" } ] } ] }, "name": "array_nextElement_t_array$_t_address_$dyn_memory_ptr", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "ptr", "nodeType": "YulTypedName", "src": "13959:3:4", "type": "" } ], "returnVariables": [ { "name": "next", "nodeType": "YulTypedName", "src": "13967:4:4", "type": "" } ], "src": "13897:113:4" }, { "body": { "nodeType": "YulBlock", "src": "14170:608:4", "statements": [ { "nodeType": "YulVariableDeclaration", "src": "14180:68:4", "value": { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "14242:5:4" } ], "functionName": { "name": "array_length_t_array$_t_address_$dyn_memory_ptr", "nodeType": "YulIdentifier", "src": "14194:47:4" }, "nodeType": "YulFunctionCall", "src": "14194:54:4" }, "variables": [ { "name": "length", "nodeType": "YulTypedName", "src": "14184:6:4", "type": "" } ] }, { "nodeType": "YulAssignment", "src": "14257:93:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "14338:3:4" }, { "name": "length", "nodeType": "YulIdentifier", "src": "14343:6:4" } ], "functionName": { "name": "array_storeLengthForEncoding_t_array$_t_address_$dyn_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "14264:73:4" }, "nodeType": "YulFunctionCall", "src": "14264:86:4" }, "variableNames": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "14257:3:4" } ] }, { "nodeType": "YulVariableDeclaration", "src": "14359:71:4", "value": { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "14424:5:4" } ], "functionName": { "name": "array_dataslot_t_array$_t_address_$dyn_memory_ptr", "nodeType": "YulIdentifier", "src": "14374:49:4" }, "nodeType": "YulFunctionCall", "src": "14374:56:4" }, "variables": [ { "name": "baseRef", "nodeType": "YulTypedName", "src": "14363:7:4", "type": "" } ] }, { "nodeType": "YulVariableDeclaration", "src": "14439:21:4", "value": { "name": "baseRef", "nodeType": "YulIdentifier", "src": "14453:7:4" }, "variables": [ { "name": "srcPtr", "nodeType": "YulTypedName", "src": "14443:6:4", "type": "" } ] }, { "body": { "nodeType": "YulBlock", "src": "14529:224:4", "statements": [ { "nodeType": "YulVariableDeclaration", "src": "14543:34:4", "value": { "arguments": [ { "name": "srcPtr", "nodeType": "YulIdentifier", "src": "14570:6:4" } ], "functionName": { "name": "mload", "nodeType": "YulIdentifier", "src": "14564:5:4" }, "nodeType": "YulFunctionCall", "src": "14564:13:4" }, "variables": [ { "name": "elementValue0", "nodeType": "YulTypedName", "src": "14547:13:4", "type": "" } ] }, { "nodeType": "YulAssignment", "src": "14590:70:4", "value": { "arguments": [ { "name": "elementValue0", "nodeType": "YulIdentifier", "src": "14641:13:4" }, { "name": "pos", "nodeType": "YulIdentifier", "src": "14656:3:4" } ], "functionName": { "name": "abi_encodeUpdatedPos_t_address_to_t_address", "nodeType": "YulIdentifier", "src": "14597:43:4" }, "nodeType": "YulFunctionCall", "src": "14597:63:4" }, "variableNames": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "14590:3:4" } ] }, { "nodeType": "YulAssignment", "src": "14673:70:4", "value": { "arguments": [ { "name": "srcPtr", "nodeType": "YulIdentifier", "src": "14736:6:4" } ], "functionName": { "name": "array_nextElement_t_array$_t_address_$dyn_memory_ptr", "nodeType": "YulIdentifier", "src": "14683:52:4" }, "nodeType": "YulFunctionCall", "src": "14683:60:4" }, "variableNames": [ { "name": "srcPtr", "nodeType": "YulIdentifier", "src": "14673:6:4" } ] } ] }, "condition": { "arguments": [ { "name": "i", "nodeType": "YulIdentifier", "src": "14491:1:4" }, { "name": "length", "nodeType": "YulIdentifier", "src": "14494:6:4" } ], "functionName": { "name": "lt", "nodeType": "YulIdentifier", "src": "14488:2:4" }, "nodeType": "YulFunctionCall", "src": "14488:13:4" }, "nodeType": "YulForLoop", "post": { "nodeType": "YulBlock", "src": "14502:18:4", "statements": [ { "nodeType": "YulAssignment", "src": "14504:14:4", "value": { "arguments": [ { "name": "i", "nodeType": "YulIdentifier", "src": "14513:1:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "14516:1:4", "type": "", "value": "1" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "14509:3:4" }, "nodeType": "YulFunctionCall", "src": "14509:9:4" }, "variableNames": [ { "name": "i", "nodeType": "YulIdentifier", "src": "14504:1:4" } ] } ] }, "pre": { "nodeType": "YulBlock", "src": "14473:14:4", "statements": [ { "nodeType": "YulVariableDeclaration", "src": "14475:10:4", "value": { "kind": "number", "nodeType": "YulLiteral", "src": "14484:1:4", "type": "", "value": "0" }, "variables": [ { "name": "i", "nodeType": "YulTypedName", "src": "14479:1:4", "type": "" } ] } ] }, "src": "14469:284:4" }, { "nodeType": "YulAssignment", "src": "14762:10:4", "value": { "name": "pos", "nodeType": "YulIdentifier", "src": "14769:3:4" }, "variableNames": [ { "name": "end", "nodeType": "YulIdentifier", "src": "14762:3:4" } ] } ] }, "name": "abi_encode_t_array$_t_address_$dyn_memory_ptr_to_t_array$_t_address_$dyn_memory_ptr_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "14149:5:4", "type": "" }, { "name": "pos", "nodeType": "YulTypedName", "src": "14156:3:4", "type": "" } ], "returnVariables": [ { "name": "end", "nodeType": "YulTypedName", "src": "14165:3:4", "type": "" } ], "src": "14046:732:4" }, { "body": { "nodeType": "YulBlock", "src": "14868:40:4", "statements": [ { "nodeType": "YulAssignment", "src": "14879:22:4", "value": { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "14895:5:4" } ], "functionName": { "name": "mload", "nodeType": "YulIdentifier", "src": "14889:5:4" }, "nodeType": "YulFunctionCall", "src": "14889:12:4" }, "variableNames": [ { "name": "length", "nodeType": "YulIdentifier", "src": "14879:6:4" } ] } ] }, "name": "array_length_t_array$_t_string_memory_ptr_$dyn_memory_ptr", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "14851:5:4", "type": "" } ], "returnVariables": [ { "name": "length", "nodeType": "YulTypedName", "src": "14861:6:4", "type": "" } ], "src": "14784:124:4" }, { "body": { "nodeType": "YulBlock", "src": "15035:73:4", "statements": [ { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "15052:3:4" }, { "name": "length", "nodeType": "YulIdentifier", "src": "15057:6:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "15045:6:4" }, "nodeType": "YulFunctionCall", "src": "15045:19:4" }, "nodeType": "YulExpressionStatement", "src": "15045:19:4" }, { "nodeType": "YulAssignment", "src": "15073:29:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "15092:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "15097:4:4", "type": "", "value": "0x20" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "15088:3:4" }, "nodeType": "YulFunctionCall", "src": "15088:14:4" }, "variableNames": [ { "name": "updated_pos", "nodeType": "YulIdentifier", "src": "15073:11:4" } ] } ] }, "name": "array_storeLengthForEncoding_t_array$_t_string_memory_ptr_$dyn_memory_ptr_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "pos", "nodeType": "YulTypedName", "src": "15007:3:4", "type": "" }, { "name": "length", "nodeType": "YulTypedName", "src": "15012:6:4", "type": "" } ], "returnVariables": [ { "name": "updated_pos", "nodeType": "YulTypedName", "src": "15023:11:4", "type": "" } ], "src": "14914:194:4" }, { "body": { "nodeType": "YulBlock", "src": "15196:60:4", "statements": [ { "nodeType": "YulAssignment", "src": "15206:11:4", "value": { "name": "ptr", "nodeType": "YulIdentifier", "src": "15214:3:4" }, "variableNames": [ { "name": "data", "nodeType": "YulIdentifier", "src": "15206:4:4" } ] }, { "nodeType": "YulAssignment", "src": "15227:22:4", "value": { "arguments": [ { "name": "ptr", "nodeType": "YulIdentifier", "src": "15239:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "15244:4:4", "type": "", "value": "0x20" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "15235:3:4" }, "nodeType": "YulFunctionCall", "src": "15235:14:4" }, "variableNames": [ { "name": "data", "nodeType": "YulIdentifier", "src": "15227:4:4" } ] } ] }, "name": "array_dataslot_t_array$_t_string_memory_ptr_$dyn_memory_ptr", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "ptr", "nodeType": "YulTypedName", "src": "15183:3:4", "type": "" } ], "returnVariables": [ { "name": "data", "nodeType": "YulTypedName", "src": "15191:4:4", "type": "" } ], "src": "15114:142:4" }, { "body": { "nodeType": "YulBlock", "src": "15348:73:4", "statements": [ { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "15365:3:4" }, { "name": "length", "nodeType": "YulIdentifier", "src": "15370:6:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "15358:6:4" }, "nodeType": "YulFunctionCall", "src": "15358:19:4" }, "nodeType": "YulExpressionStatement", "src": "15358:19:4" }, { "nodeType": "YulAssignment", "src": "15386:29:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "15405:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "15410:4:4", "type": "", "value": "0x20" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "15401:3:4" }, "nodeType": "YulFunctionCall", "src": "15401:14:4" }, "variableNames": [ { "name": "updated_pos", "nodeType": "YulIdentifier", "src": "15386:11:4" } ] } ] }, "name": "array_storeLengthForEncoding_t_string_memory_ptr", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "pos", "nodeType": "YulTypedName", "src": "15320:3:4", "type": "" }, { "name": "length", "nodeType": "YulTypedName", "src": "15325:6:4", "type": "" } ], "returnVariables": [ { "name": "updated_pos", "nodeType": "YulTypedName", "src": "15336:11:4", "type": "" } ], "src": "15262:159:4" }, { "body": { "nodeType": "YulBlock", "src": "15509:262:4", "statements": [ { "nodeType": "YulVariableDeclaration", "src": "15519:53:4", "value": { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "15566:5:4" } ], "functionName": { "name": "array_length_t_string_memory_ptr", "nodeType": "YulIdentifier", "src": "15533:32:4" }, "nodeType": "YulFunctionCall", "src": "15533:39:4" }, "variables": [ { "name": "length", "nodeType": "YulTypedName", "src": "15523:6:4", "type": "" } ] }, { "nodeType": "YulAssignment", "src": "15581:68:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "15637:3:4" }, { "name": "length", "nodeType": "YulIdentifier", "src": "15642:6:4" } ], "functionName": { "name": "array_storeLengthForEncoding_t_string_memory_ptr", "nodeType": "YulIdentifier", "src": "15588:48:4" }, "nodeType": "YulFunctionCall", "src": "15588:61:4" }, "variableNames": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "15581:3:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "15684:5:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "15691:4:4", "type": "", "value": "0x20" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "15680:3:4" }, "nodeType": "YulFunctionCall", "src": "15680:16:4" }, { "name": "pos", "nodeType": "YulIdentifier", "src": "15698:3:4" }, { "name": "length", "nodeType": "YulIdentifier", "src": "15703:6:4" } ], "functionName": { "name": "copy_memory_to_memory", "nodeType": "YulIdentifier", "src": "15658:21:4" }, "nodeType": "YulFunctionCall", "src": "15658:52:4" }, "nodeType": "YulExpressionStatement", "src": "15658:52:4" }, { "nodeType": "YulAssignment", "src": "15719:46:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "15730:3:4" }, { "arguments": [ { "name": "length", "nodeType": "YulIdentifier", "src": "15757:6:4" } ], "functionName": { "name": "round_up_to_mul_of_32", "nodeType": "YulIdentifier", "src": "15735:21:4" }, "nodeType": "YulFunctionCall", "src": "15735:29:4" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "15726:3:4" }, "nodeType": "YulFunctionCall", "src": "15726:39:4" }, "variableNames": [ { "name": "end", "nodeType": "YulIdentifier", "src": "15719:3:4" } ] } ] }, "name": "abi_encode_t_string_memory_ptr_to_t_string_memory_ptr", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "15490:5:4", "type": "" }, { "name": "pos", "nodeType": "YulTypedName", "src": "15497:3:4", "type": "" } ], "returnVariables": [ { "name": "end", "nodeType": "YulTypedName", "src": "15505:3:4", "type": "" } ], "src": "15427:344:4" }, { "body": { "nodeType": "YulBlock", "src": "15877:96:4", "statements": [ { "nodeType": "YulAssignment", "src": "15887:80:4", "value": { "arguments": [ { "name": "value0", "nodeType": "YulIdentifier", "src": "15955:6:4" }, { "name": "pos", "nodeType": "YulIdentifier", "src": "15963:3:4" } ], "functionName": { "name": "abi_encode_t_string_memory_ptr_to_t_string_memory_ptr", "nodeType": "YulIdentifier", "src": "15901:53:4" }, "nodeType": "YulFunctionCall", "src": "15901:66:4" }, "variableNames": [ { "name": "updatedPos", "nodeType": "YulIdentifier", "src": "15887:10:4" } ] } ] }, "name": "abi_encodeUpdatedPos_t_string_memory_ptr_to_t_string_memory_ptr", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value0", "nodeType": "YulTypedName", "src": "15850:6:4", "type": "" }, { "name": "pos", "nodeType": "YulTypedName", "src": "15858:3:4", "type": "" } ], "returnVariables": [ { "name": "updatedPos", "nodeType": "YulTypedName", "src": "15866:10:4", "type": "" } ], "src": "15777:196:4" }, { "body": { "nodeType": "YulBlock", "src": "16064:38:4", "statements": [ { "nodeType": "YulAssignment", "src": "16074:22:4", "value": { "arguments": [ { "name": "ptr", "nodeType": "YulIdentifier", "src": "16086:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "16091:4:4", "type": "", "value": "0x20" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "16082:3:4" }, "nodeType": "YulFunctionCall", "src": "16082:14:4" }, "variableNames": [ { "name": "next", "nodeType": "YulIdentifier", "src": "16074:4:4" } ] } ] }, "name": "array_nextElement_t_array$_t_string_memory_ptr_$dyn_memory_ptr", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "ptr", "nodeType": "YulTypedName", "src": "16051:3:4", "type": "" } ], "returnVariables": [ { "name": "next", "nodeType": "YulTypedName", "src": "16059:4:4", "type": "" } ], "src": "15979:123:4" }, { "body": { "nodeType": "YulBlock", "src": "16280:847:4", "statements": [ { "nodeType": "YulVariableDeclaration", "src": "16290:78:4", "value": { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "16362:5:4" } ], "functionName": { "name": "array_length_t_array$_t_string_memory_ptr_$dyn_memory_ptr", "nodeType": "YulIdentifier", "src": "16304:57:4" }, "nodeType": "YulFunctionCall", "src": "16304:64:4" }, "variables": [ { "name": "length", "nodeType": "YulTypedName", "src": "16294:6:4", "type": "" } ] }, { "nodeType": "YulAssignment", "src": "16377:103:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "16468:3:4" }, { "name": "length", "nodeType": "YulIdentifier", "src": "16473:6:4" } ], "functionName": { "name": "array_storeLengthForEncoding_t_array$_t_string_memory_ptr_$dyn_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "16384:83:4" }, "nodeType": "YulFunctionCall", "src": "16384:96:4" }, "variableNames": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "16377:3:4" } ] }, { "nodeType": "YulVariableDeclaration", "src": "16489:20:4", "value": { "name": "pos", "nodeType": "YulIdentifier", "src": "16506:3:4" }, "variables": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "16493:9:4", "type": "" } ] }, { "nodeType": "YulVariableDeclaration", "src": "16518:39:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "16534:3:4" }, { "arguments": [ { "name": "length", "nodeType": "YulIdentifier", "src": "16543:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "16551:4:4", "type": "", "value": "0x20" } ], "functionName": { "name": "mul", "nodeType": "YulIdentifier", "src": "16539:3:4" }, "nodeType": "YulFunctionCall", "src": "16539:17:4" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "16530:3:4" }, "nodeType": "YulFunctionCall", "src": "16530:27:4" }, "variables": [ { "name": "tail", "nodeType": "YulTypedName", "src": "16522:4:4", "type": "" } ] }, { "nodeType": "YulVariableDeclaration", "src": "16566:81:4", "value": { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "16641:5:4" } ], "functionName": { "name": "array_dataslot_t_array$_t_string_memory_ptr_$dyn_memory_ptr", "nodeType": "YulIdentifier", "src": "16581:59:4" }, "nodeType": "YulFunctionCall", "src": "16581:66:4" }, "variables": [ { "name": "baseRef", "nodeType": "YulTypedName", "src": "16570:7:4", "type": "" } ] }, { "nodeType": "YulVariableDeclaration", "src": "16656:21:4", "value": { "name": "baseRef", "nodeType": "YulIdentifier", "src": "16670:7:4" }, "variables": [ { "name": "srcPtr", "nodeType": "YulTypedName", "src": "16660:6:4", "type": "" } ] }, { "body": { "nodeType": "YulBlock", "src": "16746:336:4", "statements": [ { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "16767:3:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "16776:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "16782:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "16772:3:4" }, "nodeType": "YulFunctionCall", "src": "16772:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "16760:6:4" }, "nodeType": "YulFunctionCall", "src": "16760:33:4" }, "nodeType": "YulExpressionStatement", "src": "16760:33:4" }, { "nodeType": "YulVariableDeclaration", "src": "16806:34:4", "value": { "arguments": [ { "name": "srcPtr", "nodeType": "YulIdentifier", "src": "16833:6:4" } ], "functionName": { "name": "mload", "nodeType": "YulIdentifier", "src": "16827:5:4" }, "nodeType": "YulFunctionCall", "src": "16827:13:4" }, "variables": [ { "name": "elementValue0", "nodeType": "YulTypedName", "src": "16810:13:4", "type": "" } ] }, { "nodeType": "YulAssignment", "src": "16853:92:4", "value": { "arguments": [ { "name": "elementValue0", "nodeType": "YulIdentifier", "src": "16925:13:4" }, { "name": "tail", "nodeType": "YulIdentifier", "src": "16940:4:4" } ], "functionName": { "name": "abi_encodeUpdatedPos_t_string_memory_ptr_to_t_string_memory_ptr", "nodeType": "YulIdentifier", "src": "16861:63:4" }, "nodeType": "YulFunctionCall", "src": "16861:84:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "16853:4:4" } ] }, { "nodeType": "YulAssignment", "src": "16958:80:4", "value": { "arguments": [ { "name": "srcPtr", "nodeType": "YulIdentifier", "src": "17031:6:4" } ], "functionName": { "name": "array_nextElement_t_array$_t_string_memory_ptr_$dyn_memory_ptr", "nodeType": "YulIdentifier", "src": "16968:62:4" }, "nodeType": "YulFunctionCall", "src": "16968:70:4" }, "variableNames": [ { "name": "srcPtr", "nodeType": "YulIdentifier", "src": "16958:6:4" } ] }, { "nodeType": "YulAssignment", "src": "17051:21:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "17062:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "17067:4:4", "type": "", "value": "0x20" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "17058:3:4" }, "nodeType": "YulFunctionCall", "src": "17058:14:4" }, "variableNames": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "17051:3:4" } ] } ] }, "condition": { "arguments": [ { "name": "i", "nodeType": "YulIdentifier", "src": "16708:1:4" }, { "name": "length", "nodeType": "YulIdentifier", "src": "16711:6:4" } ], "functionName": { "name": "lt", "nodeType": "YulIdentifier", "src": "16705:2:4" }, "nodeType": "YulFunctionCall", "src": "16705:13:4" }, "nodeType": "YulForLoop", "post": { "nodeType": "YulBlock", "src": "16719:18:4", "statements": [ { "nodeType": "YulAssignment", "src": "16721:14:4", "value": { "arguments": [ { "name": "i", "nodeType": "YulIdentifier", "src": "16730:1:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "16733:1:4", "type": "", "value": "1" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "16726:3:4" }, "nodeType": "YulFunctionCall", "src": "16726:9:4" }, "variableNames": [ { "name": "i", "nodeType": "YulIdentifier", "src": "16721:1:4" } ] } ] }, "pre": { "nodeType": "YulBlock", "src": "16690:14:4", "statements": [ { "nodeType": "YulVariableDeclaration", "src": "16692:10:4", "value": { "kind": "number", "nodeType": "YulLiteral", "src": "16701:1:4", "type": "", "value": "0" }, "variables": [ { "name": "i", "nodeType": "YulTypedName", "src": "16696:1:4", "type": "" } ] } ] }, "src": "16686:396:4" }, { "nodeType": "YulAssignment", "src": "17091:11:4", "value": { "name": "tail", "nodeType": "YulIdentifier", "src": "17098:4:4" }, "variableNames": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "17091:3:4" } ] }, { "nodeType": "YulAssignment", "src": "17111:10:4", "value": { "name": "pos", "nodeType": "YulIdentifier", "src": "17118:3:4" }, "variableNames": [ { "name": "end", "nodeType": "YulIdentifier", "src": "17111:3:4" } ] } ] }, "name": "abi_encode_t_array$_t_string_memory_ptr_$dyn_memory_ptr_to_t_array$_t_string_memory_ptr_$dyn_memory_ptr_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "16259:5:4", "type": "" }, { "name": "pos", "nodeType": "YulTypedName", "src": "16266:3:4", "type": "" } ], "returnVariables": [ { "name": "end", "nodeType": "YulTypedName", "src": "16275:3:4", "type": "" } ], "src": "16136:991:4" }, { "body": { "nodeType": "YulBlock", "src": "17731:1203:4", "statements": [ { "nodeType": "YulAssignment", "src": "17741:27:4", "value": { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "17753:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "17764:3:4", "type": "", "value": "192" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "17749:3:4" }, "nodeType": "YulFunctionCall", "src": "17749:19:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "17741:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "17789:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "17800:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "17785:3:4" }, "nodeType": "YulFunctionCall", "src": "17785:17:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "17808:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "17814:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "17804:3:4" }, "nodeType": "YulFunctionCall", "src": "17804:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "17778:6:4" }, "nodeType": "YulFunctionCall", "src": "17778:47:4" }, "nodeType": "YulExpressionStatement", "src": "17778:47:4" }, { "nodeType": "YulAssignment", "src": "17834:116:4", "value": { "arguments": [ { "name": "value0", "nodeType": "YulIdentifier", "src": "17936:6:4" }, { "name": "tail", "nodeType": "YulIdentifier", "src": "17945:4:4" } ], "functionName": { "name": "abi_encode_t_array$_t_uint256_$dyn_memory_ptr_to_t_array$_t_uint256_$dyn_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "17842:93:4" }, "nodeType": "YulFunctionCall", "src": "17842:108:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "17834:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "17971:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "17982:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "17967:3:4" }, "nodeType": "YulFunctionCall", "src": "17967:18:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "17991:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "17997:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "17987:3:4" }, "nodeType": "YulFunctionCall", "src": "17987:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "17960:6:4" }, "nodeType": "YulFunctionCall", "src": "17960:48:4" }, "nodeType": "YulExpressionStatement", "src": "17960:48:4" }, { "nodeType": "YulAssignment", "src": "18017:116:4", "value": { "arguments": [ { "name": "value1", "nodeType": "YulIdentifier", "src": "18119:6:4" }, { "name": "tail", "nodeType": "YulIdentifier", "src": "18128:4:4" } ], "functionName": { "name": "abi_encode_t_array$_t_address_$dyn_memory_ptr_to_t_array$_t_address_$dyn_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "18025:93:4" }, "nodeType": "YulFunctionCall", "src": "18025:108:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "18017:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "18154:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "18165:2:4", "type": "", "value": "64" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "18150:3:4" }, "nodeType": "YulFunctionCall", "src": "18150:18:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "18174:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "18180:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "18170:3:4" }, "nodeType": "YulFunctionCall", "src": "18170:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "18143:6:4" }, "nodeType": "YulFunctionCall", "src": "18143:48:4" }, "nodeType": "YulExpressionStatement", "src": "18143:48:4" }, { "nodeType": "YulAssignment", "src": "18200:136:4", "value": { "arguments": [ { "name": "value2", "nodeType": "YulIdentifier", "src": "18322:6:4" }, { "name": "tail", "nodeType": "YulIdentifier", "src": "18331:4:4" } ], "functionName": { "name": "abi_encode_t_array$_t_string_memory_ptr_$dyn_memory_ptr_to_t_array$_t_string_memory_ptr_$dyn_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "18208:113:4" }, "nodeType": "YulFunctionCall", "src": "18208:128:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "18200:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "18357:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "18368:2:4", "type": "", "value": "96" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "18353:3:4" }, "nodeType": "YulFunctionCall", "src": "18353:18:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "18377:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "18383:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "18373:3:4" }, "nodeType": "YulFunctionCall", "src": "18373:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "18346:6:4" }, "nodeType": "YulFunctionCall", "src": "18346:48:4" }, "nodeType": "YulExpressionStatement", "src": "18346:48:4" }, { "nodeType": "YulAssignment", "src": "18403:136:4", "value": { "arguments": [ { "name": "value3", "nodeType": "YulIdentifier", "src": "18525:6:4" }, { "name": "tail", "nodeType": "YulIdentifier", "src": "18534:4:4" } ], "functionName": { "name": "abi_encode_t_array$_t_string_memory_ptr_$dyn_memory_ptr_to_t_array$_t_string_memory_ptr_$dyn_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "18411:113:4" }, "nodeType": "YulFunctionCall", "src": "18411:128:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "18403:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "18560:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "18571:3:4", "type": "", "value": "128" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "18556:3:4" }, "nodeType": "YulFunctionCall", "src": "18556:19:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "18581:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "18587:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "18577:3:4" }, "nodeType": "YulFunctionCall", "src": "18577:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "18549:6:4" }, "nodeType": "YulFunctionCall", "src": "18549:49:4" }, "nodeType": "YulExpressionStatement", "src": "18549:49:4" }, { "nodeType": "YulAssignment", "src": "18607:136:4", "value": { "arguments": [ { "name": "value4", "nodeType": "YulIdentifier", "src": "18729:6:4" }, { "name": "tail", "nodeType": "YulIdentifier", "src": "18738:4:4" } ], "functionName": { "name": "abi_encode_t_array$_t_string_memory_ptr_$dyn_memory_ptr_to_t_array$_t_string_memory_ptr_$dyn_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "18615:113:4" }, "nodeType": "YulFunctionCall", "src": "18615:128:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "18607:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "18764:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "18775:3:4", "type": "", "value": "160" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "18760:3:4" }, "nodeType": "YulFunctionCall", "src": "18760:19:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "18785:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "18791:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "18781:3:4" }, "nodeType": "YulFunctionCall", "src": "18781:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "18753:6:4" }, "nodeType": "YulFunctionCall", "src": "18753:49:4" }, "nodeType": "YulExpressionStatement", "src": "18753:49:4" }, { "nodeType": "YulAssignment", "src": "18811:116:4", "value": { "arguments": [ { "name": "value5", "nodeType": "YulIdentifier", "src": "18913:6:4" }, { "name": "tail", "nodeType": "YulIdentifier", "src": "18922:4:4" } ], "functionName": { "name": "abi_encode_t_array$_t_uint256_$dyn_memory_ptr_to_t_array$_t_uint256_$dyn_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "18819:93:4" }, "nodeType": "YulFunctionCall", "src": "18819:108:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "18811:4:4" } ] } ] }, "name": "abi_encode_tuple_t_array$_t_uint256_$dyn_memory_ptr_t_array$_t_address_$dyn_memory_ptr_t_array$_t_string_memory_ptr_$dyn_memory_ptr_t_array$_t_string_memory_ptr_$dyn_memory_ptr_t_array$_t_string_memory_ptr_$dyn_memory_ptr_t_array$_t_uint256_$dyn_memory_ptr__to_t_array$_t_uint256_$dyn_memory_ptr_t_array$_t_address_$dyn_memory_ptr_t_array$_t_string_memory_ptr_$dyn_memory_ptr_t_array$_t_string_memory_ptr_$dyn_memory_ptr_t_array$_t_string_memory_ptr_$dyn_memory_ptr_t_array$_t_uint256_$dyn_memory_ptr__fromStack_reversed", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "17663:9:4", "type": "" }, { "name": "value5", "nodeType": "YulTypedName", "src": "17675:6:4", "type": "" }, { "name": "value4", "nodeType": "YulTypedName", "src": "17683:6:4", "type": "" }, { "name": "value3", "nodeType": "YulTypedName", "src": "17691:6:4", "type": "" }, { "name": "value2", "nodeType": "YulTypedName", "src": "17699:6:4", "type": "" }, { "name": "value1", "nodeType": "YulTypedName", "src": "17707:6:4", "type": "" }, { "name": "value0", "nodeType": "YulTypedName", "src": "17715:6:4", "type": "" } ], "returnVariables": [ { "name": "tail", "nodeType": "YulTypedName", "src": "17726:4:4", "type": "" } ], "src": "17133:1801:4" }, { "body": { "nodeType": "YulBlock", "src": "18983:79:4", "statements": [ { "body": { "nodeType": "YulBlock", "src": "19040:16:4", "statements": [ { "expression": { "arguments": [ { "kind": "number", "nodeType": "YulLiteral", "src": "19049:1:4", "type": "", "value": "0" }, { "kind": "number", "nodeType": "YulLiteral", "src": "19052:1:4", "type": "", "value": "0" } ], "functionName": { "name": "revert", "nodeType": "YulIdentifier", "src": "19042:6:4" }, "nodeType": "YulFunctionCall", "src": "19042:12:4" }, "nodeType": "YulExpressionStatement", "src": "19042:12:4" } ] }, "condition": { "arguments": [ { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "19006:5:4" }, { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "19031:5:4" } ], "functionName": { "name": "cleanup_t_address", "nodeType": "YulIdentifier", "src": "19013:17:4" }, "nodeType": "YulFunctionCall", "src": "19013:24:4" } ], "functionName": { "name": "eq", "nodeType": "YulIdentifier", "src": "19003:2:4" }, "nodeType": "YulFunctionCall", "src": "19003:35:4" } ], "functionName": { "name": "iszero", "nodeType": "YulIdentifier", "src": "18996:6:4" }, "nodeType": "YulFunctionCall", "src": "18996:43:4" }, "nodeType": "YulIf", "src": "18993:63:4" } ] }, "name": "validator_revert_t_address", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "18976:5:4", "type": "" } ], "src": "18940:122:4" }, { "body": { "nodeType": "YulBlock", "src": "19120:87:4", "statements": [ { "nodeType": "YulAssignment", "src": "19130:29:4", "value": { "arguments": [ { "name": "offset", "nodeType": "YulIdentifier", "src": "19152:6:4" } ], "functionName": { "name": "calldataload", "nodeType": "YulIdentifier", "src": "19139:12:4" }, "nodeType": "YulFunctionCall", "src": "19139:20:4" }, "variableNames": [ { "name": "value", "nodeType": "YulIdentifier", "src": "19130:5:4" } ] }, { "expression": { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "19195:5:4" } ], "functionName": { "name": "validator_revert_t_address", "nodeType": "YulIdentifier", "src": "19168:26:4" }, "nodeType": "YulFunctionCall", "src": "19168:33:4" }, "nodeType": "YulExpressionStatement", "src": "19168:33:4" } ] }, "name": "abi_decode_t_address", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "offset", "nodeType": "YulTypedName", "src": "19098:6:4", "type": "" }, { "name": "end", "nodeType": "YulTypedName", "src": "19106:3:4", "type": "" } ], "returnVariables": [ { "name": "value", "nodeType": "YulTypedName", "src": "19114:5:4", "type": "" } ], "src": "19068:139:4" }, { "body": { "nodeType": "YulBlock", "src": "19279:263:4", "statements": [ { "body": { "nodeType": "YulBlock", "src": "19325:83:4", "statements": [ { "expression": { "arguments": [], "functionName": { "name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", "nodeType": "YulIdentifier", "src": "19327:77:4" }, "nodeType": "YulFunctionCall", "src": "19327:79:4" }, "nodeType": "YulExpressionStatement", "src": "19327:79:4" } ] }, "condition": { "arguments": [ { "arguments": [ { "name": "dataEnd", "nodeType": "YulIdentifier", "src": "19300:7:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "19309:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "19296:3:4" }, "nodeType": "YulFunctionCall", "src": "19296:23:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "19321:2:4", "type": "", "value": "32" } ], "functionName": { "name": "slt", "nodeType": "YulIdentifier", "src": "19292:3:4" }, "nodeType": "YulFunctionCall", "src": "19292:32:4" }, "nodeType": "YulIf", "src": "19289:119:4" }, { "nodeType": "YulBlock", "src": "19418:117:4", "statements": [ { "nodeType": "YulVariableDeclaration", "src": "19433:15:4", "value": { "kind": "number", "nodeType": "YulLiteral", "src": "19447:1:4", "type": "", "value": "0" }, "variables": [ { "name": "offset", "nodeType": "YulTypedName", "src": "19437:6:4", "type": "" } ] }, { "nodeType": "YulAssignment", "src": "19462:63:4", "value": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "19497:9:4" }, { "name": "offset", "nodeType": "YulIdentifier", "src": "19508:6:4" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "19493:3:4" }, "nodeType": "YulFunctionCall", "src": "19493:22:4" }, { "name": "dataEnd", "nodeType": "YulIdentifier", "src": "19517:7:4" } ], "functionName": { "name": "abi_decode_t_address", "nodeType": "YulIdentifier", "src": "19472:20:4" }, "nodeType": "YulFunctionCall", "src": "19472:53:4" }, "variableNames": [ { "name": "value0", "nodeType": "YulIdentifier", "src": "19462:6:4" } ] } ] } ] }, "name": "abi_decode_tuple_t_address", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "19249:9:4", "type": "" }, { "name": "dataEnd", "nodeType": "YulTypedName", "src": "19260:7:4", "type": "" } ], "returnVariables": [ { "name": "value0", "nodeType": "YulTypedName", "src": "19272:6:4", "type": "" } ], "src": "19213:329:4" }, { "body": { "nodeType": "YulBlock", "src": "19591:79:4", "statements": [ { "body": { "nodeType": "YulBlock", "src": "19648:16:4", "statements": [ { "expression": { "arguments": [ { "kind": "number", "nodeType": "YulLiteral", "src": "19657:1:4", "type": "", "value": "0" }, { "kind": "number", "nodeType": "YulLiteral", "src": "19660:1:4", "type": "", "value": "0" } ], "functionName": { "name": "revert", "nodeType": "YulIdentifier", "src": "19650:6:4" }, "nodeType": "YulFunctionCall", "src": "19650:12:4" }, "nodeType": "YulExpressionStatement", "src": "19650:12:4" } ] }, "condition": { "arguments": [ { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "19614:5:4" }, { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "19639:5:4" } ], "functionName": { "name": "cleanup_t_bytes32", "nodeType": "YulIdentifier", "src": "19621:17:4" }, "nodeType": "YulFunctionCall", "src": "19621:24:4" } ], "functionName": { "name": "eq", "nodeType": "YulIdentifier", "src": "19611:2:4" }, "nodeType": "YulFunctionCall", "src": "19611:35:4" } ], "functionName": { "name": "iszero", "nodeType": "YulIdentifier", "src": "19604:6:4" }, "nodeType": "YulFunctionCall", "src": "19604:43:4" }, "nodeType": "YulIf", "src": "19601:63:4" } ] }, "name": "validator_revert_t_bytes32", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "19584:5:4", "type": "" } ], "src": "19548:122:4" }, { "body": { "nodeType": "YulBlock", "src": "19728:87:4", "statements": [ { "nodeType": "YulAssignment", "src": "19738:29:4", "value": { "arguments": [ { "name": "offset", "nodeType": "YulIdentifier", "src": "19760:6:4" } ], "functionName": { "name": "calldataload", "nodeType": "YulIdentifier", "src": "19747:12:4" }, "nodeType": "YulFunctionCall", "src": "19747:20:4" }, "variableNames": [ { "name": "value", "nodeType": "YulIdentifier", "src": "19738:5:4" } ] }, { "expression": { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "19803:5:4" } ], "functionName": { "name": "validator_revert_t_bytes32", "nodeType": "YulIdentifier", "src": "19776:26:4" }, "nodeType": "YulFunctionCall", "src": "19776:33:4" }, "nodeType": "YulExpressionStatement", "src": "19776:33:4" } ] }, "name": "abi_decode_t_bytes32", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "offset", "nodeType": "YulTypedName", "src": "19706:6:4", "type": "" }, { "name": "end", "nodeType": "YulTypedName", "src": "19714:3:4", "type": "" } ], "returnVariables": [ { "name": "value", "nodeType": "YulTypedName", "src": "19722:5:4", "type": "" } ], "src": "19676:139:4" }, { "body": { "nodeType": "YulBlock", "src": "19863:78:4", "statements": [ { "body": { "nodeType": "YulBlock", "src": "19919:16:4", "statements": [ { "expression": { "arguments": [ { "kind": "number", "nodeType": "YulLiteral", "src": "19928:1:4", "type": "", "value": "0" }, { "kind": "number", "nodeType": "YulLiteral", "src": "19931:1:4", "type": "", "value": "0" } ], "functionName": { "name": "revert", "nodeType": "YulIdentifier", "src": "19921:6:4" }, "nodeType": "YulFunctionCall", "src": "19921:12:4" }, "nodeType": "YulExpressionStatement", "src": "19921:12:4" } ] }, "condition": { "arguments": [ { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "19886:5:4" }, { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "19910:5:4" } ], "functionName": { "name": "cleanup_t_uint32", "nodeType": "YulIdentifier", "src": "19893:16:4" }, "nodeType": "YulFunctionCall", "src": "19893:23:4" } ], "functionName": { "name": "eq", "nodeType": "YulIdentifier", "src": "19883:2:4" }, "nodeType": "YulFunctionCall", "src": "19883:34:4" } ], "functionName": { "name": "iszero", "nodeType": "YulIdentifier", "src": "19876:6:4" }, "nodeType": "YulFunctionCall", "src": "19876:42:4" }, "nodeType": "YulIf", "src": "19873:62:4" } ] }, "name": "validator_revert_t_uint32", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "19856:5:4", "type": "" } ], "src": "19821:120:4" }, { "body": { "nodeType": "YulBlock", "src": "19998:86:4", "statements": [ { "nodeType": "YulAssignment", "src": "20008:29:4", "value": { "arguments": [ { "name": "offset", "nodeType": "YulIdentifier", "src": "20030:6:4" } ], "functionName": { "name": "calldataload", "nodeType": "YulIdentifier", "src": "20017:12:4" }, "nodeType": "YulFunctionCall", "src": "20017:20:4" }, "variableNames": [ { "name": "value", "nodeType": "YulIdentifier", "src": "20008:5:4" } ] }, { "expression": { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "20072:5:4" } ], "functionName": { "name": "validator_revert_t_uint32", "nodeType": "YulIdentifier", "src": "20046:25:4" }, "nodeType": "YulFunctionCall", "src": "20046:32:4" }, "nodeType": "YulExpressionStatement", "src": "20046:32:4" } ] }, "name": "abi_decode_t_uint32", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "offset", "nodeType": "YulTypedName", "src": "19976:6:4", "type": "" }, { "name": "end", "nodeType": "YulTypedName", "src": "19984:3:4", "type": "" } ], "returnVariables": [ { "name": "value", "nodeType": "YulTypedName", "src": "19992:5:4", "type": "" } ], "src": "19947:137:4" }, { "body": { "nodeType": "YulBlock", "src": "20222:775:4", "statements": [ { "body": { "nodeType": "YulBlock", "src": "20269:83:4", "statements": [ { "expression": { "arguments": [], "functionName": { "name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", "nodeType": "YulIdentifier", "src": "20271:77:4" }, "nodeType": "YulFunctionCall", "src": "20271:79:4" }, "nodeType": "YulExpressionStatement", "src": "20271:79:4" } ] }, "condition": { "arguments": [ { "arguments": [ { "name": "dataEnd", "nodeType": "YulIdentifier", "src": "20243:7:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "20252:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "20239:3:4" }, "nodeType": "YulFunctionCall", "src": "20239:23:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "20264:3:4", "type": "", "value": "160" } ], "functionName": { "name": "slt", "nodeType": "YulIdentifier", "src": "20235:3:4" }, "nodeType": "YulFunctionCall", "src": "20235:33:4" }, "nodeType": "YulIf", "src": "20232:120:4" }, { "nodeType": "YulBlock", "src": "20362:117:4", "statements": [ { "nodeType": "YulVariableDeclaration", "src": "20377:15:4", "value": { "kind": "number", "nodeType": "YulLiteral", "src": "20391:1:4", "type": "", "value": "0" }, "variables": [ { "name": "offset", "nodeType": "YulTypedName", "src": "20381:6:4", "type": "" } ] }, { "nodeType": "YulAssignment", "src": "20406:63:4", "value": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "20441:9:4" }, { "name": "offset", "nodeType": "YulIdentifier", "src": "20452:6:4" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "20437:3:4" }, "nodeType": "YulFunctionCall", "src": "20437:22:4" }, { "name": "dataEnd", "nodeType": "YulIdentifier", "src": "20461:7:4" } ], "functionName": { "name": "abi_decode_t_uint256", "nodeType": "YulIdentifier", "src": "20416:20:4" }, "nodeType": "YulFunctionCall", "src": "20416:53:4" }, "variableNames": [ { "name": "value0", "nodeType": "YulIdentifier", "src": "20406:6:4" } ] } ] }, { "nodeType": "YulBlock", "src": "20489:118:4", "statements": [ { "nodeType": "YulVariableDeclaration", "src": "20504:16:4", "value": { "kind": "number", "nodeType": "YulLiteral", "src": "20518:2:4", "type": "", "value": "32" }, "variables": [ { "name": "offset", "nodeType": "YulTypedName", "src": "20508:6:4", "type": "" } ] }, { "nodeType": "YulAssignment", "src": "20534:63:4", "value": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "20569:9:4" }, { "name": "offset", "nodeType": "YulIdentifier", "src": "20580:6:4" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "20565:3:4" }, "nodeType": "YulFunctionCall", "src": "20565:22:4" }, { "name": "dataEnd", "nodeType": "YulIdentifier", "src": "20589:7:4" } ], "functionName": { "name": "abi_decode_t_bytes32", "nodeType": "YulIdentifier", "src": "20544:20:4" }, "nodeType": "YulFunctionCall", "src": "20544:53:4" }, "variableNames": [ { "name": "value1", "nodeType": "YulIdentifier", "src": "20534:6:4" } ] } ] }, { "nodeType": "YulBlock", "src": "20617:118:4", "statements": [ { "nodeType": "YulVariableDeclaration", "src": "20632:16:4", "value": { "kind": "number", "nodeType": "YulLiteral", "src": "20646:2:4", "type": "", "value": "64" }, "variables": [ { "name": "offset", "nodeType": "YulTypedName", "src": "20636:6:4", "type": "" } ] }, { "nodeType": "YulAssignment", "src": "20662:63:4", "value": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "20697:9:4" }, { "name": "offset", "nodeType": "YulIdentifier", "src": "20708:6:4" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "20693:3:4" }, "nodeType": "YulFunctionCall", "src": "20693:22:4" }, { "name": "dataEnd", "nodeType": "YulIdentifier", "src": "20717:7:4" } ], "functionName": { "name": "abi_decode_t_bytes32", "nodeType": "YulIdentifier", "src": "20672:20:4" }, "nodeType": "YulFunctionCall", "src": "20672:53:4" }, "variableNames": [ { "name": "value2", "nodeType": "YulIdentifier", "src": "20662:6:4" } ] } ] }, { "nodeType": "YulBlock", "src": "20745:117:4", "statements": [ { "nodeType": "YulVariableDeclaration", "src": "20760:16:4", "value": { "kind": "number", "nodeType": "YulLiteral", "src": "20774:2:4", "type": "", "value": "96" }, "variables": [ { "name": "offset", "nodeType": "YulTypedName", "src": "20764:6:4", "type": "" } ] }, { "nodeType": "YulAssignment", "src": "20790:62:4", "value": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "20824:9:4" }, { "name": "offset", "nodeType": "YulIdentifier", "src": "20835:6:4" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "20820:3:4" }, "nodeType": "YulFunctionCall", "src": "20820:22:4" }, { "name": "dataEnd", "nodeType": "YulIdentifier", "src": "20844:7:4" } ], "functionName": { "name": "abi_decode_t_uint32", "nodeType": "YulIdentifier", "src": "20800:19:4" }, "nodeType": "YulFunctionCall", "src": "20800:52:4" }, "variableNames": [ { "name": "value3", "nodeType": "YulIdentifier", "src": "20790:6:4" } ] } ] }, { "nodeType": "YulBlock", "src": "20872:118:4", "statements": [ { "nodeType": "YulVariableDeclaration", "src": "20887:17:4", "value": { "kind": "number", "nodeType": "YulLiteral", "src": "20901:3:4", "type": "", "value": "128" }, "variables": [ { "name": "offset", "nodeType": "YulTypedName", "src": "20891:6:4", "type": "" } ] }, { "nodeType": "YulAssignment", "src": "20918:62:4", "value": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "20952:9:4" }, { "name": "offset", "nodeType": "YulIdentifier", "src": "20963:6:4" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "20948:3:4" }, "nodeType": "YulFunctionCall", "src": "20948:22:4" }, { "name": "dataEnd", "nodeType": "YulIdentifier", "src": "20972:7:4" } ], "functionName": { "name": "abi_decode_t_uint32", "nodeType": "YulIdentifier", "src": "20928:19:4" }, "nodeType": "YulFunctionCall", "src": "20928:52:4" }, "variableNames": [ { "name": "value4", "nodeType": "YulIdentifier", "src": "20918:6:4" } ] } ] } ] }, "name": "abi_decode_tuple_t_uint256t_bytes32t_bytes32t_uint32t_uint32", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "20160:9:4", "type": "" }, { "name": "dataEnd", "nodeType": "YulTypedName", "src": "20171:7:4", "type": "" } ], "returnVariables": [ { "name": "value0", "nodeType": "YulTypedName", "src": "20183:6:4", "type": "" }, { "name": "value1", "nodeType": "YulTypedName", "src": "20191:6:4", "type": "" }, { "name": "value2", "nodeType": "YulTypedName", "src": "20199:6:4", "type": "" }, { "name": "value3", "nodeType": "YulTypedName", "src": "20207:6:4", "type": "" }, { "name": "value4", "nodeType": "YulTypedName", "src": "20215:6:4", "type": "" } ], "src": "20090:907:4" }, { "body": { "nodeType": "YulBlock", "src": "21101:124:4", "statements": [ { "nodeType": "YulAssignment", "src": "21111:26:4", "value": { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "21123:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "21134:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "21119:3:4" }, "nodeType": "YulFunctionCall", "src": "21119:18:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "21111:4:4" } ] }, { "expression": { "arguments": [ { "name": "value0", "nodeType": "YulIdentifier", "src": "21191:6:4" }, { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "21204:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "21215:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "21200:3:4" }, "nodeType": "YulFunctionCall", "src": "21200:17:4" } ], "functionName": { "name": "abi_encode_t_uint256_to_t_uint256_fromStack", "nodeType": "YulIdentifier", "src": "21147:43:4" }, "nodeType": "YulFunctionCall", "src": "21147:71:4" }, "nodeType": "YulExpressionStatement", "src": "21147:71:4" } ] }, "name": "abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "21073:9:4", "type": "" }, { "name": "value0", "nodeType": "YulTypedName", "src": "21085:6:4", "type": "" } ], "returnVariables": [ { "name": "tail", "nodeType": "YulTypedName", "src": "21096:4:4", "type": "" } ], "src": "21003:222:4" }, { "body": { "nodeType": "YulBlock", "src": "21759:1133:4", "statements": [ { "nodeType": "YulAssignment", "src": "21769:27:4", "value": { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "21781:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "21792:3:4", "type": "", "value": "192" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "21777:3:4" }, "nodeType": "YulFunctionCall", "src": "21777:19:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "21769:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "21817:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "21828:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "21813:3:4" }, "nodeType": "YulFunctionCall", "src": "21813:17:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "21836:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "21842:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "21832:3:4" }, "nodeType": "YulFunctionCall", "src": "21832:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "21806:6:4" }, "nodeType": "YulFunctionCall", "src": "21806:47:4" }, "nodeType": "YulExpressionStatement", "src": "21806:47:4" }, { "nodeType": "YulAssignment", "src": "21862:116:4", "value": { "arguments": [ { "name": "value0", "nodeType": "YulIdentifier", "src": "21964:6:4" }, { "name": "tail", "nodeType": "YulIdentifier", "src": "21973:4:4" } ], "functionName": { "name": "abi_encode_t_array$_t_uint256_$dyn_memory_ptr_to_t_array$_t_uint256_$dyn_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "21870:93:4" }, "nodeType": "YulFunctionCall", "src": "21870:108:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "21862:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "21999:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "22010:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "21995:3:4" }, "nodeType": "YulFunctionCall", "src": "21995:18:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "22019:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "22025:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "22015:3:4" }, "nodeType": "YulFunctionCall", "src": "22015:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "21988:6:4" }, "nodeType": "YulFunctionCall", "src": "21988:48:4" }, "nodeType": "YulExpressionStatement", "src": "21988:48:4" }, { "nodeType": "YulAssignment", "src": "22045:116:4", "value": { "arguments": [ { "name": "value1", "nodeType": "YulIdentifier", "src": "22147:6:4" }, { "name": "tail", "nodeType": "YulIdentifier", "src": "22156:4:4" } ], "functionName": { "name": "abi_encode_t_array$_t_uint256_$dyn_memory_ptr_to_t_array$_t_uint256_$dyn_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "22053:93:4" }, "nodeType": "YulFunctionCall", "src": "22053:108:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "22045:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "22182:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "22193:2:4", "type": "", "value": "64" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "22178:3:4" }, "nodeType": "YulFunctionCall", "src": "22178:18:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "22202:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "22208:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "22198:3:4" }, "nodeType": "YulFunctionCall", "src": "22198:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "22171:6:4" }, "nodeType": "YulFunctionCall", "src": "22171:48:4" }, "nodeType": "YulExpressionStatement", "src": "22171:48:4" }, { "nodeType": "YulAssignment", "src": "22228:116:4", "value": { "arguments": [ { "name": "value2", "nodeType": "YulIdentifier", "src": "22330:6:4" }, { "name": "tail", "nodeType": "YulIdentifier", "src": "22339:4:4" } ], "functionName": { "name": "abi_encode_t_array$_t_bytes32_$dyn_memory_ptr_to_t_array$_t_bytes32_$dyn_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "22236:93:4" }, "nodeType": "YulFunctionCall", "src": "22236:108:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "22228:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "22365:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "22376:2:4", "type": "", "value": "96" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "22361:3:4" }, "nodeType": "YulFunctionCall", "src": "22361:18:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "22385:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "22391:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "22381:3:4" }, "nodeType": "YulFunctionCall", "src": "22381:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "22354:6:4" }, "nodeType": "YulFunctionCall", "src": "22354:48:4" }, "nodeType": "YulExpressionStatement", "src": "22354:48:4" }, { "nodeType": "YulAssignment", "src": "22411:114:4", "value": { "arguments": [ { "name": "value3", "nodeType": "YulIdentifier", "src": "22511:6:4" }, { "name": "tail", "nodeType": "YulIdentifier", "src": "22520:4:4" } ], "functionName": { "name": "abi_encode_t_array$_t_uint32_$dyn_memory_ptr_to_t_array$_t_uint32_$dyn_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "22419:91:4" }, "nodeType": "YulFunctionCall", "src": "22419:106:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "22411:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "22546:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "22557:3:4", "type": "", "value": "128" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "22542:3:4" }, "nodeType": "YulFunctionCall", "src": "22542:19:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "22567:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "22573:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "22563:3:4" }, "nodeType": "YulFunctionCall", "src": "22563:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "22535:6:4" }, "nodeType": "YulFunctionCall", "src": "22535:49:4" }, "nodeType": "YulExpressionStatement", "src": "22535:49:4" }, { "nodeType": "YulAssignment", "src": "22593:114:4", "value": { "arguments": [ { "name": "value4", "nodeType": "YulIdentifier", "src": "22693:6:4" }, { "name": "tail", "nodeType": "YulIdentifier", "src": "22702:4:4" } ], "functionName": { "name": "abi_encode_t_array$_t_uint32_$dyn_memory_ptr_to_t_array$_t_uint32_$dyn_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "22601:91:4" }, "nodeType": "YulFunctionCall", "src": "22601:106:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "22593:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "22728:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "22739:3:4", "type": "", "value": "160" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "22724:3:4" }, "nodeType": "YulFunctionCall", "src": "22724:19:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "22749:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "22755:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "22745:3:4" }, "nodeType": "YulFunctionCall", "src": "22745:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "22717:6:4" }, "nodeType": "YulFunctionCall", "src": "22717:49:4" }, "nodeType": "YulExpressionStatement", "src": "22717:49:4" }, { "nodeType": "YulAssignment", "src": "22775:110:4", "value": { "arguments": [ { "name": "value5", "nodeType": "YulIdentifier", "src": "22871:6:4" }, { "name": "tail", "nodeType": "YulIdentifier", "src": "22880:4:4" } ], "functionName": { "name": "abi_encode_t_array$_t_bool_$dyn_memory_ptr_to_t_array$_t_bool_$dyn_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "22783:87:4" }, "nodeType": "YulFunctionCall", "src": "22783:102:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "22775:4:4" } ] } ] }, "name": "abi_encode_tuple_t_array$_t_uint256_$dyn_memory_ptr_t_array$_t_uint256_$dyn_memory_ptr_t_array$_t_bytes32_$dyn_memory_ptr_t_array$_t_uint32_$dyn_memory_ptr_t_array$_t_uint32_$dyn_memory_ptr_t_array$_t_bool_$dyn_memory_ptr__to_t_array$_t_uint256_$dyn_memory_ptr_t_array$_t_uint256_$dyn_memory_ptr_t_array$_t_bytes32_$dyn_memory_ptr_t_array$_t_uint32_$dyn_memory_ptr_t_array$_t_uint32_$dyn_memory_ptr_t_array$_t_bool_$dyn_memory_ptr__fromStack_reversed", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "21691:9:4", "type": "" }, { "name": "value5", "nodeType": "YulTypedName", "src": "21703:6:4", "type": "" }, { "name": "value4", "nodeType": "YulTypedName", "src": "21711:6:4", "type": "" }, { "name": "value3", "nodeType": "YulTypedName", "src": "21719:6:4", "type": "" }, { "name": "value2", "nodeType": "YulTypedName", "src": "21727:6:4", "type": "" }, { "name": "value1", "nodeType": "YulTypedName", "src": "21735:6:4", "type": "" }, { "name": "value0", "nodeType": "YulTypedName", "src": "21743:6:4", "type": "" } ], "returnVariables": [ { "name": "tail", "nodeType": "YulTypedName", "src": "21754:4:4", "type": "" } ], "src": "21231:1661:4" }, { "body": { "nodeType": "YulBlock", "src": "22987:28:4", "statements": [ { "expression": { "arguments": [ { "kind": "number", "nodeType": "YulLiteral", "src": "23004:1:4", "type": "", "value": "0" }, { "kind": "number", "nodeType": "YulLiteral", "src": "23007:1:4", "type": "", "value": "0" } ], "functionName": { "name": "revert", "nodeType": "YulIdentifier", "src": "22997:6:4" }, "nodeType": "YulFunctionCall", "src": "22997:12:4" }, "nodeType": "YulExpressionStatement", "src": "22997:12:4" } ] }, "name": "revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d", "nodeType": "YulFunctionDefinition", "src": "22898:117:4" }, { "body": { "nodeType": "YulBlock", "src": "23110:28:4", "statements": [ { "expression": { "arguments": [ { "kind": "number", "nodeType": "YulLiteral", "src": "23127:1:4", "type": "", "value": "0" }, { "kind": "number", "nodeType": "YulLiteral", "src": "23130:1:4", "type": "", "value": "0" } ], "functionName": { "name": "revert", "nodeType": "YulIdentifier", "src": "23120:6:4" }, "nodeType": "YulFunctionCall", "src": "23120:12:4" }, "nodeType": "YulExpressionStatement", "src": "23120:12:4" } ] }, "name": "revert_error_987264b3b1d58a9c7f8255e93e81c77d86d6299019c33110a076957a3e06e2ae", "nodeType": "YulFunctionDefinition", "src": "23021:117:4" }, { "body": { "nodeType": "YulBlock", "src": "23172:152:4", "statements": [ { "expression": { "arguments": [ { "kind": "number", "nodeType": "YulLiteral", "src": "23189:1:4", "type": "", "value": "0" }, { "kind": "number", "nodeType": "YulLiteral", "src": "23192:77:4", "type": "", "value": "35408467139433450592217433187231851964531694900788300625387963629091585785856" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "23182:6:4" }, "nodeType": "YulFunctionCall", "src": "23182:88:4" }, "nodeType": "YulExpressionStatement", "src": "23182:88:4" }, { "expression": { "arguments": [ { "kind": "number", "nodeType": "YulLiteral", "src": "23286:1:4", "type": "", "value": "4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "23289:4:4", "type": "", "value": "0x41" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "23279:6:4" }, "nodeType": "YulFunctionCall", "src": "23279:15:4" }, "nodeType": "YulExpressionStatement", "src": "23279:15:4" }, { "expression": { "arguments": [ { "kind": "number", "nodeType": "YulLiteral", "src": "23310:1:4", "type": "", "value": "0" }, { "kind": "number", "nodeType": "YulLiteral", "src": "23313:4:4", "type": "", "value": "0x24" } ], "functionName": { "name": "revert", "nodeType": "YulIdentifier", "src": "23303:6:4" }, "nodeType": "YulFunctionCall", "src": "23303:15:4" }, "nodeType": "YulExpressionStatement", "src": "23303:15:4" } ] }, "name": "panic_error_0x41", "nodeType": "YulFunctionDefinition", "src": "23144:180:4" }, { "body": { "nodeType": "YulBlock", "src": "23373:238:4", "statements": [ { "nodeType": "YulVariableDeclaration", "src": "23383:58:4", "value": { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "23405:6:4" }, { "arguments": [ { "name": "size", "nodeType": "YulIdentifier", "src": "23435:4:4" } ], "functionName": { "name": "round_up_to_mul_of_32", "nodeType": "YulIdentifier", "src": "23413:21:4" }, "nodeType": "YulFunctionCall", "src": "23413:27:4" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "23401:3:4" }, "nodeType": "YulFunctionCall", "src": "23401:40:4" }, "variables": [ { "name": "newFreePtr", "nodeType": "YulTypedName", "src": "23387:10:4", "type": "" } ] }, { "body": { "nodeType": "YulBlock", "src": "23552:22:4", "statements": [ { "expression": { "arguments": [], "functionName": { "name": "panic_error_0x41", "nodeType": "YulIdentifier", "src": "23554:16:4" }, "nodeType": "YulFunctionCall", "src": "23554:18:4" }, "nodeType": "YulExpressionStatement", "src": "23554:18:4" } ] }, "condition": { "arguments": [ { "arguments": [ { "name": "newFreePtr", "nodeType": "YulIdentifier", "src": "23495:10:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "23507:18:4", "type": "", "value": "0xffffffffffffffff" } ], "functionName": { "name": "gt", "nodeType": "YulIdentifier", "src": "23492:2:4" }, "nodeType": "YulFunctionCall", "src": "23492:34:4" }, { "arguments": [ { "name": "newFreePtr", "nodeType": "YulIdentifier", "src": "23531:10:4" }, { "name": "memPtr", "nodeType": "YulIdentifier", "src": "23543:6:4" } ], "functionName": { "name": "lt", "nodeType": "YulIdentifier", "src": "23528:2:4" }, "nodeType": "YulFunctionCall", "src": "23528:22:4" } ], "functionName": { "name": "or", "nodeType": "YulIdentifier", "src": "23489:2:4" }, "nodeType": "YulFunctionCall", "src": "23489:62:4" }, "nodeType": "YulIf", "src": "23486:88:4" }, { "expression": { "arguments": [ { "kind": "number", "nodeType": "YulLiteral", "src": "23590:2:4", "type": "", "value": "64" }, { "name": "newFreePtr", "nodeType": "YulIdentifier", "src": "23594:10:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "23583:6:4" }, "nodeType": "YulFunctionCall", "src": "23583:22:4" }, "nodeType": "YulExpressionStatement", "src": "23583:22:4" } ] }, "name": "finalize_allocation", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "memPtr", "nodeType": "YulTypedName", "src": "23359:6:4", "type": "" }, { "name": "size", "nodeType": "YulTypedName", "src": "23367:4:4", "type": "" } ], "src": "23330:281:4" }, { "body": { "nodeType": "YulBlock", "src": "23658:88:4", "statements": [ { "nodeType": "YulAssignment", "src": "23668:30:4", "value": { "arguments": [], "functionName": { "name": "allocate_unbounded", "nodeType": "YulIdentifier", "src": "23678:18:4" }, "nodeType": "YulFunctionCall", "src": "23678:20:4" }, "variableNames": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "23668:6:4" } ] }, { "expression": { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "23727:6:4" }, { "name": "size", "nodeType": "YulIdentifier", "src": "23735:4:4" } ], "functionName": { "name": "finalize_allocation", "nodeType": "YulIdentifier", "src": "23707:19:4" }, "nodeType": "YulFunctionCall", "src": "23707:33:4" }, "nodeType": "YulExpressionStatement", "src": "23707:33:4" } ] }, "name": "allocate_memory", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "size", "nodeType": "YulTypedName", "src": "23642:4:4", "type": "" } ], "returnVariables": [ { "name": "memPtr", "nodeType": "YulTypedName", "src": "23651:6:4", "type": "" } ], "src": "23617:129:4" }, { "body": { "nodeType": "YulBlock", "src": "23819:241:4", "statements": [ { "body": { "nodeType": "YulBlock", "src": "23924:22:4", "statements": [ { "expression": { "arguments": [], "functionName": { "name": "panic_error_0x41", "nodeType": "YulIdentifier", "src": "23926:16:4" }, "nodeType": "YulFunctionCall", "src": "23926:18:4" }, "nodeType": "YulExpressionStatement", "src": "23926:18:4" } ] }, "condition": { "arguments": [ { "name": "length", "nodeType": "YulIdentifier", "src": "23896:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "23904:18:4", "type": "", "value": "0xffffffffffffffff" } ], "functionName": { "name": "gt", "nodeType": "YulIdentifier", "src": "23893:2:4" }, "nodeType": "YulFunctionCall", "src": "23893:30:4" }, "nodeType": "YulIf", "src": "23890:56:4" }, { "nodeType": "YulAssignment", "src": "23956:37:4", "value": { "arguments": [ { "name": "length", "nodeType": "YulIdentifier", "src": "23986:6:4" } ], "functionName": { "name": "round_up_to_mul_of_32", "nodeType": "YulIdentifier", "src": "23964:21:4" }, "nodeType": "YulFunctionCall", "src": "23964:29:4" }, "variableNames": [ { "name": "size", "nodeType": "YulIdentifier", "src": "23956:4:4" } ] }, { "nodeType": "YulAssignment", "src": "24030:23:4", "value": { "arguments": [ { "name": "size", "nodeType": "YulIdentifier", "src": "24042:4:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "24048:4:4", "type": "", "value": "0x20" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "24038:3:4" }, "nodeType": "YulFunctionCall", "src": "24038:15:4" }, "variableNames": [ { "name": "size", "nodeType": "YulIdentifier", "src": "24030:4:4" } ] } ] }, "name": "array_allocation_size_t_string_memory_ptr", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "length", "nodeType": "YulTypedName", "src": "23803:6:4", "type": "" } ], "returnVariables": [ { "name": "size", "nodeType": "YulTypedName", "src": "23814:4:4", "type": "" } ], "src": "23752:308:4" }, { "body": { "nodeType": "YulBlock", "src": "24117:103:4", "statements": [ { "expression": { "arguments": [ { "name": "dst", "nodeType": "YulIdentifier", "src": "24140:3:4" }, { "name": "src", "nodeType": "YulIdentifier", "src": "24145:3:4" }, { "name": "length", "nodeType": "YulIdentifier", "src": "24150:6:4" } ], "functionName": { "name": "calldatacopy", "nodeType": "YulIdentifier", "src": "24127:12:4" }, "nodeType": "YulFunctionCall", "src": "24127:30:4" }, "nodeType": "YulExpressionStatement", "src": "24127:30:4" }, { "expression": { "arguments": [ { "arguments": [ { "name": "dst", "nodeType": "YulIdentifier", "src": "24198:3:4" }, { "name": "length", "nodeType": "YulIdentifier", "src": "24203:6:4" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "24194:3:4" }, "nodeType": "YulFunctionCall", "src": "24194:16:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "24212:1:4", "type": "", "value": "0" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "24187:6:4" }, "nodeType": "YulFunctionCall", "src": "24187:27:4" }, "nodeType": "YulExpressionStatement", "src": "24187:27:4" } ] }, "name": "copy_calldata_to_memory", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "src", "nodeType": "YulTypedName", "src": "24099:3:4", "type": "" }, { "name": "dst", "nodeType": "YulTypedName", "src": "24104:3:4", "type": "" }, { "name": "length", "nodeType": "YulTypedName", "src": "24109:6:4", "type": "" } ], "src": "24066:154:4" }, { "body": { "nodeType": "YulBlock", "src": "24310:328:4", "statements": [ { "nodeType": "YulAssignment", "src": "24320:75:4", "value": { "arguments": [ { "arguments": [ { "name": "length", "nodeType": "YulIdentifier", "src": "24387:6:4" } ], "functionName": { "name": "array_allocation_size_t_string_memory_ptr", "nodeType": "YulIdentifier", "src": "24345:41:4" }, "nodeType": "YulFunctionCall", "src": "24345:49:4" } ], "functionName": { "name": "allocate_memory", "nodeType": "YulIdentifier", "src": "24329:15:4" }, "nodeType": "YulFunctionCall", "src": "24329:66:4" }, "variableNames": [ { "name": "array", "nodeType": "YulIdentifier", "src": "24320:5:4" } ] }, { "expression": { "arguments": [ { "name": "array", "nodeType": "YulIdentifier", "src": "24411:5:4" }, { "name": "length", "nodeType": "YulIdentifier", "src": "24418:6:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "24404:6:4" }, "nodeType": "YulFunctionCall", "src": "24404:21:4" }, "nodeType": "YulExpressionStatement", "src": "24404:21:4" }, { "nodeType": "YulVariableDeclaration", "src": "24434:27:4", "value": { "arguments": [ { "name": "array", "nodeType": "YulIdentifier", "src": "24449:5:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "24456:4:4", "type": "", "value": "0x20" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "24445:3:4" }, "nodeType": "YulFunctionCall", "src": "24445:16:4" }, "variables": [ { "name": "dst", "nodeType": "YulTypedName", "src": "24438:3:4", "type": "" } ] }, { "body": { "nodeType": "YulBlock", "src": "24499:83:4", "statements": [ { "expression": { "arguments": [], "functionName": { "name": "revert_error_987264b3b1d58a9c7f8255e93e81c77d86d6299019c33110a076957a3e06e2ae", "nodeType": "YulIdentifier", "src": "24501:77:4" }, "nodeType": "YulFunctionCall", "src": "24501:79:4" }, "nodeType": "YulExpressionStatement", "src": "24501:79:4" } ] }, "condition": { "arguments": [ { "arguments": [ { "name": "src", "nodeType": "YulIdentifier", "src": "24480:3:4" }, { "name": "length", "nodeType": "YulIdentifier", "src": "24485:6:4" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "24476:3:4" }, "nodeType": "YulFunctionCall", "src": "24476:16:4" }, { "name": "end", "nodeType": "YulIdentifier", "src": "24494:3:4" } ], "functionName": { "name": "gt", "nodeType": "YulIdentifier", "src": "24473:2:4" }, "nodeType": "YulFunctionCall", "src": "24473:25:4" }, "nodeType": "YulIf", "src": "24470:112:4" }, { "expression": { "arguments": [ { "name": "src", "nodeType": "YulIdentifier", "src": "24615:3:4" }, { "name": "dst", "nodeType": "YulIdentifier", "src": "24620:3:4" }, { "name": "length", "nodeType": "YulIdentifier", "src": "24625:6:4" } ], "functionName": { "name": "copy_calldata_to_memory", "nodeType": "YulIdentifier", "src": "24591:23:4" }, "nodeType": "YulFunctionCall", "src": "24591:41:4" }, "nodeType": "YulExpressionStatement", "src": "24591:41:4" } ] }, "name": "abi_decode_available_length_t_string_memory_ptr", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "src", "nodeType": "YulTypedName", "src": "24283:3:4", "type": "" }, { "name": "length", "nodeType": "YulTypedName", "src": "24288:6:4", "type": "" }, { "name": "end", "nodeType": "YulTypedName", "src": "24296:3:4", "type": "" } ], "returnVariables": [ { "name": "array", "nodeType": "YulTypedName", "src": "24304:5:4", "type": "" } ], "src": "24226:412:4" }, { "body": { "nodeType": "YulBlock", "src": "24720:278:4", "statements": [ { "body": { "nodeType": "YulBlock", "src": "24769:83:4", "statements": [ { "expression": { "arguments": [], "functionName": { "name": "revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d", "nodeType": "YulIdentifier", "src": "24771:77:4" }, "nodeType": "YulFunctionCall", "src": "24771:79:4" }, "nodeType": "YulExpressionStatement", "src": "24771:79:4" } ] }, "condition": { "arguments": [ { "arguments": [ { "arguments": [ { "name": "offset", "nodeType": "YulIdentifier", "src": "24748:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "24756:4:4", "type": "", "value": "0x1f" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "24744:3:4" }, "nodeType": "YulFunctionCall", "src": "24744:17:4" }, { "name": "end", "nodeType": "YulIdentifier", "src": "24763:3:4" } ], "functionName": { "name": "slt", "nodeType": "YulIdentifier", "src": "24740:3:4" }, "nodeType": "YulFunctionCall", "src": "24740:27:4" } ], "functionName": { "name": "iszero", "nodeType": "YulIdentifier", "src": "24733:6:4" }, "nodeType": "YulFunctionCall", "src": "24733:35:4" }, "nodeType": "YulIf", "src": "24730:122:4" }, { "nodeType": "YulVariableDeclaration", "src": "24861:34:4", "value": { "arguments": [ { "name": "offset", "nodeType": "YulIdentifier", "src": "24888:6:4" } ], "functionName": { "name": "calldataload", "nodeType": "YulIdentifier", "src": "24875:12:4" }, "nodeType": "YulFunctionCall", "src": "24875:20:4" }, "variables": [ { "name": "length", "nodeType": "YulTypedName", "src": "24865:6:4", "type": "" } ] }, { "nodeType": "YulAssignment", "src": "24904:88:4", "value": { "arguments": [ { "arguments": [ { "name": "offset", "nodeType": "YulIdentifier", "src": "24965:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "24973:4:4", "type": "", "value": "0x20" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "24961:3:4" }, "nodeType": "YulFunctionCall", "src": "24961:17:4" }, { "name": "length", "nodeType": "YulIdentifier", "src": "24980:6:4" }, { "name": "end", "nodeType": "YulIdentifier", "src": "24988:3:4" } ], "functionName": { "name": "abi_decode_available_length_t_string_memory_ptr", "nodeType": "YulIdentifier", "src": "24913:47:4" }, "nodeType": "YulFunctionCall", "src": "24913:79:4" }, "variableNames": [ { "name": "array", "nodeType": "YulIdentifier", "src": "24904:5:4" } ] } ] }, "name": "abi_decode_t_string_memory_ptr", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "offset", "nodeType": "YulTypedName", "src": "24698:6:4", "type": "" }, { "name": "end", "nodeType": "YulTypedName", "src": "24706:3:4", "type": "" } ], "returnVariables": [ { "name": "array", "nodeType": "YulTypedName", "src": "24714:5:4", "type": "" } ], "src": "24658:340:4" }, { "body": { "nodeType": "YulBlock", "src": "25151:1158:4", "statements": [ { "body": { "nodeType": "YulBlock", "src": "25198:83:4", "statements": [ { "expression": { "arguments": [], "functionName": { "name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", "nodeType": "YulIdentifier", "src": "25200:77:4" }, "nodeType": "YulFunctionCall", "src": "25200:79:4" }, "nodeType": "YulExpressionStatement", "src": "25200:79:4" } ] }, "condition": { "arguments": [ { "arguments": [ { "name": "dataEnd", "nodeType": "YulIdentifier", "src": "25172:7:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "25181:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "25168:3:4" }, "nodeType": "YulFunctionCall", "src": "25168:23:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "25193:3:4", "type": "", "value": "128" } ], "functionName": { "name": "slt", "nodeType": "YulIdentifier", "src": "25164:3:4" }, "nodeType": "YulFunctionCall", "src": "25164:33:4" }, "nodeType": "YulIf", "src": "25161:120:4" }, { "nodeType": "YulBlock", "src": "25291:287:4", "statements": [ { "nodeType": "YulVariableDeclaration", "src": "25306:45:4", "value": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "25337:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "25348:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "25333:3:4" }, "nodeType": "YulFunctionCall", "src": "25333:17:4" } ], "functionName": { "name": "calldataload", "nodeType": "YulIdentifier", "src": "25320:12:4" }, "nodeType": "YulFunctionCall", "src": "25320:31:4" }, "variables": [ { "name": "offset", "nodeType": "YulTypedName", "src": "25310:6:4", "type": "" } ] }, { "body": { "nodeType": "YulBlock", "src": "25398:83:4", "statements": [ { "expression": { "arguments": [], "functionName": { "name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db", "nodeType": "YulIdentifier", "src": "25400:77:4" }, "nodeType": "YulFunctionCall", "src": "25400:79:4" }, "nodeType": "YulExpressionStatement", "src": "25400:79:4" } ] }, "condition": { "arguments": [ { "name": "offset", "nodeType": "YulIdentifier", "src": "25370:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "25378:18:4", "type": "", "value": "0xffffffffffffffff" } ], "functionName": { "name": "gt", "nodeType": "YulIdentifier", "src": "25367:2:4" }, "nodeType": "YulFunctionCall", "src": "25367:30:4" }, "nodeType": "YulIf", "src": "25364:117:4" }, { "nodeType": "YulAssignment", "src": "25495:73:4", "value": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "25540:9:4" }, { "name": "offset", "nodeType": "YulIdentifier", "src": "25551:6:4" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "25536:3:4" }, "nodeType": "YulFunctionCall", "src": "25536:22:4" }, { "name": "dataEnd", "nodeType": "YulIdentifier", "src": "25560:7:4" } ], "functionName": { "name": "abi_decode_t_string_memory_ptr", "nodeType": "YulIdentifier", "src": "25505:30:4" }, "nodeType": "YulFunctionCall", "src": "25505:63:4" }, "variableNames": [ { "name": "value0", "nodeType": "YulIdentifier", "src": "25495:6:4" } ] } ] }, { "nodeType": "YulBlock", "src": "25588:288:4", "statements": [ { "nodeType": "YulVariableDeclaration", "src": "25603:46:4", "value": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "25634:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "25645:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "25630:3:4" }, "nodeType": "YulFunctionCall", "src": "25630:18:4" } ], "functionName": { "name": "calldataload", "nodeType": "YulIdentifier", "src": "25617:12:4" }, "nodeType": "YulFunctionCall", "src": "25617:32:4" }, "variables": [ { "name": "offset", "nodeType": "YulTypedName", "src": "25607:6:4", "type": "" } ] }, { "body": { "nodeType": "YulBlock", "src": "25696:83:4", "statements": [ { "expression": { "arguments": [], "functionName": { "name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db", "nodeType": "YulIdentifier", "src": "25698:77:4" }, "nodeType": "YulFunctionCall", "src": "25698:79:4" }, "nodeType": "YulExpressionStatement", "src": "25698:79:4" } ] }, "condition": { "arguments": [ { "name": "offset", "nodeType": "YulIdentifier", "src": "25668:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "25676:18:4", "type": "", "value": "0xffffffffffffffff" } ], "functionName": { "name": "gt", "nodeType": "YulIdentifier", "src": "25665:2:4" }, "nodeType": "YulFunctionCall", "src": "25665:30:4" }, "nodeType": "YulIf", "src": "25662:117:4" }, { "nodeType": "YulAssignment", "src": "25793:73:4", "value": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "25838:9:4" }, { "name": "offset", "nodeType": "YulIdentifier", "src": "25849:6:4" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "25834:3:4" }, "nodeType": "YulFunctionCall", "src": "25834:22:4" }, { "name": "dataEnd", "nodeType": "YulIdentifier", "src": "25858:7:4" } ], "functionName": { "name": "abi_decode_t_string_memory_ptr", "nodeType": "YulIdentifier", "src": "25803:30:4" }, "nodeType": "YulFunctionCall", "src": "25803:63:4" }, "variableNames": [ { "name": "value1", "nodeType": "YulIdentifier", "src": "25793:6:4" } ] } ] }, { "nodeType": "YulBlock", "src": "25886:288:4", "statements": [ { "nodeType": "YulVariableDeclaration", "src": "25901:46:4", "value": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "25932:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "25943:2:4", "type": "", "value": "64" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "25928:3:4" }, "nodeType": "YulFunctionCall", "src": "25928:18:4" } ], "functionName": { "name": "calldataload", "nodeType": "YulIdentifier", "src": "25915:12:4" }, "nodeType": "YulFunctionCall", "src": "25915:32:4" }, "variables": [ { "name": "offset", "nodeType": "YulTypedName", "src": "25905:6:4", "type": "" } ] }, { "body": { "nodeType": "YulBlock", "src": "25994:83:4", "statements": [ { "expression": { "arguments": [], "functionName": { "name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db", "nodeType": "YulIdentifier", "src": "25996:77:4" }, "nodeType": "YulFunctionCall", "src": "25996:79:4" }, "nodeType": "YulExpressionStatement", "src": "25996:79:4" } ] }, "condition": { "arguments": [ { "name": "offset", "nodeType": "YulIdentifier", "src": "25966:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "25974:18:4", "type": "", "value": "0xffffffffffffffff" } ], "functionName": { "name": "gt", "nodeType": "YulIdentifier", "src": "25963:2:4" }, "nodeType": "YulFunctionCall", "src": "25963:30:4" }, "nodeType": "YulIf", "src": "25960:117:4" }, { "nodeType": "YulAssignment", "src": "26091:73:4", "value": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "26136:9:4" }, { "name": "offset", "nodeType": "YulIdentifier", "src": "26147:6:4" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "26132:3:4" }, "nodeType": "YulFunctionCall", "src": "26132:22:4" }, { "name": "dataEnd", "nodeType": "YulIdentifier", "src": "26156:7:4" } ], "functionName": { "name": "abi_decode_t_string_memory_ptr", "nodeType": "YulIdentifier", "src": "26101:30:4" }, "nodeType": "YulFunctionCall", "src": "26101:63:4" }, "variableNames": [ { "name": "value2", "nodeType": "YulIdentifier", "src": "26091:6:4" } ] } ] }, { "nodeType": "YulBlock", "src": "26184:118:4", "statements": [ { "nodeType": "YulVariableDeclaration", "src": "26199:16:4", "value": { "kind": "number", "nodeType": "YulLiteral", "src": "26213:2:4", "type": "", "value": "96" }, "variables": [ { "name": "offset", "nodeType": "YulTypedName", "src": "26203:6:4", "type": "" } ] }, { "nodeType": "YulAssignment", "src": "26229:63:4", "value": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "26264:9:4" }, { "name": "offset", "nodeType": "YulIdentifier", "src": "26275:6:4" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "26260:3:4" }, "nodeType": "YulFunctionCall", "src": "26260:22:4" }, { "name": "dataEnd", "nodeType": "YulIdentifier", "src": "26284:7:4" } ], "functionName": { "name": "abi_decode_t_uint256", "nodeType": "YulIdentifier", "src": "26239:20:4" }, "nodeType": "YulFunctionCall", "src": "26239:53:4" }, "variableNames": [ { "name": "value3", "nodeType": "YulIdentifier", "src": "26229:6:4" } ] } ] } ] }, "name": "abi_decode_tuple_t_string_memory_ptrt_string_memory_ptrt_string_memory_ptrt_uint256", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "25097:9:4", "type": "" }, { "name": "dataEnd", "nodeType": "YulTypedName", "src": "25108:7:4", "type": "" } ], "returnVariables": [ { "name": "value0", "nodeType": "YulTypedName", "src": "25120:6:4", "type": "" }, { "name": "value1", "nodeType": "YulTypedName", "src": "25128:6:4", "type": "" }, { "name": "value2", "nodeType": "YulTypedName", "src": "25136:6:4", "type": "" }, { "name": "value3", "nodeType": "YulTypedName", "src": "25144:6:4", "type": "" } ], "src": "25004:1305:4" }, { "body": { "nodeType": "YulBlock", "src": "26421:184:4", "statements": [ { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "26443:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "26451:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "26439:3:4" }, "nodeType": "YulFunctionCall", "src": "26439:14:4" }, { "hexValue": "4164766572746973696e6720666f72207468652074617267657420696e76656e", "kind": "string", "nodeType": "YulLiteral", "src": "26455:34:4", "type": "", "value": "Advertising for the target inven" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "26432:6:4" }, "nodeType": "YulFunctionCall", "src": "26432:58:4" }, "nodeType": "YulExpressionStatement", "src": "26432:58:4" }, { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "26511:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "26519:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "26507:3:4" }, "nodeType": "YulFunctionCall", "src": "26507:15:4" }, { "hexValue": "746f7279206973206e6f742063757272656e746c7920756e6465722072657669", "kind": "string", "nodeType": "YulLiteral", "src": "26524:34:4", "type": "", "value": "tory is not currently under revi" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "26500:6:4" }, "nodeType": "YulFunctionCall", "src": "26500:59:4" }, "nodeType": "YulExpressionStatement", "src": "26500:59:4" }, { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "26580:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "26588:2:4", "type": "", "value": "64" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "26576:3:4" }, "nodeType": "YulFunctionCall", "src": "26576:15:4" }, { "hexValue": "6577", "kind": "string", "nodeType": "YulLiteral", "src": "26593:4:4", "type": "", "value": "ew" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "26569:6:4" }, "nodeType": "YulFunctionCall", "src": "26569:29:4" }, "nodeType": "YulExpressionStatement", "src": "26569:29:4" } ] }, "name": "store_literal_in_memory_6977932ff671ce5ee249f95c8460c6c87009b2b0c2c0bcfc1f0caa4abc358047", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "memPtr", "nodeType": "YulTypedName", "src": "26413:6:4", "type": "" } ], "src": "26315:290:4" }, { "body": { "nodeType": "YulBlock", "src": "26757:220:4", "statements": [ { "nodeType": "YulAssignment", "src": "26767:74:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "26833:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "26838:2:4", "type": "", "value": "66" } ], "functionName": { "name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "26774:58:4" }, "nodeType": "YulFunctionCall", "src": "26774:67:4" }, "variableNames": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "26767:3:4" } ] }, { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "26939:3:4" } ], "functionName": { "name": "store_literal_in_memory_6977932ff671ce5ee249f95c8460c6c87009b2b0c2c0bcfc1f0caa4abc358047", "nodeType": "YulIdentifier", "src": "26850:88:4" }, "nodeType": "YulFunctionCall", "src": "26850:93:4" }, "nodeType": "YulExpressionStatement", "src": "26850:93:4" }, { "nodeType": "YulAssignment", "src": "26952:19:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "26963:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "26968:2:4", "type": "", "value": "96" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "26959:3:4" }, "nodeType": "YulFunctionCall", "src": "26959:12:4" }, "variableNames": [ { "name": "end", "nodeType": "YulIdentifier", "src": "26952:3:4" } ] } ] }, "name": "abi_encode_t_stringliteral_6977932ff671ce5ee249f95c8460c6c87009b2b0c2c0bcfc1f0caa4abc358047_to_t_string_memory_ptr_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "pos", "nodeType": "YulTypedName", "src": "26745:3:4", "type": "" } ], "returnVariables": [ { "name": "end", "nodeType": "YulTypedName", "src": "26753:3:4", "type": "" } ], "src": "26611:366:4" }, { "body": { "nodeType": "YulBlock", "src": "27154:248:4", "statements": [ { "nodeType": "YulAssignment", "src": "27164:26:4", "value": { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "27176:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "27187:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "27172:3:4" }, "nodeType": "YulFunctionCall", "src": "27172:18:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "27164:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "27211:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "27222:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "27207:3:4" }, "nodeType": "YulFunctionCall", "src": "27207:17:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "27230:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "27236:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "27226:3:4" }, "nodeType": "YulFunctionCall", "src": "27226:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "27200:6:4" }, "nodeType": "YulFunctionCall", "src": "27200:47:4" }, "nodeType": "YulExpressionStatement", "src": "27200:47:4" }, { "nodeType": "YulAssignment", "src": "27256:139:4", "value": { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "27390:4:4" } ], "functionName": { "name": "abi_encode_t_stringliteral_6977932ff671ce5ee249f95c8460c6c87009b2b0c2c0bcfc1f0caa4abc358047_to_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "27264:124:4" }, "nodeType": "YulFunctionCall", "src": "27264:131:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "27256:4:4" } ] } ] }, "name": "abi_encode_tuple_t_stringliteral_6977932ff671ce5ee249f95c8460c6c87009b2b0c2c0bcfc1f0caa4abc358047__to_t_string_memory_ptr__fromStack_reversed", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "27134:9:4", "type": "" } ], "returnVariables": [ { "name": "tail", "nodeType": "YulTypedName", "src": "27149:4:4", "type": "" } ], "src": "26983:419:4" }, { "body": { "nodeType": "YulBlock", "src": "27514:118:4", "statements": [ { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "27536:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "27544:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "27532:3:4" }, "nodeType": "YulFunctionCall", "src": "27532:14:4" }, { "hexValue": "4f6e6c7920696e76656e746f7279206f776e6572732063616e2072656a656374", "kind": "string", "nodeType": "YulLiteral", "src": "27548:34:4", "type": "", "value": "Only inventory owners can reject" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "27525:6:4" }, "nodeType": "YulFunctionCall", "src": "27525:58:4" }, "nodeType": "YulExpressionStatement", "src": "27525:58:4" }, { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "27604:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "27612:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "27600:3:4" }, "nodeType": "YulFunctionCall", "src": "27600:15:4" }, { "hexValue": "206164732e", "kind": "string", "nodeType": "YulLiteral", "src": "27617:7:4", "type": "", "value": " ads." } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "27593:6:4" }, "nodeType": "YulFunctionCall", "src": "27593:32:4" }, "nodeType": "YulExpressionStatement", "src": "27593:32:4" } ] }, "name": "store_literal_in_memory_dccc571f50c08bf8c9bdae798fbc65f302c3b01f5074ba43958f25d7ef888791", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "memPtr", "nodeType": "YulTypedName", "src": "27506:6:4", "type": "" } ], "src": "27408:224:4" }, { "body": { "nodeType": "YulBlock", "src": "27784:220:4", "statements": [ { "nodeType": "YulAssignment", "src": "27794:74:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "27860:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "27865:2:4", "type": "", "value": "37" } ], "functionName": { "name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "27801:58:4" }, "nodeType": "YulFunctionCall", "src": "27801:67:4" }, "variableNames": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "27794:3:4" } ] }, { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "27966:3:4" } ], "functionName": { "name": "store_literal_in_memory_dccc571f50c08bf8c9bdae798fbc65f302c3b01f5074ba43958f25d7ef888791", "nodeType": "YulIdentifier", "src": "27877:88:4" }, "nodeType": "YulFunctionCall", "src": "27877:93:4" }, "nodeType": "YulExpressionStatement", "src": "27877:93:4" }, { "nodeType": "YulAssignment", "src": "27979:19:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "27990:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "27995:2:4", "type": "", "value": "64" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "27986:3:4" }, "nodeType": "YulFunctionCall", "src": "27986:12:4" }, "variableNames": [ { "name": "end", "nodeType": "YulIdentifier", "src": "27979:3:4" } ] } ] }, "name": "abi_encode_t_stringliteral_dccc571f50c08bf8c9bdae798fbc65f302c3b01f5074ba43958f25d7ef888791_to_t_string_memory_ptr_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "pos", "nodeType": "YulTypedName", "src": "27772:3:4", "type": "" } ], "returnVariables": [ { "name": "end", "nodeType": "YulTypedName", "src": "27780:3:4", "type": "" } ], "src": "27638:366:4" }, { "body": { "nodeType": "YulBlock", "src": "28181:248:4", "statements": [ { "nodeType": "YulAssignment", "src": "28191:26:4", "value": { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "28203:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "28214:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "28199:3:4" }, "nodeType": "YulFunctionCall", "src": "28199:18:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "28191:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "28238:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "28249:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "28234:3:4" }, "nodeType": "YulFunctionCall", "src": "28234:17:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "28257:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "28263:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "28253:3:4" }, "nodeType": "YulFunctionCall", "src": "28253:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "28227:6:4" }, "nodeType": "YulFunctionCall", "src": "28227:47:4" }, "nodeType": "YulExpressionStatement", "src": "28227:47:4" }, { "nodeType": "YulAssignment", "src": "28283:139:4", "value": { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "28417:4:4" } ], "functionName": { "name": "abi_encode_t_stringliteral_dccc571f50c08bf8c9bdae798fbc65f302c3b01f5074ba43958f25d7ef888791_to_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "28291:124:4" }, "nodeType": "YulFunctionCall", "src": "28291:131:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "28283:4:4" } ] } ] }, "name": "abi_encode_tuple_t_stringliteral_dccc571f50c08bf8c9bdae798fbc65f302c3b01f5074ba43958f25d7ef888791__to_t_string_memory_ptr__fromStack_reversed", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "28161:9:4", "type": "" } ], "returnVariables": [ { "name": "tail", "nodeType": "YulTypedName", "src": "28176:4:4", "type": "" } ], "src": "28010:419:4" }, { "body": { "nodeType": "YulBlock", "src": "28463:152:4", "statements": [ { "expression": { "arguments": [ { "kind": "number", "nodeType": "YulLiteral", "src": "28480:1:4", "type": "", "value": "0" }, { "kind": "number", "nodeType": "YulLiteral", "src": "28483:77:4", "type": "", "value": "35408467139433450592217433187231851964531694900788300625387963629091585785856" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "28473:6:4" }, "nodeType": "YulFunctionCall", "src": "28473:88:4" }, "nodeType": "YulExpressionStatement", "src": "28473:88:4" }, { "expression": { "arguments": [ { "kind": "number", "nodeType": "YulLiteral", "src": "28577:1:4", "type": "", "value": "4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "28580:4:4", "type": "", "value": "0x11" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "28570:6:4" }, "nodeType": "YulFunctionCall", "src": "28570:15:4" }, "nodeType": "YulExpressionStatement", "src": "28570:15:4" }, { "expression": { "arguments": [ { "kind": "number", "nodeType": "YulLiteral", "src": "28601:1:4", "type": "", "value": "0" }, { "kind": "number", "nodeType": "YulLiteral", "src": "28604:4:4", "type": "", "value": "0x24" } ], "functionName": { "name": "revert", "nodeType": "YulIdentifier", "src": "28594:6:4" }, "nodeType": "YulFunctionCall", "src": "28594:15:4" }, "nodeType": "YulExpressionStatement", "src": "28594:15:4" } ] }, "name": "panic_error_0x11", "nodeType": "YulFunctionDefinition", "src": "28435:180:4" }, { "body": { "nodeType": "YulBlock", "src": "28663:127:4", "statements": [ { "nodeType": "YulAssignment", "src": "28673:32:4", "value": { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "28699:5:4" } ], "functionName": { "name": "cleanup_t_uint32", "nodeType": "YulIdentifier", "src": "28682:16:4" }, "nodeType": "YulFunctionCall", "src": "28682:23:4" }, "variableNames": [ { "name": "value", "nodeType": "YulIdentifier", "src": "28673:5:4" } ] }, { "body": { "nodeType": "YulBlock", "src": "28733:22:4", "statements": [ { "expression": { "arguments": [], "functionName": { "name": "panic_error_0x11", "nodeType": "YulIdentifier", "src": "28735:16:4" }, "nodeType": "YulFunctionCall", "src": "28735:18:4" }, "nodeType": "YulExpressionStatement", "src": "28735:18:4" } ] }, "condition": { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "28720:5:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "28727:4:4", "type": "", "value": "0x00" } ], "functionName": { "name": "eq", "nodeType": "YulIdentifier", "src": "28717:2:4" }, "nodeType": "YulFunctionCall", "src": "28717:15:4" }, "nodeType": "YulIf", "src": "28714:41:4" }, { "nodeType": "YulAssignment", "src": "28764:20:4", "value": { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "28775:5:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "28782:1:4", "type": "", "value": "1" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "28771:3:4" }, "nodeType": "YulFunctionCall", "src": "28771:13:4" }, "variableNames": [ { "name": "ret", "nodeType": "YulIdentifier", "src": "28764:3:4" } ] } ] }, "name": "decrement_t_uint32", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "28649:5:4", "type": "" } ], "returnVariables": [ { "name": "ret", "nodeType": "YulTypedName", "src": "28659:3:4", "type": "" } ], "src": "28621:169:4" }, { "body": { "nodeType": "YulBlock", "src": "28909:34:4", "statements": [ { "nodeType": "YulAssignment", "src": "28919:18:4", "value": { "name": "pos", "nodeType": "YulIdentifier", "src": "28934:3:4" }, "variableNames": [ { "name": "updated_pos", "nodeType": "YulIdentifier", "src": "28919:11:4" } ] } ] }, "name": "array_storeLengthForEncoding_t_bytes_memory_ptr_nonPadded_inplace_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "pos", "nodeType": "YulTypedName", "src": "28881:3:4", "type": "" }, { "name": "length", "nodeType": "YulTypedName", "src": "28886:6:4", "type": "" } ], "returnVariables": [ { "name": "updated_pos", "nodeType": "YulTypedName", "src": "28897:11:4", "type": "" } ], "src": "28796:147:4" }, { "body": { "nodeType": "YulBlock", "src": "29055:8:4", "statements": [] }, "name": "store_literal_in_memory_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "memPtr", "nodeType": "YulTypedName", "src": "29047:6:4", "type": "" } ], "src": "28949:114:4" }, { "body": { "nodeType": "YulBlock", "src": "29232:235:4", "statements": [ { "nodeType": "YulAssignment", "src": "29242:90:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "29325:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "29330:1:4", "type": "", "value": "0" } ], "functionName": { "name": "array_storeLengthForEncoding_t_bytes_memory_ptr_nonPadded_inplace_fromStack", "nodeType": "YulIdentifier", "src": "29249:75:4" }, "nodeType": "YulFunctionCall", "src": "29249:83:4" }, "variableNames": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "29242:3:4" } ] }, { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "29430:3:4" } ], "functionName": { "name": "store_literal_in_memory_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", "nodeType": "YulIdentifier", "src": "29341:88:4" }, "nodeType": "YulFunctionCall", "src": "29341:93:4" }, "nodeType": "YulExpressionStatement", "src": "29341:93:4" }, { "nodeType": "YulAssignment", "src": "29443:18:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "29454:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "29459:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "29450:3:4" }, "nodeType": "YulFunctionCall", "src": "29450:11:4" }, "variableNames": [ { "name": "end", "nodeType": "YulIdentifier", "src": "29443:3:4" } ] } ] }, "name": "abi_encode_t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470_to_t_bytes_memory_ptr_nonPadded_inplace_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "pos", "nodeType": "YulTypedName", "src": "29220:3:4", "type": "" } ], "returnVariables": [ { "name": "end", "nodeType": "YulTypedName", "src": "29228:3:4", "type": "" } ], "src": "29069:398:4" }, { "body": { "nodeType": "YulBlock", "src": "29661:191:4", "statements": [ { "nodeType": "YulAssignment", "src": "29672:154:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "29822:3:4" } ], "functionName": { "name": "abi_encode_t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470_to_t_bytes_memory_ptr_nonPadded_inplace_fromStack", "nodeType": "YulIdentifier", "src": "29679:141:4" }, "nodeType": "YulFunctionCall", "src": "29679:147:4" }, "variableNames": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "29672:3:4" } ] }, { "nodeType": "YulAssignment", "src": "29836:10:4", "value": { "name": "pos", "nodeType": "YulIdentifier", "src": "29843:3:4" }, "variableNames": [ { "name": "end", "nodeType": "YulIdentifier", "src": "29836:3:4" } ] } ] }, "name": "abi_encode_tuple_packed_t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470__to_t_bytes_memory_ptr__nonPadded_inplace_fromStack_reversed", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "pos", "nodeType": "YulTypedName", "src": "29648:3:4", "type": "" } ], "returnVariables": [ { "name": "end", "nodeType": "YulTypedName", "src": "29657:3:4", "type": "" } ], "src": "29473:379:4" }, { "body": { "nodeType": "YulBlock", "src": "29964:73:4", "statements": [ { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "29986:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "29994:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "29982:3:4" }, "nodeType": "YulFunctionCall", "src": "29982:14:4" }, { "hexValue": "4661696c656420746f207061796261636b206c6f636b2076616c756573", "kind": "string", "nodeType": "YulLiteral", "src": "29998:31:4", "type": "", "value": "Failed to payback lock values" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "29975:6:4" }, "nodeType": "YulFunctionCall", "src": "29975:55:4" }, "nodeType": "YulExpressionStatement", "src": "29975:55:4" } ] }, "name": "store_literal_in_memory_2408c3db4aaa8531c95016fcf9417b46eca235e606d7ce723c7dc6f164a207fd", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "memPtr", "nodeType": "YulTypedName", "src": "29956:6:4", "type": "" } ], "src": "29858:179:4" }, { "body": { "nodeType": "YulBlock", "src": "30189:220:4", "statements": [ { "nodeType": "YulAssignment", "src": "30199:74:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "30265:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "30270:2:4", "type": "", "value": "29" } ], "functionName": { "name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "30206:58:4" }, "nodeType": "YulFunctionCall", "src": "30206:67:4" }, "variableNames": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "30199:3:4" } ] }, { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "30371:3:4" } ], "functionName": { "name": "store_literal_in_memory_2408c3db4aaa8531c95016fcf9417b46eca235e606d7ce723c7dc6f164a207fd", "nodeType": "YulIdentifier", "src": "30282:88:4" }, "nodeType": "YulFunctionCall", "src": "30282:93:4" }, "nodeType": "YulExpressionStatement", "src": "30282:93:4" }, { "nodeType": "YulAssignment", "src": "30384:19:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "30395:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "30400:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "30391:3:4" }, "nodeType": "YulFunctionCall", "src": "30391:12:4" }, "variableNames": [ { "name": "end", "nodeType": "YulIdentifier", "src": "30384:3:4" } ] } ] }, "name": "abi_encode_t_stringliteral_2408c3db4aaa8531c95016fcf9417b46eca235e606d7ce723c7dc6f164a207fd_to_t_string_memory_ptr_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "pos", "nodeType": "YulTypedName", "src": "30177:3:4", "type": "" } ], "returnVariables": [ { "name": "end", "nodeType": "YulTypedName", "src": "30185:3:4", "type": "" } ], "src": "30043:366:4" }, { "body": { "nodeType": "YulBlock", "src": "30586:248:4", "statements": [ { "nodeType": "YulAssignment", "src": "30596:26:4", "value": { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "30608:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "30619:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "30604:3:4" }, "nodeType": "YulFunctionCall", "src": "30604:18:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "30596:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "30643:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "30654:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "30639:3:4" }, "nodeType": "YulFunctionCall", "src": "30639:17:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "30662:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "30668:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "30658:3:4" }, "nodeType": "YulFunctionCall", "src": "30658:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "30632:6:4" }, "nodeType": "YulFunctionCall", "src": "30632:47:4" }, "nodeType": "YulExpressionStatement", "src": "30632:47:4" }, { "nodeType": "YulAssignment", "src": "30688:139:4", "value": { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "30822:4:4" } ], "functionName": { "name": "abi_encode_t_stringliteral_2408c3db4aaa8531c95016fcf9417b46eca235e606d7ce723c7dc6f164a207fd_to_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "30696:124:4" }, "nodeType": "YulFunctionCall", "src": "30696:131:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "30688:4:4" } ] } ] }, "name": "abi_encode_tuple_t_stringliteral_2408c3db4aaa8531c95016fcf9417b46eca235e606d7ce723c7dc6f164a207fd__to_t_string_memory_ptr__fromStack_reversed", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "30566:9:4", "type": "" } ], "returnVariables": [ { "name": "tail", "nodeType": "YulTypedName", "src": "30581:4:4", "type": "" } ], "src": "30415:419:4" }, { "body": { "nodeType": "YulBlock", "src": "30868:152:4", "statements": [ { "expression": { "arguments": [ { "kind": "number", "nodeType": "YulLiteral", "src": "30885:1:4", "type": "", "value": "0" }, { "kind": "number", "nodeType": "YulLiteral", "src": "30888:77:4", "type": "", "value": "35408467139433450592217433187231851964531694900788300625387963629091585785856" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "30878:6:4" }, "nodeType": "YulFunctionCall", "src": "30878:88:4" }, "nodeType": "YulExpressionStatement", "src": "30878:88:4" }, { "expression": { "arguments": [ { "kind": "number", "nodeType": "YulLiteral", "src": "30982:1:4", "type": "", "value": "4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "30985:4:4", "type": "", "value": "0x32" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "30975:6:4" }, "nodeType": "YulFunctionCall", "src": "30975:15:4" }, "nodeType": "YulExpressionStatement", "src": "30975:15:4" }, { "expression": { "arguments": [ { "kind": "number", "nodeType": "YulLiteral", "src": "31006:1:4", "type": "", "value": "0" }, { "kind": "number", "nodeType": "YulLiteral", "src": "31009:4:4", "type": "", "value": "0x24" } ], "functionName": { "name": "revert", "nodeType": "YulIdentifier", "src": "30999:6:4" }, "nodeType": "YulFunctionCall", "src": "30999:15:4" }, "nodeType": "YulExpressionStatement", "src": "30999:15:4" } ] }, "name": "panic_error_0x32", "nodeType": "YulFunctionDefinition", "src": "30840:180:4" }, { "body": { "nodeType": "YulBlock", "src": "31069:190:4", "statements": [ { "nodeType": "YulAssignment", "src": "31079:33:4", "value": { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "31106:5:4" } ], "functionName": { "name": "cleanup_t_uint256", "nodeType": "YulIdentifier", "src": "31088:17:4" }, "nodeType": "YulFunctionCall", "src": "31088:24:4" }, "variableNames": [ { "name": "value", "nodeType": "YulIdentifier", "src": "31079:5:4" } ] }, { "body": { "nodeType": "YulBlock", "src": "31202:22:4", "statements": [ { "expression": { "arguments": [], "functionName": { "name": "panic_error_0x11", "nodeType": "YulIdentifier", "src": "31204:16:4" }, "nodeType": "YulFunctionCall", "src": "31204:18:4" }, "nodeType": "YulExpressionStatement", "src": "31204:18:4" } ] }, "condition": { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "31127:5:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "31134:66:4", "type": "", "value": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" } ], "functionName": { "name": "eq", "nodeType": "YulIdentifier", "src": "31124:2:4" }, "nodeType": "YulFunctionCall", "src": "31124:77:4" }, "nodeType": "YulIf", "src": "31121:103:4" }, { "nodeType": "YulAssignment", "src": "31233:20:4", "value": { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "31244:5:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "31251:1:4", "type": "", "value": "1" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "31240:3:4" }, "nodeType": "YulFunctionCall", "src": "31240:13:4" }, "variableNames": [ { "name": "ret", "nodeType": "YulIdentifier", "src": "31233:3:4" } ] } ] }, "name": "increment_t_uint256", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "31055:5:4", "type": "" } ], "returnVariables": [ { "name": "ret", "nodeType": "YulTypedName", "src": "31065:3:4", "type": "" } ], "src": "31026:233:4" }, { "body": { "nodeType": "YulBlock", "src": "31371:187:4", "statements": [ { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "31393:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "31401:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "31389:3:4" }, "nodeType": "YulFunctionCall", "src": "31389:14:4" }, { "hexValue": "596f752063616e27742064656c65746520616e20696e76656e746f7279206966", "kind": "string", "nodeType": "YulLiteral", "src": "31405:34:4", "type": "", "value": "You can't delete an inventory if" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "31382:6:4" }, "nodeType": "YulFunctionCall", "src": "31382:58:4" }, "nodeType": "YulExpressionStatement", "src": "31382:58:4" }, { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "31461:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "31469:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "31457:3:4" }, "nodeType": "YulFunctionCall", "src": "31457:15:4" }, { "hexValue": "2074686572652061726520616473206c65667420696e2074686520696e76656e", "kind": "string", "nodeType": "YulLiteral", "src": "31474:34:4", "type": "", "value": " there are ads left in the inven" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "31450:6:4" }, "nodeType": "YulFunctionCall", "src": "31450:59:4" }, "nodeType": "YulExpressionStatement", "src": "31450:59:4" }, { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "31530:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "31538:2:4", "type": "", "value": "64" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "31526:3:4" }, "nodeType": "YulFunctionCall", "src": "31526:15:4" }, { "hexValue": "746f72792e", "kind": "string", "nodeType": "YulLiteral", "src": "31543:7:4", "type": "", "value": "tory." } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "31519:6:4" }, "nodeType": "YulFunctionCall", "src": "31519:32:4" }, "nodeType": "YulExpressionStatement", "src": "31519:32:4" } ] }, "name": "store_literal_in_memory_5a05621a21b214233d27b1cd87e126c48be1e0211b2f9f27b784e90ac6512976", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "memPtr", "nodeType": "YulTypedName", "src": "31363:6:4", "type": "" } ], "src": "31265:293:4" }, { "body": { "nodeType": "YulBlock", "src": "31710:220:4", "statements": [ { "nodeType": "YulAssignment", "src": "31720:74:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "31786:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "31791:2:4", "type": "", "value": "69" } ], "functionName": { "name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "31727:58:4" }, "nodeType": "YulFunctionCall", "src": "31727:67:4" }, "variableNames": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "31720:3:4" } ] }, { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "31892:3:4" } ], "functionName": { "name": "store_literal_in_memory_5a05621a21b214233d27b1cd87e126c48be1e0211b2f9f27b784e90ac6512976", "nodeType": "YulIdentifier", "src": "31803:88:4" }, "nodeType": "YulFunctionCall", "src": "31803:93:4" }, "nodeType": "YulExpressionStatement", "src": "31803:93:4" }, { "nodeType": "YulAssignment", "src": "31905:19:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "31916:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "31921:2:4", "type": "", "value": "96" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "31912:3:4" }, "nodeType": "YulFunctionCall", "src": "31912:12:4" }, "variableNames": [ { "name": "end", "nodeType": "YulIdentifier", "src": "31905:3:4" } ] } ] }, "name": "abi_encode_t_stringliteral_5a05621a21b214233d27b1cd87e126c48be1e0211b2f9f27b784e90ac6512976_to_t_string_memory_ptr_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "pos", "nodeType": "YulTypedName", "src": "31698:3:4", "type": "" } ], "returnVariables": [ { "name": "end", "nodeType": "YulTypedName", "src": "31706:3:4", "type": "" } ], "src": "31564:366:4" }, { "body": { "nodeType": "YulBlock", "src": "32107:248:4", "statements": [ { "nodeType": "YulAssignment", "src": "32117:26:4", "value": { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "32129:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "32140:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "32125:3:4" }, "nodeType": "YulFunctionCall", "src": "32125:18:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "32117:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "32164:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "32175:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "32160:3:4" }, "nodeType": "YulFunctionCall", "src": "32160:17:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "32183:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "32189:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "32179:3:4" }, "nodeType": "YulFunctionCall", "src": "32179:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "32153:6:4" }, "nodeType": "YulFunctionCall", "src": "32153:47:4" }, "nodeType": "YulExpressionStatement", "src": "32153:47:4" }, { "nodeType": "YulAssignment", "src": "32209:139:4", "value": { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "32343:4:4" } ], "functionName": { "name": "abi_encode_t_stringliteral_5a05621a21b214233d27b1cd87e126c48be1e0211b2f9f27b784e90ac6512976_to_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "32217:124:4" }, "nodeType": "YulFunctionCall", "src": "32217:131:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "32209:4:4" } ] } ] }, "name": "abi_encode_tuple_t_stringliteral_5a05621a21b214233d27b1cd87e126c48be1e0211b2f9f27b784e90ac6512976__to_t_string_memory_ptr__fromStack_reversed", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "32087:9:4", "type": "" } ], "returnVariables": [ { "name": "tail", "nodeType": "YulTypedName", "src": "32102:4:4", "type": "" } ], "src": "31936:419:4" }, { "body": { "nodeType": "YulBlock", "src": "32467:124:4", "statements": [ { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "32489:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "32497:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "32485:3:4" }, "nodeType": "YulFunctionCall", "src": "32485:14:4" }, { "hexValue": "4f6e6c7920696e76656e746f7279206f776e6572732063616e2072656d6f7665", "kind": "string", "nodeType": "YulLiteral", "src": "32501:34:4", "type": "", "value": "Only inventory owners can remove" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "32478:6:4" }, "nodeType": "YulFunctionCall", "src": "32478:58:4" }, "nodeType": "YulExpressionStatement", "src": "32478:58:4" }, { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "32557:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "32565:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "32553:3:4" }, "nodeType": "YulFunctionCall", "src": "32553:15:4" }, { "hexValue": "20696e76656e746f72792e", "kind": "string", "nodeType": "YulLiteral", "src": "32570:13:4", "type": "", "value": " inventory." } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "32546:6:4" }, "nodeType": "YulFunctionCall", "src": "32546:38:4" }, "nodeType": "YulExpressionStatement", "src": "32546:38:4" } ] }, "name": "store_literal_in_memory_b903fdbac6049d74b9eb64dc2d970791bb006ea8cf852de471611d0d1f3dfb73", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "memPtr", "nodeType": "YulTypedName", "src": "32459:6:4", "type": "" } ], "src": "32361:230:4" }, { "body": { "nodeType": "YulBlock", "src": "32743:220:4", "statements": [ { "nodeType": "YulAssignment", "src": "32753:74:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "32819:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "32824:2:4", "type": "", "value": "43" } ], "functionName": { "name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "32760:58:4" }, "nodeType": "YulFunctionCall", "src": "32760:67:4" }, "variableNames": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "32753:3:4" } ] }, { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "32925:3:4" } ], "functionName": { "name": "store_literal_in_memory_b903fdbac6049d74b9eb64dc2d970791bb006ea8cf852de471611d0d1f3dfb73", "nodeType": "YulIdentifier", "src": "32836:88:4" }, "nodeType": "YulFunctionCall", "src": "32836:93:4" }, "nodeType": "YulExpressionStatement", "src": "32836:93:4" }, { "nodeType": "YulAssignment", "src": "32938:19:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "32949:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "32954:2:4", "type": "", "value": "64" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "32945:3:4" }, "nodeType": "YulFunctionCall", "src": "32945:12:4" }, "variableNames": [ { "name": "end", "nodeType": "YulIdentifier", "src": "32938:3:4" } ] } ] }, "name": "abi_encode_t_stringliteral_b903fdbac6049d74b9eb64dc2d970791bb006ea8cf852de471611d0d1f3dfb73_to_t_string_memory_ptr_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "pos", "nodeType": "YulTypedName", "src": "32731:3:4", "type": "" } ], "returnVariables": [ { "name": "end", "nodeType": "YulTypedName", "src": "32739:3:4", "type": "" } ], "src": "32597:366:4" }, { "body": { "nodeType": "YulBlock", "src": "33140:248:4", "statements": [ { "nodeType": "YulAssignment", "src": "33150:26:4", "value": { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "33162:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "33173:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "33158:3:4" }, "nodeType": "YulFunctionCall", "src": "33158:18:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "33150:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "33197:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "33208:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "33193:3:4" }, "nodeType": "YulFunctionCall", "src": "33193:17:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "33216:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "33222:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "33212:3:4" }, "nodeType": "YulFunctionCall", "src": "33212:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "33186:6:4" }, "nodeType": "YulFunctionCall", "src": "33186:47:4" }, "nodeType": "YulExpressionStatement", "src": "33186:47:4" }, { "nodeType": "YulAssignment", "src": "33242:139:4", "value": { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "33376:4:4" } ], "functionName": { "name": "abi_encode_t_stringliteral_b903fdbac6049d74b9eb64dc2d970791bb006ea8cf852de471611d0d1f3dfb73_to_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "33250:124:4" }, "nodeType": "YulFunctionCall", "src": "33250:131:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "33242:4:4" } ] } ] }, "name": "abi_encode_tuple_t_stringliteral_b903fdbac6049d74b9eb64dc2d970791bb006ea8cf852de471611d0d1f3dfb73__to_t_string_memory_ptr__fromStack_reversed", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "33120:9:4", "type": "" } ], "returnVariables": [ { "name": "tail", "nodeType": "YulTypedName", "src": "33135:4:4", "type": "" } ], "src": "32969:419:4" }, { "body": { "nodeType": "YulBlock", "src": "33437:203:4", "statements": [ { "nodeType": "YulAssignment", "src": "33447:24:4", "value": { "arguments": [ { "name": "x", "nodeType": "YulIdentifier", "src": "33469:1:4" } ], "functionName": { "name": "cleanup_t_uint32", "nodeType": "YulIdentifier", "src": "33452:16:4" }, "nodeType": "YulFunctionCall", "src": "33452:19:4" }, "variableNames": [ { "name": "x", "nodeType": "YulIdentifier", "src": "33447:1:4" } ] }, { "nodeType": "YulAssignment", "src": "33480:24:4", "value": { "arguments": [ { "name": "y", "nodeType": "YulIdentifier", "src": "33502:1:4" } ], "functionName": { "name": "cleanup_t_uint32", "nodeType": "YulIdentifier", "src": "33485:16:4" }, "nodeType": "YulFunctionCall", "src": "33485:19:4" }, "variableNames": [ { "name": "y", "nodeType": "YulIdentifier", "src": "33480:1:4" } ] }, { "body": { "nodeType": "YulBlock", "src": "33586:22:4", "statements": [ { "expression": { "arguments": [], "functionName": { "name": "panic_error_0x11", "nodeType": "YulIdentifier", "src": "33588:16:4" }, "nodeType": "YulFunctionCall", "src": "33588:18:4" }, "nodeType": "YulExpressionStatement", "src": "33588:18:4" } ] }, "condition": { "arguments": [ { "name": "x", "nodeType": "YulIdentifier", "src": "33563:1:4" }, { "arguments": [ { "kind": "number", "nodeType": "YulLiteral", "src": "33570:10:4", "type": "", "value": "0xffffffff" }, { "name": "y", "nodeType": "YulIdentifier", "src": "33582:1:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "33566:3:4" }, "nodeType": "YulFunctionCall", "src": "33566:18:4" } ], "functionName": { "name": "gt", "nodeType": "YulIdentifier", "src": "33560:2:4" }, "nodeType": "YulFunctionCall", "src": "33560:25:4" }, "nodeType": "YulIf", "src": "33557:51:4" }, { "nodeType": "YulAssignment", "src": "33618:16:4", "value": { "arguments": [ { "name": "x", "nodeType": "YulIdentifier", "src": "33629:1:4" }, { "name": "y", "nodeType": "YulIdentifier", "src": "33632:1:4" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "33625:3:4" }, "nodeType": "YulFunctionCall", "src": "33625:9:4" }, "variableNames": [ { "name": "sum", "nodeType": "YulIdentifier", "src": "33618:3:4" } ] } ] }, "name": "checked_add_t_uint32", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "x", "nodeType": "YulTypedName", "src": "33424:1:4", "type": "" }, { "name": "y", "nodeType": "YulTypedName", "src": "33427:1:4", "type": "" } ], "returnVariables": [ { "name": "sum", "nodeType": "YulTypedName", "src": "33433:3:4", "type": "" } ], "src": "33394:246:4" }, { "body": { "nodeType": "YulBlock", "src": "33752:184:4", "statements": [ { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "33774:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "33782:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "33770:3:4" }, "nodeType": "YulFunctionCall", "src": "33770:14:4" }, { "hexValue": "457863656564656420746865206c696d6974206f662061647320746861742063", "kind": "string", "nodeType": "YulLiteral", "src": "33786:34:4", "type": "", "value": "Exceeded the limit of ads that c" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "33763:6:4" }, "nodeType": "YulFunctionCall", "src": "33763:58:4" }, "nodeType": "YulExpressionStatement", "src": "33763:58:4" }, { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "33842:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "33850:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "33838:3:4" }, "nodeType": "YulFunctionCall", "src": "33838:15:4" }, { "hexValue": "616e2062652064656c69766572656420746f20796f757220696e76656e746f72", "kind": "string", "nodeType": "YulLiteral", "src": "33855:34:4", "type": "", "value": "an be delivered to your inventor" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "33831:6:4" }, "nodeType": "YulFunctionCall", "src": "33831:59:4" }, "nodeType": "YulExpressionStatement", "src": "33831:59:4" }, { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "33911:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "33919:2:4", "type": "", "value": "64" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "33907:3:4" }, "nodeType": "YulFunctionCall", "src": "33907:15:4" }, { "hexValue": "792e", "kind": "string", "nodeType": "YulLiteral", "src": "33924:4:4", "type": "", "value": "y." } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "33900:6:4" }, "nodeType": "YulFunctionCall", "src": "33900:29:4" }, "nodeType": "YulExpressionStatement", "src": "33900:29:4" } ] }, "name": "store_literal_in_memory_5fb2033a4f86e03607b147b551967dc01e4d9efe9e84cd31d34f95975544ffb8", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "memPtr", "nodeType": "YulTypedName", "src": "33744:6:4", "type": "" } ], "src": "33646:290:4" }, { "body": { "nodeType": "YulBlock", "src": "34088:220:4", "statements": [ { "nodeType": "YulAssignment", "src": "34098:74:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "34164:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "34169:2:4", "type": "", "value": "66" } ], "functionName": { "name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "34105:58:4" }, "nodeType": "YulFunctionCall", "src": "34105:67:4" }, "variableNames": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "34098:3:4" } ] }, { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "34270:3:4" } ], "functionName": { "name": "store_literal_in_memory_5fb2033a4f86e03607b147b551967dc01e4d9efe9e84cd31d34f95975544ffb8", "nodeType": "YulIdentifier", "src": "34181:88:4" }, "nodeType": "YulFunctionCall", "src": "34181:93:4" }, "nodeType": "YulExpressionStatement", "src": "34181:93:4" }, { "nodeType": "YulAssignment", "src": "34283:19:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "34294:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "34299:2:4", "type": "", "value": "96" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "34290:3:4" }, "nodeType": "YulFunctionCall", "src": "34290:12:4" }, "variableNames": [ { "name": "end", "nodeType": "YulIdentifier", "src": "34283:3:4" } ] } ] }, "name": "abi_encode_t_stringliteral_5fb2033a4f86e03607b147b551967dc01e4d9efe9e84cd31d34f95975544ffb8_to_t_string_memory_ptr_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "pos", "nodeType": "YulTypedName", "src": "34076:3:4", "type": "" } ], "returnVariables": [ { "name": "end", "nodeType": "YulTypedName", "src": "34084:3:4", "type": "" } ], "src": "33942:366:4" }, { "body": { "nodeType": "YulBlock", "src": "34485:248:4", "statements": [ { "nodeType": "YulAssignment", "src": "34495:26:4", "value": { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "34507:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "34518:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "34503:3:4" }, "nodeType": "YulFunctionCall", "src": "34503:18:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "34495:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "34542:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "34553:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "34538:3:4" }, "nodeType": "YulFunctionCall", "src": "34538:17:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "34561:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "34567:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "34557:3:4" }, "nodeType": "YulFunctionCall", "src": "34557:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "34531:6:4" }, "nodeType": "YulFunctionCall", "src": "34531:47:4" }, "nodeType": "YulExpressionStatement", "src": "34531:47:4" }, { "nodeType": "YulAssignment", "src": "34587:139:4", "value": { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "34721:4:4" } ], "functionName": { "name": "abi_encode_t_stringliteral_5fb2033a4f86e03607b147b551967dc01e4d9efe9e84cd31d34f95975544ffb8_to_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "34595:124:4" }, "nodeType": "YulFunctionCall", "src": "34595:131:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "34587:4:4" } ] } ] }, "name": "abi_encode_tuple_t_stringliteral_5fb2033a4f86e03607b147b551967dc01e4d9efe9e84cd31d34f95975544ffb8__to_t_string_memory_ptr__fromStack_reversed", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "34465:9:4", "type": "" } ], "returnVariables": [ { "name": "tail", "nodeType": "YulTypedName", "src": "34480:4:4", "type": "" } ], "src": "34314:419:4" }, { "body": { "nodeType": "YulBlock", "src": "34845:119:4", "statements": [ { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "34867:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "34875:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "34863:3:4" }, "nodeType": "YulFunctionCall", "src": "34863:14:4" }, { "hexValue": "4f6e6c7920696e76656e746f7279206f776e6572732063616e20617070726f76", "kind": "string", "nodeType": "YulLiteral", "src": "34879:34:4", "type": "", "value": "Only inventory owners can approv" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "34856:6:4" }, "nodeType": "YulFunctionCall", "src": "34856:58:4" }, "nodeType": "YulExpressionStatement", "src": "34856:58:4" }, { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "34935:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "34943:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "34931:3:4" }, "nodeType": "YulFunctionCall", "src": "34931:15:4" }, { "hexValue": "65206164732e", "kind": "string", "nodeType": "YulLiteral", "src": "34948:8:4", "type": "", "value": "e ads." } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "34924:6:4" }, "nodeType": "YulFunctionCall", "src": "34924:33:4" }, "nodeType": "YulExpressionStatement", "src": "34924:33:4" } ] }, "name": "store_literal_in_memory_ca0a05d4e8866fc1a00b8227f39eccee06d206e468238220c68c4bb4c8ad79a8", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "memPtr", "nodeType": "YulTypedName", "src": "34837:6:4", "type": "" } ], "src": "34739:225:4" }, { "body": { "nodeType": "YulBlock", "src": "35116:220:4", "statements": [ { "nodeType": "YulAssignment", "src": "35126:74:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "35192:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "35197:2:4", "type": "", "value": "38" } ], "functionName": { "name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "35133:58:4" }, "nodeType": "YulFunctionCall", "src": "35133:67:4" }, "variableNames": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "35126:3:4" } ] }, { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "35298:3:4" } ], "functionName": { "name": "store_literal_in_memory_ca0a05d4e8866fc1a00b8227f39eccee06d206e468238220c68c4bb4c8ad79a8", "nodeType": "YulIdentifier", "src": "35209:88:4" }, "nodeType": "YulFunctionCall", "src": "35209:93:4" }, "nodeType": "YulExpressionStatement", "src": "35209:93:4" }, { "nodeType": "YulAssignment", "src": "35311:19:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "35322:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "35327:2:4", "type": "", "value": "64" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "35318:3:4" }, "nodeType": "YulFunctionCall", "src": "35318:12:4" }, "variableNames": [ { "name": "end", "nodeType": "YulIdentifier", "src": "35311:3:4" } ] } ] }, "name": "abi_encode_t_stringliteral_ca0a05d4e8866fc1a00b8227f39eccee06d206e468238220c68c4bb4c8ad79a8_to_t_string_memory_ptr_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "pos", "nodeType": "YulTypedName", "src": "35104:3:4", "type": "" } ], "returnVariables": [ { "name": "end", "nodeType": "YulTypedName", "src": "35112:3:4", "type": "" } ], "src": "34970:366:4" }, { "body": { "nodeType": "YulBlock", "src": "35513:248:4", "statements": [ { "nodeType": "YulAssignment", "src": "35523:26:4", "value": { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "35535:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "35546:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "35531:3:4" }, "nodeType": "YulFunctionCall", "src": "35531:18:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "35523:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "35570:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "35581:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "35566:3:4" }, "nodeType": "YulFunctionCall", "src": "35566:17:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "35589:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "35595:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "35585:3:4" }, "nodeType": "YulFunctionCall", "src": "35585:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "35559:6:4" }, "nodeType": "YulFunctionCall", "src": "35559:47:4" }, "nodeType": "YulExpressionStatement", "src": "35559:47:4" }, { "nodeType": "YulAssignment", "src": "35615:139:4", "value": { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "35749:4:4" } ], "functionName": { "name": "abi_encode_t_stringliteral_ca0a05d4e8866fc1a00b8227f39eccee06d206e468238220c68c4bb4c8ad79a8_to_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "35623:124:4" }, "nodeType": "YulFunctionCall", "src": "35623:131:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "35615:4:4" } ] } ] }, "name": "abi_encode_tuple_t_stringliteral_ca0a05d4e8866fc1a00b8227f39eccee06d206e468238220c68c4bb4c8ad79a8__to_t_string_memory_ptr__fromStack_reversed", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "35493:9:4", "type": "" } ], "returnVariables": [ { "name": "tail", "nodeType": "YulTypedName", "src": "35508:4:4", "type": "" } ], "src": "35342:419:4" }, { "body": { "nodeType": "YulBlock", "src": "35809:133:4", "statements": [ { "nodeType": "YulAssignment", "src": "35819:32:4", "value": { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "35845:5:4" } ], "functionName": { "name": "cleanup_t_uint32", "nodeType": "YulIdentifier", "src": "35828:16:4" }, "nodeType": "YulFunctionCall", "src": "35828:23:4" }, "variableNames": [ { "name": "value", "nodeType": "YulIdentifier", "src": "35819:5:4" } ] }, { "body": { "nodeType": "YulBlock", "src": "35885:22:4", "statements": [ { "expression": { "arguments": [], "functionName": { "name": "panic_error_0x11", "nodeType": "YulIdentifier", "src": "35887:16:4" }, "nodeType": "YulFunctionCall", "src": "35887:18:4" }, "nodeType": "YulExpressionStatement", "src": "35887:18:4" } ] }, "condition": { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "35866:5:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "35873:10:4", "type": "", "value": "0xffffffff" } ], "functionName": { "name": "eq", "nodeType": "YulIdentifier", "src": "35863:2:4" }, "nodeType": "YulFunctionCall", "src": "35863:21:4" }, "nodeType": "YulIf", "src": "35860:47:4" }, { "nodeType": "YulAssignment", "src": "35916:20:4", "value": { "arguments": [ { "name": "value", "nodeType": "YulIdentifier", "src": "35927:5:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "35934:1:4", "type": "", "value": "1" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "35923:3:4" }, "nodeType": "YulFunctionCall", "src": "35923:13:4" }, "variableNames": [ { "name": "ret", "nodeType": "YulIdentifier", "src": "35916:3:4" } ] } ] }, "name": "increment_t_uint32", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "value", "nodeType": "YulTypedName", "src": "35795:5:4", "type": "" } ], "returnVariables": [ { "name": "ret", "nodeType": "YulTypedName", "src": "35805:3:4", "type": "" } ], "src": "35767:175:4" }, { "body": { "nodeType": "YulBlock", "src": "36054:114:4", "statements": [ { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "36076:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "36084:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "36072:3:4" }, "nodeType": "YulFunctionCall", "src": "36072:14:4" }, { "hexValue": "72657175657374656420696e76656e746f727920696420697320696e76616c69", "kind": "string", "nodeType": "YulLiteral", "src": "36088:34:4", "type": "", "value": "requested inventory id is invali" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "36065:6:4" }, "nodeType": "YulFunctionCall", "src": "36065:58:4" }, "nodeType": "YulExpressionStatement", "src": "36065:58:4" }, { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "36144:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "36152:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "36140:3:4" }, "nodeType": "YulFunctionCall", "src": "36140:15:4" }, { "hexValue": "64", "kind": "string", "nodeType": "YulLiteral", "src": "36157:3:4", "type": "", "value": "d" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "36133:6:4" }, "nodeType": "YulFunctionCall", "src": "36133:28:4" }, "nodeType": "YulExpressionStatement", "src": "36133:28:4" } ] }, "name": "store_literal_in_memory_291ae92c44b91ab52e635174691fcb1c7f73b50296f9edd66f99d79578c050f3", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "memPtr", "nodeType": "YulTypedName", "src": "36046:6:4", "type": "" } ], "src": "35948:220:4" }, { "body": { "nodeType": "YulBlock", "src": "36320:220:4", "statements": [ { "nodeType": "YulAssignment", "src": "36330:74:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "36396:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "36401:2:4", "type": "", "value": "33" } ], "functionName": { "name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "36337:58:4" }, "nodeType": "YulFunctionCall", "src": "36337:67:4" }, "variableNames": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "36330:3:4" } ] }, { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "36502:3:4" } ], "functionName": { "name": "store_literal_in_memory_291ae92c44b91ab52e635174691fcb1c7f73b50296f9edd66f99d79578c050f3", "nodeType": "YulIdentifier", "src": "36413:88:4" }, "nodeType": "YulFunctionCall", "src": "36413:93:4" }, "nodeType": "YulExpressionStatement", "src": "36413:93:4" }, { "nodeType": "YulAssignment", "src": "36515:19:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "36526:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "36531:2:4", "type": "", "value": "64" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "36522:3:4" }, "nodeType": "YulFunctionCall", "src": "36522:12:4" }, "variableNames": [ { "name": "end", "nodeType": "YulIdentifier", "src": "36515:3:4" } ] } ] }, "name": "abi_encode_t_stringliteral_291ae92c44b91ab52e635174691fcb1c7f73b50296f9edd66f99d79578c050f3_to_t_string_memory_ptr_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "pos", "nodeType": "YulTypedName", "src": "36308:3:4", "type": "" } ], "returnVariables": [ { "name": "end", "nodeType": "YulTypedName", "src": "36316:3:4", "type": "" } ], "src": "36174:366:4" }, { "body": { "nodeType": "YulBlock", "src": "36717:248:4", "statements": [ { "nodeType": "YulAssignment", "src": "36727:26:4", "value": { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "36739:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "36750:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "36735:3:4" }, "nodeType": "YulFunctionCall", "src": "36735:18:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "36727:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "36774:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "36785:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "36770:3:4" }, "nodeType": "YulFunctionCall", "src": "36770:17:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "36793:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "36799:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "36789:3:4" }, "nodeType": "YulFunctionCall", "src": "36789:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "36763:6:4" }, "nodeType": "YulFunctionCall", "src": "36763:47:4" }, "nodeType": "YulExpressionStatement", "src": "36763:47:4" }, { "nodeType": "YulAssignment", "src": "36819:139:4", "value": { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "36953:4:4" } ], "functionName": { "name": "abi_encode_t_stringliteral_291ae92c44b91ab52e635174691fcb1c7f73b50296f9edd66f99d79578c050f3_to_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "36827:124:4" }, "nodeType": "YulFunctionCall", "src": "36827:131:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "36819:4:4" } ] } ] }, "name": "abi_encode_tuple_t_stringliteral_291ae92c44b91ab52e635174691fcb1c7f73b50296f9edd66f99d79578c050f3__to_t_string_memory_ptr__fromStack_reversed", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "36697:9:4", "type": "" } ], "returnVariables": [ { "name": "tail", "nodeType": "YulTypedName", "src": "36712:4:4", "type": "" } ], "src": "36546:419:4" }, { "body": { "nodeType": "YulBlock", "src": "36999:152:4", "statements": [ { "expression": { "arguments": [ { "kind": "number", "nodeType": "YulLiteral", "src": "37016:1:4", "type": "", "value": "0" }, { "kind": "number", "nodeType": "YulLiteral", "src": "37019:77:4", "type": "", "value": "35408467139433450592217433187231851964531694900788300625387963629091585785856" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "37009:6:4" }, "nodeType": "YulFunctionCall", "src": "37009:88:4" }, "nodeType": "YulExpressionStatement", "src": "37009:88:4" }, { "expression": { "arguments": [ { "kind": "number", "nodeType": "YulLiteral", "src": "37113:1:4", "type": "", "value": "4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "37116:4:4", "type": "", "value": "0x22" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "37106:6:4" }, "nodeType": "YulFunctionCall", "src": "37106:15:4" }, "nodeType": "YulExpressionStatement", "src": "37106:15:4" }, { "expression": { "arguments": [ { "kind": "number", "nodeType": "YulLiteral", "src": "37137:1:4", "type": "", "value": "0" }, { "kind": "number", "nodeType": "YulLiteral", "src": "37140:4:4", "type": "", "value": "0x24" } ], "functionName": { "name": "revert", "nodeType": "YulIdentifier", "src": "37130:6:4" }, "nodeType": "YulFunctionCall", "src": "37130:15:4" }, "nodeType": "YulExpressionStatement", "src": "37130:15:4" } ] }, "name": "panic_error_0x22", "nodeType": "YulFunctionDefinition", "src": "36971:180:4" }, { "body": { "nodeType": "YulBlock", "src": "37208:269:4", "statements": [ { "nodeType": "YulAssignment", "src": "37218:22:4", "value": { "arguments": [ { "name": "data", "nodeType": "YulIdentifier", "src": "37232:4:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "37238:1:4", "type": "", "value": "2" } ], "functionName": { "name": "div", "nodeType": "YulIdentifier", "src": "37228:3:4" }, "nodeType": "YulFunctionCall", "src": "37228:12:4" }, "variableNames": [ { "name": "length", "nodeType": "YulIdentifier", "src": "37218:6:4" } ] }, { "nodeType": "YulVariableDeclaration", "src": "37249:38:4", "value": { "arguments": [ { "name": "data", "nodeType": "YulIdentifier", "src": "37279:4:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "37285:1:4", "type": "", "value": "1" } ], "functionName": { "name": "and", "nodeType": "YulIdentifier", "src": "37275:3:4" }, "nodeType": "YulFunctionCall", "src": "37275:12:4" }, "variables": [ { "name": "outOfPlaceEncoding", "nodeType": "YulTypedName", "src": "37253:18:4", "type": "" } ] }, { "body": { "nodeType": "YulBlock", "src": "37326:51:4", "statements": [ { "nodeType": "YulAssignment", "src": "37340:27:4", "value": { "arguments": [ { "name": "length", "nodeType": "YulIdentifier", "src": "37354:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "37362:4:4", "type": "", "value": "0x7f" } ], "functionName": { "name": "and", "nodeType": "YulIdentifier", "src": "37350:3:4" }, "nodeType": "YulFunctionCall", "src": "37350:17:4" }, "variableNames": [ { "name": "length", "nodeType": "YulIdentifier", "src": "37340:6:4" } ] } ] }, "condition": { "arguments": [ { "name": "outOfPlaceEncoding", "nodeType": "YulIdentifier", "src": "37306:18:4" } ], "functionName": { "name": "iszero", "nodeType": "YulIdentifier", "src": "37299:6:4" }, "nodeType": "YulFunctionCall", "src": "37299:26:4" }, "nodeType": "YulIf", "src": "37296:81:4" }, { "body": { "nodeType": "YulBlock", "src": "37429:42:4", "statements": [ { "expression": { "arguments": [], "functionName": { "name": "panic_error_0x22", "nodeType": "YulIdentifier", "src": "37443:16:4" }, "nodeType": "YulFunctionCall", "src": "37443:18:4" }, "nodeType": "YulExpressionStatement", "src": "37443:18:4" } ] }, "condition": { "arguments": [ { "name": "outOfPlaceEncoding", "nodeType": "YulIdentifier", "src": "37393:18:4" }, { "arguments": [ { "name": "length", "nodeType": "YulIdentifier", "src": "37416:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "37424:2:4", "type": "", "value": "32" } ], "functionName": { "name": "lt", "nodeType": "YulIdentifier", "src": "37413:2:4" }, "nodeType": "YulFunctionCall", "src": "37413:14:4" } ], "functionName": { "name": "eq", "nodeType": "YulIdentifier", "src": "37390:2:4" }, "nodeType": "YulFunctionCall", "src": "37390:38:4" }, "nodeType": "YulIf", "src": "37387:84:4" } ] }, "name": "extract_byte_array_length", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "data", "nodeType": "YulTypedName", "src": "37192:4:4", "type": "" } ], "returnVariables": [ { "name": "length", "nodeType": "YulTypedName", "src": "37201:6:4", "type": "" } ], "src": "37157:320:4" }, { "body": { "nodeType": "YulBlock", "src": "37589:138:4", "statements": [ { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "37611:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "37619:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "37607:3:4" }, "nodeType": "YulFunctionCall", "src": "37607:14:4" }, { "hexValue": "496e76656e746f72792063616e20626520726574726965766520757020746f20", "kind": "string", "nodeType": "YulLiteral", "src": "37623:34:4", "type": "", "value": "Inventory can be retrieve up to " } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "37600:6:4" }, "nodeType": "YulFunctionCall", "src": "37600:58:4" }, "nodeType": "YulExpressionStatement", "src": "37600:58:4" }, { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "37679:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "37687:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "37675:3:4" }, "nodeType": "YulFunctionCall", "src": "37675:15:4" }, { "hexValue": "3330206974656d73206174207468652073616d652074696d65", "kind": "string", "nodeType": "YulLiteral", "src": "37692:27:4", "type": "", "value": "30 items at the same time" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "37668:6:4" }, "nodeType": "YulFunctionCall", "src": "37668:52:4" }, "nodeType": "YulExpressionStatement", "src": "37668:52:4" } ] }, "name": "store_literal_in_memory_7bd5de2a7921ab1cd368859225f2849493de4637062cfa621133b94bd187fcba", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "memPtr", "nodeType": "YulTypedName", "src": "37581:6:4", "type": "" } ], "src": "37483:244:4" }, { "body": { "nodeType": "YulBlock", "src": "37879:220:4", "statements": [ { "nodeType": "YulAssignment", "src": "37889:74:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "37955:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "37960:2:4", "type": "", "value": "57" } ], "functionName": { "name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "37896:58:4" }, "nodeType": "YulFunctionCall", "src": "37896:67:4" }, "variableNames": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "37889:3:4" } ] }, { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "38061:3:4" } ], "functionName": { "name": "store_literal_in_memory_7bd5de2a7921ab1cd368859225f2849493de4637062cfa621133b94bd187fcba", "nodeType": "YulIdentifier", "src": "37972:88:4" }, "nodeType": "YulFunctionCall", "src": "37972:93:4" }, "nodeType": "YulExpressionStatement", "src": "37972:93:4" }, { "nodeType": "YulAssignment", "src": "38074:19:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "38085:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "38090:2:4", "type": "", "value": "64" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "38081:3:4" }, "nodeType": "YulFunctionCall", "src": "38081:12:4" }, "variableNames": [ { "name": "end", "nodeType": "YulIdentifier", "src": "38074:3:4" } ] } ] }, "name": "abi_encode_t_stringliteral_7bd5de2a7921ab1cd368859225f2849493de4637062cfa621133b94bd187fcba_to_t_string_memory_ptr_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "pos", "nodeType": "YulTypedName", "src": "37867:3:4", "type": "" } ], "returnVariables": [ { "name": "end", "nodeType": "YulTypedName", "src": "37875:3:4", "type": "" } ], "src": "37733:366:4" }, { "body": { "nodeType": "YulBlock", "src": "38276:248:4", "statements": [ { "nodeType": "YulAssignment", "src": "38286:26:4", "value": { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "38298:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "38309:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "38294:3:4" }, "nodeType": "YulFunctionCall", "src": "38294:18:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "38286:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "38333:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "38344:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "38329:3:4" }, "nodeType": "YulFunctionCall", "src": "38329:17:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "38352:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "38358:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "38348:3:4" }, "nodeType": "YulFunctionCall", "src": "38348:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "38322:6:4" }, "nodeType": "YulFunctionCall", "src": "38322:47:4" }, "nodeType": "YulExpressionStatement", "src": "38322:47:4" }, { "nodeType": "YulAssignment", "src": "38378:139:4", "value": { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "38512:4:4" } ], "functionName": { "name": "abi_encode_t_stringliteral_7bd5de2a7921ab1cd368859225f2849493de4637062cfa621133b94bd187fcba_to_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "38386:124:4" }, "nodeType": "YulFunctionCall", "src": "38386:131:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "38378:4:4" } ] } ] }, "name": "abi_encode_tuple_t_stringliteral_7bd5de2a7921ab1cd368859225f2849493de4637062cfa621133b94bd187fcba__to_t_string_memory_ptr__fromStack_reversed", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "38256:9:4", "type": "" } ], "returnVariables": [ { "name": "tail", "nodeType": "YulTypedName", "src": "38271:4:4", "type": "" } ], "src": "38105:419:4" }, { "body": { "nodeType": "YulBlock", "src": "38574:261:4", "statements": [ { "nodeType": "YulAssignment", "src": "38584:25:4", "value": { "arguments": [ { "name": "x", "nodeType": "YulIdentifier", "src": "38607:1:4" } ], "functionName": { "name": "cleanup_t_uint256", "nodeType": "YulIdentifier", "src": "38589:17:4" }, "nodeType": "YulFunctionCall", "src": "38589:20:4" }, "variableNames": [ { "name": "x", "nodeType": "YulIdentifier", "src": "38584:1:4" } ] }, { "nodeType": "YulAssignment", "src": "38618:25:4", "value": { "arguments": [ { "name": "y", "nodeType": "YulIdentifier", "src": "38641:1:4" } ], "functionName": { "name": "cleanup_t_uint256", "nodeType": "YulIdentifier", "src": "38623:17:4" }, "nodeType": "YulFunctionCall", "src": "38623:20:4" }, "variableNames": [ { "name": "y", "nodeType": "YulIdentifier", "src": "38618:1:4" } ] }, { "body": { "nodeType": "YulBlock", "src": "38781:22:4", "statements": [ { "expression": { "arguments": [], "functionName": { "name": "panic_error_0x11", "nodeType": "YulIdentifier", "src": "38783:16:4" }, "nodeType": "YulFunctionCall", "src": "38783:18:4" }, "nodeType": "YulExpressionStatement", "src": "38783:18:4" } ] }, "condition": { "arguments": [ { "name": "x", "nodeType": "YulIdentifier", "src": "38702:1:4" }, { "arguments": [ { "kind": "number", "nodeType": "YulLiteral", "src": "38709:66:4", "type": "", "value": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" }, { "name": "y", "nodeType": "YulIdentifier", "src": "38777:1:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "38705:3:4" }, "nodeType": "YulFunctionCall", "src": "38705:74:4" } ], "functionName": { "name": "gt", "nodeType": "YulIdentifier", "src": "38699:2:4" }, "nodeType": "YulFunctionCall", "src": "38699:81:4" }, "nodeType": "YulIf", "src": "38696:107:4" }, { "nodeType": "YulAssignment", "src": "38813:16:4", "value": { "arguments": [ { "name": "x", "nodeType": "YulIdentifier", "src": "38824:1:4" }, { "name": "y", "nodeType": "YulIdentifier", "src": "38827:1:4" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "38820:3:4" }, "nodeType": "YulFunctionCall", "src": "38820:9:4" }, "variableNames": [ { "name": "sum", "nodeType": "YulIdentifier", "src": "38813:3:4" } ] } ] }, "name": "checked_add_t_uint256", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "x", "nodeType": "YulTypedName", "src": "38561:1:4", "type": "" }, { "name": "y", "nodeType": "YulTypedName", "src": "38564:1:4", "type": "" } ], "returnVariables": [ { "name": "sum", "nodeType": "YulTypedName", "src": "38570:3:4", "type": "" } ], "src": "38530:305:4" }, { "body": { "nodeType": "YulBlock", "src": "38947:133:4", "statements": [ { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "38969:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "38977:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "38965:3:4" }, "nodeType": "YulFunctionCall", "src": "38965:14:4" }, { "hexValue": "4f6e6c792061647320746861742061726520696e2074686520696e76656e746f", "kind": "string", "nodeType": "YulLiteral", "src": "38981:34:4", "type": "", "value": "Only ads that are in the invento" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "38958:6:4" }, "nodeType": "YulFunctionCall", "src": "38958:58:4" }, "nodeType": "YulExpressionStatement", "src": "38958:58:4" }, { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "39037:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "39045:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "39033:3:4" }, "nodeType": "YulFunctionCall", "src": "39033:15:4" }, { "hexValue": "72792063616e20626520636f6c6c65637465642e", "kind": "string", "nodeType": "YulLiteral", "src": "39050:22:4", "type": "", "value": "ry can be collected." } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "39026:6:4" }, "nodeType": "YulFunctionCall", "src": "39026:47:4" }, "nodeType": "YulExpressionStatement", "src": "39026:47:4" } ] }, "name": "store_literal_in_memory_659fefdbf37c49ed6966d6daba615f39d1833c29220febaffa25a47eec7c36ae", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "memPtr", "nodeType": "YulTypedName", "src": "38939:6:4", "type": "" } ], "src": "38841:239:4" }, { "body": { "nodeType": "YulBlock", "src": "39232:220:4", "statements": [ { "nodeType": "YulAssignment", "src": "39242:74:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "39308:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "39313:2:4", "type": "", "value": "52" } ], "functionName": { "name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "39249:58:4" }, "nodeType": "YulFunctionCall", "src": "39249:67:4" }, "variableNames": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "39242:3:4" } ] }, { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "39414:3:4" } ], "functionName": { "name": "store_literal_in_memory_659fefdbf37c49ed6966d6daba615f39d1833c29220febaffa25a47eec7c36ae", "nodeType": "YulIdentifier", "src": "39325:88:4" }, "nodeType": "YulFunctionCall", "src": "39325:93:4" }, "nodeType": "YulExpressionStatement", "src": "39325:93:4" }, { "nodeType": "YulAssignment", "src": "39427:19:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "39438:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "39443:2:4", "type": "", "value": "64" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "39434:3:4" }, "nodeType": "YulFunctionCall", "src": "39434:12:4" }, "variableNames": [ { "name": "end", "nodeType": "YulIdentifier", "src": "39427:3:4" } ] } ] }, "name": "abi_encode_t_stringliteral_659fefdbf37c49ed6966d6daba615f39d1833c29220febaffa25a47eec7c36ae_to_t_string_memory_ptr_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "pos", "nodeType": "YulTypedName", "src": "39220:3:4", "type": "" } ], "returnVariables": [ { "name": "end", "nodeType": "YulTypedName", "src": "39228:3:4", "type": "" } ], "src": "39086:366:4" }, { "body": { "nodeType": "YulBlock", "src": "39629:248:4", "statements": [ { "nodeType": "YulAssignment", "src": "39639:26:4", "value": { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "39651:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "39662:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "39647:3:4" }, "nodeType": "YulFunctionCall", "src": "39647:18:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "39639:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "39686:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "39697:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "39682:3:4" }, "nodeType": "YulFunctionCall", "src": "39682:17:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "39705:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "39711:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "39701:3:4" }, "nodeType": "YulFunctionCall", "src": "39701:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "39675:6:4" }, "nodeType": "YulFunctionCall", "src": "39675:47:4" }, "nodeType": "YulExpressionStatement", "src": "39675:47:4" }, { "nodeType": "YulAssignment", "src": "39731:139:4", "value": { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "39865:4:4" } ], "functionName": { "name": "abi_encode_t_stringliteral_659fefdbf37c49ed6966d6daba615f39d1833c29220febaffa25a47eec7c36ae_to_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "39739:124:4" }, "nodeType": "YulFunctionCall", "src": "39739:131:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "39731:4:4" } ] } ] }, "name": "abi_encode_tuple_t_stringliteral_659fefdbf37c49ed6966d6daba615f39d1833c29220febaffa25a47eec7c36ae__to_t_string_memory_ptr__fromStack_reversed", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "39609:9:4", "type": "" } ], "returnVariables": [ { "name": "tail", "nodeType": "YulTypedName", "src": "39624:4:4", "type": "" } ], "src": "39458:419:4" }, { "body": { "nodeType": "YulBlock", "src": "39989:125:4", "statements": [ { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "40011:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "40019:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "40007:3:4" }, "nodeType": "YulFunctionCall", "src": "40007:14:4" }, { "hexValue": "4f6e6c79206164732074686174206861766520657870697265642063616e2062", "kind": "string", "nodeType": "YulLiteral", "src": "40023:34:4", "type": "", "value": "Only ads that have expired can b" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "40000:6:4" }, "nodeType": "YulFunctionCall", "src": "40000:58:4" }, "nodeType": "YulExpressionStatement", "src": "40000:58:4" }, { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "40079:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "40087:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "40075:3:4" }, "nodeType": "YulFunctionCall", "src": "40075:15:4" }, { "hexValue": "6520636f6c6c65637465642e", "kind": "string", "nodeType": "YulLiteral", "src": "40092:14:4", "type": "", "value": "e collected." } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "40068:6:4" }, "nodeType": "YulFunctionCall", "src": "40068:39:4" }, "nodeType": "YulExpressionStatement", "src": "40068:39:4" } ] }, "name": "store_literal_in_memory_78292a3aa51e81943d430cb8bf02e588b16925e83aa89fd5e23fc0c91298f7af", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "memPtr", "nodeType": "YulTypedName", "src": "39981:6:4", "type": "" } ], "src": "39883:231:4" }, { "body": { "nodeType": "YulBlock", "src": "40266:220:4", "statements": [ { "nodeType": "YulAssignment", "src": "40276:74:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "40342:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "40347:2:4", "type": "", "value": "44" } ], "functionName": { "name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "40283:58:4" }, "nodeType": "YulFunctionCall", "src": "40283:67:4" }, "variableNames": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "40276:3:4" } ] }, { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "40448:3:4" } ], "functionName": { "name": "store_literal_in_memory_78292a3aa51e81943d430cb8bf02e588b16925e83aa89fd5e23fc0c91298f7af", "nodeType": "YulIdentifier", "src": "40359:88:4" }, "nodeType": "YulFunctionCall", "src": "40359:93:4" }, "nodeType": "YulExpressionStatement", "src": "40359:93:4" }, { "nodeType": "YulAssignment", "src": "40461:19:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "40472:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "40477:2:4", "type": "", "value": "64" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "40468:3:4" }, "nodeType": "YulFunctionCall", "src": "40468:12:4" }, "variableNames": [ { "name": "end", "nodeType": "YulIdentifier", "src": "40461:3:4" } ] } ] }, "name": "abi_encode_t_stringliteral_78292a3aa51e81943d430cb8bf02e588b16925e83aa89fd5e23fc0c91298f7af_to_t_string_memory_ptr_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "pos", "nodeType": "YulTypedName", "src": "40254:3:4", "type": "" } ], "returnVariables": [ { "name": "end", "nodeType": "YulTypedName", "src": "40262:3:4", "type": "" } ], "src": "40120:366:4" }, { "body": { "nodeType": "YulBlock", "src": "40663:248:4", "statements": [ { "nodeType": "YulAssignment", "src": "40673:26:4", "value": { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "40685:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "40696:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "40681:3:4" }, "nodeType": "YulFunctionCall", "src": "40681:18:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "40673:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "40720:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "40731:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "40716:3:4" }, "nodeType": "YulFunctionCall", "src": "40716:17:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "40739:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "40745:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "40735:3:4" }, "nodeType": "YulFunctionCall", "src": "40735:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "40709:6:4" }, "nodeType": "YulFunctionCall", "src": "40709:47:4" }, "nodeType": "YulExpressionStatement", "src": "40709:47:4" }, { "nodeType": "YulAssignment", "src": "40765:139:4", "value": { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "40899:4:4" } ], "functionName": { "name": "abi_encode_t_stringliteral_78292a3aa51e81943d430cb8bf02e588b16925e83aa89fd5e23fc0c91298f7af_to_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "40773:124:4" }, "nodeType": "YulFunctionCall", "src": "40773:131:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "40765:4:4" } ] } ] }, "name": "abi_encode_tuple_t_stringliteral_78292a3aa51e81943d430cb8bf02e588b16925e83aa89fd5e23fc0c91298f7af__to_t_string_memory_ptr__fromStack_reversed", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "40643:9:4", "type": "" } ], "returnVariables": [ { "name": "tail", "nodeType": "YulTypedName", "src": "40658:4:4", "type": "" } ], "src": "40492:419:4" }, { "body": { "nodeType": "YulBlock", "src": "41023:192:4", "statements": [ { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "41045:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "41053:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "41041:3:4" }, "nodeType": "YulFunctionCall", "src": "41041:14:4" }, { "hexValue": "4f6e6c7920746865206f776e6572206f662074686520696e76656e746f727920", "kind": "string", "nodeType": "YulLiteral", "src": "41057:34:4", "type": "", "value": "Only the owner of the inventory " } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "41034:6:4" }, "nodeType": "YulFunctionCall", "src": "41034:58:4" }, "nodeType": "YulExpressionStatement", "src": "41034:58:4" }, { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "41113:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "41121:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "41109:3:4" }, "nodeType": "YulFunctionCall", "src": "41109:15:4" }, { "hexValue": "6f7220746865206f776e6572206f66207468652061642063616e20636f6c6c65", "kind": "string", "nodeType": "YulLiteral", "src": "41126:34:4", "type": "", "value": "or the owner of the ad can colle" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "41102:6:4" }, "nodeType": "YulFunctionCall", "src": "41102:59:4" }, "nodeType": "YulExpressionStatement", "src": "41102:59:4" }, { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "41182:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "41190:2:4", "type": "", "value": "64" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "41178:3:4" }, "nodeType": "YulFunctionCall", "src": "41178:15:4" }, { "hexValue": "6374207468652061642e", "kind": "string", "nodeType": "YulLiteral", "src": "41195:12:4", "type": "", "value": "ct the ad." } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "41171:6:4" }, "nodeType": "YulFunctionCall", "src": "41171:37:4" }, "nodeType": "YulExpressionStatement", "src": "41171:37:4" } ] }, "name": "store_literal_in_memory_b0aeae4f4248bb42a18652a04d02fcead20671ee6bcbd039d3ac82c8a2823c8f", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "memPtr", "nodeType": "YulTypedName", "src": "41015:6:4", "type": "" } ], "src": "40917:298:4" }, { "body": { "nodeType": "YulBlock", "src": "41367:220:4", "statements": [ { "nodeType": "YulAssignment", "src": "41377:74:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "41443:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "41448:2:4", "type": "", "value": "74" } ], "functionName": { "name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "41384:58:4" }, "nodeType": "YulFunctionCall", "src": "41384:67:4" }, "variableNames": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "41377:3:4" } ] }, { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "41549:3:4" } ], "functionName": { "name": "store_literal_in_memory_b0aeae4f4248bb42a18652a04d02fcead20671ee6bcbd039d3ac82c8a2823c8f", "nodeType": "YulIdentifier", "src": "41460:88:4" }, "nodeType": "YulFunctionCall", "src": "41460:93:4" }, "nodeType": "YulExpressionStatement", "src": "41460:93:4" }, { "nodeType": "YulAssignment", "src": "41562:19:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "41573:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "41578:2:4", "type": "", "value": "96" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "41569:3:4" }, "nodeType": "YulFunctionCall", "src": "41569:12:4" }, "variableNames": [ { "name": "end", "nodeType": "YulIdentifier", "src": "41562:3:4" } ] } ] }, "name": "abi_encode_t_stringliteral_b0aeae4f4248bb42a18652a04d02fcead20671ee6bcbd039d3ac82c8a2823c8f_to_t_string_memory_ptr_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "pos", "nodeType": "YulTypedName", "src": "41355:3:4", "type": "" } ], "returnVariables": [ { "name": "end", "nodeType": "YulTypedName", "src": "41363:3:4", "type": "" } ], "src": "41221:366:4" }, { "body": { "nodeType": "YulBlock", "src": "41764:248:4", "statements": [ { "nodeType": "YulAssignment", "src": "41774:26:4", "value": { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "41786:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "41797:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "41782:3:4" }, "nodeType": "YulFunctionCall", "src": "41782:18:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "41774:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "41821:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "41832:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "41817:3:4" }, "nodeType": "YulFunctionCall", "src": "41817:17:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "41840:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "41846:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "41836:3:4" }, "nodeType": "YulFunctionCall", "src": "41836:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "41810:6:4" }, "nodeType": "YulFunctionCall", "src": "41810:47:4" }, "nodeType": "YulExpressionStatement", "src": "41810:47:4" }, { "nodeType": "YulAssignment", "src": "41866:139:4", "value": { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "42000:4:4" } ], "functionName": { "name": "abi_encode_t_stringliteral_b0aeae4f4248bb42a18652a04d02fcead20671ee6bcbd039d3ac82c8a2823c8f_to_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "41874:124:4" }, "nodeType": "YulFunctionCall", "src": "41874:131:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "41866:4:4" } ] } ] }, "name": "abi_encode_tuple_t_stringliteral_b0aeae4f4248bb42a18652a04d02fcead20671ee6bcbd039d3ac82c8a2823c8f__to_t_string_memory_ptr__fromStack_reversed", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "41744:9:4", "type": "" } ], "returnVariables": [ { "name": "tail", "nodeType": "YulTypedName", "src": "41759:4:4", "type": "" } ], "src": "41593:419:4" }, { "body": { "nodeType": "YulBlock", "src": "42046:152:4", "statements": [ { "expression": { "arguments": [ { "kind": "number", "nodeType": "YulLiteral", "src": "42063:1:4", "type": "", "value": "0" }, { "kind": "number", "nodeType": "YulLiteral", "src": "42066:77:4", "type": "", "value": "35408467139433450592217433187231851964531694900788300625387963629091585785856" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "42056:6:4" }, "nodeType": "YulFunctionCall", "src": "42056:88:4" }, "nodeType": "YulExpressionStatement", "src": "42056:88:4" }, { "expression": { "arguments": [ { "kind": "number", "nodeType": "YulLiteral", "src": "42160:1:4", "type": "", "value": "4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "42163:4:4", "type": "", "value": "0x12" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "42153:6:4" }, "nodeType": "YulFunctionCall", "src": "42153:15:4" }, "nodeType": "YulExpressionStatement", "src": "42153:15:4" }, { "expression": { "arguments": [ { "kind": "number", "nodeType": "YulLiteral", "src": "42184:1:4", "type": "", "value": "0" }, { "kind": "number", "nodeType": "YulLiteral", "src": "42187:4:4", "type": "", "value": "0x24" } ], "functionName": { "name": "revert", "nodeType": "YulIdentifier", "src": "42177:6:4" }, "nodeType": "YulFunctionCall", "src": "42177:15:4" }, "nodeType": "YulExpressionStatement", "src": "42177:15:4" } ] }, "name": "panic_error_0x12", "nodeType": "YulFunctionDefinition", "src": "42018:180:4" }, { "body": { "nodeType": "YulBlock", "src": "42246:143:4", "statements": [ { "nodeType": "YulAssignment", "src": "42256:25:4", "value": { "arguments": [ { "name": "x", "nodeType": "YulIdentifier", "src": "42279:1:4" } ], "functionName": { "name": "cleanup_t_uint256", "nodeType": "YulIdentifier", "src": "42261:17:4" }, "nodeType": "YulFunctionCall", "src": "42261:20:4" }, "variableNames": [ { "name": "x", "nodeType": "YulIdentifier", "src": "42256:1:4" } ] }, { "nodeType": "YulAssignment", "src": "42290:25:4", "value": { "arguments": [ { "name": "y", "nodeType": "YulIdentifier", "src": "42313:1:4" } ], "functionName": { "name": "cleanup_t_uint256", "nodeType": "YulIdentifier", "src": "42295:17:4" }, "nodeType": "YulFunctionCall", "src": "42295:20:4" }, "variableNames": [ { "name": "y", "nodeType": "YulIdentifier", "src": "42290:1:4" } ] }, { "body": { "nodeType": "YulBlock", "src": "42337:22:4", "statements": [ { "expression": { "arguments": [], "functionName": { "name": "panic_error_0x12", "nodeType": "YulIdentifier", "src": "42339:16:4" }, "nodeType": "YulFunctionCall", "src": "42339:18:4" }, "nodeType": "YulExpressionStatement", "src": "42339:18:4" } ] }, "condition": { "arguments": [ { "name": "y", "nodeType": "YulIdentifier", "src": "42334:1:4" } ], "functionName": { "name": "iszero", "nodeType": "YulIdentifier", "src": "42327:6:4" }, "nodeType": "YulFunctionCall", "src": "42327:9:4" }, "nodeType": "YulIf", "src": "42324:35:4" }, { "nodeType": "YulAssignment", "src": "42369:14:4", "value": { "arguments": [ { "name": "x", "nodeType": "YulIdentifier", "src": "42378:1:4" }, { "name": "y", "nodeType": "YulIdentifier", "src": "42381:1:4" } ], "functionName": { "name": "div", "nodeType": "YulIdentifier", "src": "42374:3:4" }, "nodeType": "YulFunctionCall", "src": "42374:9:4" }, "variableNames": [ { "name": "r", "nodeType": "YulIdentifier", "src": "42369:1:4" } ] } ] }, "name": "checked_div_t_uint256", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "x", "nodeType": "YulTypedName", "src": "42235:1:4", "type": "" }, { "name": "y", "nodeType": "YulTypedName", "src": "42238:1:4", "type": "" } ], "returnVariables": [ { "name": "r", "nodeType": "YulTypedName", "src": "42244:1:4", "type": "" } ], "src": "42204:185:4" }, { "body": { "nodeType": "YulBlock", "src": "42440:146:4", "statements": [ { "nodeType": "YulAssignment", "src": "42450:25:4", "value": { "arguments": [ { "name": "x", "nodeType": "YulIdentifier", "src": "42473:1:4" } ], "functionName": { "name": "cleanup_t_uint256", "nodeType": "YulIdentifier", "src": "42455:17:4" }, "nodeType": "YulFunctionCall", "src": "42455:20:4" }, "variableNames": [ { "name": "x", "nodeType": "YulIdentifier", "src": "42450:1:4" } ] }, { "nodeType": "YulAssignment", "src": "42484:25:4", "value": { "arguments": [ { "name": "y", "nodeType": "YulIdentifier", "src": "42507:1:4" } ], "functionName": { "name": "cleanup_t_uint256", "nodeType": "YulIdentifier", "src": "42489:17:4" }, "nodeType": "YulFunctionCall", "src": "42489:20:4" }, "variableNames": [ { "name": "y", "nodeType": "YulIdentifier", "src": "42484:1:4" } ] }, { "body": { "nodeType": "YulBlock", "src": "42531:22:4", "statements": [ { "expression": { "arguments": [], "functionName": { "name": "panic_error_0x11", "nodeType": "YulIdentifier", "src": "42533:16:4" }, "nodeType": "YulFunctionCall", "src": "42533:18:4" }, "nodeType": "YulExpressionStatement", "src": "42533:18:4" } ] }, "condition": { "arguments": [ { "name": "x", "nodeType": "YulIdentifier", "src": "42525:1:4" }, { "name": "y", "nodeType": "YulIdentifier", "src": "42528:1:4" } ], "functionName": { "name": "lt", "nodeType": "YulIdentifier", "src": "42522:2:4" }, "nodeType": "YulFunctionCall", "src": "42522:8:4" }, "nodeType": "YulIf", "src": "42519:34:4" }, { "nodeType": "YulAssignment", "src": "42563:17:4", "value": { "arguments": [ { "name": "x", "nodeType": "YulIdentifier", "src": "42575:1:4" }, { "name": "y", "nodeType": "YulIdentifier", "src": "42578:1:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "42571:3:4" }, "nodeType": "YulFunctionCall", "src": "42571:9:4" }, "variableNames": [ { "name": "diff", "nodeType": "YulIdentifier", "src": "42563:4:4" } ] } ] }, "name": "checked_sub_t_uint256", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "x", "nodeType": "YulTypedName", "src": "42426:1:4", "type": "" }, { "name": "y", "nodeType": "YulTypedName", "src": "42429:1:4", "type": "" } ], "returnVariables": [ { "name": "diff", "nodeType": "YulTypedName", "src": "42435:4:4", "type": "" } ], "src": "42395:191:4" }, { "body": { "nodeType": "YulBlock", "src": "42698:209:4", "statements": [ { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "42720:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "42728:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "42716:3:4" }, "nodeType": "YulFunctionCall", "src": "42716:14:4" }, { "hexValue": "596f752068617665207265616368656420746865206d6178696d756d206e756d", "kind": "string", "nodeType": "YulLiteral", "src": "42732:34:4", "type": "", "value": "You have reached the maximum num" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "42709:6:4" }, "nodeType": "YulFunctionCall", "src": "42709:58:4" }, "nodeType": "YulExpressionStatement", "src": "42709:58:4" }, { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "42788:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "42796:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "42784:3:4" }, "nodeType": "YulFunctionCall", "src": "42784:15:4" }, { "hexValue": "626572206f662061647320796f752063616e206372656174652e20596f75206e", "kind": "string", "nodeType": "YulLiteral", "src": "42801:34:4", "type": "", "value": "ber of ads you can create. You n" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "42777:6:4" }, "nodeType": "YulFunctionCall", "src": "42777:59:4" }, "nodeType": "YulExpressionStatement", "src": "42777:59:4" }, { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "42857:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "42865:2:4", "type": "", "value": "64" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "42853:3:4" }, "nodeType": "YulFunctionCall", "src": "42853:15:4" }, { "hexValue": "65656420746f2072656d6f766520756e77616e746564206164732e", "kind": "string", "nodeType": "YulLiteral", "src": "42870:29:4", "type": "", "value": "eed to remove unwanted ads." } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "42846:6:4" }, "nodeType": "YulFunctionCall", "src": "42846:54:4" }, "nodeType": "YulExpressionStatement", "src": "42846:54:4" } ] }, "name": "store_literal_in_memory_e73bff7657bdbb5bdef4ed41a4c1c24dfb5c73f6334bacdcb8893c75bf0f5744", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "memPtr", "nodeType": "YulTypedName", "src": "42690:6:4", "type": "" } ], "src": "42592:315:4" }, { "body": { "nodeType": "YulBlock", "src": "43059:220:4", "statements": [ { "nodeType": "YulAssignment", "src": "43069:74:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "43135:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "43140:2:4", "type": "", "value": "91" } ], "functionName": { "name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "43076:58:4" }, "nodeType": "YulFunctionCall", "src": "43076:67:4" }, "variableNames": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "43069:3:4" } ] }, { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "43241:3:4" } ], "functionName": { "name": "store_literal_in_memory_e73bff7657bdbb5bdef4ed41a4c1c24dfb5c73f6334bacdcb8893c75bf0f5744", "nodeType": "YulIdentifier", "src": "43152:88:4" }, "nodeType": "YulFunctionCall", "src": "43152:93:4" }, "nodeType": "YulExpressionStatement", "src": "43152:93:4" }, { "nodeType": "YulAssignment", "src": "43254:19:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "43265:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "43270:2:4", "type": "", "value": "96" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "43261:3:4" }, "nodeType": "YulFunctionCall", "src": "43261:12:4" }, "variableNames": [ { "name": "end", "nodeType": "YulIdentifier", "src": "43254:3:4" } ] } ] }, "name": "abi_encode_t_stringliteral_e73bff7657bdbb5bdef4ed41a4c1c24dfb5c73f6334bacdcb8893c75bf0f5744_to_t_string_memory_ptr_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "pos", "nodeType": "YulTypedName", "src": "43047:3:4", "type": "" } ], "returnVariables": [ { "name": "end", "nodeType": "YulTypedName", "src": "43055:3:4", "type": "" } ], "src": "42913:366:4" }, { "body": { "nodeType": "YulBlock", "src": "43456:248:4", "statements": [ { "nodeType": "YulAssignment", "src": "43466:26:4", "value": { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "43478:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "43489:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "43474:3:4" }, "nodeType": "YulFunctionCall", "src": "43474:18:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "43466:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "43513:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "43524:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "43509:3:4" }, "nodeType": "YulFunctionCall", "src": "43509:17:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "43532:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "43538:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "43528:3:4" }, "nodeType": "YulFunctionCall", "src": "43528:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "43502:6:4" }, "nodeType": "YulFunctionCall", "src": "43502:47:4" }, "nodeType": "YulExpressionStatement", "src": "43502:47:4" }, { "nodeType": "YulAssignment", "src": "43558:139:4", "value": { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "43692:4:4" } ], "functionName": { "name": "abi_encode_t_stringliteral_e73bff7657bdbb5bdef4ed41a4c1c24dfb5c73f6334bacdcb8893c75bf0f5744_to_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "43566:124:4" }, "nodeType": "YulFunctionCall", "src": "43566:131:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "43558:4:4" } ] } ] }, "name": "abi_encode_tuple_t_stringliteral_e73bff7657bdbb5bdef4ed41a4c1c24dfb5c73f6334bacdcb8893c75bf0f5744__to_t_string_memory_ptr__fromStack_reversed", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "43436:9:4", "type": "" } ], "returnVariables": [ { "name": "tail", "nodeType": "YulTypedName", "src": "43451:4:4", "type": "" } ], "src": "43285:419:4" }, { "body": { "nodeType": "YulBlock", "src": "43754:144:4", "statements": [ { "nodeType": "YulAssignment", "src": "43764:24:4", "value": { "arguments": [ { "name": "x", "nodeType": "YulIdentifier", "src": "43786:1:4" } ], "functionName": { "name": "cleanup_t_uint32", "nodeType": "YulIdentifier", "src": "43769:16:4" }, "nodeType": "YulFunctionCall", "src": "43769:19:4" }, "variableNames": [ { "name": "x", "nodeType": "YulIdentifier", "src": "43764:1:4" } ] }, { "nodeType": "YulAssignment", "src": "43797:24:4", "value": { "arguments": [ { "name": "y", "nodeType": "YulIdentifier", "src": "43819:1:4" } ], "functionName": { "name": "cleanup_t_uint32", "nodeType": "YulIdentifier", "src": "43802:16:4" }, "nodeType": "YulFunctionCall", "src": "43802:19:4" }, "variableNames": [ { "name": "y", "nodeType": "YulIdentifier", "src": "43797:1:4" } ] }, { "body": { "nodeType": "YulBlock", "src": "43843:22:4", "statements": [ { "expression": { "arguments": [], "functionName": { "name": "panic_error_0x11", "nodeType": "YulIdentifier", "src": "43845:16:4" }, "nodeType": "YulFunctionCall", "src": "43845:18:4" }, "nodeType": "YulExpressionStatement", "src": "43845:18:4" } ] }, "condition": { "arguments": [ { "name": "x", "nodeType": "YulIdentifier", "src": "43837:1:4" }, { "name": "y", "nodeType": "YulIdentifier", "src": "43840:1:4" } ], "functionName": { "name": "lt", "nodeType": "YulIdentifier", "src": "43834:2:4" }, "nodeType": "YulFunctionCall", "src": "43834:8:4" }, "nodeType": "YulIf", "src": "43831:34:4" }, { "nodeType": "YulAssignment", "src": "43875:17:4", "value": { "arguments": [ { "name": "x", "nodeType": "YulIdentifier", "src": "43887:1:4" }, { "name": "y", "nodeType": "YulIdentifier", "src": "43890:1:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "43883:3:4" }, "nodeType": "YulFunctionCall", "src": "43883:9:4" }, "variableNames": [ { "name": "diff", "nodeType": "YulIdentifier", "src": "43875:4:4" } ] } ] }, "name": "checked_sub_t_uint32", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "x", "nodeType": "YulTypedName", "src": "43740:1:4", "type": "" }, { "name": "y", "nodeType": "YulTypedName", "src": "43743:1:4", "type": "" } ], "returnVariables": [ { "name": "diff", "nodeType": "YulTypedName", "src": "43749:4:4", "type": "" } ], "src": "43710:188:4" }, { "body": { "nodeType": "YulBlock", "src": "44010:259:4", "statements": [ { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "44032:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "44040:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "44028:3:4" }, "nodeType": "YulFunctionCall", "src": "44028:14:4" }, { "hexValue": "5468652064656c69766572792073746172742074696d65206d75737420626520", "kind": "string", "nodeType": "YulLiteral", "src": "44044:34:4", "type": "", "value": "The delivery start time must be " } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "44021:6:4" }, "nodeType": "YulFunctionCall", "src": "44021:58:4" }, "nodeType": "YulExpressionStatement", "src": "44021:58:4" }, { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "44100:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "44108:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "44096:3:4" }, "nodeType": "YulFunctionCall", "src": "44096:15:4" }, { "hexValue": "6265666f7265207468652064656c697665727920656e642074696d652c20616e", "kind": "string", "nodeType": "YulLiteral", "src": "44113:34:4", "type": "", "value": "before the delivery end time, an" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "44089:6:4" }, "nodeType": "YulFunctionCall", "src": "44089:59:4" }, "nodeType": "YulExpressionStatement", "src": "44089:59:4" }, { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "44169:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "44177:2:4", "type": "", "value": "64" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "44165:3:4" }, "nodeType": "YulFunctionCall", "src": "44165:15:4" }, { "hexValue": "642061206d696e696d756d2064656c697665727920706572696f64206d757374", "kind": "string", "nodeType": "YulLiteral", "src": "44182:34:4", "type": "", "value": "d a minimum delivery period must" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "44158:6:4" }, "nodeType": "YulFunctionCall", "src": "44158:59:4" }, "nodeType": "YulExpressionStatement", "src": "44158:59:4" }, { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "44238:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "44246:2:4", "type": "", "value": "96" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "44234:3:4" }, "nodeType": "YulFunctionCall", "src": "44234:15:4" }, { "hexValue": "206265207365742e", "kind": "string", "nodeType": "YulLiteral", "src": "44251:10:4", "type": "", "value": " be set." } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "44227:6:4" }, "nodeType": "YulFunctionCall", "src": "44227:35:4" }, "nodeType": "YulExpressionStatement", "src": "44227:35:4" } ] }, "name": "store_literal_in_memory_5447ff33ec71380c4433dea19bd92e1e04cd36dcd9d05b85381a884186004cac", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "memPtr", "nodeType": "YulTypedName", "src": "44002:6:4", "type": "" } ], "src": "43904:365:4" }, { "body": { "nodeType": "YulBlock", "src": "44421:222:4", "statements": [ { "nodeType": "YulAssignment", "src": "44431:75:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "44497:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "44502:3:4", "type": "", "value": "104" } ], "functionName": { "name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "44438:58:4" }, "nodeType": "YulFunctionCall", "src": "44438:68:4" }, "variableNames": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "44431:3:4" } ] }, { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "44604:3:4" } ], "functionName": { "name": "store_literal_in_memory_5447ff33ec71380c4433dea19bd92e1e04cd36dcd9d05b85381a884186004cac", "nodeType": "YulIdentifier", "src": "44515:88:4" }, "nodeType": "YulFunctionCall", "src": "44515:93:4" }, "nodeType": "YulExpressionStatement", "src": "44515:93:4" }, { "nodeType": "YulAssignment", "src": "44617:20:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "44628:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "44633:3:4", "type": "", "value": "128" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "44624:3:4" }, "nodeType": "YulFunctionCall", "src": "44624:13:4" }, "variableNames": [ { "name": "end", "nodeType": "YulIdentifier", "src": "44617:3:4" } ] } ] }, "name": "abi_encode_t_stringliteral_5447ff33ec71380c4433dea19bd92e1e04cd36dcd9d05b85381a884186004cac_to_t_string_memory_ptr_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "pos", "nodeType": "YulTypedName", "src": "44409:3:4", "type": "" } ], "returnVariables": [ { "name": "end", "nodeType": "YulTypedName", "src": "44417:3:4", "type": "" } ], "src": "44275:368:4" }, { "body": { "nodeType": "YulBlock", "src": "44820:248:4", "statements": [ { "nodeType": "YulAssignment", "src": "44830:26:4", "value": { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "44842:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "44853:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "44838:3:4" }, "nodeType": "YulFunctionCall", "src": "44838:18:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "44830:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "44877:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "44888:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "44873:3:4" }, "nodeType": "YulFunctionCall", "src": "44873:17:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "44896:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "44902:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "44892:3:4" }, "nodeType": "YulFunctionCall", "src": "44892:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "44866:6:4" }, "nodeType": "YulFunctionCall", "src": "44866:47:4" }, "nodeType": "YulExpressionStatement", "src": "44866:47:4" }, { "nodeType": "YulAssignment", "src": "44922:139:4", "value": { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "45056:4:4" } ], "functionName": { "name": "abi_encode_t_stringliteral_5447ff33ec71380c4433dea19bd92e1e04cd36dcd9d05b85381a884186004cac_to_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "44930:124:4" }, "nodeType": "YulFunctionCall", "src": "44930:131:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "44922:4:4" } ] } ] }, "name": "abi_encode_tuple_t_stringliteral_5447ff33ec71380c4433dea19bd92e1e04cd36dcd9d05b85381a884186004cac__to_t_string_memory_ptr__fromStack_reversed", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "44800:9:4", "type": "" } ], "returnVariables": [ { "name": "tail", "nodeType": "YulTypedName", "src": "44815:4:4", "type": "" } ], "src": "44649:419:4" }, { "body": { "nodeType": "YulBlock", "src": "45180:199:4", "statements": [ { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "45202:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "45210:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "45198:3:4" }, "nodeType": "YulFunctionCall", "src": "45198:14:4" }, { "hexValue": "4974206973206e656365737361727920746f20616c6c6f772061206365727461", "kind": "string", "nodeType": "YulLiteral", "src": "45214:34:4", "type": "", "value": "It is necessary to allow a certa" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "45191:6:4" }, "nodeType": "YulFunctionCall", "src": "45191:58:4" }, "nodeType": "YulExpressionStatement", "src": "45191:58:4" }, { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "45270:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "45278:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "45266:3:4" }, "nodeType": "YulFunctionCall", "src": "45266:15:4" }, { "hexValue": "696e20616d6f756e74206f662074696d65206265666f72652074686520646973", "kind": "string", "nodeType": "YulLiteral", "src": "45283:34:4", "type": "", "value": "in amount of time before the dis" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "45259:6:4" }, "nodeType": "YulFunctionCall", "src": "45259:59:4" }, "nodeType": "YulExpressionStatement", "src": "45259:59:4" }, { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "45339:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "45347:2:4", "type": "", "value": "64" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "45335:3:4" }, "nodeType": "YulFunctionCall", "src": "45335:15:4" }, { "hexValue": "747269627574696f6e207374617274732e", "kind": "string", "nodeType": "YulLiteral", "src": "45352:19:4", "type": "", "value": "tribution starts." } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "45328:6:4" }, "nodeType": "YulFunctionCall", "src": "45328:44:4" }, "nodeType": "YulExpressionStatement", "src": "45328:44:4" } ] }, "name": "store_literal_in_memory_0e7f391a772d09ccfabb4f385b147176f21130142ee83356b796e2c0f11049c3", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "memPtr", "nodeType": "YulTypedName", "src": "45172:6:4", "type": "" } ], "src": "45074:305:4" }, { "body": { "nodeType": "YulBlock", "src": "45531:220:4", "statements": [ { "nodeType": "YulAssignment", "src": "45541:74:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "45607:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "45612:2:4", "type": "", "value": "81" } ], "functionName": { "name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "45548:58:4" }, "nodeType": "YulFunctionCall", "src": "45548:67:4" }, "variableNames": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "45541:3:4" } ] }, { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "45713:3:4" } ], "functionName": { "name": "store_literal_in_memory_0e7f391a772d09ccfabb4f385b147176f21130142ee83356b796e2c0f11049c3", "nodeType": "YulIdentifier", "src": "45624:88:4" }, "nodeType": "YulFunctionCall", "src": "45624:93:4" }, "nodeType": "YulExpressionStatement", "src": "45624:93:4" }, { "nodeType": "YulAssignment", "src": "45726:19:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "45737:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "45742:2:4", "type": "", "value": "96" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "45733:3:4" }, "nodeType": "YulFunctionCall", "src": "45733:12:4" }, "variableNames": [ { "name": "end", "nodeType": "YulIdentifier", "src": "45726:3:4" } ] } ] }, "name": "abi_encode_t_stringliteral_0e7f391a772d09ccfabb4f385b147176f21130142ee83356b796e2c0f11049c3_to_t_string_memory_ptr_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "pos", "nodeType": "YulTypedName", "src": "45519:3:4", "type": "" } ], "returnVariables": [ { "name": "end", "nodeType": "YulTypedName", "src": "45527:3:4", "type": "" } ], "src": "45385:366:4" }, { "body": { "nodeType": "YulBlock", "src": "45928:248:4", "statements": [ { "nodeType": "YulAssignment", "src": "45938:26:4", "value": { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "45950:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "45961:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "45946:3:4" }, "nodeType": "YulFunctionCall", "src": "45946:18:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "45938:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "45985:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "45996:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "45981:3:4" }, "nodeType": "YulFunctionCall", "src": "45981:17:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "46004:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "46010:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "46000:3:4" }, "nodeType": "YulFunctionCall", "src": "46000:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "45974:6:4" }, "nodeType": "YulFunctionCall", "src": "45974:47:4" }, "nodeType": "YulExpressionStatement", "src": "45974:47:4" }, { "nodeType": "YulAssignment", "src": "46030:139:4", "value": { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "46164:4:4" } ], "functionName": { "name": "abi_encode_t_stringliteral_0e7f391a772d09ccfabb4f385b147176f21130142ee83356b796e2c0f11049c3_to_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "46038:124:4" }, "nodeType": "YulFunctionCall", "src": "46038:131:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "46030:4:4" } ] } ] }, "name": "abi_encode_tuple_t_stringliteral_0e7f391a772d09ccfabb4f385b147176f21130142ee83356b796e2c0f11049c3__to_t_string_memory_ptr__fromStack_reversed", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "45908:9:4", "type": "" } ], "returnVariables": [ { "name": "tail", "nodeType": "YulTypedName", "src": "45923:4:4", "type": "" } ], "src": "45757:419:4" }, { "body": { "nodeType": "YulBlock", "src": "46288:145:4", "statements": [ { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "46310:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "46318:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "46306:3:4" }, "nodeType": "YulFunctionCall", "src": "46306:14:4" }, { "hexValue": "6164207072696365206d757374206265206c6172676572207468616e20666c6f", "kind": "string", "nodeType": "YulLiteral", "src": "46322:34:4", "type": "", "value": "ad price must be larger than flo" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "46299:6:4" }, "nodeType": "YulFunctionCall", "src": "46299:58:4" }, "nodeType": "YulExpressionStatement", "src": "46299:58:4" }, { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "46378:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "46386:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "46374:3:4" }, "nodeType": "YulFunctionCall", "src": "46374:15:4" }, { "hexValue": "6f722070726963652073657420627920696e76656e746f7279206f776e65722e", "kind": "string", "nodeType": "YulLiteral", "src": "46391:34:4", "type": "", "value": "or price set by inventory owner." } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "46367:6:4" }, "nodeType": "YulFunctionCall", "src": "46367:59:4" }, "nodeType": "YulExpressionStatement", "src": "46367:59:4" } ] }, "name": "store_literal_in_memory_276b86c7a00b3f00b740ebb03804c0fc4012d2d56e251449434230a161501bbb", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "memPtr", "nodeType": "YulTypedName", "src": "46280:6:4", "type": "" } ], "src": "46182:251:4" }, { "body": { "nodeType": "YulBlock", "src": "46585:220:4", "statements": [ { "nodeType": "YulAssignment", "src": "46595:74:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "46661:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "46666:2:4", "type": "", "value": "64" } ], "functionName": { "name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "46602:58:4" }, "nodeType": "YulFunctionCall", "src": "46602:67:4" }, "variableNames": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "46595:3:4" } ] }, { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "46767:3:4" } ], "functionName": { "name": "store_literal_in_memory_276b86c7a00b3f00b740ebb03804c0fc4012d2d56e251449434230a161501bbb", "nodeType": "YulIdentifier", "src": "46678:88:4" }, "nodeType": "YulFunctionCall", "src": "46678:93:4" }, "nodeType": "YulExpressionStatement", "src": "46678:93:4" }, { "nodeType": "YulAssignment", "src": "46780:19:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "46791:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "46796:2:4", "type": "", "value": "64" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "46787:3:4" }, "nodeType": "YulFunctionCall", "src": "46787:12:4" }, "variableNames": [ { "name": "end", "nodeType": "YulIdentifier", "src": "46780:3:4" } ] } ] }, "name": "abi_encode_t_stringliteral_276b86c7a00b3f00b740ebb03804c0fc4012d2d56e251449434230a161501bbb_to_t_string_memory_ptr_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "pos", "nodeType": "YulTypedName", "src": "46573:3:4", "type": "" } ], "returnVariables": [ { "name": "end", "nodeType": "YulTypedName", "src": "46581:3:4", "type": "" } ], "src": "46439:366:4" }, { "body": { "nodeType": "YulBlock", "src": "46982:248:4", "statements": [ { "nodeType": "YulAssignment", "src": "46992:26:4", "value": { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "47004:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "47015:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "47000:3:4" }, "nodeType": "YulFunctionCall", "src": "47000:18:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "46992:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "47039:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "47050:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "47035:3:4" }, "nodeType": "YulFunctionCall", "src": "47035:17:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "47058:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "47064:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "47054:3:4" }, "nodeType": "YulFunctionCall", "src": "47054:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "47028:6:4" }, "nodeType": "YulFunctionCall", "src": "47028:47:4" }, "nodeType": "YulExpressionStatement", "src": "47028:47:4" }, { "nodeType": "YulAssignment", "src": "47084:139:4", "value": { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "47218:4:4" } ], "functionName": { "name": "abi_encode_t_stringliteral_276b86c7a00b3f00b740ebb03804c0fc4012d2d56e251449434230a161501bbb_to_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "47092:124:4" }, "nodeType": "YulFunctionCall", "src": "47092:131:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "47084:4:4" } ] } ] }, "name": "abi_encode_tuple_t_stringliteral_276b86c7a00b3f00b740ebb03804c0fc4012d2d56e251449434230a161501bbb__to_t_string_memory_ptr__fromStack_reversed", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "46962:9:4", "type": "" } ], "returnVariables": [ { "name": "tail", "nodeType": "YulTypedName", "src": "46977:4:4", "type": "" } ], "src": "46811:419:4" }, { "body": { "nodeType": "YulBlock", "src": "47342:71:4", "statements": [ { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "47364:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "47372:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "47360:3:4" }, "nodeType": "YulFunctionCall", "src": "47360:14:4" }, { "hexValue": "616473206d75737420626520616464656420636f72726563746c79", "kind": "string", "nodeType": "YulLiteral", "src": "47376:29:4", "type": "", "value": "ads must be added correctly" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "47353:6:4" }, "nodeType": "YulFunctionCall", "src": "47353:53:4" }, "nodeType": "YulExpressionStatement", "src": "47353:53:4" } ] }, "name": "store_literal_in_memory_55bde59c791e3aa65ae4147bb0db172e43fa3edefa784ea58d73aaa478127b14", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "memPtr", "nodeType": "YulTypedName", "src": "47334:6:4", "type": "" } ], "src": "47236:177:4" }, { "body": { "nodeType": "YulBlock", "src": "47565:220:4", "statements": [ { "nodeType": "YulAssignment", "src": "47575:74:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "47641:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "47646:2:4", "type": "", "value": "27" } ], "functionName": { "name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "47582:58:4" }, "nodeType": "YulFunctionCall", "src": "47582:67:4" }, "variableNames": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "47575:3:4" } ] }, { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "47747:3:4" } ], "functionName": { "name": "store_literal_in_memory_55bde59c791e3aa65ae4147bb0db172e43fa3edefa784ea58d73aaa478127b14", "nodeType": "YulIdentifier", "src": "47658:88:4" }, "nodeType": "YulFunctionCall", "src": "47658:93:4" }, "nodeType": "YulExpressionStatement", "src": "47658:93:4" }, { "nodeType": "YulAssignment", "src": "47760:19:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "47771:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "47776:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "47767:3:4" }, "nodeType": "YulFunctionCall", "src": "47767:12:4" }, "variableNames": [ { "name": "end", "nodeType": "YulIdentifier", "src": "47760:3:4" } ] } ] }, "name": "abi_encode_t_stringliteral_55bde59c791e3aa65ae4147bb0db172e43fa3edefa784ea58d73aaa478127b14_to_t_string_memory_ptr_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "pos", "nodeType": "YulTypedName", "src": "47553:3:4", "type": "" } ], "returnVariables": [ { "name": "end", "nodeType": "YulTypedName", "src": "47561:3:4", "type": "" } ], "src": "47419:366:4" }, { "body": { "nodeType": "YulBlock", "src": "47962:248:4", "statements": [ { "nodeType": "YulAssignment", "src": "47972:26:4", "value": { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "47984:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "47995:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "47980:3:4" }, "nodeType": "YulFunctionCall", "src": "47980:18:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "47972:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "48019:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "48030:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "48015:3:4" }, "nodeType": "YulFunctionCall", "src": "48015:17:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "48038:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "48044:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "48034:3:4" }, "nodeType": "YulFunctionCall", "src": "48034:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "48008:6:4" }, "nodeType": "YulFunctionCall", "src": "48008:47:4" }, "nodeType": "YulExpressionStatement", "src": "48008:47:4" }, { "nodeType": "YulAssignment", "src": "48064:139:4", "value": { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "48198:4:4" } ], "functionName": { "name": "abi_encode_t_stringliteral_55bde59c791e3aa65ae4147bb0db172e43fa3edefa784ea58d73aaa478127b14_to_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "48072:124:4" }, "nodeType": "YulFunctionCall", "src": "48072:131:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "48064:4:4" } ] } ] }, "name": "abi_encode_tuple_t_stringliteral_55bde59c791e3aa65ae4147bb0db172e43fa3edefa784ea58d73aaa478127b14__to_t_string_memory_ptr__fromStack_reversed", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "47942:9:4", "type": "" } ], "returnVariables": [ { "name": "tail", "nodeType": "YulTypedName", "src": "47957:4:4", "type": "" } ], "src": "47791:419:4" }, { "body": { "nodeType": "YulBlock", "src": "48322:258:4", "statements": [ { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "48344:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "48352:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "48340:3:4" }, "nodeType": "YulFunctionCall", "src": "48340:14:4" }, { "hexValue": "596f752068617665207265616368656420746865206d6178696d756d206e756d", "kind": "string", "nodeType": "YulLiteral", "src": "48356:34:4", "type": "", "value": "You have reached the maximum num" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "48333:6:4" }, "nodeType": "YulFunctionCall", "src": "48333:58:4" }, "nodeType": "YulExpressionStatement", "src": "48333:58:4" }, { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "48412:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "48420:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "48408:3:4" }, "nodeType": "YulFunctionCall", "src": "48408:15:4" }, { "hexValue": "626572206f6620696e76656e746f727920796f752063616e206372656174652e", "kind": "string", "nodeType": "YulLiteral", "src": "48425:34:4", "type": "", "value": "ber of inventory you can create." } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "48401:6:4" }, "nodeType": "YulFunctionCall", "src": "48401:59:4" }, "nodeType": "YulExpressionStatement", "src": "48401:59:4" }, { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "48481:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "48489:2:4", "type": "", "value": "64" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "48477:3:4" }, "nodeType": "YulFunctionCall", "src": "48477:15:4" }, { "hexValue": "20596f75206e65656420746f2072656d6f766520756e77616e74656420696e76", "kind": "string", "nodeType": "YulLiteral", "src": "48494:34:4", "type": "", "value": " You need to remove unwanted inv" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "48470:6:4" }, "nodeType": "YulFunctionCall", "src": "48470:59:4" }, "nodeType": "YulExpressionStatement", "src": "48470:59:4" }, { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "48550:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "48558:2:4", "type": "", "value": "96" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "48546:3:4" }, "nodeType": "YulFunctionCall", "src": "48546:15:4" }, { "hexValue": "656e746f72792e", "kind": "string", "nodeType": "YulLiteral", "src": "48563:9:4", "type": "", "value": "entory." } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "48539:6:4" }, "nodeType": "YulFunctionCall", "src": "48539:34:4" }, "nodeType": "YulExpressionStatement", "src": "48539:34:4" } ] }, "name": "store_literal_in_memory_b717876e01b3276a505705385fc7b04097db7f77d638318e5f6bcb3761acccc5", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "memPtr", "nodeType": "YulTypedName", "src": "48314:6:4", "type": "" } ], "src": "48216:364:4" }, { "body": { "nodeType": "YulBlock", "src": "48732:222:4", "statements": [ { "nodeType": "YulAssignment", "src": "48742:75:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "48808:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "48813:3:4", "type": "", "value": "103" } ], "functionName": { "name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "48749:58:4" }, "nodeType": "YulFunctionCall", "src": "48749:68:4" }, "variableNames": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "48742:3:4" } ] }, { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "48915:3:4" } ], "functionName": { "name": "store_literal_in_memory_b717876e01b3276a505705385fc7b04097db7f77d638318e5f6bcb3761acccc5", "nodeType": "YulIdentifier", "src": "48826:88:4" }, "nodeType": "YulFunctionCall", "src": "48826:93:4" }, "nodeType": "YulExpressionStatement", "src": "48826:93:4" }, { "nodeType": "YulAssignment", "src": "48928:20:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "48939:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "48944:3:4", "type": "", "value": "128" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "48935:3:4" }, "nodeType": "YulFunctionCall", "src": "48935:13:4" }, "variableNames": [ { "name": "end", "nodeType": "YulIdentifier", "src": "48928:3:4" } ] } ] }, "name": "abi_encode_t_stringliteral_b717876e01b3276a505705385fc7b04097db7f77d638318e5f6bcb3761acccc5_to_t_string_memory_ptr_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "pos", "nodeType": "YulTypedName", "src": "48720:3:4", "type": "" } ], "returnVariables": [ { "name": "end", "nodeType": "YulTypedName", "src": "48728:3:4", "type": "" } ], "src": "48586:368:4" }, { "body": { "nodeType": "YulBlock", "src": "49131:248:4", "statements": [ { "nodeType": "YulAssignment", "src": "49141:26:4", "value": { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "49153:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "49164:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "49149:3:4" }, "nodeType": "YulFunctionCall", "src": "49149:18:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "49141:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "49188:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "49199:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "49184:3:4" }, "nodeType": "YulFunctionCall", "src": "49184:17:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "49207:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "49213:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "49203:3:4" }, "nodeType": "YulFunctionCall", "src": "49203:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "49177:6:4" }, "nodeType": "YulFunctionCall", "src": "49177:47:4" }, "nodeType": "YulExpressionStatement", "src": "49177:47:4" }, { "nodeType": "YulAssignment", "src": "49233:139:4", "value": { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "49367:4:4" } ], "functionName": { "name": "abi_encode_t_stringliteral_b717876e01b3276a505705385fc7b04097db7f77d638318e5f6bcb3761acccc5_to_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "49241:124:4" }, "nodeType": "YulFunctionCall", "src": "49241:131:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "49233:4:4" } ] } ] }, "name": "abi_encode_tuple_t_stringliteral_b717876e01b3276a505705385fc7b04097db7f77d638318e5f6bcb3761acccc5__to_t_string_memory_ptr__fromStack_reversed", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "49111:9:4", "type": "" } ], "returnVariables": [ { "name": "tail", "nodeType": "YulTypedName", "src": "49126:4:4", "type": "" } ], "src": "48960:419:4" }, { "body": { "nodeType": "YulBlock", "src": "49491:117:4", "statements": [ { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "49513:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "49521:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "49509:3:4" }, "nodeType": "YulFunctionCall", "src": "49509:14:4" }, { "hexValue": "72657175657374656420696e76656e746f7279496420646f6573206e6f742065", "kind": "string", "nodeType": "YulLiteral", "src": "49525:34:4", "type": "", "value": "requested inventoryId does not e" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "49502:6:4" }, "nodeType": "YulFunctionCall", "src": "49502:58:4" }, "nodeType": "YulExpressionStatement", "src": "49502:58:4" }, { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "49581:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "49589:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "49577:3:4" }, "nodeType": "YulFunctionCall", "src": "49577:15:4" }, { "hexValue": "78697374", "kind": "string", "nodeType": "YulLiteral", "src": "49594:6:4", "type": "", "value": "xist" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "49570:6:4" }, "nodeType": "YulFunctionCall", "src": "49570:31:4" }, "nodeType": "YulExpressionStatement", "src": "49570:31:4" } ] }, "name": "store_literal_in_memory_4d267d7833d4b46d3008be664a3d8f662eda0b9ea49281c9424344ebb5ec04b7", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "memPtr", "nodeType": "YulTypedName", "src": "49483:6:4", "type": "" } ], "src": "49385:223:4" }, { "body": { "nodeType": "YulBlock", "src": "49760:220:4", "statements": [ { "nodeType": "YulAssignment", "src": "49770:74:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "49836:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "49841:2:4", "type": "", "value": "36" } ], "functionName": { "name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "49777:58:4" }, "nodeType": "YulFunctionCall", "src": "49777:67:4" }, "variableNames": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "49770:3:4" } ] }, { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "49942:3:4" } ], "functionName": { "name": "store_literal_in_memory_4d267d7833d4b46d3008be664a3d8f662eda0b9ea49281c9424344ebb5ec04b7", "nodeType": "YulIdentifier", "src": "49853:88:4" }, "nodeType": "YulFunctionCall", "src": "49853:93:4" }, "nodeType": "YulExpressionStatement", "src": "49853:93:4" }, { "nodeType": "YulAssignment", "src": "49955:19:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "49966:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "49971:2:4", "type": "", "value": "64" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "49962:3:4" }, "nodeType": "YulFunctionCall", "src": "49962:12:4" }, "variableNames": [ { "name": "end", "nodeType": "YulIdentifier", "src": "49955:3:4" } ] } ] }, "name": "abi_encode_t_stringliteral_4d267d7833d4b46d3008be664a3d8f662eda0b9ea49281c9424344ebb5ec04b7_to_t_string_memory_ptr_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "pos", "nodeType": "YulTypedName", "src": "49748:3:4", "type": "" } ], "returnVariables": [ { "name": "end", "nodeType": "YulTypedName", "src": "49756:3:4", "type": "" } ], "src": "49614:366:4" }, { "body": { "nodeType": "YulBlock", "src": "50157:248:4", "statements": [ { "nodeType": "YulAssignment", "src": "50167:26:4", "value": { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "50179:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "50190:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "50175:3:4" }, "nodeType": "YulFunctionCall", "src": "50175:18:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "50167:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "50214:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "50225:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "50210:3:4" }, "nodeType": "YulFunctionCall", "src": "50210:17:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "50233:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "50239:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "50229:3:4" }, "nodeType": "YulFunctionCall", "src": "50229:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "50203:6:4" }, "nodeType": "YulFunctionCall", "src": "50203:47:4" }, "nodeType": "YulExpressionStatement", "src": "50203:47:4" }, { "nodeType": "YulAssignment", "src": "50259:139:4", "value": { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "50393:4:4" } ], "functionName": { "name": "abi_encode_t_stringliteral_4d267d7833d4b46d3008be664a3d8f662eda0b9ea49281c9424344ebb5ec04b7_to_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "50267:124:4" }, "nodeType": "YulFunctionCall", "src": "50267:131:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "50259:4:4" } ] } ] }, "name": "abi_encode_tuple_t_stringliteral_4d267d7833d4b46d3008be664a3d8f662eda0b9ea49281c9424344ebb5ec04b7__to_t_string_memory_ptr__fromStack_reversed", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "50137:9:4", "type": "" } ], "returnVariables": [ { "name": "tail", "nodeType": "YulTypedName", "src": "50152:4:4", "type": "" } ], "src": "49986:419:4" }, { "body": { "nodeType": "YulBlock", "src": "50517:73:4", "statements": [ { "expression": { "arguments": [ { "arguments": [ { "name": "memPtr", "nodeType": "YulIdentifier", "src": "50539:6:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "50547:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "50535:3:4" }, "nodeType": "YulFunctionCall", "src": "50535:14:4" }, { "hexValue": "726571756573746564206164496420646f6573206e6f74206578697374", "kind": "string", "nodeType": "YulLiteral", "src": "50551:31:4", "type": "", "value": "requested adId does not exist" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "50528:6:4" }, "nodeType": "YulFunctionCall", "src": "50528:55:4" }, "nodeType": "YulExpressionStatement", "src": "50528:55:4" } ] }, "name": "store_literal_in_memory_d523c2a971550167515cab344e671ecd68091a60b45d09d4acc398b7e8c8fa86", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "memPtr", "nodeType": "YulTypedName", "src": "50509:6:4", "type": "" } ], "src": "50411:179:4" }, { "body": { "nodeType": "YulBlock", "src": "50742:220:4", "statements": [ { "nodeType": "YulAssignment", "src": "50752:74:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "50818:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "50823:2:4", "type": "", "value": "29" } ], "functionName": { "name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "50759:58:4" }, "nodeType": "YulFunctionCall", "src": "50759:67:4" }, "variableNames": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "50752:3:4" } ] }, { "expression": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "50924:3:4" } ], "functionName": { "name": "store_literal_in_memory_d523c2a971550167515cab344e671ecd68091a60b45d09d4acc398b7e8c8fa86", "nodeType": "YulIdentifier", "src": "50835:88:4" }, "nodeType": "YulFunctionCall", "src": "50835:93:4" }, "nodeType": "YulExpressionStatement", "src": "50835:93:4" }, { "nodeType": "YulAssignment", "src": "50937:19:4", "value": { "arguments": [ { "name": "pos", "nodeType": "YulIdentifier", "src": "50948:3:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "50953:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "50944:3:4" }, "nodeType": "YulFunctionCall", "src": "50944:12:4" }, "variableNames": [ { "name": "end", "nodeType": "YulIdentifier", "src": "50937:3:4" } ] } ] }, "name": "abi_encode_t_stringliteral_d523c2a971550167515cab344e671ecd68091a60b45d09d4acc398b7e8c8fa86_to_t_string_memory_ptr_fromStack", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "pos", "nodeType": "YulTypedName", "src": "50730:3:4", "type": "" } ], "returnVariables": [ { "name": "end", "nodeType": "YulTypedName", "src": "50738:3:4", "type": "" } ], "src": "50596:366:4" }, { "body": { "nodeType": "YulBlock", "src": "51139:248:4", "statements": [ { "nodeType": "YulAssignment", "src": "51149:26:4", "value": { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "51161:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "51172:2:4", "type": "", "value": "32" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "51157:3:4" }, "nodeType": "YulFunctionCall", "src": "51157:18:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "51149:4:4" } ] }, { "expression": { "arguments": [ { "arguments": [ { "name": "headStart", "nodeType": "YulIdentifier", "src": "51196:9:4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "51207:1:4", "type": "", "value": "0" } ], "functionName": { "name": "add", "nodeType": "YulIdentifier", "src": "51192:3:4" }, "nodeType": "YulFunctionCall", "src": "51192:17:4" }, { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "51215:4:4" }, { "name": "headStart", "nodeType": "YulIdentifier", "src": "51221:9:4" } ], "functionName": { "name": "sub", "nodeType": "YulIdentifier", "src": "51211:3:4" }, "nodeType": "YulFunctionCall", "src": "51211:20:4" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "51185:6:4" }, "nodeType": "YulFunctionCall", "src": "51185:47:4" }, "nodeType": "YulExpressionStatement", "src": "51185:47:4" }, { "nodeType": "YulAssignment", "src": "51241:139:4", "value": { "arguments": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "51375:4:4" } ], "functionName": { "name": "abi_encode_t_stringliteral_d523c2a971550167515cab344e671ecd68091a60b45d09d4acc398b7e8c8fa86_to_t_string_memory_ptr_fromStack", "nodeType": "YulIdentifier", "src": "51249:124:4" }, "nodeType": "YulFunctionCall", "src": "51249:131:4" }, "variableNames": [ { "name": "tail", "nodeType": "YulIdentifier", "src": "51241:4:4" } ] } ] }, "name": "abi_encode_tuple_t_stringliteral_d523c2a971550167515cab344e671ecd68091a60b45d09d4acc398b7e8c8fa86__to_t_string_memory_ptr__fromStack_reversed", "nodeType": "YulFunctionDefinition", "parameters": [ { "name": "headStart", "nodeType": "YulTypedName", "src": "51119:9:4", "type": "" } ], "returnVariables": [ { "name": "tail", "nodeType": "YulTypedName", "src": "51134:4:4", "type": "" } ], "src": "50968:419:4" }, { "body": { "nodeType": "YulBlock", "src": "51421:152:4", "statements": [ { "expression": { "arguments": [ { "kind": "number", "nodeType": "YulLiteral", "src": "51438:1:4", "type": "", "value": "0" }, { "kind": "number", "nodeType": "YulLiteral", "src": "51441:77:4", "type": "", "value": "35408467139433450592217433187231851964531694900788300625387963629091585785856" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "51431:6:4" }, "nodeType": "YulFunctionCall", "src": "51431:88:4" }, "nodeType": "YulExpressionStatement", "src": "51431:88:4" }, { "expression": { "arguments": [ { "kind": "number", "nodeType": "YulLiteral", "src": "51535:1:4", "type": "", "value": "4" }, { "kind": "number", "nodeType": "YulLiteral", "src": "51538:4:4", "type": "", "value": "0x31" } ], "functionName": { "name": "mstore", "nodeType": "YulIdentifier", "src": "51528:6:4" }, "nodeType": "YulFunctionCall", "src": "51528:15:4" }, "nodeType": "YulExpressionStatement", "src": "51528:15:4" }, { "expression": { "arguments": [ { "kind": "number", "nodeType": "YulLiteral", "src": "51559:1:4", "type": "", "value": "0" }, { "kind": "number", "nodeType": "YulLiteral", "src": "51562:4:4", "type": "", "value": "0x24" } ], "functionName": { "name": "revert", "nodeType": "YulIdentifier", "src": "51552:6:4" }, "nodeType": "YulFunctionCall", "src": "51552:15:4" }, "nodeType": "YulExpressionStatement", "src": "51552:15:4" } ] }, "name": "panic_error_0x31", "nodeType": "YulFunctionDefinition", "src": "51393:180:4" } ] }, "contents": "{\n\n function allocate_unbounded() -> memPtr {\n memPtr := mload(64)\n }\n\n function revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() {\n revert(0, 0)\n }\n\n function revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db() {\n revert(0, 0)\n }\n\n function cleanup_t_uint256(value) -> cleaned {\n cleaned := value\n }\n\n function validator_revert_t_uint256(value) {\n if iszero(eq(value, cleanup_t_uint256(value))) { revert(0, 0) }\n }\n\n function abi_decode_t_uint256(offset, end) -> value {\n value := calldataload(offset)\n validator_revert_t_uint256(value)\n }\n\n function abi_decode_tuple_t_uint256t_uint256(headStart, dataEnd) -> value0, value1 {\n if slt(sub(dataEnd, headStart), 64) { revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() }\n\n {\n\n let offset := 0\n\n value0 := abi_decode_t_uint256(add(headStart, offset), dataEnd)\n }\n\n {\n\n let offset := 32\n\n value1 := abi_decode_t_uint256(add(headStart, offset), dataEnd)\n }\n\n }\n\n function abi_decode_tuple_t_uint256(headStart, dataEnd) -> value0 {\n if slt(sub(dataEnd, headStart), 32) { revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() }\n\n {\n\n let offset := 0\n\n value0 := abi_decode_t_uint256(add(headStart, offset), dataEnd)\n }\n\n }\n\n function array_length_t_array$_t_uint256_$dyn_memory_ptr(value) -> length {\n\n length := mload(value)\n\n }\n\n function array_storeLengthForEncoding_t_array$_t_uint256_$dyn_memory_ptr_fromStack(pos, length) -> updated_pos {\n mstore(pos, length)\n updated_pos := add(pos, 0x20)\n }\n\n function array_dataslot_t_array$_t_uint256_$dyn_memory_ptr(ptr) -> data {\n data := ptr\n\n data := add(ptr, 0x20)\n\n }\n\n function abi_encode_t_uint256_to_t_uint256(value, pos) {\n mstore(pos, cleanup_t_uint256(value))\n }\n\n function abi_encodeUpdatedPos_t_uint256_to_t_uint256(value0, pos) -> updatedPos {\n abi_encode_t_uint256_to_t_uint256(value0, pos)\n updatedPos := add(pos, 0x20)\n }\n\n function array_nextElement_t_array$_t_uint256_$dyn_memory_ptr(ptr) -> next {\n next := add(ptr, 0x20)\n }\n\n // uint256[] -> uint256[]\n function abi_encode_t_array$_t_uint256_$dyn_memory_ptr_to_t_array$_t_uint256_$dyn_memory_ptr_fromStack(value, pos) -> end {\n let length := array_length_t_array$_t_uint256_$dyn_memory_ptr(value)\n pos := array_storeLengthForEncoding_t_array$_t_uint256_$dyn_memory_ptr_fromStack(pos, length)\n let baseRef := array_dataslot_t_array$_t_uint256_$dyn_memory_ptr(value)\n let srcPtr := baseRef\n for { let i := 0 } lt(i, length) { i := add(i, 1) }\n {\n let elementValue0 := mload(srcPtr)\n pos := abi_encodeUpdatedPos_t_uint256_to_t_uint256(elementValue0, pos)\n srcPtr := array_nextElement_t_array$_t_uint256_$dyn_memory_ptr(srcPtr)\n }\n end := pos\n }\n\n function abi_encode_tuple_t_array$_t_uint256_$dyn_memory_ptr__to_t_array$_t_uint256_$dyn_memory_ptr__fromStack_reversed(headStart , value0) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_array$_t_uint256_$dyn_memory_ptr_to_t_array$_t_uint256_$dyn_memory_ptr_fromStack(value0, tail)\n\n }\n\n function array_length_t_array$_t_bytes32_$dyn_memory_ptr(value) -> length {\n\n length := mload(value)\n\n }\n\n function array_storeLengthForEncoding_t_array$_t_bytes32_$dyn_memory_ptr_fromStack(pos, length) -> updated_pos {\n mstore(pos, length)\n updated_pos := add(pos, 0x20)\n }\n\n function array_dataslot_t_array$_t_bytes32_$dyn_memory_ptr(ptr) -> data {\n data := ptr\n\n data := add(ptr, 0x20)\n\n }\n\n function cleanup_t_bytes32(value) -> cleaned {\n cleaned := value\n }\n\n function abi_encode_t_bytes32_to_t_bytes32(value, pos) {\n mstore(pos, cleanup_t_bytes32(value))\n }\n\n function abi_encodeUpdatedPos_t_bytes32_to_t_bytes32(value0, pos) -> updatedPos {\n abi_encode_t_bytes32_to_t_bytes32(value0, pos)\n updatedPos := add(pos, 0x20)\n }\n\n function array_nextElement_t_array$_t_bytes32_$dyn_memory_ptr(ptr) -> next {\n next := add(ptr, 0x20)\n }\n\n // bytes32[] -> bytes32[]\n function abi_encode_t_array$_t_bytes32_$dyn_memory_ptr_to_t_array$_t_bytes32_$dyn_memory_ptr_fromStack(value, pos) -> end {\n let length := array_length_t_array$_t_bytes32_$dyn_memory_ptr(value)\n pos := array_storeLengthForEncoding_t_array$_t_bytes32_$dyn_memory_ptr_fromStack(pos, length)\n let baseRef := array_dataslot_t_array$_t_bytes32_$dyn_memory_ptr(value)\n let srcPtr := baseRef\n for { let i := 0 } lt(i, length) { i := add(i, 1) }\n {\n let elementValue0 := mload(srcPtr)\n pos := abi_encodeUpdatedPos_t_bytes32_to_t_bytes32(elementValue0, pos)\n srcPtr := array_nextElement_t_array$_t_bytes32_$dyn_memory_ptr(srcPtr)\n }\n end := pos\n }\n\n function array_length_t_array$_t_uint32_$dyn_memory_ptr(value) -> length {\n\n length := mload(value)\n\n }\n\n function array_storeLengthForEncoding_t_array$_t_uint32_$dyn_memory_ptr_fromStack(pos, length) -> updated_pos {\n mstore(pos, length)\n updated_pos := add(pos, 0x20)\n }\n\n function array_dataslot_t_array$_t_uint32_$dyn_memory_ptr(ptr) -> data {\n data := ptr\n\n data := add(ptr, 0x20)\n\n }\n\n function cleanup_t_uint32(value) -> cleaned {\n cleaned := and(value, 0xffffffff)\n }\n\n function abi_encode_t_uint32_to_t_uint32(value, pos) {\n mstore(pos, cleanup_t_uint32(value))\n }\n\n function abi_encodeUpdatedPos_t_uint32_to_t_uint32(value0, pos) -> updatedPos {\n abi_encode_t_uint32_to_t_uint32(value0, pos)\n updatedPos := add(pos, 0x20)\n }\n\n function array_nextElement_t_array$_t_uint32_$dyn_memory_ptr(ptr) -> next {\n next := add(ptr, 0x20)\n }\n\n // uint32[] -> uint32[]\n function abi_encode_t_array$_t_uint32_$dyn_memory_ptr_to_t_array$_t_uint32_$dyn_memory_ptr_fromStack(value, pos) -> end {\n let length := array_length_t_array$_t_uint32_$dyn_memory_ptr(value)\n pos := array_storeLengthForEncoding_t_array$_t_uint32_$dyn_memory_ptr_fromStack(pos, length)\n let baseRef := array_dataslot_t_array$_t_uint32_$dyn_memory_ptr(value)\n let srcPtr := baseRef\n for { let i := 0 } lt(i, length) { i := add(i, 1) }\n {\n let elementValue0 := mload(srcPtr)\n pos := abi_encodeUpdatedPos_t_uint32_to_t_uint32(elementValue0, pos)\n srcPtr := array_nextElement_t_array$_t_uint32_$dyn_memory_ptr(srcPtr)\n }\n end := pos\n }\n\n function array_length_t_array$_t_bool_$dyn_memory_ptr(value) -> length {\n\n length := mload(value)\n\n }\n\n function array_storeLengthForEncoding_t_array$_t_bool_$dyn_memory_ptr_fromStack(pos, length) -> updated_pos {\n mstore(pos, length)\n updated_pos := add(pos, 0x20)\n }\n\n function array_dataslot_t_array$_t_bool_$dyn_memory_ptr(ptr) -> data {\n data := ptr\n\n data := add(ptr, 0x20)\n\n }\n\n function cleanup_t_bool(value) -> cleaned {\n cleaned := iszero(iszero(value))\n }\n\n function abi_encode_t_bool_to_t_bool(value, pos) {\n mstore(pos, cleanup_t_bool(value))\n }\n\n function abi_encodeUpdatedPos_t_bool_to_t_bool(value0, pos) -> updatedPos {\n abi_encode_t_bool_to_t_bool(value0, pos)\n updatedPos := add(pos, 0x20)\n }\n\n function array_nextElement_t_array$_t_bool_$dyn_memory_ptr(ptr) -> next {\n next := add(ptr, 0x20)\n }\n\n // bool[] -> bool[]\n function abi_encode_t_array$_t_bool_$dyn_memory_ptr_to_t_array$_t_bool_$dyn_memory_ptr_fromStack(value, pos) -> end {\n let length := array_length_t_array$_t_bool_$dyn_memory_ptr(value)\n pos := array_storeLengthForEncoding_t_array$_t_bool_$dyn_memory_ptr_fromStack(pos, length)\n let baseRef := array_dataslot_t_array$_t_bool_$dyn_memory_ptr(value)\n let srcPtr := baseRef\n for { let i := 0 } lt(i, length) { i := add(i, 1) }\n {\n let elementValue0 := mload(srcPtr)\n pos := abi_encodeUpdatedPos_t_bool_to_t_bool(elementValue0, pos)\n srcPtr := array_nextElement_t_array$_t_bool_$dyn_memory_ptr(srcPtr)\n }\n end := pos\n }\n\n function abi_encode_tuple_t_array$_t_uint256_$dyn_memory_ptr_t_array$_t_uint256_$dyn_memory_ptr_t_array$_t_bytes32_$dyn_memory_ptr_t_array$_t_bytes32_$dyn_memory_ptr_t_array$_t_uint32_$dyn_memory_ptr_t_array$_t_uint32_$dyn_memory_ptr_t_array$_t_bool_$dyn_memory_ptr__to_t_array$_t_uint256_$dyn_memory_ptr_t_array$_t_uint256_$dyn_memory_ptr_t_array$_t_bytes32_$dyn_memory_ptr_t_array$_t_bytes32_$dyn_memory_ptr_t_array$_t_uint32_$dyn_memory_ptr_t_array$_t_uint32_$dyn_memory_ptr_t_array$_t_bool_$dyn_memory_ptr__fromStack_reversed(headStart , value6, value5, value4, value3, value2, value1, value0) -> tail {\n tail := add(headStart, 224)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_array$_t_uint256_$dyn_memory_ptr_to_t_array$_t_uint256_$dyn_memory_ptr_fromStack(value0, tail)\n\n mstore(add(headStart, 32), sub(tail, headStart))\n tail := abi_encode_t_array$_t_uint256_$dyn_memory_ptr_to_t_array$_t_uint256_$dyn_memory_ptr_fromStack(value1, tail)\n\n mstore(add(headStart, 64), sub(tail, headStart))\n tail := abi_encode_t_array$_t_bytes32_$dyn_memory_ptr_to_t_array$_t_bytes32_$dyn_memory_ptr_fromStack(value2, tail)\n\n mstore(add(headStart, 96), sub(tail, headStart))\n tail := abi_encode_t_array$_t_bytes32_$dyn_memory_ptr_to_t_array$_t_bytes32_$dyn_memory_ptr_fromStack(value3, tail)\n\n mstore(add(headStart, 128), sub(tail, headStart))\n tail := abi_encode_t_array$_t_uint32_$dyn_memory_ptr_to_t_array$_t_uint32_$dyn_memory_ptr_fromStack(value4, tail)\n\n mstore(add(headStart, 160), sub(tail, headStart))\n tail := abi_encode_t_array$_t_uint32_$dyn_memory_ptr_to_t_array$_t_uint32_$dyn_memory_ptr_fromStack(value5, tail)\n\n mstore(add(headStart, 192), sub(tail, headStart))\n tail := abi_encode_t_array$_t_bool_$dyn_memory_ptr_to_t_array$_t_bool_$dyn_memory_ptr_fromStack(value6, tail)\n\n }\n\n function abi_encode_t_uint256_to_t_uint256_fromStack(value, pos) {\n mstore(pos, cleanup_t_uint256(value))\n }\n\n function cleanup_t_uint160(value) -> cleaned {\n cleaned := and(value, 0xffffffffffffffffffffffffffffffffffffffff)\n }\n\n function cleanup_t_address(value) -> cleaned {\n cleaned := cleanup_t_uint160(value)\n }\n\n function abi_encode_t_address_to_t_address_fromStack(value, pos) {\n mstore(pos, cleanup_t_address(value))\n }\n\n function array_length_t_string_memory_ptr(value) -> length {\n\n length := mload(value)\n\n }\n\n function array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, length) -> updated_pos {\n mstore(pos, length)\n updated_pos := add(pos, 0x20)\n }\n\n function copy_memory_to_memory(src, dst, length) {\n let i := 0\n for { } lt(i, length) { i := add(i, 32) }\n {\n mstore(add(dst, i), mload(add(src, i)))\n }\n if gt(i, length)\n {\n // clear end\n mstore(add(dst, length), 0)\n }\n }\n\n function round_up_to_mul_of_32(value) -> result {\n result := and(add(value, 31), not(31))\n }\n\n function abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack(value, pos) -> end {\n let length := array_length_t_string_memory_ptr(value)\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, length)\n copy_memory_to_memory(add(value, 0x20), pos, length)\n end := add(pos, round_up_to_mul_of_32(length))\n }\n\n function abi_encode_tuple_t_uint256_t_address_t_string_memory_ptr_t_string_memory_ptr_t_string_memory_ptr_t_uint256__to_t_uint256_t_address_t_string_memory_ptr_t_string_memory_ptr_t_string_memory_ptr_t_uint256__fromStack_reversed(headStart , value5, value4, value3, value2, value1, value0) -> tail {\n tail := add(headStart, 192)\n\n abi_encode_t_uint256_to_t_uint256_fromStack(value0, add(headStart, 0))\n\n abi_encode_t_address_to_t_address_fromStack(value1, add(headStart, 32))\n\n mstore(add(headStart, 64), sub(tail, headStart))\n tail := abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack(value2, tail)\n\n mstore(add(headStart, 96), sub(tail, headStart))\n tail := abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack(value3, tail)\n\n mstore(add(headStart, 128), sub(tail, headStart))\n tail := abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack(value4, tail)\n\n abi_encode_t_uint256_to_t_uint256_fromStack(value5, add(headStart, 160))\n\n }\n\n function array_length_t_array$_t_address_$dyn_memory_ptr(value) -> length {\n\n length := mload(value)\n\n }\n\n function array_storeLengthForEncoding_t_array$_t_address_$dyn_memory_ptr_fromStack(pos, length) -> updated_pos {\n mstore(pos, length)\n updated_pos := add(pos, 0x20)\n }\n\n function array_dataslot_t_array$_t_address_$dyn_memory_ptr(ptr) -> data {\n data := ptr\n\n data := add(ptr, 0x20)\n\n }\n\n function abi_encode_t_address_to_t_address(value, pos) {\n mstore(pos, cleanup_t_address(value))\n }\n\n function abi_encodeUpdatedPos_t_address_to_t_address(value0, pos) -> updatedPos {\n abi_encode_t_address_to_t_address(value0, pos)\n updatedPos := add(pos, 0x20)\n }\n\n function array_nextElement_t_array$_t_address_$dyn_memory_ptr(ptr) -> next {\n next := add(ptr, 0x20)\n }\n\n // address[] -> address[]\n function abi_encode_t_array$_t_address_$dyn_memory_ptr_to_t_array$_t_address_$dyn_memory_ptr_fromStack(value, pos) -> end {\n let length := array_length_t_array$_t_address_$dyn_memory_ptr(value)\n pos := array_storeLengthForEncoding_t_array$_t_address_$dyn_memory_ptr_fromStack(pos, length)\n let baseRef := array_dataslot_t_array$_t_address_$dyn_memory_ptr(value)\n let srcPtr := baseRef\n for { let i := 0 } lt(i, length) { i := add(i, 1) }\n {\n let elementValue0 := mload(srcPtr)\n pos := abi_encodeUpdatedPos_t_address_to_t_address(elementValue0, pos)\n srcPtr := array_nextElement_t_array$_t_address_$dyn_memory_ptr(srcPtr)\n }\n end := pos\n }\n\n function array_length_t_array$_t_string_memory_ptr_$dyn_memory_ptr(value) -> length {\n\n length := mload(value)\n\n }\n\n function array_storeLengthForEncoding_t_array$_t_string_memory_ptr_$dyn_memory_ptr_fromStack(pos, length) -> updated_pos {\n mstore(pos, length)\n updated_pos := add(pos, 0x20)\n }\n\n function array_dataslot_t_array$_t_string_memory_ptr_$dyn_memory_ptr(ptr) -> data {\n data := ptr\n\n data := add(ptr, 0x20)\n\n }\n\n function array_storeLengthForEncoding_t_string_memory_ptr(pos, length) -> updated_pos {\n mstore(pos, length)\n updated_pos := add(pos, 0x20)\n }\n\n function abi_encode_t_string_memory_ptr_to_t_string_memory_ptr(value, pos) -> end {\n let length := array_length_t_string_memory_ptr(value)\n pos := array_storeLengthForEncoding_t_string_memory_ptr(pos, length)\n copy_memory_to_memory(add(value, 0x20), pos, length)\n end := add(pos, round_up_to_mul_of_32(length))\n }\n\n function abi_encodeUpdatedPos_t_string_memory_ptr_to_t_string_memory_ptr(value0, pos) -> updatedPos {\n updatedPos := abi_encode_t_string_memory_ptr_to_t_string_memory_ptr(value0, pos)\n }\n\n function array_nextElement_t_array$_t_string_memory_ptr_$dyn_memory_ptr(ptr) -> next {\n next := add(ptr, 0x20)\n }\n\n // string[] -> string[]\n function abi_encode_t_array$_t_string_memory_ptr_$dyn_memory_ptr_to_t_array$_t_string_memory_ptr_$dyn_memory_ptr_fromStack(value, pos) -> end {\n let length := array_length_t_array$_t_string_memory_ptr_$dyn_memory_ptr(value)\n pos := array_storeLengthForEncoding_t_array$_t_string_memory_ptr_$dyn_memory_ptr_fromStack(pos, length)\n let headStart := pos\n let tail := add(pos, mul(length, 0x20))\n let baseRef := array_dataslot_t_array$_t_string_memory_ptr_$dyn_memory_ptr(value)\n let srcPtr := baseRef\n for { let i := 0 } lt(i, length) { i := add(i, 1) }\n {\n mstore(pos, sub(tail, headStart))\n let elementValue0 := mload(srcPtr)\n tail := abi_encodeUpdatedPos_t_string_memory_ptr_to_t_string_memory_ptr(elementValue0, tail)\n srcPtr := array_nextElement_t_array$_t_string_memory_ptr_$dyn_memory_ptr(srcPtr)\n pos := add(pos, 0x20)\n }\n pos := tail\n end := pos\n }\n\n function abi_encode_tuple_t_array$_t_uint256_$dyn_memory_ptr_t_array$_t_address_$dyn_memory_ptr_t_array$_t_string_memory_ptr_$dyn_memory_ptr_t_array$_t_string_memory_ptr_$dyn_memory_ptr_t_array$_t_string_memory_ptr_$dyn_memory_ptr_t_array$_t_uint256_$dyn_memory_ptr__to_t_array$_t_uint256_$dyn_memory_ptr_t_array$_t_address_$dyn_memory_ptr_t_array$_t_string_memory_ptr_$dyn_memory_ptr_t_array$_t_string_memory_ptr_$dyn_memory_ptr_t_array$_t_string_memory_ptr_$dyn_memory_ptr_t_array$_t_uint256_$dyn_memory_ptr__fromStack_reversed(headStart , value5, value4, value3, value2, value1, value0) -> tail {\n tail := add(headStart, 192)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_array$_t_uint256_$dyn_memory_ptr_to_t_array$_t_uint256_$dyn_memory_ptr_fromStack(value0, tail)\n\n mstore(add(headStart, 32), sub(tail, headStart))\n tail := abi_encode_t_array$_t_address_$dyn_memory_ptr_to_t_array$_t_address_$dyn_memory_ptr_fromStack(value1, tail)\n\n mstore(add(headStart, 64), sub(tail, headStart))\n tail := abi_encode_t_array$_t_string_memory_ptr_$dyn_memory_ptr_to_t_array$_t_string_memory_ptr_$dyn_memory_ptr_fromStack(value2, tail)\n\n mstore(add(headStart, 96), sub(tail, headStart))\n tail := abi_encode_t_array$_t_string_memory_ptr_$dyn_memory_ptr_to_t_array$_t_string_memory_ptr_$dyn_memory_ptr_fromStack(value3, tail)\n\n mstore(add(headStart, 128), sub(tail, headStart))\n tail := abi_encode_t_array$_t_string_memory_ptr_$dyn_memory_ptr_to_t_array$_t_string_memory_ptr_$dyn_memory_ptr_fromStack(value4, tail)\n\n mstore(add(headStart, 160), sub(tail, headStart))\n tail := abi_encode_t_array$_t_uint256_$dyn_memory_ptr_to_t_array$_t_uint256_$dyn_memory_ptr_fromStack(value5, tail)\n\n }\n\n function validator_revert_t_address(value) {\n if iszero(eq(value, cleanup_t_address(value))) { revert(0, 0) }\n }\n\n function abi_decode_t_address(offset, end) -> value {\n value := calldataload(offset)\n validator_revert_t_address(value)\n }\n\n function abi_decode_tuple_t_address(headStart, dataEnd) -> value0 {\n if slt(sub(dataEnd, headStart), 32) { revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() }\n\n {\n\n let offset := 0\n\n value0 := abi_decode_t_address(add(headStart, offset), dataEnd)\n }\n\n }\n\n function validator_revert_t_bytes32(value) {\n if iszero(eq(value, cleanup_t_bytes32(value))) { revert(0, 0) }\n }\n\n function abi_decode_t_bytes32(offset, end) -> value {\n value := calldataload(offset)\n validator_revert_t_bytes32(value)\n }\n\n function validator_revert_t_uint32(value) {\n if iszero(eq(value, cleanup_t_uint32(value))) { revert(0, 0) }\n }\n\n function abi_decode_t_uint32(offset, end) -> value {\n value := calldataload(offset)\n validator_revert_t_uint32(value)\n }\n\n function abi_decode_tuple_t_uint256t_bytes32t_bytes32t_uint32t_uint32(headStart, dataEnd) -> value0, value1, value2, value3, value4 {\n if slt(sub(dataEnd, headStart), 160) { revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() }\n\n {\n\n let offset := 0\n\n value0 := abi_decode_t_uint256(add(headStart, offset), dataEnd)\n }\n\n {\n\n let offset := 32\n\n value1 := abi_decode_t_bytes32(add(headStart, offset), dataEnd)\n }\n\n {\n\n let offset := 64\n\n value2 := abi_decode_t_bytes32(add(headStart, offset), dataEnd)\n }\n\n {\n\n let offset := 96\n\n value3 := abi_decode_t_uint32(add(headStart, offset), dataEnd)\n }\n\n {\n\n let offset := 128\n\n value4 := abi_decode_t_uint32(add(headStart, offset), dataEnd)\n }\n\n }\n\n function abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed(headStart , value0) -> tail {\n tail := add(headStart, 32)\n\n abi_encode_t_uint256_to_t_uint256_fromStack(value0, add(headStart, 0))\n\n }\n\n function abi_encode_tuple_t_array$_t_uint256_$dyn_memory_ptr_t_array$_t_uint256_$dyn_memory_ptr_t_array$_t_bytes32_$dyn_memory_ptr_t_array$_t_uint32_$dyn_memory_ptr_t_array$_t_uint32_$dyn_memory_ptr_t_array$_t_bool_$dyn_memory_ptr__to_t_array$_t_uint256_$dyn_memory_ptr_t_array$_t_uint256_$dyn_memory_ptr_t_array$_t_bytes32_$dyn_memory_ptr_t_array$_t_uint32_$dyn_memory_ptr_t_array$_t_uint32_$dyn_memory_ptr_t_array$_t_bool_$dyn_memory_ptr__fromStack_reversed(headStart , value5, value4, value3, value2, value1, value0) -> tail {\n tail := add(headStart, 192)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_array$_t_uint256_$dyn_memory_ptr_to_t_array$_t_uint256_$dyn_memory_ptr_fromStack(value0, tail)\n\n mstore(add(headStart, 32), sub(tail, headStart))\n tail := abi_encode_t_array$_t_uint256_$dyn_memory_ptr_to_t_array$_t_uint256_$dyn_memory_ptr_fromStack(value1, tail)\n\n mstore(add(headStart, 64), sub(tail, headStart))\n tail := abi_encode_t_array$_t_bytes32_$dyn_memory_ptr_to_t_array$_t_bytes32_$dyn_memory_ptr_fromStack(value2, tail)\n\n mstore(add(headStart, 96), sub(tail, headStart))\n tail := abi_encode_t_array$_t_uint32_$dyn_memory_ptr_to_t_array$_t_uint32_$dyn_memory_ptr_fromStack(value3, tail)\n\n mstore(add(headStart, 128), sub(tail, headStart))\n tail := abi_encode_t_array$_t_uint32_$dyn_memory_ptr_to_t_array$_t_uint32_$dyn_memory_ptr_fromStack(value4, tail)\n\n mstore(add(headStart, 160), sub(tail, headStart))\n tail := abi_encode_t_array$_t_bool_$dyn_memory_ptr_to_t_array$_t_bool_$dyn_memory_ptr_fromStack(value5, tail)\n\n }\n\n function revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d() {\n revert(0, 0)\n }\n\n function revert_error_987264b3b1d58a9c7f8255e93e81c77d86d6299019c33110a076957a3e06e2ae() {\n revert(0, 0)\n }\n\n function panic_error_0x41() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x41)\n revert(0, 0x24)\n }\n\n function finalize_allocation(memPtr, size) {\n let newFreePtr := add(memPtr, round_up_to_mul_of_32(size))\n // protect against overflow\n if or(gt(newFreePtr, 0xffffffffffffffff), lt(newFreePtr, memPtr)) { panic_error_0x41() }\n mstore(64, newFreePtr)\n }\n\n function allocate_memory(size) -> memPtr {\n memPtr := allocate_unbounded()\n finalize_allocation(memPtr, size)\n }\n\n function array_allocation_size_t_string_memory_ptr(length) -> size {\n // Make sure we can allocate memory without overflow\n if gt(length, 0xffffffffffffffff) { panic_error_0x41() }\n\n size := round_up_to_mul_of_32(length)\n\n // add length slot\n size := add(size, 0x20)\n\n }\n\n function copy_calldata_to_memory(src, dst, length) {\n calldatacopy(dst, src, length)\n // clear end\n mstore(add(dst, length), 0)\n }\n\n function abi_decode_available_length_t_string_memory_ptr(src, length, end) -> array {\n array := allocate_memory(array_allocation_size_t_string_memory_ptr(length))\n mstore(array, length)\n let dst := add(array, 0x20)\n if gt(add(src, length), end) { revert_error_987264b3b1d58a9c7f8255e93e81c77d86d6299019c33110a076957a3e06e2ae() }\n copy_calldata_to_memory(src, dst, length)\n }\n\n // string\n function abi_decode_t_string_memory_ptr(offset, end) -> array {\n if iszero(slt(add(offset, 0x1f), end)) { revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d() }\n let length := calldataload(offset)\n array := abi_decode_available_length_t_string_memory_ptr(add(offset, 0x20), length, end)\n }\n\n function abi_decode_tuple_t_string_memory_ptrt_string_memory_ptrt_string_memory_ptrt_uint256(headStart, dataEnd) -> value0, value1, value2, value3 {\n if slt(sub(dataEnd, headStart), 128) { revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() }\n\n {\n\n let offset := calldataload(add(headStart, 0))\n if gt(offset, 0xffffffffffffffff) { revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db() }\n\n value0 := abi_decode_t_string_memory_ptr(add(headStart, offset), dataEnd)\n }\n\n {\n\n let offset := calldataload(add(headStart, 32))\n if gt(offset, 0xffffffffffffffff) { revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db() }\n\n value1 := abi_decode_t_string_memory_ptr(add(headStart, offset), dataEnd)\n }\n\n {\n\n let offset := calldataload(add(headStart, 64))\n if gt(offset, 0xffffffffffffffff) { revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db() }\n\n value2 := abi_decode_t_string_memory_ptr(add(headStart, offset), dataEnd)\n }\n\n {\n\n let offset := 96\n\n value3 := abi_decode_t_uint256(add(headStart, offset), dataEnd)\n }\n\n }\n\n function store_literal_in_memory_6977932ff671ce5ee249f95c8460c6c87009b2b0c2c0bcfc1f0caa4abc358047(memPtr) {\n\n mstore(add(memPtr, 0), \"Advertising for the target inven\")\n\n mstore(add(memPtr, 32), \"tory is not currently under revi\")\n\n mstore(add(memPtr, 64), \"ew\")\n\n }\n\n function abi_encode_t_stringliteral_6977932ff671ce5ee249f95c8460c6c87009b2b0c2c0bcfc1f0caa4abc358047_to_t_string_memory_ptr_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, 66)\n store_literal_in_memory_6977932ff671ce5ee249f95c8460c6c87009b2b0c2c0bcfc1f0caa4abc358047(pos)\n end := add(pos, 96)\n }\n\n function abi_encode_tuple_t_stringliteral_6977932ff671ce5ee249f95c8460c6c87009b2b0c2c0bcfc1f0caa4abc358047__to_t_string_memory_ptr__fromStack_reversed(headStart ) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_stringliteral_6977932ff671ce5ee249f95c8460c6c87009b2b0c2c0bcfc1f0caa4abc358047_to_t_string_memory_ptr_fromStack( tail)\n\n }\n\n function store_literal_in_memory_dccc571f50c08bf8c9bdae798fbc65f302c3b01f5074ba43958f25d7ef888791(memPtr) {\n\n mstore(add(memPtr, 0), \"Only inventory owners can reject\")\n\n mstore(add(memPtr, 32), \" ads.\")\n\n }\n\n function abi_encode_t_stringliteral_dccc571f50c08bf8c9bdae798fbc65f302c3b01f5074ba43958f25d7ef888791_to_t_string_memory_ptr_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, 37)\n store_literal_in_memory_dccc571f50c08bf8c9bdae798fbc65f302c3b01f5074ba43958f25d7ef888791(pos)\n end := add(pos, 64)\n }\n\n function abi_encode_tuple_t_stringliteral_dccc571f50c08bf8c9bdae798fbc65f302c3b01f5074ba43958f25d7ef888791__to_t_string_memory_ptr__fromStack_reversed(headStart ) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_stringliteral_dccc571f50c08bf8c9bdae798fbc65f302c3b01f5074ba43958f25d7ef888791_to_t_string_memory_ptr_fromStack( tail)\n\n }\n\n function panic_error_0x11() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x11)\n revert(0, 0x24)\n }\n\n function decrement_t_uint32(value) -> ret {\n value := cleanup_t_uint32(value)\n if eq(value, 0x00) { panic_error_0x11() }\n ret := sub(value, 1)\n }\n\n function array_storeLengthForEncoding_t_bytes_memory_ptr_nonPadded_inplace_fromStack(pos, length) -> updated_pos {\n updated_pos := pos\n }\n\n function store_literal_in_memory_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470(memPtr) {\n\n }\n\n function abi_encode_t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470_to_t_bytes_memory_ptr_nonPadded_inplace_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_bytes_memory_ptr_nonPadded_inplace_fromStack(pos, 0)\n store_literal_in_memory_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470(pos)\n end := add(pos, 0)\n }\n\n function abi_encode_tuple_packed_t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470__to_t_bytes_memory_ptr__nonPadded_inplace_fromStack_reversed(pos ) -> end {\n\n pos := abi_encode_t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470_to_t_bytes_memory_ptr_nonPadded_inplace_fromStack( pos)\n\n end := pos\n }\n\n function store_literal_in_memory_2408c3db4aaa8531c95016fcf9417b46eca235e606d7ce723c7dc6f164a207fd(memPtr) {\n\n mstore(add(memPtr, 0), \"Failed to payback lock values\")\n\n }\n\n function abi_encode_t_stringliteral_2408c3db4aaa8531c95016fcf9417b46eca235e606d7ce723c7dc6f164a207fd_to_t_string_memory_ptr_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, 29)\n store_literal_in_memory_2408c3db4aaa8531c95016fcf9417b46eca235e606d7ce723c7dc6f164a207fd(pos)\n end := add(pos, 32)\n }\n\n function abi_encode_tuple_t_stringliteral_2408c3db4aaa8531c95016fcf9417b46eca235e606d7ce723c7dc6f164a207fd__to_t_string_memory_ptr__fromStack_reversed(headStart ) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_stringliteral_2408c3db4aaa8531c95016fcf9417b46eca235e606d7ce723c7dc6f164a207fd_to_t_string_memory_ptr_fromStack( tail)\n\n }\n\n function panic_error_0x32() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x32)\n revert(0, 0x24)\n }\n\n function increment_t_uint256(value) -> ret {\n value := cleanup_t_uint256(value)\n if eq(value, 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) { panic_error_0x11() }\n ret := add(value, 1)\n }\n\n function store_literal_in_memory_5a05621a21b214233d27b1cd87e126c48be1e0211b2f9f27b784e90ac6512976(memPtr) {\n\n mstore(add(memPtr, 0), \"You can't delete an inventory if\")\n\n mstore(add(memPtr, 32), \" there are ads left in the inven\")\n\n mstore(add(memPtr, 64), \"tory.\")\n\n }\n\n function abi_encode_t_stringliteral_5a05621a21b214233d27b1cd87e126c48be1e0211b2f9f27b784e90ac6512976_to_t_string_memory_ptr_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, 69)\n store_literal_in_memory_5a05621a21b214233d27b1cd87e126c48be1e0211b2f9f27b784e90ac6512976(pos)\n end := add(pos, 96)\n }\n\n function abi_encode_tuple_t_stringliteral_5a05621a21b214233d27b1cd87e126c48be1e0211b2f9f27b784e90ac6512976__to_t_string_memory_ptr__fromStack_reversed(headStart ) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_stringliteral_5a05621a21b214233d27b1cd87e126c48be1e0211b2f9f27b784e90ac6512976_to_t_string_memory_ptr_fromStack( tail)\n\n }\n\n function store_literal_in_memory_b903fdbac6049d74b9eb64dc2d970791bb006ea8cf852de471611d0d1f3dfb73(memPtr) {\n\n mstore(add(memPtr, 0), \"Only inventory owners can remove\")\n\n mstore(add(memPtr, 32), \" inventory.\")\n\n }\n\n function abi_encode_t_stringliteral_b903fdbac6049d74b9eb64dc2d970791bb006ea8cf852de471611d0d1f3dfb73_to_t_string_memory_ptr_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, 43)\n store_literal_in_memory_b903fdbac6049d74b9eb64dc2d970791bb006ea8cf852de471611d0d1f3dfb73(pos)\n end := add(pos, 64)\n }\n\n function abi_encode_tuple_t_stringliteral_b903fdbac6049d74b9eb64dc2d970791bb006ea8cf852de471611d0d1f3dfb73__to_t_string_memory_ptr__fromStack_reversed(headStart ) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_stringliteral_b903fdbac6049d74b9eb64dc2d970791bb006ea8cf852de471611d0d1f3dfb73_to_t_string_memory_ptr_fromStack( tail)\n\n }\n\n function checked_add_t_uint32(x, y) -> sum {\n x := cleanup_t_uint32(x)\n y := cleanup_t_uint32(y)\n\n // overflow, if x > (maxValue - y)\n if gt(x, sub(0xffffffff, y)) { panic_error_0x11() }\n\n sum := add(x, y)\n }\n\n function store_literal_in_memory_5fb2033a4f86e03607b147b551967dc01e4d9efe9e84cd31d34f95975544ffb8(memPtr) {\n\n mstore(add(memPtr, 0), \"Exceeded the limit of ads that c\")\n\n mstore(add(memPtr, 32), \"an be delivered to your inventor\")\n\n mstore(add(memPtr, 64), \"y.\")\n\n }\n\n function abi_encode_t_stringliteral_5fb2033a4f86e03607b147b551967dc01e4d9efe9e84cd31d34f95975544ffb8_to_t_string_memory_ptr_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, 66)\n store_literal_in_memory_5fb2033a4f86e03607b147b551967dc01e4d9efe9e84cd31d34f95975544ffb8(pos)\n end := add(pos, 96)\n }\n\n function abi_encode_tuple_t_stringliteral_5fb2033a4f86e03607b147b551967dc01e4d9efe9e84cd31d34f95975544ffb8__to_t_string_memory_ptr__fromStack_reversed(headStart ) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_stringliteral_5fb2033a4f86e03607b147b551967dc01e4d9efe9e84cd31d34f95975544ffb8_to_t_string_memory_ptr_fromStack( tail)\n\n }\n\n function store_literal_in_memory_ca0a05d4e8866fc1a00b8227f39eccee06d206e468238220c68c4bb4c8ad79a8(memPtr) {\n\n mstore(add(memPtr, 0), \"Only inventory owners can approv\")\n\n mstore(add(memPtr, 32), \"e ads.\")\n\n }\n\n function abi_encode_t_stringliteral_ca0a05d4e8866fc1a00b8227f39eccee06d206e468238220c68c4bb4c8ad79a8_to_t_string_memory_ptr_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, 38)\n store_literal_in_memory_ca0a05d4e8866fc1a00b8227f39eccee06d206e468238220c68c4bb4c8ad79a8(pos)\n end := add(pos, 64)\n }\n\n function abi_encode_tuple_t_stringliteral_ca0a05d4e8866fc1a00b8227f39eccee06d206e468238220c68c4bb4c8ad79a8__to_t_string_memory_ptr__fromStack_reversed(headStart ) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_stringliteral_ca0a05d4e8866fc1a00b8227f39eccee06d206e468238220c68c4bb4c8ad79a8_to_t_string_memory_ptr_fromStack( tail)\n\n }\n\n function increment_t_uint32(value) -> ret {\n value := cleanup_t_uint32(value)\n if eq(value, 0xffffffff) { panic_error_0x11() }\n ret := add(value, 1)\n }\n\n function store_literal_in_memory_291ae92c44b91ab52e635174691fcb1c7f73b50296f9edd66f99d79578c050f3(memPtr) {\n\n mstore(add(memPtr, 0), \"requested inventory id is invali\")\n\n mstore(add(memPtr, 32), \"d\")\n\n }\n\n function abi_encode_t_stringliteral_291ae92c44b91ab52e635174691fcb1c7f73b50296f9edd66f99d79578c050f3_to_t_string_memory_ptr_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, 33)\n store_literal_in_memory_291ae92c44b91ab52e635174691fcb1c7f73b50296f9edd66f99d79578c050f3(pos)\n end := add(pos, 64)\n }\n\n function abi_encode_tuple_t_stringliteral_291ae92c44b91ab52e635174691fcb1c7f73b50296f9edd66f99d79578c050f3__to_t_string_memory_ptr__fromStack_reversed(headStart ) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_stringliteral_291ae92c44b91ab52e635174691fcb1c7f73b50296f9edd66f99d79578c050f3_to_t_string_memory_ptr_fromStack( tail)\n\n }\n\n function panic_error_0x22() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x22)\n revert(0, 0x24)\n }\n\n function extract_byte_array_length(data) -> length {\n length := div(data, 2)\n let outOfPlaceEncoding := and(data, 1)\n if iszero(outOfPlaceEncoding) {\n length := and(length, 0x7f)\n }\n\n if eq(outOfPlaceEncoding, lt(length, 32)) {\n panic_error_0x22()\n }\n }\n\n function store_literal_in_memory_7bd5de2a7921ab1cd368859225f2849493de4637062cfa621133b94bd187fcba(memPtr) {\n\n mstore(add(memPtr, 0), \"Inventory can be retrieve up to \")\n\n mstore(add(memPtr, 32), \"30 items at the same time\")\n\n }\n\n function abi_encode_t_stringliteral_7bd5de2a7921ab1cd368859225f2849493de4637062cfa621133b94bd187fcba_to_t_string_memory_ptr_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, 57)\n store_literal_in_memory_7bd5de2a7921ab1cd368859225f2849493de4637062cfa621133b94bd187fcba(pos)\n end := add(pos, 64)\n }\n\n function abi_encode_tuple_t_stringliteral_7bd5de2a7921ab1cd368859225f2849493de4637062cfa621133b94bd187fcba__to_t_string_memory_ptr__fromStack_reversed(headStart ) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_stringliteral_7bd5de2a7921ab1cd368859225f2849493de4637062cfa621133b94bd187fcba_to_t_string_memory_ptr_fromStack( tail)\n\n }\n\n function checked_add_t_uint256(x, y) -> sum {\n x := cleanup_t_uint256(x)\n y := cleanup_t_uint256(y)\n\n // overflow, if x > (maxValue - y)\n if gt(x, sub(0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff, y)) { panic_error_0x11() }\n\n sum := add(x, y)\n }\n\n function store_literal_in_memory_659fefdbf37c49ed6966d6daba615f39d1833c29220febaffa25a47eec7c36ae(memPtr) {\n\n mstore(add(memPtr, 0), \"Only ads that are in the invento\")\n\n mstore(add(memPtr, 32), \"ry can be collected.\")\n\n }\n\n function abi_encode_t_stringliteral_659fefdbf37c49ed6966d6daba615f39d1833c29220febaffa25a47eec7c36ae_to_t_string_memory_ptr_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, 52)\n store_literal_in_memory_659fefdbf37c49ed6966d6daba615f39d1833c29220febaffa25a47eec7c36ae(pos)\n end := add(pos, 64)\n }\n\n function abi_encode_tuple_t_stringliteral_659fefdbf37c49ed6966d6daba615f39d1833c29220febaffa25a47eec7c36ae__to_t_string_memory_ptr__fromStack_reversed(headStart ) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_stringliteral_659fefdbf37c49ed6966d6daba615f39d1833c29220febaffa25a47eec7c36ae_to_t_string_memory_ptr_fromStack( tail)\n\n }\n\n function store_literal_in_memory_78292a3aa51e81943d430cb8bf02e588b16925e83aa89fd5e23fc0c91298f7af(memPtr) {\n\n mstore(add(memPtr, 0), \"Only ads that have expired can b\")\n\n mstore(add(memPtr, 32), \"e collected.\")\n\n }\n\n function abi_encode_t_stringliteral_78292a3aa51e81943d430cb8bf02e588b16925e83aa89fd5e23fc0c91298f7af_to_t_string_memory_ptr_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, 44)\n store_literal_in_memory_78292a3aa51e81943d430cb8bf02e588b16925e83aa89fd5e23fc0c91298f7af(pos)\n end := add(pos, 64)\n }\n\n function abi_encode_tuple_t_stringliteral_78292a3aa51e81943d430cb8bf02e588b16925e83aa89fd5e23fc0c91298f7af__to_t_string_memory_ptr__fromStack_reversed(headStart ) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_stringliteral_78292a3aa51e81943d430cb8bf02e588b16925e83aa89fd5e23fc0c91298f7af_to_t_string_memory_ptr_fromStack( tail)\n\n }\n\n function store_literal_in_memory_b0aeae4f4248bb42a18652a04d02fcead20671ee6bcbd039d3ac82c8a2823c8f(memPtr) {\n\n mstore(add(memPtr, 0), \"Only the owner of the inventory \")\n\n mstore(add(memPtr, 32), \"or the owner of the ad can colle\")\n\n mstore(add(memPtr, 64), \"ct the ad.\")\n\n }\n\n function abi_encode_t_stringliteral_b0aeae4f4248bb42a18652a04d02fcead20671ee6bcbd039d3ac82c8a2823c8f_to_t_string_memory_ptr_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, 74)\n store_literal_in_memory_b0aeae4f4248bb42a18652a04d02fcead20671ee6bcbd039d3ac82c8a2823c8f(pos)\n end := add(pos, 96)\n }\n\n function abi_encode_tuple_t_stringliteral_b0aeae4f4248bb42a18652a04d02fcead20671ee6bcbd039d3ac82c8a2823c8f__to_t_string_memory_ptr__fromStack_reversed(headStart ) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_stringliteral_b0aeae4f4248bb42a18652a04d02fcead20671ee6bcbd039d3ac82c8a2823c8f_to_t_string_memory_ptr_fromStack( tail)\n\n }\n\n function panic_error_0x12() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x12)\n revert(0, 0x24)\n }\n\n function checked_div_t_uint256(x, y) -> r {\n x := cleanup_t_uint256(x)\n y := cleanup_t_uint256(y)\n if iszero(y) { panic_error_0x12() }\n\n r := div(x, y)\n }\n\n function checked_sub_t_uint256(x, y) -> diff {\n x := cleanup_t_uint256(x)\n y := cleanup_t_uint256(y)\n\n if lt(x, y) { panic_error_0x11() }\n\n diff := sub(x, y)\n }\n\n function store_literal_in_memory_e73bff7657bdbb5bdef4ed41a4c1c24dfb5c73f6334bacdcb8893c75bf0f5744(memPtr) {\n\n mstore(add(memPtr, 0), \"You have reached the maximum num\")\n\n mstore(add(memPtr, 32), \"ber of ads you can create. You n\")\n\n mstore(add(memPtr, 64), \"eed to remove unwanted ads.\")\n\n }\n\n function abi_encode_t_stringliteral_e73bff7657bdbb5bdef4ed41a4c1c24dfb5c73f6334bacdcb8893c75bf0f5744_to_t_string_memory_ptr_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, 91)\n store_literal_in_memory_e73bff7657bdbb5bdef4ed41a4c1c24dfb5c73f6334bacdcb8893c75bf0f5744(pos)\n end := add(pos, 96)\n }\n\n function abi_encode_tuple_t_stringliteral_e73bff7657bdbb5bdef4ed41a4c1c24dfb5c73f6334bacdcb8893c75bf0f5744__to_t_string_memory_ptr__fromStack_reversed(headStart ) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_stringliteral_e73bff7657bdbb5bdef4ed41a4c1c24dfb5c73f6334bacdcb8893c75bf0f5744_to_t_string_memory_ptr_fromStack( tail)\n\n }\n\n function checked_sub_t_uint32(x, y) -> diff {\n x := cleanup_t_uint32(x)\n y := cleanup_t_uint32(y)\n\n if lt(x, y) { panic_error_0x11() }\n\n diff := sub(x, y)\n }\n\n function store_literal_in_memory_5447ff33ec71380c4433dea19bd92e1e04cd36dcd9d05b85381a884186004cac(memPtr) {\n\n mstore(add(memPtr, 0), \"The delivery start time must be \")\n\n mstore(add(memPtr, 32), \"before the delivery end time, an\")\n\n mstore(add(memPtr, 64), \"d a minimum delivery period must\")\n\n mstore(add(memPtr, 96), \" be set.\")\n\n }\n\n function abi_encode_t_stringliteral_5447ff33ec71380c4433dea19bd92e1e04cd36dcd9d05b85381a884186004cac_to_t_string_memory_ptr_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, 104)\n store_literal_in_memory_5447ff33ec71380c4433dea19bd92e1e04cd36dcd9d05b85381a884186004cac(pos)\n end := add(pos, 128)\n }\n\n function abi_encode_tuple_t_stringliteral_5447ff33ec71380c4433dea19bd92e1e04cd36dcd9d05b85381a884186004cac__to_t_string_memory_ptr__fromStack_reversed(headStart ) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_stringliteral_5447ff33ec71380c4433dea19bd92e1e04cd36dcd9d05b85381a884186004cac_to_t_string_memory_ptr_fromStack( tail)\n\n }\n\n function store_literal_in_memory_0e7f391a772d09ccfabb4f385b147176f21130142ee83356b796e2c0f11049c3(memPtr) {\n\n mstore(add(memPtr, 0), \"It is necessary to allow a certa\")\n\n mstore(add(memPtr, 32), \"in amount of time before the dis\")\n\n mstore(add(memPtr, 64), \"tribution starts.\")\n\n }\n\n function abi_encode_t_stringliteral_0e7f391a772d09ccfabb4f385b147176f21130142ee83356b796e2c0f11049c3_to_t_string_memory_ptr_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, 81)\n store_literal_in_memory_0e7f391a772d09ccfabb4f385b147176f21130142ee83356b796e2c0f11049c3(pos)\n end := add(pos, 96)\n }\n\n function abi_encode_tuple_t_stringliteral_0e7f391a772d09ccfabb4f385b147176f21130142ee83356b796e2c0f11049c3__to_t_string_memory_ptr__fromStack_reversed(headStart ) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_stringliteral_0e7f391a772d09ccfabb4f385b147176f21130142ee83356b796e2c0f11049c3_to_t_string_memory_ptr_fromStack( tail)\n\n }\n\n function store_literal_in_memory_276b86c7a00b3f00b740ebb03804c0fc4012d2d56e251449434230a161501bbb(memPtr) {\n\n mstore(add(memPtr, 0), \"ad price must be larger than flo\")\n\n mstore(add(memPtr, 32), \"or price set by inventory owner.\")\n\n }\n\n function abi_encode_t_stringliteral_276b86c7a00b3f00b740ebb03804c0fc4012d2d56e251449434230a161501bbb_to_t_string_memory_ptr_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, 64)\n store_literal_in_memory_276b86c7a00b3f00b740ebb03804c0fc4012d2d56e251449434230a161501bbb(pos)\n end := add(pos, 64)\n }\n\n function abi_encode_tuple_t_stringliteral_276b86c7a00b3f00b740ebb03804c0fc4012d2d56e251449434230a161501bbb__to_t_string_memory_ptr__fromStack_reversed(headStart ) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_stringliteral_276b86c7a00b3f00b740ebb03804c0fc4012d2d56e251449434230a161501bbb_to_t_string_memory_ptr_fromStack( tail)\n\n }\n\n function store_literal_in_memory_55bde59c791e3aa65ae4147bb0db172e43fa3edefa784ea58d73aaa478127b14(memPtr) {\n\n mstore(add(memPtr, 0), \"ads must be added correctly\")\n\n }\n\n function abi_encode_t_stringliteral_55bde59c791e3aa65ae4147bb0db172e43fa3edefa784ea58d73aaa478127b14_to_t_string_memory_ptr_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, 27)\n store_literal_in_memory_55bde59c791e3aa65ae4147bb0db172e43fa3edefa784ea58d73aaa478127b14(pos)\n end := add(pos, 32)\n }\n\n function abi_encode_tuple_t_stringliteral_55bde59c791e3aa65ae4147bb0db172e43fa3edefa784ea58d73aaa478127b14__to_t_string_memory_ptr__fromStack_reversed(headStart ) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_stringliteral_55bde59c791e3aa65ae4147bb0db172e43fa3edefa784ea58d73aaa478127b14_to_t_string_memory_ptr_fromStack( tail)\n\n }\n\n function store_literal_in_memory_b717876e01b3276a505705385fc7b04097db7f77d638318e5f6bcb3761acccc5(memPtr) {\n\n mstore(add(memPtr, 0), \"You have reached the maximum num\")\n\n mstore(add(memPtr, 32), \"ber of inventory you can create.\")\n\n mstore(add(memPtr, 64), \" You need to remove unwanted inv\")\n\n mstore(add(memPtr, 96), \"entory.\")\n\n }\n\n function abi_encode_t_stringliteral_b717876e01b3276a505705385fc7b04097db7f77d638318e5f6bcb3761acccc5_to_t_string_memory_ptr_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, 103)\n store_literal_in_memory_b717876e01b3276a505705385fc7b04097db7f77d638318e5f6bcb3761acccc5(pos)\n end := add(pos, 128)\n }\n\n function abi_encode_tuple_t_stringliteral_b717876e01b3276a505705385fc7b04097db7f77d638318e5f6bcb3761acccc5__to_t_string_memory_ptr__fromStack_reversed(headStart ) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_stringliteral_b717876e01b3276a505705385fc7b04097db7f77d638318e5f6bcb3761acccc5_to_t_string_memory_ptr_fromStack( tail)\n\n }\n\n function store_literal_in_memory_4d267d7833d4b46d3008be664a3d8f662eda0b9ea49281c9424344ebb5ec04b7(memPtr) {\n\n mstore(add(memPtr, 0), \"requested inventoryId does not e\")\n\n mstore(add(memPtr, 32), \"xist\")\n\n }\n\n function abi_encode_t_stringliteral_4d267d7833d4b46d3008be664a3d8f662eda0b9ea49281c9424344ebb5ec04b7_to_t_string_memory_ptr_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, 36)\n store_literal_in_memory_4d267d7833d4b46d3008be664a3d8f662eda0b9ea49281c9424344ebb5ec04b7(pos)\n end := add(pos, 64)\n }\n\n function abi_encode_tuple_t_stringliteral_4d267d7833d4b46d3008be664a3d8f662eda0b9ea49281c9424344ebb5ec04b7__to_t_string_memory_ptr__fromStack_reversed(headStart ) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_stringliteral_4d267d7833d4b46d3008be664a3d8f662eda0b9ea49281c9424344ebb5ec04b7_to_t_string_memory_ptr_fromStack( tail)\n\n }\n\n function store_literal_in_memory_d523c2a971550167515cab344e671ecd68091a60b45d09d4acc398b7e8c8fa86(memPtr) {\n\n mstore(add(memPtr, 0), \"requested adId does not exist\")\n\n }\n\n function abi_encode_t_stringliteral_d523c2a971550167515cab344e671ecd68091a60b45d09d4acc398b7e8c8fa86_to_t_string_memory_ptr_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, 29)\n store_literal_in_memory_d523c2a971550167515cab344e671ecd68091a60b45d09d4acc398b7e8c8fa86(pos)\n end := add(pos, 32)\n }\n\n function abi_encode_tuple_t_stringliteral_d523c2a971550167515cab344e671ecd68091a60b45d09d4acc398b7e8c8fa86__to_t_string_memory_ptr__fromStack_reversed(headStart ) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_stringliteral_d523c2a971550167515cab344e671ecd68091a60b45d09d4acc398b7e8c8fa86_to_t_string_memory_ptr_fromStack( tail)\n\n }\n\n function panic_error_0x31() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x31)\n revert(0, 0x24)\n }\n\n}\n", "id": 4, "language": "Yul", "name": "#utility.yul" } ], "sourceMap": "194:14536:2:-:0;;;1863:21;;;;;;;;;;194:14536;;;;;;", "deployedSourceMap": "194:14536:2:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5776:870;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;13778:949;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;2656:510;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;7841:1391;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;4850:920;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;11795:647;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;;;:::i;:::-;;;;;;;;12448:1324;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;;;:::i;:::-;;;;;;;;6652:1183;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;10433:1356;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;;;:::i;:::-;;;;;;;;3172:1672;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;9238:1189;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;;;:::i;:::-;;;;;;;;1890:760;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;5776:870;5898:12;5871:16;:23;5888:5;5871:23;;;;;;;;;;;;:39;5850:143;;;;;;;;;;;;:::i;:::-;;;;;;;;;6004:40;6047:30;6064:12;6047;:16;;:30;;;;:::i;:::-;6004:73;;6127:10;6108:29;;:9;:15;;;;;;;;;;;;:29;;;6087:104;;;;;;;;;;;;:::i;:::-;;;;;;;;;6209:16;:23;6226:5;6209:23;;;;;;;;;;;6202:30;;;6242:21;:35;6264:12;6242:35;;;;;;;;;;;;:37;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;6289:26;6318:15;6327:5;6318:4;:8;;:15;;;;:::i;:::-;6289:44;;6343:13;:23;6357:2;:8;;;;;;;;;;;;6343:23;;;;;;;;;;;;;;;;:25;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;6378:23;6404:2;:8;;;;;;;;;;;;6378:34;;6422:17;6442:2;:8;;;6422:28;;6462:6;6473:7;:12;;6494;6473:38;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6461:50;;;6529:1;6521:43;;;;;;;;;;;;:::i;:::-;;;;;;;;;6574:18;6586:5;6574:4;:11;;:18;;;;:::i;:::-;;6619:5;6608:31;6626:12;6608:31;;;;;;:::i;:::-;;;;;;;;5840:806;;;;;5776:870;;:::o;13778:949::-;13848:16;13876:17;13912:8;13907:313;13932:4;:12;;:19;;;;13926:3;:25;13907:313;;;13974:26;14003:4;:12;;14016:3;14003:17;;;;;;;;:::i;:::-;;;;;;;;;;;;13974:46;;14065:12;14038:14;:23;14053:2;:7;;;14038:23;;;;;;;;;;;;:39;14034:86;;14097:8;;;14034:86;14146:15;14137:2;:6;;;;;;;;;;;;:24;;;14133:77;;;14181:14;;;;;:::i;:::-;;;;14133:77;13960:260;13907:313;13953:5;;;;;:::i;:::-;;;;13907:313;;;;14230:29;14276:12;14262:27;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14230:59;;14314:1;14299:16;;14330:8;14325:367;14350:4;:12;;:19;;;;14344:3;:25;14325:367;;;14392:26;14421:4;:12;;14434:3;14421:17;;;;;;;;:::i;:::-;;;;;;;;;;;;14392:46;;14483:12;14456:14;:23;14471:2;:7;;;14456:23;;;;;;;;;;;;:39;14452:86;;14515:8;;;14452:86;14564:15;14555:2;:6;;;;;;;;;;;;:24;;;14551:131;;;14628:2;:7;;;14599:12;14612;14599:26;;;;;;;;:::i;:::-;;;;;;;:36;;;;;14653:14;;;;;:::i;:::-;;;;14551:131;14378:314;14325:367;14371:5;;;;;:::i;:::-;;;;14325:367;;;;14708:12;14701:19;;;;13778:949;;;:::o;2656:510::-;2780:1;2745:17;:31;2763:12;2745:31;;;;;;;;;;;;;;;;;;;;;:36;;;2724:143;;;;;;;;;;;;:::i;:::-;;;;;;;;;2878:40;2921:30;2938:12;2921;:16;;:30;;;;:::i;:::-;2878:73;;3001:10;2982:29;;:9;:15;;;;;;;;;;;;:29;;;2961:110;;;;;;;;;;;;:::i;:::-;;;;;;;;;3082:33;3102:12;3082;:19;;:33;;;;:::i;:::-;;3125:20;:32;3146:10;3125:32;;;;;;;;;;;;;;;;:34;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;2714:452;2656:510;:::o;7841:1391::-;7913:22;7945:29;7984:25;8019:36;8065:22;8097:20;8127:22;8166:21;8224;:35;8246:12;8224:35;;;;;;;;;;;;;;;;;;;;;8190:17;:31;8208:12;8190:31;;;;;;;;;;;;;;;;;;;;;:69;;;;:::i;:::-;8166:93;;;;8291:16;8277:31;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8269:39;;8347:16;8333:31;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8318:46;;8399:16;8385:31;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8374:42;;8462:16;8448:31;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8426:53;;8511:16;8498:30;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8489:39;;8558:16;8545:30;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8538:37;;8607:16;8596:28;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8585:39;;8635:10;8664:8;8659:567;8684:4;:12;;:19;;;;8678:3;:25;8659:567;;;8726:26;8755:4;:12;;8768:3;8755:17;;;;;;;;:::i;:::-;;;;;;;;;;;;8726:46;;8808:12;8790:2;:14;;;:30;8786:77;;8840:8;;;8786:77;8892:2;:7;;;8877:5;8883;8877:12;;;;;;;;:::i;:::-;;;;;;;:22;;;;;8935:2;:14;;;8913:12;8926:5;8913:19;;;;;;;;:::i;:::-;;;;;;;:36;;;;;8981:2;:7;;;8963:8;8972:5;8963:15;;;;;;;;:::i;:::-;;;;;;;:25;;;;;9031:2;:18;;;9002:19;9022:5;9002:26;;;;;;;;:::i;:::-;;;;;;;:47;;;;;9079:2;:8;;;;;;;;;;;;9063:6;9070:5;9063:13;;;;;;;;:::i;:::-;;;;;;;:24;;;;;;;;;;;9115:2;:6;;;;;;;;;;;;9101:4;9106:5;9101:11;;;;;;;;:::i;:::-;;;;;;;:20;;;;;;;;;;;9180:2;:14;;;9153;:23;9168:2;:7;;;9153:23;;;;;;;;;;;;:41;9135:8;9144:5;9135:15;;;;;;;;:::i;:::-;;;;;;;:59;;;;;;;;;;;9208:7;;;;;:::i;:::-;;;;8712:514;8659:567;8705:5;;;;;:::i;:::-;;;;8659:567;;;;8156:1076;;7841:1391;;;;;;;;;:::o;4850:920::-;361:2;4946:17;:31;4964:12;4946:31;;;;;;;;;;;;;;;;;;;;;:58;;;4925:162;;;;;;;;;;;;:::i;:::-;;;;;;;;;5145:12;5118:16;:23;5135:5;5118:23;;;;;;;;;;;;:39;5097:143;;;;;;;;;;;;:::i;:::-;;;;;;;;;5251:40;5294:30;5311:12;5294;:16;;:30;;;;:::i;:::-;5251:73;;5374:10;5355:29;;:9;:15;;;;;;;;;;;;:29;;;5334:105;;;;;;;;;;;;:::i;:::-;;;;;;;;;5450:26;5479:15;5488:5;5479:4;:8;;:15;;;;:::i;:::-;5450:44;;5530:2;:8;;;;;;;;;;;;5512:26;;:15;:26;5504:35;;;;;;5557:16;:23;5574:5;5557:23;;;;;;;;;;;5550:30;;;5590:17;:31;5608:12;5590:31;;;;;;;;;;;;:33;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;5633:21;:35;5655:12;5633:35;;;;;;;;;;;;:37;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;5704:12;5680:14;:21;5695:5;5680:21;;;;;;;;;;;:36;;;;5743:5;5732:31;5750:12;5732:31;;;;;;:::i;:::-;;;;;;;;4915:855;;4850:920;;:::o;11795:647::-;11871:19;11900:13;11923:18;11951:17;11978:23;12011:18;12046:40;12089:30;12106:12;12089;:16;;:30;;;;:::i;:::-;12046:73;;12162:12;12137:9;:21;;;:37;12129:83;;;;;;;;;;;;:::i;:::-;;;;;;;;;12237:9;:21;;;12223:35;;12276:9;:15;;;;;;;;;;;;12268:23;;12308:9;:14;;12301:21;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12338:9;:13;;12332:19;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12373:9;:19;;12361:31;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12415:9;:20;;;12402:33;;12036:406;11795:647;;;;;;;:::o;12448:1324::-;12529:29;12568:23;12601:21;12632:20;12662:26;12698:28;12759:1;12751:5;:9;:24;;;;;12773:2;12764:5;:11;;12751:24;12743:94;;;;;;;;;;;;:::i;:::-;;;;;;;;;12865:1;12855:6;:11;;:52;;;;;12880:12;:20;;:27;;;;12870:6;:37;;12855:52;12847:61;;;;;;12919:10;12932:47;12973:5;12964:6;:14;;;;:::i;:::-;12932:12;:20;;:27;;;;:31;;:47;;;;:::i;:::-;12919:60;;13018:5;13004:20;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12989:35;;13057:5;13043:20;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13034:29;;13094:5;13081:19;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13073:27;;13130:5;13117:19;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13110:26;;13172:5;13159:19;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13146:32;;13216:5;13202:20;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13188:34;;13233:17;13269:8;13280:6;13269:17;;13264:502;13294:5;13288:3;:11;13264:502;;;13322:40;13365:12;:20;;13386:3;13365:25;;;;;;;;:::i;:::-;;;;;;;;;;;;13322:68;;13434:9;:21;;;13405:12;13418;13405:26;;;;;;;;:::i;:::-;;;;;;;:50;;;;;13492:9;:15;;;;;;;;;;;;13469:6;13476:12;13469:20;;;;;;;;:::i;:::-;;;;;;;:38;;;;;;;;;;;13543:9;:14;;13521:36;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:5;13527:12;13521:19;;;;;;;;:::i;:::-;;;;;;;:36;;;;13592:9;:13;;13571:34;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:4;13576:12;13571:18;;;;;;;;:::i;:::-;;;;;;;:34;;;;13646:9;:19;;13619:46;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:10;13630:12;13619:24;;;;;;;;:::i;:::-;;;;;;;:46;;;;13707:9;:20;;;13679:11;13691:12;13679:25;;;;;;;;:::i;:::-;;;;;;;:48;;;;;13741:14;;;;;:::i;:::-;;;;13308:458;13301:5;;;;;:::i;:::-;;;;13264:502;;;;12733:1039;;12448:1324;;;;;;;;:::o;6652:1183::-;6770:12;6745:14;:21;6760:5;6745:21;;;;;;;;;;;;:37;6724:127;;;;;;;;;;;;:::i;:::-;;;;;;;;;6862:26;6891:15;6900:5;6891:4;:8;;:15;;;;:::i;:::-;6862:44;;6956:2;:6;;;;;;;;;;;;6937:25;;:15;:25;;6916:107;;;;;;;;;;;;:::i;:::-;;;;;;;;;7033:40;7076:30;7093:12;7076;:16;;:30;;;;:::i;:::-;7033:73;;7151:9;:15;;;;;;;;;;;;7137:29;;:10;:29;;;:67;;;;7196:2;:8;;;;;;;;;;;;7182:22;;:10;:22;;;7137:67;7116:179;;;;;;;;;;;;:::i;:::-;;;;;;;;;7324:9;:15;;;;;;;;;;;;7310:29;;:10;:29;;;7306:335;;;7355:9;:15;;;;;;;;;;;;:24;;:34;7380:2;:8;;;7355:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7306:335;;;7424:2;:8;;;;;;;;;;;;7410:22;;:10;:22;;;7406:235;;;7448:17;7468:60;757:6;7468:32;7488:11;7480:2;7469;:8;;;:13;;;;:::i;:::-;7468:19;;:32;;;;:::i;:::-;:36;;:60;;;;:::i;:::-;7448:80;;7542:2;:8;;;;;;;;;;;;:17;;:28;7560:9;7542:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7584:9;:15;;;;;;;;;;;;:24;;:46;7620:9;7609:2;:8;;;:20;;;;:::i;:::-;7584:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7434:207;7406:235;7306:335;7658:14;:21;7673:5;7658:21;;;;;;;;;;;7651:28;;;7689:13;:23;7703:2;:8;;;;;;;;;;;;7689:23;;;;;;;;;;;;;;;;:25;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;7724:17;:31;7742:12;7724:31;;;;;;;;;;;;:33;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;7767:18;7779:5;7767:4;:11;;:18;;;;:::i;:::-;;7795:33;7815:12;7795;:19;;:33;;;;:::i;:::-;;6714:1121;;6652:1183;;:::o;10433:1356::-;10526:29;10565:23;10598:21;10629:20;10659:26;10695:28;10740:24;10767:20;:35;10788:13;10767:35;;;;;;;;;;;;;;;;;;;;;;;;;10740:62;;;;10842:19;10828:34;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10813:49;;10895:19;10881:34;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10872:43;;10946:19;10933:33;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10925:41;;10996:19;10983:33;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10976:40;;11052:19;11039:33;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11026:46;;11110:19;11096:34;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11082:48;;11141:17;11177:8;11172:611;11197:12;:20;;:27;;;;11191:3;:33;11172:611;;;11247:40;11290:12;:20;;11311:3;11290:25;;;;;;;;:::i;:::-;;;;;;;;;;;;11247:68;;11352:13;11333:32;;:9;:15;;;;;;;;;;;;:32;;;11329:79;;11385:8;;;11329:79;11451:9;:21;;;11422:12;11435;11422:26;;;;;;;;:::i;:::-;;;;;;;:50;;;;;11509:9;:15;;;;;;;;;;;;11486:6;11493:12;11486:20;;;;;;;;:::i;:::-;;;;;;;:38;;;;;;;;;;;11560:9;:14;;11538:36;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:5;11544:12;11538:19;;;;;;;;:::i;:::-;;;;;;;:36;;;;11609:9;:13;;11588:34;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:4;11593:12;11588:18;;;;;;;;:::i;:::-;;;;;;;:34;;;;11663:9;:19;;11636:46;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:10;11647:12;11636:24;;;;;;;;:::i;:::-;;;;;;;:46;;;;11724:9;:20;;;11696:11;11708:12;11696:25;;;;;;;;:::i;:::-;;;;;;;:48;;;;;11758:14;;;;;:::i;:::-;;;;11233:550;11172:611;11226:5;;;;;:::i;:::-;;;;11172:611;;;;10730:1059;;10433:1356;;;;;;;:::o;3172:1672::-;3307:7;258:2;3347:13;:25;3361:10;3347:25;;;;;;;;;;;;;;;;;;;;;;;;;:50;;;3326:179;;;;;;;;;;;;:::i;:::-;;;;;;;;;3543:6;3536:13;;:4;:13;;;:63;;;;;455:7;3572:6;3565:4;:13;;;;:::i;:::-;:34;;;;3536:63;3515:214;;;;;;;;;;;;:::i;:::-;;;;;;;;;3769:15;3760:6;:24;;;:103;;;;;700:12;3809:15;3800:6;:24;;;;;;:::i;:::-;:63;;3760:103;3739:231;;;;;;;;;;;;:::i;:::-;;;;;;;;;361:2;4001:17;:31;4019:12;4001:31;;;;;;;;;;;;;;;;;;;;;:58;;;3980:171;;;;;;;;;;;;:::i;:::-;;;;;;;;;4162:40;4205:30;4222:12;4205;:16;;:30;;;;:::i;:::-;4162:73;;4266:9;:20;;;4253:9;:33;;4245:110;;;;;;;;;;;;:::i;:::-;;;;;;;;;4366:18;:6;:16;:18::i;:::-;4394:12;4409:16;:6;:14;:16::i;:::-;4394:31;;4436:25;4464:106;;;;;;;;4480:4;4464:106;;;;4486:12;4464:106;;;;4508:10;4464:106;;;;;;4521:5;4464:106;;;;4528:16;4464:106;;;;4546:6;4464:106;;;;;;4554:4;4464:106;;;;;;4560:9;4464:106;;;4436:134;;4588:18;4597:4;4603:2;4588:4;:8;;:18;;;;;:::i;:::-;4580:58;;;;;;;;;;;;:::i;:::-;;;;;;;;;4674:12;4649:16;:22;4666:4;4649:22;;;;;;;;;;;:37;;;;4696:21;:35;4718:12;4696:35;;;;;;;;;;;;:37;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;4743:13;:25;4757:10;4743:25;;;;;;;;;;;;;;;;:27;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;4796:12;4786:29;4810:4;4786:29;;;;;;:::i;:::-;;;;;;;;4833:4;4826:11;;;;;3172:1672;;;;;;;:::o;9238:1189::-;9323:22;9355:29;9394:25;9429:22;9461:20;9491:22;9530:21;9554:13;:28;9568:13;9554:28;;;;;;;;;;;;;;;;;;;;;;;;;9530:52;;;;9615:16;9601:31;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9593:39;;9671:16;9657:31;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9642:46;;9723:16;9709:31;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9698:42;;9772:16;9759:30;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9750:39;;9819:16;9806:30;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9799:37;;9868:16;9857:28;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9846:39;;9896:10;9925:8;9920:501;9945:4;:12;;:19;;;;9939:3;:25;9920:501;;;9987:26;10016:4;:12;;10029:3;10016:17;;;;;;;;:::i;:::-;;;;;;;;;;;;9987:46;;10063:13;10051:25;;:2;:8;;;;;;;;;;;;:25;;;10047:72;;10096:8;;;10047:72;10148:2;:7;;;10133:5;10139;10133:12;;;;;;;;:::i;:::-;;;;;;;:22;;;;;10191:2;:14;;;10169:12;10182:5;10169:19;;;;;;;;:::i;:::-;;;;;;;:36;;;;;10237:2;:7;;;10219:8;10228:5;10219:15;;;;;;;;:::i;:::-;;;;;;;:25;;;;;10274:2;:8;;;;;;;;;;;;10258:6;10265:5;10258:13;;;;;;;;:::i;:::-;;;;;;;:24;;;;;;;;;;;10310:2;:6;;;;;;;;;;;;10296:4;10301:5;10296:11;;;;;;;;:::i;:::-;;;;;;;:20;;;;;;;;;;;10375:2;:14;;;10348;:23;10363:2;:7;;;10348:23;;;;;;;;;;;;:41;10330:8;10339:5;10330:15;;;;;;;;:::i;:::-;;;;;;;:59;;;;;;;;;;;10403:7;;;;;:::i;:::-;;;;9973:448;9920:501;9966:5;;;;;:::i;:::-;;;;9920:501;;;;9520:907;;9238:1189;;;;;;;:::o;1890:760::-;2019:7;312:2;2059:20;:32;2080:10;2059:32;;;;;;;;;;;;;;;;;;;;;;;;;:64;;;2038:205;;;;;;;;;;;;:::i;:::-;;;;;;;;;2253:25;:13;:23;:25::i;:::-;2288:19;2310:23;:13;:21;:23::i;:::-;2288:45;;2344:39;2386:90;;;;;;;;2409:11;2386:90;;;;2430:10;2386:90;;;;;;2443:4;2386:90;;;;2449:3;2386:90;;;;2454:9;2386:90;;;;2465:10;2386:90;;;2344:132;;2486:40;2503:11;2516:9;2486:12;:16;;:40;;;;;:::i;:::-;;2536:20;:32;2557:10;2536:32;;;;;;;;;;;;;;;;:34;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;2585:29;2602:11;2585:29;;;;;;:::i;:::-;;;;;;;;2632:11;2625:18;;;;1890:760;;;;;;:::o;736:264:3:-;817:17;846:11;860:3;:15;;:29;876:12;860:29;;;;;;;;;;;;846:43;;914:1;907:3;:8;;899:57;;;;;;;;;;;;:::i;:::-;;;;;;;;;973:3;:11;;991:1;985:3;:7;;;;:::i;:::-;973:20;;;;;;;;:::i;:::-;;;;;;;;;;;;966:27;;;736:264;;;;:::o;2601:229::-;2668:10;2690:11;2704:3;:15;;:22;2720:5;2704:22;;;;;;;;;;;;2690:36;;2751:1;2744:3;:8;;2736:50;;;;;;;;;;;;:::i;:::-;;;;;;;;;2803:3;:11;;2821:1;2815:3;:7;;;;:::i;:::-;2803:20;;;;;;;;:::i;:::-;;;;;;;;;;;;2796:27;;;2601:229;;;;:::o;2836:622::-;2904:4;2920:11;2934:3;:15;;:22;2950:5;2934:22;;;;;;;;;;;;2920:36;;2977:1;2970:3;:8;2966:463;;2994:17;3020:1;3014:3;:7;;;;:::i;:::-;2994:27;;3035:15;3074:1;3053:3;:11;;:18;;;;:22;;;;:::i;:::-;3035:40;;3105:9;3094:7;:20;3090:228;;3134:24;3161:3;:11;;3173:7;3161:20;;;;;;;;:::i;:::-;;;;;;;;;;;;3134:47;;3225:13;3200:3;:11;;3212:9;3200:22;;;;;;;;:::i;:::-;;;;;;;;;;;;:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3294:9;3256:3;:15;;:35;3272:13;:18;;;3256:35;;;;;;;;;;;:47;;;;3116:202;3090:228;3332:3;:11;;:17;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3370:3;:15;;:22;3386:5;3370:22;;;;;;;;;;;3363:29;;;3414:4;3407:11;;;;;;;2966:463;3446:5;3439:12;;;2836:622;;;;;:::o;1165:664::-;1247:4;1263:11;1277:3;:15;;:29;1293:12;1277:29;;;;;;;;;;;;1263:43;;1327:1;1320:3;:8;1316:484;;1344:17;1370:1;1364:3;:7;;;;:::i;:::-;1344:27;;1385:15;1424:1;1403:3;:11;;:18;;;;:22;;;;:::i;:::-;1385:40;;1455:9;1444:7;:20;1440:242;;1484:31;1518:3;:11;;1530:7;1518:20;;;;;;;;:::i;:::-;;;;;;;;;;;;1484:54;;1582:13;1557:3;:11;;1569:9;1557:22;;;;;;;;:::i;:::-;;;;;;;;;;;;:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;;;;;;:::i;:::-;;;;;;;;;;;;;1658:9;1613:3;:15;;:42;1629:13;:25;;;1613:42;;;;;;;;;;;:54;;;;1466:216;1440:242;1696:3;:11;;:17;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;1734:3;:15;;:29;1750:12;1734:29;;;;;;;;;;;1727:36;;;1785:4;1778:11;;;;;;;1316:484;1817:5;1810:12;;;1165:664;;;;;:::o;446:104:1:-;504:7;534:1;530;:5;:13;;542:1;530:13;;;538:1;530:13;523:20;;446:104;;;;:::o;945:123:0:-;1050:1;1032:7;:14;;;:19;;;;;;;;;;;945:123;:::o;827:112::-;892:7;918;:14;;;911:21;;827:112;;;:::o;2157:300:3:-;2237:4;2258:20;2267:3;2272:5;2258:8;:20::i;:::-;2253:198;;2294:3;:11;;2311:3;2294:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2354:3;:11;;:18;;;;2329:3;:15;;:22;2345:5;2329:22;;;;;;;;;;;:43;;;;2393:4;2386:11;;;;2253:198;2435:5;2428:12;;2157:300;;;;;;:::o;381:349::-;489:4;510:27;519:3;524:12;510:8;:27::i;:::-;505:219;;553:3;:11;;570:10;553:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;627:3;:11;;:18;;;;595:3;:15;;:29;611:12;595:29;;;;;;;;;;;:50;;;;666:4;659:11;;;;505:219;708:5;701:12;;381:349;;;;;;:::o;2463:132::-;2538:4;2587:1;2561:3;:15;;:22;2577:5;2561:22;;;;;;;;;;;;:27;;2554:34;;2463:132;;;;:::o;1006:153::-;1095:4;1151:1;1118:3;:15;;:29;1134:12;1118:29;;;;;;;;;;;;:34;;1111:41;;1006:153;;;;:::o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;:::o;7:75:4:-;40:6;73:2;67:9;57:19;;7:75;:::o;88:117::-;197:1;194;187:12;211:117;320:1;317;310:12;334:77;371:7;400:5;389:16;;334:77;;;:::o;417:122::-;490:24;508:5;490:24;:::i;:::-;483:5;480:35;470:63;;529:1;526;519:12;470:63;417:122;:::o;545:139::-;591:5;629:6;616:20;607:29;;645:33;672:5;645:33;:::i;:::-;545:139;;;;:::o;690:474::-;758:6;766;815:2;803:9;794:7;790:23;786:32;783:119;;;821:79;;:::i;:::-;783:119;941:1;966:53;1011:7;1002:6;991:9;987:22;966:53;:::i;:::-;956:63;;912:117;1068:2;1094:53;1139:7;1130:6;1119:9;1115:22;1094:53;:::i;:::-;1084:63;;1039:118;690:474;;;;;:::o;1170:329::-;1229:6;1278:2;1266:9;1257:7;1253:23;1249:32;1246:119;;;1284:79;;:::i;:::-;1246:119;1404:1;1429:53;1474:7;1465:6;1454:9;1450:22;1429:53;:::i;:::-;1419:63;;1375:117;1170:329;;;;:::o;1505:114::-;1572:6;1606:5;1600:12;1590:22;;1505:114;;;:::o;1625:184::-;1724:11;1758:6;1753:3;1746:19;1798:4;1793:3;1789:14;1774:29;;1625:184;;;;:::o;1815:132::-;1882:4;1905:3;1897:11;;1935:4;1930:3;1926:14;1918:22;;1815:132;;;:::o;1953:108::-;2030:24;2048:5;2030:24;:::i;:::-;2025:3;2018:37;1953:108;;:::o;2067:179::-;2136:10;2157:46;2199:3;2191:6;2157:46;:::i;:::-;2235:4;2230:3;2226:14;2212:28;;2067:179;;;;:::o;2252:113::-;2322:4;2354;2349:3;2345:14;2337:22;;2252:113;;;:::o;2401:732::-;2520:3;2549:54;2597:5;2549:54;:::i;:::-;2619:86;2698:6;2693:3;2619:86;:::i;:::-;2612:93;;2729:56;2779:5;2729:56;:::i;:::-;2808:7;2839:1;2824:284;2849:6;2846:1;2843:13;2824:284;;;2925:6;2919:13;2952:63;3011:3;2996:13;2952:63;:::i;:::-;2945:70;;3038:60;3091:6;3038:60;:::i;:::-;3028:70;;2884:224;2871:1;2868;2864:9;2859:14;;2824:284;;;2828:14;3124:3;3117:10;;2525:608;;;2401:732;;;;:::o;3139:373::-;3282:4;3320:2;3309:9;3305:18;3297:26;;3369:9;3363:4;3359:20;3355:1;3344:9;3340:17;3333:47;3397:108;3500:4;3491:6;3397:108;:::i;:::-;3389:116;;3139:373;;;;:::o;3518:114::-;3585:6;3619:5;3613:12;3603:22;;3518:114;;;:::o;3638:184::-;3737:11;3771:6;3766:3;3759:19;3811:4;3806:3;3802:14;3787:29;;3638:184;;;;:::o;3828:132::-;3895:4;3918:3;3910:11;;3948:4;3943:3;3939:14;3931:22;;3828:132;;;:::o;3966:77::-;4003:7;4032:5;4021:16;;3966:77;;;:::o;4049:108::-;4126:24;4144:5;4126:24;:::i;:::-;4121:3;4114:37;4049:108;;:::o;4163:179::-;4232:10;4253:46;4295:3;4287:6;4253:46;:::i;:::-;4331:4;4326:3;4322:14;4308:28;;4163:179;;;;:::o;4348:113::-;4418:4;4450;4445:3;4441:14;4433:22;;4348:113;;;:::o;4497:732::-;4616:3;4645:54;4693:5;4645:54;:::i;:::-;4715:86;4794:6;4789:3;4715:86;:::i;:::-;4708:93;;4825:56;4875:5;4825:56;:::i;:::-;4904:7;4935:1;4920:284;4945:6;4942:1;4939:13;4920:284;;;5021:6;5015:13;5048:63;5107:3;5092:13;5048:63;:::i;:::-;5041:70;;5134:60;5187:6;5134:60;:::i;:::-;5124:70;;4980:224;4967:1;4964;4960:9;4955:14;;4920:284;;;4924:14;5220:3;5213:10;;4621:608;;;4497:732;;;;:::o;5235:113::-;5301:6;5335:5;5329:12;5319:22;;5235:113;;;:::o;5354:183::-;5452:11;5486:6;5481:3;5474:19;5526:4;5521:3;5517:14;5502:29;;5354:183;;;;:::o;5543:131::-;5609:4;5632:3;5624:11;;5662:4;5657:3;5653:14;5645:22;;5543:131;;;:::o;5680:93::-;5716:7;5756:10;5749:5;5745:22;5734:33;;5680:93;;;:::o;5779:105::-;5854:23;5871:5;5854:23;:::i;:::-;5849:3;5842:36;5779:105;;:::o;5890:175::-;5957:10;5978:44;6018:3;6010:6;5978:44;:::i;:::-;6054:4;6049:3;6045:14;6031:28;;5890:175;;;;:::o;6071:112::-;6140:4;6172;6167:3;6163:14;6155:22;;6071:112;;;:::o;6217:724::-;6334:3;6363:53;6410:5;6363:53;:::i;:::-;6432:85;6510:6;6505:3;6432:85;:::i;:::-;6425:92;;6541:55;6590:5;6541:55;:::i;:::-;6619:7;6650:1;6635:281;6660:6;6657:1;6654:13;6635:281;;;6736:6;6730:13;6763:61;6820:3;6805:13;6763:61;:::i;:::-;6756:68;;6847:59;6899:6;6847:59;:::i;:::-;6837:69;;6695:221;6682:1;6679;6675:9;6670:14;;6635:281;;;6639:14;6932:3;6925:10;;6339:602;;;6217:724;;;;:::o;6947:111::-;7011:6;7045:5;7039:12;7029:22;;6947:111;;;:::o;7064:181::-;7160:11;7194:6;7189:3;7182:19;7234:4;7229:3;7225:14;7210:29;;7064:181;;;;:::o;7251:129::-;7315:4;7338:3;7330:11;;7368:4;7363:3;7359:14;7351:22;;7251:129;;;:::o;7386:90::-;7420:7;7463:5;7456:13;7449:21;7438:32;;7386:90;;;:::o;7482:99::-;7553:21;7568:5;7553:21;:::i;:::-;7548:3;7541:34;7482:99;;:::o;7587:167::-;7650:10;7671:40;7707:3;7699:6;7671:40;:::i;:::-;7743:4;7738:3;7734:14;7720:28;;7587:167;;;;:::o;7760:110::-;7827:4;7859;7854:3;7850:14;7842:22;;7760:110;;;:::o;7900:708::-;8013:3;8042:51;8087:5;8042:51;:::i;:::-;8109:83;8185:6;8180:3;8109:83;:::i;:::-;8102:90;;8216:53;8263:5;8216:53;:::i;:::-;8292:7;8323:1;8308:275;8333:6;8330:1;8327:13;8308:275;;;8409:6;8403:13;8436:57;8489:3;8474:13;8436:57;:::i;:::-;8429:64;;8516:57;8566:6;8516:57;:::i;:::-;8506:67;;8368:215;8355:1;8352;8348:9;8343:14;;8308:275;;;8312:14;8599:3;8592:10;;8018:590;;;7900:708;;;;:::o;8614:1923::-;9215:4;9253:3;9242:9;9238:19;9230:27;;9303:9;9297:4;9293:20;9289:1;9278:9;9274:17;9267:47;9331:108;9434:4;9425:6;9331:108;:::i;:::-;9323:116;;9486:9;9480:4;9476:20;9471:2;9460:9;9456:18;9449:48;9514:108;9617:4;9608:6;9514:108;:::i;:::-;9506:116;;9669:9;9663:4;9659:20;9654:2;9643:9;9639:18;9632:48;9697:108;9800:4;9791:6;9697:108;:::i;:::-;9689:116;;9852:9;9846:4;9842:20;9837:2;9826:9;9822:18;9815:48;9880:108;9983:4;9974:6;9880:108;:::i;:::-;9872:116;;10036:9;10030:4;10026:20;10020:3;10009:9;10005:19;9998:49;10064:106;10165:4;10156:6;10064:106;:::i;:::-;10056:114;;10218:9;10212:4;10208:20;10202:3;10191:9;10187:19;10180:49;10246:106;10347:4;10338:6;10246:106;:::i;:::-;10238:114;;10400:9;10394:4;10390:20;10384:3;10373:9;10369:19;10362:49;10428:102;10525:4;10516:6;10428:102;:::i;:::-;10420:110;;8614:1923;;;;;;;;;;:::o;10543:118::-;10630:24;10648:5;10630:24;:::i;:::-;10625:3;10618:37;10543:118;;:::o;10667:126::-;10704:7;10744:42;10737:5;10733:54;10722:65;;10667:126;;;:::o;10799:96::-;10836:7;10865:24;10883:5;10865:24;:::i;:::-;10854:35;;10799:96;;;:::o;10901:118::-;10988:24;11006:5;10988:24;:::i;:::-;10983:3;10976:37;10901:118;;:::o;11025:99::-;11077:6;11111:5;11105:12;11095:22;;11025:99;;;:::o;11130:169::-;11214:11;11248:6;11243:3;11236:19;11288:4;11283:3;11279:14;11264:29;;11130:169;;;;:::o;11305:307::-;11373:1;11383:113;11397:6;11394:1;11391:13;11383:113;;;11482:1;11477:3;11473:11;11467:18;11463:1;11458:3;11454:11;11447:39;11419:2;11416:1;11412:10;11407:15;;11383:113;;;11514:6;11511:1;11508:13;11505:101;;;11594:1;11585:6;11580:3;11576:16;11569:27;11505:101;11354:258;11305:307;;;:::o;11618:102::-;11659:6;11710:2;11706:7;11701:2;11694:5;11690:14;11686:28;11676:38;;11618:102;;;:::o;11726:364::-;11814:3;11842:39;11875:5;11842:39;:::i;:::-;11897:71;11961:6;11956:3;11897:71;:::i;:::-;11890:78;;11977:52;12022:6;12017:3;12010:4;12003:5;11999:16;11977:52;:::i;:::-;12054:29;12076:6;12054:29;:::i;:::-;12049:3;12045:39;12038:46;;11818:272;11726:364;;;;:::o;12096:1048::-;12389:4;12427:3;12416:9;12412:19;12404:27;;12441:71;12509:1;12498:9;12494:17;12485:6;12441:71;:::i;:::-;12522:72;12590:2;12579:9;12575:18;12566:6;12522:72;:::i;:::-;12641:9;12635:4;12631:20;12626:2;12615:9;12611:18;12604:48;12669:78;12742:4;12733:6;12669:78;:::i;:::-;12661:86;;12794:9;12788:4;12784:20;12779:2;12768:9;12764:18;12757:48;12822:78;12895:4;12886:6;12822:78;:::i;:::-;12814:86;;12948:9;12942:4;12938:20;12932:3;12921:9;12917:19;12910:49;12976:78;13049:4;13040:6;12976:78;:::i;:::-;12968:86;;13064:73;13132:3;13121:9;13117:19;13108:6;13064:73;:::i;:::-;12096:1048;;;;;;;;;:::o;13150:114::-;13217:6;13251:5;13245:12;13235:22;;13150:114;;;:::o;13270:184::-;13369:11;13403:6;13398:3;13391:19;13443:4;13438:3;13434:14;13419:29;;13270:184;;;;:::o;13460:132::-;13527:4;13550:3;13542:11;;13580:4;13575:3;13571:14;13563:22;;13460:132;;;:::o;13598:108::-;13675:24;13693:5;13675:24;:::i;:::-;13670:3;13663:37;13598:108;;:::o;13712:179::-;13781:10;13802:46;13844:3;13836:6;13802:46;:::i;:::-;13880:4;13875:3;13871:14;13857:28;;13712:179;;;;:::o;13897:113::-;13967:4;13999;13994:3;13990:14;13982:22;;13897:113;;;:::o;14046:732::-;14165:3;14194:54;14242:5;14194:54;:::i;:::-;14264:86;14343:6;14338:3;14264:86;:::i;:::-;14257:93;;14374:56;14424:5;14374:56;:::i;:::-;14453:7;14484:1;14469:284;14494:6;14491:1;14488:13;14469:284;;;14570:6;14564:13;14597:63;14656:3;14641:13;14597:63;:::i;:::-;14590:70;;14683:60;14736:6;14683:60;:::i;:::-;14673:70;;14529:224;14516:1;14513;14509:9;14504:14;;14469:284;;;14473:14;14769:3;14762:10;;14170:608;;;14046:732;;;;:::o;14784:124::-;14861:6;14895:5;14889:12;14879:22;;14784:124;;;:::o;14914:194::-;15023:11;15057:6;15052:3;15045:19;15097:4;15092:3;15088:14;15073:29;;14914:194;;;;:::o;15114:142::-;15191:4;15214:3;15206:11;;15244:4;15239:3;15235:14;15227:22;;15114:142;;;:::o;15262:159::-;15336:11;15370:6;15365:3;15358:19;15410:4;15405:3;15401:14;15386:29;;15262:159;;;;:::o;15427:344::-;15505:3;15533:39;15566:5;15533:39;:::i;:::-;15588:61;15642:6;15637:3;15588:61;:::i;:::-;15581:68;;15658:52;15703:6;15698:3;15691:4;15684:5;15680:16;15658:52;:::i;:::-;15735:29;15757:6;15735:29;:::i;:::-;15730:3;15726:39;15719:46;;15509:262;15427:344;;;;:::o;15777:196::-;15866:10;15901:66;15963:3;15955:6;15901:66;:::i;:::-;15887:80;;15777:196;;;;:::o;15979:123::-;16059:4;16091;16086:3;16082:14;16074:22;;15979:123;;;:::o;16136:991::-;16275:3;16304:64;16362:5;16304:64;:::i;:::-;16384:96;16473:6;16468:3;16384:96;:::i;:::-;16377:103;;16506:3;16551:4;16543:6;16539:17;16534:3;16530:27;16581:66;16641:5;16581:66;:::i;:::-;16670:7;16701:1;16686:396;16711:6;16708:1;16705:13;16686:396;;;16782:9;16776:4;16772:20;16767:3;16760:33;16833:6;16827:13;16861:84;16940:4;16925:13;16861:84;:::i;:::-;16853:92;;16968:70;17031:6;16968:70;:::i;:::-;16958:80;;17067:4;17062:3;17058:14;17051:21;;16746:336;16733:1;16730;16726:9;16721:14;;16686:396;;;16690:14;17098:4;17091:11;;17118:3;17111:10;;16280:847;;;;;16136:991;;;;:::o;17133:1801::-;17726:4;17764:3;17753:9;17749:19;17741:27;;17814:9;17808:4;17804:20;17800:1;17789:9;17785:17;17778:47;17842:108;17945:4;17936:6;17842:108;:::i;:::-;17834:116;;17997:9;17991:4;17987:20;17982:2;17971:9;17967:18;17960:48;18025:108;18128:4;18119:6;18025:108;:::i;:::-;18017:116;;18180:9;18174:4;18170:20;18165:2;18154:9;18150:18;18143:48;18208:128;18331:4;18322:6;18208:128;:::i;:::-;18200:136;;18383:9;18377:4;18373:20;18368:2;18357:9;18353:18;18346:48;18411:128;18534:4;18525:6;18411:128;:::i;:::-;18403:136;;18587:9;18581:4;18577:20;18571:3;18560:9;18556:19;18549:49;18615:128;18738:4;18729:6;18615:128;:::i;:::-;18607:136;;18791:9;18785:4;18781:20;18775:3;18764:9;18760:19;18753:49;18819:108;18922:4;18913:6;18819:108;:::i;:::-;18811:116;;17133:1801;;;;;;;;;:::o;18940:122::-;19013:24;19031:5;19013:24;:::i;:::-;19006:5;19003:35;18993:63;;19052:1;19049;19042:12;18993:63;18940:122;:::o;19068:139::-;19114:5;19152:6;19139:20;19130:29;;19168:33;19195:5;19168:33;:::i;:::-;19068:139;;;;:::o;19213:329::-;19272:6;19321:2;19309:9;19300:7;19296:23;19292:32;19289:119;;;19327:79;;:::i;:::-;19289:119;19447:1;19472:53;19517:7;19508:6;19497:9;19493:22;19472:53;:::i;:::-;19462:63;;19418:117;19213:329;;;;:::o;19548:122::-;19621:24;19639:5;19621:24;:::i;:::-;19614:5;19611:35;19601:63;;19660:1;19657;19650:12;19601:63;19548:122;:::o;19676:139::-;19722:5;19760:6;19747:20;19738:29;;19776:33;19803:5;19776:33;:::i;:::-;19676:139;;;;:::o;19821:120::-;19893:23;19910:5;19893:23;:::i;:::-;19886:5;19883:34;19873:62;;19931:1;19928;19921:12;19873:62;19821:120;:::o;19947:137::-;19992:5;20030:6;20017:20;20008:29;;20046:32;20072:5;20046:32;:::i;:::-;19947:137;;;;:::o;20090:907::-;20183:6;20191;20199;20207;20215;20264:3;20252:9;20243:7;20239:23;20235:33;20232:120;;;20271:79;;:::i;:::-;20232:120;20391:1;20416:53;20461:7;20452:6;20441:9;20437:22;20416:53;:::i;:::-;20406:63;;20362:117;20518:2;20544:53;20589:7;20580:6;20569:9;20565:22;20544:53;:::i;:::-;20534:63;;20489:118;20646:2;20672:53;20717:7;20708:6;20697:9;20693:22;20672:53;:::i;:::-;20662:63;;20617:118;20774:2;20800:52;20844:7;20835:6;20824:9;20820:22;20800:52;:::i;:::-;20790:62;;20745:117;20901:3;20928:52;20972:7;20963:6;20952:9;20948:22;20928:52;:::i;:::-;20918:62;;20872:118;20090:907;;;;;;;;:::o;21003:222::-;21096:4;21134:2;21123:9;21119:18;21111:26;;21147:71;21215:1;21204:9;21200:17;21191:6;21147:71;:::i;:::-;21003:222;;;;:::o;21231:1661::-;21754:4;21792:3;21781:9;21777:19;21769:27;;21842:9;21836:4;21832:20;21828:1;21817:9;21813:17;21806:47;21870:108;21973:4;21964:6;21870:108;:::i;:::-;21862:116;;22025:9;22019:4;22015:20;22010:2;21999:9;21995:18;21988:48;22053:108;22156:4;22147:6;22053:108;:::i;:::-;22045:116;;22208:9;22202:4;22198:20;22193:2;22182:9;22178:18;22171:48;22236:108;22339:4;22330:6;22236:108;:::i;:::-;22228:116;;22391:9;22385:4;22381:20;22376:2;22365:9;22361:18;22354:48;22419:106;22520:4;22511:6;22419:106;:::i;:::-;22411:114;;22573:9;22567:4;22563:20;22557:3;22546:9;22542:19;22535:49;22601:106;22702:4;22693:6;22601:106;:::i;:::-;22593:114;;22755:9;22749:4;22745:20;22739:3;22728:9;22724:19;22717:49;22783:102;22880:4;22871:6;22783:102;:::i;:::-;22775:110;;21231:1661;;;;;;;;;:::o;22898:117::-;23007:1;23004;22997:12;23021:117;23130:1;23127;23120:12;23144:180;23192:77;23189:1;23182:88;23289:4;23286:1;23279:15;23313:4;23310:1;23303:15;23330:281;23413:27;23435:4;23413:27;:::i;:::-;23405:6;23401:40;23543:6;23531:10;23528:22;23507:18;23495:10;23492:34;23489:62;23486:88;;;23554:18;;:::i;:::-;23486:88;23594:10;23590:2;23583:22;23373:238;23330:281;;:::o;23617:129::-;23651:6;23678:20;;:::i;:::-;23668:30;;23707:33;23735:4;23727:6;23707:33;:::i;:::-;23617:129;;;:::o;23752:308::-;23814:4;23904:18;23896:6;23893:30;23890:56;;;23926:18;;:::i;:::-;23890:56;23964:29;23986:6;23964:29;:::i;:::-;23956:37;;24048:4;24042;24038:15;24030:23;;23752:308;;;:::o;24066:154::-;24150:6;24145:3;24140;24127:30;24212:1;24203:6;24198:3;24194:16;24187:27;24066:154;;;:::o;24226:412::-;24304:5;24329:66;24345:49;24387:6;24345:49;:::i;:::-;24329:66;:::i;:::-;24320:75;;24418:6;24411:5;24404:21;24456:4;24449:5;24445:16;24494:3;24485:6;24480:3;24476:16;24473:25;24470:112;;;24501:79;;:::i;:::-;24470:112;24591:41;24625:6;24620:3;24615;24591:41;:::i;:::-;24310:328;24226:412;;;;;:::o;24658:340::-;24714:5;24763:3;24756:4;24748:6;24744:17;24740:27;24730:122;;24771:79;;:::i;:::-;24730:122;24888:6;24875:20;24913:79;24988:3;24980:6;24973:4;24965:6;24961:17;24913:79;:::i;:::-;24904:88;;24720:278;24658:340;;;;:::o;25004:1305::-;25120:6;25128;25136;25144;25193:3;25181:9;25172:7;25168:23;25164:33;25161:120;;;25200:79;;:::i;:::-;25161:120;25348:1;25337:9;25333:17;25320:31;25378:18;25370:6;25367:30;25364:117;;;25400:79;;:::i;:::-;25364:117;25505:63;25560:7;25551:6;25540:9;25536:22;25505:63;:::i;:::-;25495:73;;25291:287;25645:2;25634:9;25630:18;25617:32;25676:18;25668:6;25665:30;25662:117;;;25698:79;;:::i;:::-;25662:117;25803:63;25858:7;25849:6;25838:9;25834:22;25803:63;:::i;:::-;25793:73;;25588:288;25943:2;25932:9;25928:18;25915:32;25974:18;25966:6;25963:30;25960:117;;;25996:79;;:::i;:::-;25960:117;26101:63;26156:7;26147:6;26136:9;26132:22;26101:63;:::i;:::-;26091:73;;25886:288;26213:2;26239:53;26284:7;26275:6;26264:9;26260:22;26239:53;:::i;:::-;26229:63;;26184:118;25004:1305;;;;;;;:::o;26315:290::-;26455:34;26451:1;26443:6;26439:14;26432:58;26524:34;26519:2;26511:6;26507:15;26500:59;26593:4;26588:2;26580:6;26576:15;26569:29;26315:290;:::o;26611:366::-;26753:3;26774:67;26838:2;26833:3;26774:67;:::i;:::-;26767:74;;26850:93;26939:3;26850:93;:::i;:::-;26968:2;26963:3;26959:12;26952:19;;26611:366;;;:::o;26983:419::-;27149:4;27187:2;27176:9;27172:18;27164:26;;27236:9;27230:4;27226:20;27222:1;27211:9;27207:17;27200:47;27264:131;27390:4;27264:131;:::i;:::-;27256:139;;26983:419;;;:::o;27408:224::-;27548:34;27544:1;27536:6;27532:14;27525:58;27617:7;27612:2;27604:6;27600:15;27593:32;27408:224;:::o;27638:366::-;27780:3;27801:67;27865:2;27860:3;27801:67;:::i;:::-;27794:74;;27877:93;27966:3;27877:93;:::i;:::-;27995:2;27990:3;27986:12;27979:19;;27638:366;;;:::o;28010:419::-;28176:4;28214:2;28203:9;28199:18;28191:26;;28263:9;28257:4;28253:20;28249:1;28238:9;28234:17;28227:47;28291:131;28417:4;28291:131;:::i;:::-;28283:139;;28010:419;;;:::o;28435:180::-;28483:77;28480:1;28473:88;28580:4;28577:1;28570:15;28604:4;28601:1;28594:15;28621:169;28659:3;28682:23;28699:5;28682:23;:::i;:::-;28673:32;;28727:4;28720:5;28717:15;28714:41;;;28735:18;;:::i;:::-;28714:41;28782:1;28775:5;28771:13;28764:20;;28621:169;;;:::o;28796:147::-;28897:11;28934:3;28919:18;;28796:147;;;;:::o;28949:114::-;;:::o;29069:398::-;29228:3;29249:83;29330:1;29325:3;29249:83;:::i;:::-;29242:90;;29341:93;29430:3;29341:93;:::i;:::-;29459:1;29454:3;29450:11;29443:18;;29069:398;;;:::o;29473:379::-;29657:3;29679:147;29822:3;29679:147;:::i;:::-;29672:154;;29843:3;29836:10;;29473:379;;;:::o;29858:179::-;29998:31;29994:1;29986:6;29982:14;29975:55;29858:179;:::o;30043:366::-;30185:3;30206:67;30270:2;30265:3;30206:67;:::i;:::-;30199:74;;30282:93;30371:3;30282:93;:::i;:::-;30400:2;30395:3;30391:12;30384:19;;30043:366;;;:::o;30415:419::-;30581:4;30619:2;30608:9;30604:18;30596:26;;30668:9;30662:4;30658:20;30654:1;30643:9;30639:17;30632:47;30696:131;30822:4;30696:131;:::i;:::-;30688:139;;30415:419;;;:::o;30840:180::-;30888:77;30885:1;30878:88;30985:4;30982:1;30975:15;31009:4;31006:1;30999:15;31026:233;31065:3;31088:24;31106:5;31088:24;:::i;:::-;31079:33;;31134:66;31127:5;31124:77;31121:103;;;31204:18;;:::i;:::-;31121:103;31251:1;31244:5;31240:13;31233:20;;31026:233;;;:::o;31265:293::-;31405:34;31401:1;31393:6;31389:14;31382:58;31474:34;31469:2;31461:6;31457:15;31450:59;31543:7;31538:2;31530:6;31526:15;31519:32;31265:293;:::o;31564:366::-;31706:3;31727:67;31791:2;31786:3;31727:67;:::i;:::-;31720:74;;31803:93;31892:3;31803:93;:::i;:::-;31921:2;31916:3;31912:12;31905:19;;31564:366;;;:::o;31936:419::-;32102:4;32140:2;32129:9;32125:18;32117:26;;32189:9;32183:4;32179:20;32175:1;32164:9;32160:17;32153:47;32217:131;32343:4;32217:131;:::i;:::-;32209:139;;31936:419;;;:::o;32361:230::-;32501:34;32497:1;32489:6;32485:14;32478:58;32570:13;32565:2;32557:6;32553:15;32546:38;32361:230;:::o;32597:366::-;32739:3;32760:67;32824:2;32819:3;32760:67;:::i;:::-;32753:74;;32836:93;32925:3;32836:93;:::i;:::-;32954:2;32949:3;32945:12;32938:19;;32597:366;;;:::o;32969:419::-;33135:4;33173:2;33162:9;33158:18;33150:26;;33222:9;33216:4;33212:20;33208:1;33197:9;33193:17;33186:47;33250:131;33376:4;33250:131;:::i;:::-;33242:139;;32969:419;;;:::o;33394:246::-;33433:3;33452:19;33469:1;33452:19;:::i;:::-;33447:24;;33485:19;33502:1;33485:19;:::i;:::-;33480:24;;33582:1;33570:10;33566:18;33563:1;33560:25;33557:51;;;33588:18;;:::i;:::-;33557:51;33632:1;33629;33625:9;33618:16;;33394:246;;;;:::o;33646:290::-;33786:34;33782:1;33774:6;33770:14;33763:58;33855:34;33850:2;33842:6;33838:15;33831:59;33924:4;33919:2;33911:6;33907:15;33900:29;33646:290;:::o;33942:366::-;34084:3;34105:67;34169:2;34164:3;34105:67;:::i;:::-;34098:74;;34181:93;34270:3;34181:93;:::i;:::-;34299:2;34294:3;34290:12;34283:19;;33942:366;;;:::o;34314:419::-;34480:4;34518:2;34507:9;34503:18;34495:26;;34567:9;34561:4;34557:20;34553:1;34542:9;34538:17;34531:47;34595:131;34721:4;34595:131;:::i;:::-;34587:139;;34314:419;;;:::o;34739:225::-;34879:34;34875:1;34867:6;34863:14;34856:58;34948:8;34943:2;34935:6;34931:15;34924:33;34739:225;:::o;34970:366::-;35112:3;35133:67;35197:2;35192:3;35133:67;:::i;:::-;35126:74;;35209:93;35298:3;35209:93;:::i;:::-;35327:2;35322:3;35318:12;35311:19;;34970:366;;;:::o;35342:419::-;35508:4;35546:2;35535:9;35531:18;35523:26;;35595:9;35589:4;35585:20;35581:1;35570:9;35566:17;35559:47;35623:131;35749:4;35623:131;:::i;:::-;35615:139;;35342:419;;;:::o;35767:175::-;35805:3;35828:23;35845:5;35828:23;:::i;:::-;35819:32;;35873:10;35866:5;35863:21;35860:47;;;35887:18;;:::i;:::-;35860:47;35934:1;35927:5;35923:13;35916:20;;35767:175;;;:::o;35948:220::-;36088:34;36084:1;36076:6;36072:14;36065:58;36157:3;36152:2;36144:6;36140:15;36133:28;35948:220;:::o;36174:366::-;36316:3;36337:67;36401:2;36396:3;36337:67;:::i;:::-;36330:74;;36413:93;36502:3;36413:93;:::i;:::-;36531:2;36526:3;36522:12;36515:19;;36174:366;;;:::o;36546:419::-;36712:4;36750:2;36739:9;36735:18;36727:26;;36799:9;36793:4;36789:20;36785:1;36774:9;36770:17;36763:47;36827:131;36953:4;36827:131;:::i;:::-;36819:139;;36546:419;;;:::o;36971:180::-;37019:77;37016:1;37009:88;37116:4;37113:1;37106:15;37140:4;37137:1;37130:15;37157:320;37201:6;37238:1;37232:4;37228:12;37218:22;;37285:1;37279:4;37275:12;37306:18;37296:81;;37362:4;37354:6;37350:17;37340:27;;37296:81;37424:2;37416:6;37413:14;37393:18;37390:38;37387:84;;;37443:18;;:::i;:::-;37387:84;37208:269;37157:320;;;:::o;37483:244::-;37623:34;37619:1;37611:6;37607:14;37600:58;37692:27;37687:2;37679:6;37675:15;37668:52;37483:244;:::o;37733:366::-;37875:3;37896:67;37960:2;37955:3;37896:67;:::i;:::-;37889:74;;37972:93;38061:3;37972:93;:::i;:::-;38090:2;38085:3;38081:12;38074:19;;37733:366;;;:::o;38105:419::-;38271:4;38309:2;38298:9;38294:18;38286:26;;38358:9;38352:4;38348:20;38344:1;38333:9;38329:17;38322:47;38386:131;38512:4;38386:131;:::i;:::-;38378:139;;38105:419;;;:::o;38530:305::-;38570:3;38589:20;38607:1;38589:20;:::i;:::-;38584:25;;38623:20;38641:1;38623:20;:::i;:::-;38618:25;;38777:1;38709:66;38705:74;38702:1;38699:81;38696:107;;;38783:18;;:::i;:::-;38696:107;38827:1;38824;38820:9;38813:16;;38530:305;;;;:::o;38841:239::-;38981:34;38977:1;38969:6;38965:14;38958:58;39050:22;39045:2;39037:6;39033:15;39026:47;38841:239;:::o;39086:366::-;39228:3;39249:67;39313:2;39308:3;39249:67;:::i;:::-;39242:74;;39325:93;39414:3;39325:93;:::i;:::-;39443:2;39438:3;39434:12;39427:19;;39086:366;;;:::o;39458:419::-;39624:4;39662:2;39651:9;39647:18;39639:26;;39711:9;39705:4;39701:20;39697:1;39686:9;39682:17;39675:47;39739:131;39865:4;39739:131;:::i;:::-;39731:139;;39458:419;;;:::o;39883:231::-;40023:34;40019:1;40011:6;40007:14;40000:58;40092:14;40087:2;40079:6;40075:15;40068:39;39883:231;:::o;40120:366::-;40262:3;40283:67;40347:2;40342:3;40283:67;:::i;:::-;40276:74;;40359:93;40448:3;40359:93;:::i;:::-;40477:2;40472:3;40468:12;40461:19;;40120:366;;;:::o;40492:419::-;40658:4;40696:2;40685:9;40681:18;40673:26;;40745:9;40739:4;40735:20;40731:1;40720:9;40716:17;40709:47;40773:131;40899:4;40773:131;:::i;:::-;40765:139;;40492:419;;;:::o;40917:298::-;41057:34;41053:1;41045:6;41041:14;41034:58;41126:34;41121:2;41113:6;41109:15;41102:59;41195:12;41190:2;41182:6;41178:15;41171:37;40917:298;:::o;41221:366::-;41363:3;41384:67;41448:2;41443:3;41384:67;:::i;:::-;41377:74;;41460:93;41549:3;41460:93;:::i;:::-;41578:2;41573:3;41569:12;41562:19;;41221:366;;;:::o;41593:419::-;41759:4;41797:2;41786:9;41782:18;41774:26;;41846:9;41840:4;41836:20;41832:1;41821:9;41817:17;41810:47;41874:131;42000:4;41874:131;:::i;:::-;41866:139;;41593:419;;;:::o;42018:180::-;42066:77;42063:1;42056:88;42163:4;42160:1;42153:15;42187:4;42184:1;42177:15;42204:185;42244:1;42261:20;42279:1;42261:20;:::i;:::-;42256:25;;42295:20;42313:1;42295:20;:::i;:::-;42290:25;;42334:1;42324:35;;42339:18;;:::i;:::-;42324:35;42381:1;42378;42374:9;42369:14;;42204:185;;;;:::o;42395:191::-;42435:4;42455:20;42473:1;42455:20;:::i;:::-;42450:25;;42489:20;42507:1;42489:20;:::i;:::-;42484:25;;42528:1;42525;42522:8;42519:34;;;42533:18;;:::i;:::-;42519:34;42578:1;42575;42571:9;42563:17;;42395:191;;;;:::o;42592:315::-;42732:34;42728:1;42720:6;42716:14;42709:58;42801:34;42796:2;42788:6;42784:15;42777:59;42870:29;42865:2;42857:6;42853:15;42846:54;42592:315;:::o;42913:366::-;43055:3;43076:67;43140:2;43135:3;43076:67;:::i;:::-;43069:74;;43152:93;43241:3;43152:93;:::i;:::-;43270:2;43265:3;43261:12;43254:19;;42913:366;;;:::o;43285:419::-;43451:4;43489:2;43478:9;43474:18;43466:26;;43538:9;43532:4;43528:20;43524:1;43513:9;43509:17;43502:47;43566:131;43692:4;43566:131;:::i;:::-;43558:139;;43285:419;;;:::o;43710:188::-;43749:4;43769:19;43786:1;43769:19;:::i;:::-;43764:24;;43802:19;43819:1;43802:19;:::i;:::-;43797:24;;43840:1;43837;43834:8;43831:34;;;43845:18;;:::i;:::-;43831:34;43890:1;43887;43883:9;43875:17;;43710:188;;;;:::o;43904:365::-;44044:34;44040:1;44032:6;44028:14;44021:58;44113:34;44108:2;44100:6;44096:15;44089:59;44182:34;44177:2;44169:6;44165:15;44158:59;44251:10;44246:2;44238:6;44234:15;44227:35;43904:365;:::o;44275:368::-;44417:3;44438:68;44502:3;44497;44438:68;:::i;:::-;44431:75;;44515:93;44604:3;44515:93;:::i;:::-;44633:3;44628;44624:13;44617:20;;44275:368;;;:::o;44649:419::-;44815:4;44853:2;44842:9;44838:18;44830:26;;44902:9;44896:4;44892:20;44888:1;44877:9;44873:17;44866:47;44930:131;45056:4;44930:131;:::i;:::-;44922:139;;44649:419;;;:::o;45074:305::-;45214:34;45210:1;45202:6;45198:14;45191:58;45283:34;45278:2;45270:6;45266:15;45259:59;45352:19;45347:2;45339:6;45335:15;45328:44;45074:305;:::o;45385:366::-;45527:3;45548:67;45612:2;45607:3;45548:67;:::i;:::-;45541:74;;45624:93;45713:3;45624:93;:::i;:::-;45742:2;45737:3;45733:12;45726:19;;45385:366;;;:::o;45757:419::-;45923:4;45961:2;45950:9;45946:18;45938:26;;46010:9;46004:4;46000:20;45996:1;45985:9;45981:17;45974:47;46038:131;46164:4;46038:131;:::i;:::-;46030:139;;45757:419;;;:::o;46182:251::-;46322:34;46318:1;46310:6;46306:14;46299:58;46391:34;46386:2;46378:6;46374:15;46367:59;46182:251;:::o;46439:366::-;46581:3;46602:67;46666:2;46661:3;46602:67;:::i;:::-;46595:74;;46678:93;46767:3;46678:93;:::i;:::-;46796:2;46791:3;46787:12;46780:19;;46439:366;;;:::o;46811:419::-;46977:4;47015:2;47004:9;47000:18;46992:26;;47064:9;47058:4;47054:20;47050:1;47039:9;47035:17;47028:47;47092:131;47218:4;47092:131;:::i;:::-;47084:139;;46811:419;;;:::o;47236:177::-;47376:29;47372:1;47364:6;47360:14;47353:53;47236:177;:::o;47419:366::-;47561:3;47582:67;47646:2;47641:3;47582:67;:::i;:::-;47575:74;;47658:93;47747:3;47658:93;:::i;:::-;47776:2;47771:3;47767:12;47760:19;;47419:366;;;:::o;47791:419::-;47957:4;47995:2;47984:9;47980:18;47972:26;;48044:9;48038:4;48034:20;48030:1;48019:9;48015:17;48008:47;48072:131;48198:4;48072:131;:::i;:::-;48064:139;;47791:419;;;:::o;48216:364::-;48356:34;48352:1;48344:6;48340:14;48333:58;48425:34;48420:2;48412:6;48408:15;48401:59;48494:34;48489:2;48481:6;48477:15;48470:59;48563:9;48558:2;48550:6;48546:15;48539:34;48216:364;:::o;48586:368::-;48728:3;48749:68;48813:3;48808;48749:68;:::i;:::-;48742:75;;48826:93;48915:3;48826:93;:::i;:::-;48944:3;48939;48935:13;48928:20;;48586:368;;;:::o;48960:419::-;49126:4;49164:2;49153:9;49149:18;49141:26;;49213:9;49207:4;49203:20;49199:1;49188:9;49184:17;49177:47;49241:131;49367:4;49241:131;:::i;:::-;49233:139;;48960:419;;;:::o;49385:223::-;49525:34;49521:1;49513:6;49509:14;49502:58;49594:6;49589:2;49581:6;49577:15;49570:31;49385:223;:::o;49614:366::-;49756:3;49777:67;49841:2;49836:3;49777:67;:::i;:::-;49770:74;;49853:93;49942:3;49853:93;:::i;:::-;49971:2;49966:3;49962:12;49955:19;;49614:366;;;:::o;49986:419::-;50152:4;50190:2;50179:9;50175:18;50167:26;;50239:9;50233:4;50229:20;50225:1;50214:9;50210:17;50203:47;50267:131;50393:4;50267:131;:::i;:::-;50259:139;;49986:419;;;:::o;50411:179::-;50551:31;50547:1;50539:6;50535:14;50528:55;50411:179;:::o;50596:366::-;50738:3;50759:67;50823:2;50818:3;50759:67;:::i;:::-;50752:74;;50835:93;50924:3;50835:93;:::i;:::-;50953:2;50948:3;50944:12;50937:19;;50596:366;;;:::o;50968:419::-;51134:4;51172:2;51161:9;51157:18;51149:26;;51221:9;51215:4;51211:20;51207:1;51196:9;51192:17;51185:47;51249:131;51375:4;51249:131;:::i;:::-;51241:139;;50968:419;;;:::o;51393:180::-;51441:77;51438:1;51431:88;51538:4;51535:1;51528:15;51562:4;51559:1;51552:15", "source": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Counters.sol\";\nimport \"@openzeppelin/contracts/utils/math/Math.sol\";\nimport \"./AdNetworkSet.sol\";\n\ncontract AdNetwork {\n uint constant MAX_CREATABLE_AD_COUNT = 10;\n uint constant MAX_CREATABLE_INVENTORY_COUNT = 10;\n uint constant MAX_DELIVERABLE_AD_COUNT = 10;\n /// @dev Delivery time must be at least 1 hour.\n uint constant MIN_DELIVERY_TIME = 60 * 60;\n /// @dev Since there is a high possibility that the screening will not be completed in time,\n /// it is necessary to allow at least 12 hours before the distribution starts.\n uint constant MIN_TIME_REQUIRED_TO_START_DELIVERY = 60 * 60 * 12;\n uint constant MAX_CACHE_BACK_GAS_FEE = 10 wei;\n\n using Counters for Counters.Counter;\n using AdNetworkSet for AdNetworkSet.InventorySet;\n using AdNetworkSet for AdNetworkSet.AdSet;\n using Math for uint256;\n\n Counters.Counter private _inventoryIds;\n AdNetworkSet.InventorySet private _inventories;\n Counters.Counter private _adIds;\n AdNetworkSet.AdSet private _ads;\n\n mapping(uint256 => uint256) private _requestApproval;\n mapping(uint256 => uint256) private _adToInventory;\n mapping(uint256 => uint256) private _waitAdToInventory;\n mapping(address => uint32) private _ownerAdCount;\n mapping(address => uint32) private _ownerInventoryCount;\n mapping(uint256 => uint32) private _inventoryAdCount;\n mapping(uint256 => uint32) private _inventoryWaitAdCount;\n\n event AdReviewRequestSent(uint256 indexed inventoryId, bytes32 requestHash, bytes32 adHash);\n event AdCreated(uint256 indexed inventoryId, uint256 adId);\n event AdApproved(uint256 indexed adId, uint256 inventoryId);\n event AdRejected(uint256 indexed adId, uint256 inventoryId);\n event InventoryCreated(uint256 inventoryId);\n\n constructor() {\n }\n\n function createAdInventory(string memory name, string memory uri, string memory publicKey, uint256 floorPrice) external returns (uint256) {\n require(\n _ownerInventoryCount[msg.sender] < MAX_CREATABLE_INVENTORY_COUNT,\n \"You have reached the maximum number of inventory you can create. You need to remove unwanted inventory.\");\n _inventoryIds.increment();\n uint256 inventoryId = _inventoryIds.current();\n\n AdNetworkSet.Inventory memory inventory = AdNetworkSet.Inventory(inventoryId, payable(msg.sender), name, uri, publicKey, floorPrice);\n _inventories.add(inventoryId, inventory);\n _ownerInventoryCount[msg.sender]++;\n emit InventoryCreated(inventoryId);\n\n return inventoryId;\n }\n\n function removeAdInventory(uint256 _inventoryId) external {\n require(\n _inventoryAdCount[_inventoryId] == 0,\n \"You can't delete an inventory if there are ads left in the inventory.\");\n\n AdNetworkSet.Inventory storage inventory = _inventories.get(_inventoryId);\n require(\n inventory.owner == msg.sender,\n \"Only inventory owners can remove inventory.\");\n\n _inventories.remove(_inventoryId);\n _ownerInventoryCount[msg.sender]--;\n }\n\n function createAd(uint256 _inventoryId, bytes32 _hash, bytes32 _hashForDelivery, uint32 _start, uint32 _end) external payable returns (uint256) {\n require(\n _ownerAdCount[msg.sender] < MAX_CREATABLE_AD_COUNT,\n \"You have reached the maximum number of ads you can create. You need to remove unwanted ads.\");\n require(\n _end > _start &&\n _end - _start >= MIN_DELIVERY_TIME,\n \"The delivery start time must be before the delivery end time, and a minimum delivery period must be set.\"\n );\n require(\n _start > block.timestamp &&\n _start - block.timestamp >= MIN_TIME_REQUIRED_TO_START_DELIVERY,\n \"It is necessary to allow a certain amount of time before the distribution starts.\"\n );\n require(\n _inventoryAdCount[_inventoryId] < MAX_DELIVERABLE_AD_COUNT,\n \"Exceeded the limit of ads that can be delivered to your inventory.\"\n );\n\n AdNetworkSet.Inventory storage inventory = _inventories.get(_inventoryId);\n require(msg.value >= inventory.floorPrice, \"ad price must be larger than floor price set by inventory owner.\");\n\n _adIds.increment();\n uint256 adId = _adIds.current();\n\n AdNetworkSet.Ad memory ad = AdNetworkSet.Ad(adId, _inventoryId, payable(msg.sender), _hash, _hashForDelivery, _start, _end, msg.value);\n require(_ads.add(adId, ad), \"ads must be added correctly\");\n\n _requestApproval[adId] = _inventoryId;\n _inventoryWaitAdCount[_inventoryId]++;\n _ownerAdCount[msg.sender]++;\n\n emit AdCreated(_inventoryId, adId);\n\n return adId;\n }\n\n function approveAd(uint256 _inventoryId, uint256 _adId) external {\n require(\n _inventoryAdCount[_inventoryId] < MAX_DELIVERABLE_AD_COUNT,\n \"Exceeded the limit of ads that can be delivered to your inventory.\");\n require(\n _requestApproval[_adId] == _inventoryId,\n \"Advertising for the target inventory is not currently under review\");\n\n AdNetworkSet.Inventory storage inventory = _inventories.get(_inventoryId);\n require(\n inventory.owner == msg.sender,\n \"Only inventory owners can approve ads.\");\n\n AdNetworkSet.Ad storage ad = _ads.get(_adId);\n require(block.timestamp < ad.start);\n\n delete _requestApproval[_adId];\n _inventoryAdCount[_inventoryId]++;\n _inventoryWaitAdCount[_inventoryId]--;\n _adToInventory[_adId] = _inventoryId;\n\n emit AdApproved(_adId, _inventoryId);\n }\n\n function rejectAd(uint256 _inventoryId, uint256 _adId) external {\n require(\n _requestApproval[_adId] == _inventoryId,\n \"Advertising for the target inventory is not currently under review\");\n\n AdNetworkSet.Inventory storage inventory = _inventories.get(_inventoryId);\n require(\n inventory.owner == msg.sender,\n \"Only inventory owners can reject ads.\");\n\n delete _requestApproval[_adId];\n _inventoryWaitAdCount[_inventoryId]--;\n AdNetworkSet.Ad storage ad = _ads.get(_adId);\n _ownerAdCount[ad.owner]--;\n address payable adOwner = ad.owner;\n uint paybackPrice = ad.price;\n\n (bool r,) = adOwner.call{value : paybackPrice}(\"\");\n require(r, \"Failed to payback lock values\");\n _ads.remove(_adId);\n\n emit AdRejected(_adId, _inventoryId);\n }\n\n function collectAd(uint256 _inventoryId, uint _adId) external {\n require(\n _adToInventory[_adId] == _inventoryId,\n \"Only ads that are in the inventory can be collected.\");\n\n AdNetworkSet.Ad storage ad = _ads.get(_adId);\n require(\n block.timestamp >= ad.end,\n \"Only ads that have expired can be collected.\");\n AdNetworkSet.Inventory storage inventory = _inventories.get(_inventoryId);\n require(\n msg.sender == inventory.owner ||\n msg.sender == ad.owner,\n \"Only the owner of the inventory or the owner of the ad can collect the ad.\");\n\n if (msg.sender == inventory.owner) {\n inventory.owner.transfer(ad.price);\n } else if (msg.sender == ad.owner) {\n uint256 maxGasFee = (ad.price / 10).min(tx.gasprice).min(MAX_CACHE_BACK_GAS_FEE);\n ad.owner.transfer(maxGasFee);\n inventory.owner.transfer(ad.price - maxGasFee);\n }\n\n delete _adToInventory[_adId];\n _ownerAdCount[ad.owner]--;\n _inventoryAdCount[_inventoryId]--;\n _ads.remove(_adId);\n _inventories.remove(_inventoryId);\n }\n\n function getAdsOf(uint256 _inventoryId) external view returns (\n uint256[] memory adIds,\n uint256[] memory inventoryIds,\n bytes32[] memory adHashes,\n bytes32[] memory adHashForDeliveries,\n uint32[] memory starts,\n uint32[] memory ends,\n bool[] memory approved\n ) {\n uint inventoryAdCount = _inventoryAdCount[_inventoryId] + _inventoryWaitAdCount[_inventoryId];\n adIds = new uint256[](inventoryAdCount);\n inventoryIds = new uint256[](inventoryAdCount);\n adHashes = new bytes32[](inventoryAdCount);\n adHashForDeliveries = new bytes32[](inventoryAdCount);\n starts = new uint32[](inventoryAdCount);\n ends = new uint32[](inventoryAdCount);\n approved = new bool[](inventoryAdCount);\n\n uint adIdx = 0;\n for (uint idx = 0; idx < _ads._values.length; idx++) {\n AdNetworkSet.Ad storage ad = _ads._values[idx];\n if (ad.inventoryId != _inventoryId) {\n continue;\n }\n\n adIds[adIdx] = ad.adId;\n inventoryIds[adIdx] = ad.inventoryId;\n adHashes[adIdx] = ad.hash;\n adHashForDeliveries[adIdx] = ad.hashForDelivery;\n starts[adIdx] = ad.start;\n ends[adIdx] = ad.end;\n approved[adIdx] = _adToInventory[ad.adId] == ad.inventoryId;\n adIdx++;\n }\n }\n\n function getAdsByOwnerAddress(address _ownerAddress) external view returns (\n uint256[] memory adIds,\n uint256[] memory inventoryIds,\n bytes32[] memory adHashes,\n uint32[] memory starts,\n uint32[] memory ends,\n bool[] memory approved\n ) {\n uint inventoryAdCount = _ownerAdCount[_ownerAddress];\n\n adIds = new uint256[](inventoryAdCount);\n inventoryIds = new uint256[](inventoryAdCount);\n adHashes = new bytes32[](inventoryAdCount);\n starts = new uint32[](inventoryAdCount);\n ends = new uint32[](inventoryAdCount);\n approved = new bool[](inventoryAdCount);\n\n uint adIdx = 0;\n for (uint idx = 0; idx < _ads._values.length; idx++) {\n AdNetworkSet.Ad storage ad = _ads._values[idx];\n if (ad.owner != _ownerAddress) {\n continue;\n }\n\n adIds[adIdx] = ad.adId;\n inventoryIds[adIdx] = ad.inventoryId;\n adHashes[adIdx] = ad.hash;\n starts[adIdx] = ad.start;\n ends[adIdx] = ad.end;\n approved[adIdx] = _adToInventory[ad.adId] == ad.inventoryId;\n adIdx++;\n }\n }\n\n function getInventoriesByOwnerAddress(address _ownerAddress) external view returns (\n uint256[] memory inventoryIds,\n address[] memory owners,\n string[] memory names,\n string[] memory uris,\n string[] memory publicKeys,\n uint256[] memory floorPrices\n ) {\n uint ownerInventoryCount = _ownerInventoryCount[_ownerAddress];\n\n inventoryIds = new uint256[](ownerInventoryCount);\n owners = new address[](ownerInventoryCount);\n names = new string[](ownerInventoryCount);\n uris = new string[](ownerInventoryCount);\n publicKeys = new string[](ownerInventoryCount);\n floorPrices = new uint256[](ownerInventoryCount);\n\n uint inventoryIdx = 0;\n for (uint idx = 0; idx < _inventories._values.length; idx++) {\n AdNetworkSet.Inventory storage inventory = _inventories._values[idx];\n if (inventory.owner != _ownerAddress) {\n continue;\n }\n\n inventoryIds[inventoryIdx] = inventory.inventoryId;\n owners[inventoryIdx] = inventory.owner;\n names[inventoryIdx] = inventory.name;\n uris[inventoryIdx] = inventory.uri;\n publicKeys[inventoryIdx] = inventory.publicKey;\n floorPrices[inventoryIdx] = inventory.floorPrice;\n inventoryIdx++;\n }\n }\n\n function getInventory(uint256 _inventoryId) external view returns (\n uint256 inventoryId,\n address owner,\n string memory name,\n string memory uri,\n string memory publicKey,\n uint256 floorPrice\n ) {\n AdNetworkSet.Inventory storage inventory = _inventories.get(_inventoryId);\n require(inventory.inventoryId == _inventoryId, \"requested inventory id is invalid\");\n\n inventoryId = inventory.inventoryId;\n owner = inventory.owner;\n name = inventory.name;\n uri = inventory.uri;\n publicKey = inventory.publicKey;\n floorPrice = inventory.floorPrice;\n }\n\n function getInventories(uint offset, uint limit) external view returns (\n uint256[] memory inventoryIds,\n address[] memory owners,\n string[] memory names,\n string[] memory uris,\n string[] memory publicKeys,\n uint256[] memory floorPrices\n ) {\n require(limit > 0 && limit <= 50, \"Inventory can be retrieve up to 30 items at the same time\");\n require(offset >= 0 && offset <= _inventories._values.length);\n\n uint upper = _inventories._values.length.min(offset + limit);\n inventoryIds = new uint256[](upper);\n owners = new address[](upper);\n names = new string[](upper);\n uris = new string[](upper);\n publicKeys = new string[](upper);\n floorPrices = new uint256[](upper);\n\n uint inventoryIdx = 0;\n for (uint idx = offset; idx < upper; idx++) {\n AdNetworkSet.Inventory storage inventory = _inventories._values[idx];\n\n inventoryIds[inventoryIdx] = inventory.inventoryId;\n owners[inventoryIdx] = inventory.owner;\n names[inventoryIdx] = inventory.name;\n uris[inventoryIdx] = inventory.uri;\n publicKeys[inventoryIdx] = inventory.publicKey;\n floorPrices[inventoryIdx] = inventory.floorPrice;\n inventoryIdx++;\n }\n }\n\n function getExpiredAdIds(uint256 _inventoryId) external view returns (uint256[] memory) {\n uint expireCounts = 0;\n for (uint idx = 0; idx < _ads._values.length; idx++) {\n AdNetworkSet.Ad storage ad = _ads._values[idx];\n if (_adToInventory[ad.adId] != _inventoryId) {\n continue;\n }\n if (ad.end > block.timestamp) {\n expireCounts++;\n }\n }\n\n uint256[] memory expiredAdIds = new uint256[](expireCounts);\n expireCounts = 0;\n for (uint idx = 0; idx < _ads._values.length; idx++) {\n AdNetworkSet.Ad storage ad = _ads._values[idx];\n if (_adToInventory[ad.adId] != _inventoryId) {\n continue;\n }\n if (ad.end > block.timestamp) {\n expiredAdIds[expireCounts] = ad.adId;\n expireCounts++;\n }\n }\n return expiredAdIds;\n }\n\n}\n", "sourcePath": "/Users/admin/IdeaProjects/blockchain-adnetwork/adnetwork-contracts/contracts/AdNetwork.sol", "ast": { "absolutePath": "project:/contracts/AdNetwork.sol", "exportedSymbols": { "AdNetwork": [ 1755 ], "AdNetworkSet": [ 2164 ], "Counters": [ 73 ], "Math": [ 161 ] }, "id": 1756, "license": "MIT", "nodeType": "SourceUnit", "nodes": [ { "id": 163, "literals": [ "solidity", "^", "0.8", ".0" ], "nodeType": "PragmaDirective", "src": "32:23:2" }, { "absolutePath": "@openzeppelin/contracts/utils/Counters.sol", "file": "@openzeppelin/contracts/utils/Counters.sol", "id": 164, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 1756, "sourceUnit": 74, "src": "57:52:2", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "@openzeppelin/contracts/utils/math/Math.sol", "file": "@openzeppelin/contracts/utils/math/Math.sol", "id": 165, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 1756, "sourceUnit": 162, "src": "110:53:2", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "project:/contracts/AdNetworkSet.sol", "file": "./AdNetworkSet.sol", "id": 166, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 1756, "sourceUnit": 2165, "src": "164:28:2", "symbolAliases": [], "unitAlias": "" }, { "abstract": false, "baseContracts": [], "canonicalName": "AdNetwork", "contractDependencies": [], "contractKind": "contract", "fullyImplemented": true, "id": 1755, "linearizedBaseContracts": [ 1755 ], "name": "AdNetwork", "nameLocation": "203:9:2", "nodeType": "ContractDefinition", "nodes": [ { "constant": true, "id": 169, "mutability": "constant", "name": "MAX_CREATABLE_AD_COUNT", "nameLocation": "233:22:2", "nodeType": "VariableDeclaration", "scope": 1755, "src": "219:41:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 167, "name": "uint", "nodeType": "ElementaryTypeName", "src": "219:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": { "hexValue": "3130", "id": 168, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "258:2:2", "typeDescriptions": { "typeIdentifier": "t_rational_10_by_1", "typeString": "int_const 10" }, "value": "10" }, "visibility": "internal" }, { "constant": true, "id": 172, "mutability": "constant", "name": "MAX_CREATABLE_INVENTORY_COUNT", "nameLocation": "280:29:2", "nodeType": "VariableDeclaration", "scope": 1755, "src": "266:48:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 170, "name": "uint", "nodeType": "ElementaryTypeName", "src": "266:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": { "hexValue": "3130", "id": 171, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "312:2:2", "typeDescriptions": { "typeIdentifier": "t_rational_10_by_1", "typeString": "int_const 10" }, "value": "10" }, "visibility": "internal" }, { "constant": true, "id": 175, "mutability": "constant", "name": "MAX_DELIVERABLE_AD_COUNT", "nameLocation": "334:24:2", "nodeType": "VariableDeclaration", "scope": 1755, "src": "320:43:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 173, "name": "uint", "nodeType": "ElementaryTypeName", "src": "320:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": { "hexValue": "3130", "id": 174, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "361:2:2", "typeDescriptions": { "typeIdentifier": "t_rational_10_by_1", "typeString": "int_const 10" }, "value": "10" }, "visibility": "internal" }, { "constant": true, "documentation": { "id": 176, "nodeType": "StructuredDocumentation", "src": "369:47:2", "text": "@dev Delivery time must be at least 1 hour." }, "id": 181, "mutability": "constant", "name": "MIN_DELIVERY_TIME", "nameLocation": "435:17:2", "nodeType": "VariableDeclaration", "scope": 1755, "src": "421:41:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 177, "name": "uint", "nodeType": "ElementaryTypeName", "src": "421:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": { "commonType": { "typeIdentifier": "t_rational_3600_by_1", "typeString": "int_const 3600" }, "id": 180, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "leftExpression": { "hexValue": "3630", "id": 178, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "455:2:2", "typeDescriptions": { "typeIdentifier": "t_rational_60_by_1", "typeString": "int_const 60" }, "value": "60" }, "nodeType": "BinaryOperation", "operator": "*", "rightExpression": { "hexValue": "3630", "id": 179, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "460:2:2", "typeDescriptions": { "typeIdentifier": "t_rational_60_by_1", "typeString": "int_const 60" }, "value": "60" }, "src": "455:7:2", "typeDescriptions": { "typeIdentifier": "t_rational_3600_by_1", "typeString": "int_const 3600" } }, "visibility": "internal" }, { "constant": true, "documentation": { "id": 182, "nodeType": "StructuredDocumentation", "src": "468:175:2", "text": "@dev Since there is a high possibility that the screening will not be completed in time,\n it is necessary to allow at least 12 hours before the distribution starts." }, "id": 189, "mutability": "constant", "name": "MIN_TIME_REQUIRED_TO_START_DELIVERY", "nameLocation": "662:35:2", "nodeType": "VariableDeclaration", "scope": 1755, "src": "648:64:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 183, "name": "uint", "nodeType": "ElementaryTypeName", "src": "648:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": { "commonType": { "typeIdentifier": "t_rational_43200_by_1", "typeString": "int_const 43200" }, "id": 188, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "leftExpression": { "commonType": { "typeIdentifier": "t_rational_3600_by_1", "typeString": "int_const 3600" }, "id": 186, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "leftExpression": { "hexValue": "3630", "id": 184, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "700:2:2", "typeDescriptions": { "typeIdentifier": "t_rational_60_by_1", "typeString": "int_const 60" }, "value": "60" }, "nodeType": "BinaryOperation", "operator": "*", "rightExpression": { "hexValue": "3630", "id": 185, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "705:2:2", "typeDescriptions": { "typeIdentifier": "t_rational_60_by_1", "typeString": "int_const 60" }, "value": "60" }, "src": "700:7:2", "typeDescriptions": { "typeIdentifier": "t_rational_3600_by_1", "typeString": "int_const 3600" } }, "nodeType": "BinaryOperation", "operator": "*", "rightExpression": { "hexValue": "3132", "id": 187, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "710:2:2", "typeDescriptions": { "typeIdentifier": "t_rational_12_by_1", "typeString": "int_const 12" }, "value": "12" }, "src": "700:12:2", "typeDescriptions": { "typeIdentifier": "t_rational_43200_by_1", "typeString": "int_const 43200" } }, "visibility": "internal" }, { "constant": true, "id": 192, "mutability": "constant", "name": "MAX_CACHE_BACK_GAS_FEE", "nameLocation": "732:22:2", "nodeType": "VariableDeclaration", "scope": 1755, "src": "718:45:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 190, "name": "uint", "nodeType": "ElementaryTypeName", "src": "718:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": { "hexValue": "3130", "id": 191, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "757:6:2", "subdenomination": "wei", "typeDescriptions": { "typeIdentifier": "t_rational_10_by_1", "typeString": "int_const 10" }, "value": "10" }, "visibility": "internal" }, { "id": 196, "libraryName": { "id": 193, "name": "Counters", "nodeType": "IdentifierPath", "referencedDeclaration": 73, "src": "776:8:2" }, "nodeType": "UsingForDirective", "src": "770:36:2", "typeName": { "id": 195, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 194, "name": "Counters.Counter", "nodeType": "IdentifierPath", "referencedDeclaration": 5, "src": "789:16:2" }, "referencedDeclaration": 5, "src": "789:16:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Counter_$5_storage_ptr", "typeString": "struct Counters.Counter" } } }, { "id": 200, "libraryName": { "id": 197, "name": "AdNetworkSet", "nodeType": "IdentifierPath", "referencedDeclaration": 2164, "src": "817:12:2" }, "nodeType": "UsingForDirective", "src": "811:49:2", "typeName": { "id": 199, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 198, "name": "AdNetworkSet.InventorySet", "nodeType": "IdentifierPath", "referencedDeclaration": 1766, "src": "834:25:2" }, "referencedDeclaration": 1766, "src": "834:25:2", "typeDescriptions": { "typeIdentifier": "t_struct$_InventorySet_$1766_storage_ptr", "typeString": "struct AdNetworkSet.InventorySet" } } }, { "id": 204, "libraryName": { "id": 201, "name": "AdNetworkSet", "nodeType": "IdentifierPath", "referencedDeclaration": 2164, "src": "871:12:2" }, "nodeType": "UsingForDirective", "src": "865:42:2", "typeName": { "id": 203, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 202, "name": "AdNetworkSet.AdSet", "nodeType": "IdentifierPath", "referencedDeclaration": 1967, "src": "888:18:2" }, "referencedDeclaration": 1967, "src": "888:18:2", "typeDescriptions": { "typeIdentifier": "t_struct$_AdSet_$1967_storage_ptr", "typeString": "struct AdNetworkSet.AdSet" } } }, { "id": 207, "libraryName": { "id": 205, "name": "Math", "nodeType": "IdentifierPath", "referencedDeclaration": 161, "src": "918:4:2" }, "nodeType": "UsingForDirective", "src": "912:23:2", "typeName": { "id": 206, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "927:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } }, { "constant": false, "id": 210, "mutability": "mutable", "name": "_inventoryIds", "nameLocation": "966:13:2", "nodeType": "VariableDeclaration", "scope": 1755, "src": "941:38:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_struct$_Counter_$5_storage", "typeString": "struct Counters.Counter" }, "typeName": { "id": 209, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 208, "name": "Counters.Counter", "nodeType": "IdentifierPath", "referencedDeclaration": 5, "src": "941:16:2" }, "referencedDeclaration": 5, "src": "941:16:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Counter_$5_storage_ptr", "typeString": "struct Counters.Counter" } }, "visibility": "private" }, { "constant": false, "id": 213, "mutability": "mutable", "name": "_inventories", "nameLocation": "1019:12:2", "nodeType": "VariableDeclaration", "scope": 1755, "src": "985:46:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_struct$_InventorySet_$1766_storage", "typeString": "struct AdNetworkSet.InventorySet" }, "typeName": { "id": 212, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 211, "name": "AdNetworkSet.InventorySet", "nodeType": "IdentifierPath", "referencedDeclaration": 1766, "src": "985:25:2" }, "referencedDeclaration": 1766, "src": "985:25:2", "typeDescriptions": { "typeIdentifier": "t_struct$_InventorySet_$1766_storage_ptr", "typeString": "struct AdNetworkSet.InventorySet" } }, "visibility": "private" }, { "constant": false, "id": 216, "mutability": "mutable", "name": "_adIds", "nameLocation": "1062:6:2", "nodeType": "VariableDeclaration", "scope": 1755, "src": "1037:31:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_struct$_Counter_$5_storage", "typeString": "struct Counters.Counter" }, "typeName": { "id": 215, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 214, "name": "Counters.Counter", "nodeType": "IdentifierPath", "referencedDeclaration": 5, "src": "1037:16:2" }, "referencedDeclaration": 5, "src": "1037:16:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Counter_$5_storage_ptr", "typeString": "struct Counters.Counter" } }, "visibility": "private" }, { "constant": false, "id": 219, "mutability": "mutable", "name": "_ads", "nameLocation": "1101:4:2", "nodeType": "VariableDeclaration", "scope": 1755, "src": "1074:31:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_struct$_AdSet_$1967_storage", "typeString": "struct AdNetworkSet.AdSet" }, "typeName": { "id": 218, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 217, "name": "AdNetworkSet.AdSet", "nodeType": "IdentifierPath", "referencedDeclaration": 1967, "src": "1074:18:2" }, "referencedDeclaration": 1967, "src": "1074:18:2", "typeDescriptions": { "typeIdentifier": "t_struct$_AdSet_$1967_storage_ptr", "typeString": "struct AdNetworkSet.AdSet" } }, "visibility": "private" }, { "constant": false, "id": 223, "mutability": "mutable", "name": "_requestApproval", "nameLocation": "1148:16:2", "nodeType": "VariableDeclaration", "scope": 1755, "src": "1112:52:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" }, "typeName": { "id": 222, "keyType": { "id": 220, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1120:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Mapping", "src": "1112:27:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" }, "valueType": { "id": 221, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1131:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } }, "visibility": "private" }, { "constant": false, "id": 227, "mutability": "mutable", "name": "_adToInventory", "nameLocation": "1206:14:2", "nodeType": "VariableDeclaration", "scope": 1755, "src": "1170:50:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" }, "typeName": { "id": 226, "keyType": { "id": 224, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1178:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Mapping", "src": "1170:27:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" }, "valueType": { "id": 225, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1189:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } }, "visibility": "private" }, { "constant": false, "id": 231, "mutability": "mutable", "name": "_waitAdToInventory", "nameLocation": "1262:18:2", "nodeType": "VariableDeclaration", "scope": 1755, "src": "1226:54:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" }, "typeName": { "id": 230, "keyType": { "id": 228, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1234:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Mapping", "src": "1226:27:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" }, "valueType": { "id": 229, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1245:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } }, "visibility": "private" }, { "constant": false, "id": 235, "mutability": "mutable", "name": "_ownerAdCount", "nameLocation": "1321:13:2", "nodeType": "VariableDeclaration", "scope": 1755, "src": "1286:48:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint32_$", "typeString": "mapping(address => uint32)" }, "typeName": { "id": 234, "keyType": { "id": 232, "name": "address", "nodeType": "ElementaryTypeName", "src": "1294:7:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Mapping", "src": "1286:26:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint32_$", "typeString": "mapping(address => uint32)" }, "valueType": { "id": 233, "name": "uint32", "nodeType": "ElementaryTypeName", "src": "1305:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } } }, "visibility": "private" }, { "constant": false, "id": 239, "mutability": "mutable", "name": "_ownerInventoryCount", "nameLocation": "1375:20:2", "nodeType": "VariableDeclaration", "scope": 1755, "src": "1340:55:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint32_$", "typeString": "mapping(address => uint32)" }, "typeName": { "id": 238, "keyType": { "id": 236, "name": "address", "nodeType": "ElementaryTypeName", "src": "1348:7:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Mapping", "src": "1340:26:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint32_$", "typeString": "mapping(address => uint32)" }, "valueType": { "id": 237, "name": "uint32", "nodeType": "ElementaryTypeName", "src": "1359:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } } }, "visibility": "private" }, { "constant": false, "id": 243, "mutability": "mutable", "name": "_inventoryAdCount", "nameLocation": "1436:17:2", "nodeType": "VariableDeclaration", "scope": 1755, "src": "1401:52:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint32_$", "typeString": "mapping(uint256 => uint32)" }, "typeName": { "id": 242, "keyType": { "id": 240, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1409:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Mapping", "src": "1401:26:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint32_$", "typeString": "mapping(uint256 => uint32)" }, "valueType": { "id": 241, "name": "uint32", "nodeType": "ElementaryTypeName", "src": "1420:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } } }, "visibility": "private" }, { "constant": false, "id": 247, "mutability": "mutable", "name": "_inventoryWaitAdCount", "nameLocation": "1494:21:2", "nodeType": "VariableDeclaration", "scope": 1755, "src": "1459:56:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint32_$", "typeString": "mapping(uint256 => uint32)" }, "typeName": { "id": 246, "keyType": { "id": 244, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1467:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Mapping", "src": "1459:26:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint32_$", "typeString": "mapping(uint256 => uint32)" }, "valueType": { "id": 245, "name": "uint32", "nodeType": "ElementaryTypeName", "src": "1478:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } } }, "visibility": "private" }, { "anonymous": false, "id": 255, "name": "AdReviewRequestSent", "nameLocation": "1528:19:2", "nodeType": "EventDefinition", "parameters": { "id": 254, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 249, "indexed": true, "mutability": "mutable", "name": "inventoryId", "nameLocation": "1564:11:2", "nodeType": "VariableDeclaration", "scope": 255, "src": "1548:27:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 248, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1548:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 251, "indexed": false, "mutability": "mutable", "name": "requestHash", "nameLocation": "1585:11:2", "nodeType": "VariableDeclaration", "scope": 255, "src": "1577:19:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 250, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "1577:7:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 253, "indexed": false, "mutability": "mutable", "name": "adHash", "nameLocation": "1606:6:2", "nodeType": "VariableDeclaration", "scope": 255, "src": "1598:14:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 252, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "1598:7:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "1547:66:2" }, "src": "1522:92:2" }, { "anonymous": false, "id": 261, "name": "AdCreated", "nameLocation": "1625:9:2", "nodeType": "EventDefinition", "parameters": { "id": 260, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 257, "indexed": true, "mutability": "mutable", "name": "inventoryId", "nameLocation": "1651:11:2", "nodeType": "VariableDeclaration", "scope": 261, "src": "1635:27:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 256, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1635:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 259, "indexed": false, "mutability": "mutable", "name": "adId", "nameLocation": "1672:4:2", "nodeType": "VariableDeclaration", "scope": 261, "src": "1664:12:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 258, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1664:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "1634:43:2" }, "src": "1619:59:2" }, { "anonymous": false, "id": 267, "name": "AdApproved", "nameLocation": "1689:10:2", "nodeType": "EventDefinition", "parameters": { "id": 266, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 263, "indexed": true, "mutability": "mutable", "name": "adId", "nameLocation": "1716:4:2", "nodeType": "VariableDeclaration", "scope": 267, "src": "1700:20:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 262, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1700:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 265, "indexed": false, "mutability": "mutable", "name": "inventoryId", "nameLocation": "1730:11:2", "nodeType": "VariableDeclaration", "scope": 267, "src": "1722:19:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 264, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1722:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "1699:43:2" }, "src": "1683:60:2" }, { "anonymous": false, "id": 273, "name": "AdRejected", "nameLocation": "1754:10:2", "nodeType": "EventDefinition", "parameters": { "id": 272, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 269, "indexed": true, "mutability": "mutable", "name": "adId", "nameLocation": "1781:4:2", "nodeType": "VariableDeclaration", "scope": 273, "src": "1765:20:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 268, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1765:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 271, "indexed": false, "mutability": "mutable", "name": "inventoryId", "nameLocation": "1795:11:2", "nodeType": "VariableDeclaration", "scope": 273, "src": "1787:19:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 270, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1787:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "1764:43:2" }, "src": "1748:60:2" }, { "anonymous": false, "id": 277, "name": "InventoryCreated", "nameLocation": "1819:16:2", "nodeType": "EventDefinition", "parameters": { "id": 276, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 275, "indexed": false, "mutability": "mutable", "name": "inventoryId", "nameLocation": "1844:11:2", "nodeType": "VariableDeclaration", "scope": 277, "src": "1836:19:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 274, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1836:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "1835:21:2" }, "src": "1813:44:2" }, { "body": { "id": 280, "nodeType": "Block", "src": "1877:7:2", "statements": [] }, "id": 281, "implemented": true, "kind": "constructor", "modifiers": [], "name": "", "nameLocation": "-1:-1:-1", "nodeType": "FunctionDefinition", "parameters": { "id": 278, "nodeType": "ParameterList", "parameters": [], "src": "1874:2:2" }, "returnParameters": { "id": 279, "nodeType": "ParameterList", "parameters": [], "src": "1877:0:2" }, "scope": 1755, "src": "1863:21:2", "stateMutability": "nonpayable", "virtual": false, "visibility": "public" }, { "body": { "id": 353, "nodeType": "Block", "src": "2028:622:2", "statements": [ { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 300, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "baseExpression": { "id": 295, "name": "_ownerInventoryCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 239, "src": "2059:20:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint32_$", "typeString": "mapping(address => uint32)" } }, "id": 298, "indexExpression": { "expression": { "id": 296, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967281, "src": "2080:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 297, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "src": "2080:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "2059:32:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "id": 299, "name": "MAX_CREATABLE_INVENTORY_COUNT", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 172, "src": "2094:29:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "2059:64:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "596f752068617665207265616368656420746865206d6178696d756d206e756d626572206f6620696e76656e746f727920796f752063616e206372656174652e20596f75206e65656420746f2072656d6f766520756e77616e74656420696e76656e746f72792e", "id": 301, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "2137:105:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_b717876e01b3276a505705385fc7b04097db7f77d638318e5f6bcb3761acccc5", "typeString": "literal_string \"You have reached the maximum number of inventory you can create. You need to remove unwanted inventory.\"" }, "value": "You have reached the maximum number of inventory you can create. You need to remove unwanted inventory." } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_b717876e01b3276a505705385fc7b04097db7f77d638318e5f6bcb3761acccc5", "typeString": "literal_string \"You have reached the maximum number of inventory you can create. You need to remove unwanted inventory.\"" } ], "id": 294, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "2038:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 302, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2038:205:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 303, "nodeType": "ExpressionStatement", "src": "2038:205:2" }, { "expression": { "arguments": [], "expression": { "argumentTypes": [], "expression": { "id": 304, "name": "_inventoryIds", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 210, "src": "2253:13:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Counter_$5_storage", "typeString": "struct Counters.Counter storage ref" } }, "id": 306, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "increment", "nodeType": "MemberAccess", "referencedDeclaration": 31, "src": "2253:23:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_struct$_Counter_$5_storage_ptr_$returns$__$bound_to$_t_struct$_Counter_$5_storage_ptr_$", "typeString": "function (struct Counters.Counter storage pointer)" } }, "id": 307, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2253:25:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 308, "nodeType": "ExpressionStatement", "src": "2253:25:2" }, { "assignments": [ 310 ], "declarations": [ { "constant": false, "id": 310, "mutability": "mutable", "name": "inventoryId", "nameLocation": "2296:11:2", "nodeType": "VariableDeclaration", "scope": 353, "src": "2288:19:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 309, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2288:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 314, "initialValue": { "arguments": [], "expression": { "argumentTypes": [], "expression": { "id": 311, "name": "_inventoryIds", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 210, "src": "2310:13:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Counter_$5_storage", "typeString": "struct Counters.Counter storage ref" } }, "id": 312, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "current", "nodeType": "MemberAccess", "referencedDeclaration": 17, "src": "2310:21:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_struct$_Counter_$5_storage_ptr_$returns$_t_uint256_$bound_to$_t_struct$_Counter_$5_storage_ptr_$", "typeString": "function (struct Counters.Counter storage pointer) view returns (uint256)" } }, "id": 313, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2310:23:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", "src": "2288:45:2" }, { "assignments": [ 319 ], "declarations": [ { "constant": false, "id": 319, "mutability": "mutable", "name": "inventory", "nameLocation": "2374:9:2", "nodeType": "VariableDeclaration", "scope": 353, "src": "2344:39:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_memory_ptr", "typeString": "struct AdNetworkSet.Inventory" }, "typeName": { "id": 318, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 317, "name": "AdNetworkSet.Inventory", "nodeType": "IdentifierPath", "referencedDeclaration": 1779, "src": "2344:22:2" }, "referencedDeclaration": 1779, "src": "2344:22:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory" } }, "visibility": "internal" } ], "id": 333, "initialValue": { "arguments": [ { "id": 322, "name": "inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 310, "src": "2409:11:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "arguments": [ { "expression": { "id": 325, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967281, "src": "2430:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 326, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "src": "2430:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 324, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "2422:8:2", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_payable_$", "typeString": "type(address payable)" }, "typeName": { "id": 323, "name": "address", "nodeType": "ElementaryTypeName", "src": "2422:8:2", "stateMutability": "payable", "typeDescriptions": {} } }, "id": 327, "isConstant": false, "isLValue": false, "isPure": false, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2422:19:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, { "id": 328, "name": "name", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 283, "src": "2443:4:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, { "id": 329, "name": "uri", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 285, "src": "2449:3:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, { "id": 330, "name": "publicKey", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 287, "src": "2454:9:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, { "id": 331, "name": "floorPrice", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 289, "src": "2465:10:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_address_payable", "typeString": "address payable" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "id": 320, "name": "AdNetworkSet", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2164, "src": "2386:12:2", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_AdNetworkSet_$2164_$", "typeString": "type(library AdNetworkSet)" } }, "id": 321, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "Inventory", "nodeType": "MemberAccess", "referencedDeclaration": 1779, "src": "2386:22:2", "typeDescriptions": { "typeIdentifier": "t_type$_t_struct$_Inventory_$1779_storage_ptr_$", "typeString": "type(struct AdNetworkSet.Inventory storage pointer)" } }, "id": 332, "isConstant": false, "isLValue": false, "isPure": false, "kind": "structConstructorCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2386:90:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_memory_ptr", "typeString": "struct AdNetworkSet.Inventory memory" } }, "nodeType": "VariableDeclarationStatement", "src": "2344:132:2" }, { "expression": { "arguments": [ { "id": 337, "name": "inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 310, "src": "2503:11:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 338, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 319, "src": "2516:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_memory_ptr", "typeString": "struct AdNetworkSet.Inventory memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_struct$_Inventory_$1779_memory_ptr", "typeString": "struct AdNetworkSet.Inventory memory" } ], "expression": { "id": 334, "name": "_inventories", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 213, "src": "2486:12:2", "typeDescriptions": { "typeIdentifier": "t_struct$_InventorySet_$1766_storage", "typeString": "struct AdNetworkSet.InventorySet storage ref" } }, "id": 336, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "add", "nodeType": "MemberAccess", "referencedDeclaration": 1823, "src": "2486:16:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_struct$_InventorySet_$1766_storage_ptr_$_t_uint256_$_t_struct$_Inventory_$1779_memory_ptr_$returns$_t_bool_$bound_to$_t_struct$_InventorySet_$1766_storage_ptr_$", "typeString": "function (struct AdNetworkSet.InventorySet storage pointer,uint256,struct AdNetworkSet.Inventory memory) returns (bool)" } }, "id": 339, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2486:40:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 340, "nodeType": "ExpressionStatement", "src": "2486:40:2" }, { "expression": { "id": 345, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "2536:34:2", "subExpression": { "baseExpression": { "id": 341, "name": "_ownerInventoryCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 239, "src": "2536:20:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint32_$", "typeString": "mapping(address => uint32)" } }, "id": 344, "indexExpression": { "expression": { "id": 342, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967281, "src": "2557:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 343, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "src": "2557:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "2536:32:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 346, "nodeType": "ExpressionStatement", "src": "2536:34:2" }, { "eventCall": { "arguments": [ { "id": 348, "name": "inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 310, "src": "2602:11:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 347, "name": "InventoryCreated", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 277, "src": "2585:16:2", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$returns$__$", "typeString": "function (uint256)" } }, "id": 349, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2585:29:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 350, "nodeType": "EmitStatement", "src": "2580:34:2" }, { "expression": { "id": 351, "name": "inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 310, "src": "2632:11:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "functionReturnParameters": 293, "id": 352, "nodeType": "Return", "src": "2625:18:2" } ] }, "functionSelector": "fd58ac9c", "id": 354, "implemented": true, "kind": "function", "modifiers": [], "name": "createAdInventory", "nameLocation": "1899:17:2", "nodeType": "FunctionDefinition", "parameters": { "id": 290, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 283, "mutability": "mutable", "name": "name", "nameLocation": "1931:4:2", "nodeType": "VariableDeclaration", "scope": 354, "src": "1917:18:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 282, "name": "string", "nodeType": "ElementaryTypeName", "src": "1917:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" }, { "constant": false, "id": 285, "mutability": "mutable", "name": "uri", "nameLocation": "1951:3:2", "nodeType": "VariableDeclaration", "scope": 354, "src": "1937:17:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 284, "name": "string", "nodeType": "ElementaryTypeName", "src": "1937:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" }, { "constant": false, "id": 287, "mutability": "mutable", "name": "publicKey", "nameLocation": "1970:9:2", "nodeType": "VariableDeclaration", "scope": 354, "src": "1956:23:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 286, "name": "string", "nodeType": "ElementaryTypeName", "src": "1956:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" }, { "constant": false, "id": 289, "mutability": "mutable", "name": "floorPrice", "nameLocation": "1989:10:2", "nodeType": "VariableDeclaration", "scope": 354, "src": "1981:18:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 288, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1981:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "1916:84:2" }, "returnParameters": { "id": 293, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 292, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 354, "src": "2019:7:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 291, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2019:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "2018:9:2" }, "scope": 1755, "src": "1890:760:2", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "body": { "id": 399, "nodeType": "Block", "src": "2714:452:2", "statements": [ { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_uint32", "typeString": "uint32" }, "id": 364, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "baseExpression": { "id": 360, "name": "_inventoryAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 243, "src": "2745:17:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint32_$", "typeString": "mapping(uint256 => uint32)" } }, "id": 362, "indexExpression": { "id": 361, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 356, "src": "2763:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "2745:31:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "hexValue": "30", "id": 363, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "2780:1:2", "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "src": "2745:36:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "596f752063616e27742064656c65746520616e20696e76656e746f72792069662074686572652061726520616473206c65667420696e2074686520696e76656e746f72792e", "id": 365, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "2795:71:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_5a05621a21b214233d27b1cd87e126c48be1e0211b2f9f27b784e90ac6512976", "typeString": "literal_string \"You can't delete an inventory if there are ads left in the inventory.\"" }, "value": "You can't delete an inventory if there are ads left in the inventory." } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_5a05621a21b214233d27b1cd87e126c48be1e0211b2f9f27b784e90ac6512976", "typeString": "literal_string \"You can't delete an inventory if there are ads left in the inventory.\"" } ], "id": 359, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "2724:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 366, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2724:143:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 367, "nodeType": "ExpressionStatement", "src": "2724:143:2" }, { "assignments": [ 372 ], "declarations": [ { "constant": false, "id": 372, "mutability": "mutable", "name": "inventory", "nameLocation": "2909:9:2", "nodeType": "VariableDeclaration", "scope": 399, "src": "2878:40:2", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory" }, "typeName": { "id": 371, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 370, "name": "AdNetworkSet.Inventory", "nodeType": "IdentifierPath", "referencedDeclaration": 1779, "src": "2878:22:2" }, "referencedDeclaration": 1779, "src": "2878:22:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory" } }, "visibility": "internal" } ], "id": 377, "initialValue": { "arguments": [ { "id": 375, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 356, "src": "2938:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "id": 373, "name": "_inventories", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 213, "src": "2921:12:2", "typeDescriptions": { "typeIdentifier": "t_struct$_InventorySet_$1766_storage", "typeString": "struct AdNetworkSet.InventorySet storage ref" } }, "id": 374, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "get", "nodeType": "MemberAccess", "referencedDeclaration": 1856, "src": "2921:16:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_struct$_InventorySet_$1766_storage_ptr_$_t_uint256_$returns$_t_struct$_Inventory_$1779_storage_ptr_$bound_to$_t_struct$_InventorySet_$1766_storage_ptr_$", "typeString": "function (struct AdNetworkSet.InventorySet storage pointer,uint256) view returns (struct AdNetworkSet.Inventory storage pointer)" } }, "id": 376, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2921:30:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "nodeType": "VariableDeclarationStatement", "src": "2878:73:2" }, { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 383, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { "id": 379, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 372, "src": "2982:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 380, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", "referencedDeclaration": 1770, "src": "2982:15:2", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "expression": { "id": 381, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967281, "src": "3001:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 382, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "src": "3001:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "2982:29:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "4f6e6c7920696e76656e746f7279206f776e6572732063616e2072656d6f766520696e76656e746f72792e", "id": 384, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "3025:45:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_b903fdbac6049d74b9eb64dc2d970791bb006ea8cf852de471611d0d1f3dfb73", "typeString": "literal_string \"Only inventory owners can remove inventory.\"" }, "value": "Only inventory owners can remove inventory." } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_b903fdbac6049d74b9eb64dc2d970791bb006ea8cf852de471611d0d1f3dfb73", "typeString": "literal_string \"Only inventory owners can remove inventory.\"" } ], "id": 378, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "2961:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 385, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2961:110:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 386, "nodeType": "ExpressionStatement", "src": "2961:110:2" }, { "expression": { "arguments": [ { "id": 390, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 356, "src": "3102:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "id": 387, "name": "_inventories", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 213, "src": "3082:12:2", "typeDescriptions": { "typeIdentifier": "t_struct$_InventorySet_$1766_storage", "typeString": "struct AdNetworkSet.InventorySet storage ref" } }, "id": 389, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "remove", "nodeType": "MemberAccess", "referencedDeclaration": 1958, "src": "3082:19:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_struct$_InventorySet_$1766_storage_ptr_$_t_uint256_$returns$_t_bool_$bound_to$_t_struct$_InventorySet_$1766_storage_ptr_$", "typeString": "function (struct AdNetworkSet.InventorySet storage pointer,uint256) returns (bool)" } }, "id": 391, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "3082:33:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 392, "nodeType": "ExpressionStatement", "src": "3082:33:2" }, { "expression": { "id": 397, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "--", "prefix": false, "src": "3125:34:2", "subExpression": { "baseExpression": { "id": 393, "name": "_ownerInventoryCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 239, "src": "3125:20:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint32_$", "typeString": "mapping(address => uint32)" } }, "id": 396, "indexExpression": { "expression": { "id": 394, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967281, "src": "3146:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 395, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "src": "3146:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "3125:32:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 398, "nodeType": "ExpressionStatement", "src": "3125:34:2" } ] }, "functionSelector": "2e9d3ffb", "id": 400, "implemented": true, "kind": "function", "modifiers": [], "name": "removeAdInventory", "nameLocation": "2665:17:2", "nodeType": "FunctionDefinition", "parameters": { "id": 357, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 356, "mutability": "mutable", "name": "_inventoryId", "nameLocation": "2691:12:2", "nodeType": "VariableDeclaration", "scope": 400, "src": "2683:20:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 355, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2683:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "2682:22:2" }, "returnParameters": { "id": 358, "nodeType": "ParameterList", "parameters": [], "src": "2714:0:2" }, "scope": 1755, "src": "2656:510:2", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "body": { "id": 547, "nodeType": "Block", "src": "3316:1528:2", "statements": [ { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 421, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "baseExpression": { "id": 416, "name": "_ownerAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 235, "src": "3347:13:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint32_$", "typeString": "mapping(address => uint32)" } }, "id": 419, "indexExpression": { "expression": { "id": 417, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967281, "src": "3361:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 418, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "src": "3361:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "3347:25:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "id": 420, "name": "MAX_CREATABLE_AD_COUNT", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 169, "src": "3375:22:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "3347:50:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "596f752068617665207265616368656420746865206d6178696d756d206e756d626572206f662061647320796f752063616e206372656174652e20596f75206e65656420746f2072656d6f766520756e77616e746564206164732e", "id": 422, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "3411:93:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e73bff7657bdbb5bdef4ed41a4c1c24dfb5c73f6334bacdcb8893c75bf0f5744", "typeString": "literal_string \"You have reached the maximum number of ads you can create. You need to remove unwanted ads.\"" }, "value": "You have reached the maximum number of ads you can create. You need to remove unwanted ads." } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_e73bff7657bdbb5bdef4ed41a4c1c24dfb5c73f6334bacdcb8893c75bf0f5744", "typeString": "literal_string \"You have reached the maximum number of ads you can create. You need to remove unwanted ads.\"" } ], "id": 415, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "3326:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 423, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "3326:179:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 424, "nodeType": "ExpressionStatement", "src": "3326:179:2" }, { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_bool", "typeString": "bool" }, "id": 434, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "commonType": { "typeIdentifier": "t_uint32", "typeString": "uint32" }, "id": 428, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 426, "name": "_end", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 410, "src": "3536:4:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "nodeType": "BinaryOperation", "operator": ">", "rightExpression": { "id": 427, "name": "_start", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 408, "src": "3543:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "src": "3536:13:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "BinaryOperation", "operator": "&&", "rightExpression": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 433, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "commonType": { "typeIdentifier": "t_uint32", "typeString": "uint32" }, "id": 431, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 429, "name": "_end", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 410, "src": "3565:4:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "nodeType": "BinaryOperation", "operator": "-", "rightExpression": { "id": 430, "name": "_start", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 408, "src": "3572:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "src": "3565:13:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "nodeType": "BinaryOperation", "operator": ">=", "rightExpression": { "id": 432, "name": "MIN_DELIVERY_TIME", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 181, "src": "3582:17:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "3565:34:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "src": "3536:63:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "5468652064656c69766572792073746172742074696d65206d757374206265206265666f7265207468652064656c697665727920656e642074696d652c20616e642061206d696e696d756d2064656c697665727920706572696f64206d757374206265207365742e", "id": 435, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "3613:106:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_5447ff33ec71380c4433dea19bd92e1e04cd36dcd9d05b85381a884186004cac", "typeString": "literal_string \"The delivery start time must be before the delivery end time, and a minimum delivery period must be set.\"" }, "value": "The delivery start time must be before the delivery end time, and a minimum delivery period must be set." } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_5447ff33ec71380c4433dea19bd92e1e04cd36dcd9d05b85381a884186004cac", "typeString": "literal_string \"The delivery start time must be before the delivery end time, and a minimum delivery period must be set.\"" } ], "id": 425, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "3515:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 436, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "3515:214:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 437, "nodeType": "ExpressionStatement", "src": "3515:214:2" }, { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_bool", "typeString": "bool" }, "id": 449, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 442, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 439, "name": "_start", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 408, "src": "3760:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "nodeType": "BinaryOperation", "operator": ">", "rightExpression": { "expression": { "id": 440, "name": "block", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967292, "src": "3769:5:2", "typeDescriptions": { "typeIdentifier": "t_magic_block", "typeString": "block" } }, "id": 441, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "timestamp", "nodeType": "MemberAccess", "src": "3769:15:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "3760:24:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "BinaryOperation", "operator": "&&", "rightExpression": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 448, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 446, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 443, "name": "_start", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 408, "src": "3800:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "nodeType": "BinaryOperation", "operator": "-", "rightExpression": { "expression": { "id": 444, "name": "block", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967292, "src": "3809:5:2", "typeDescriptions": { "typeIdentifier": "t_magic_block", "typeString": "block" } }, "id": 445, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "timestamp", "nodeType": "MemberAccess", "src": "3809:15:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "3800:24:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": ">=", "rightExpression": { "id": 447, "name": "MIN_TIME_REQUIRED_TO_START_DELIVERY", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 189, "src": "3828:35:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "3800:63:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "src": "3760:103:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "4974206973206e656365737361727920746f20616c6c6f772061206365727461696e20616d6f756e74206f662074696d65206265666f72652074686520646973747269627574696f6e207374617274732e", "id": 450, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "3877:83:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_0e7f391a772d09ccfabb4f385b147176f21130142ee83356b796e2c0f11049c3", "typeString": "literal_string \"It is necessary to allow a certain amount of time before the distribution starts.\"" }, "value": "It is necessary to allow a certain amount of time before the distribution starts." } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_0e7f391a772d09ccfabb4f385b147176f21130142ee83356b796e2c0f11049c3", "typeString": "literal_string \"It is necessary to allow a certain amount of time before the distribution starts.\"" } ], "id": 438, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "3739:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 451, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "3739:231:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 452, "nodeType": "ExpressionStatement", "src": "3739:231:2" }, { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 458, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "baseExpression": { "id": 454, "name": "_inventoryAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 243, "src": "4001:17:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint32_$", "typeString": "mapping(uint256 => uint32)" } }, "id": 456, "indexExpression": { "id": 455, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 402, "src": "4019:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "4001:31:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "id": 457, "name": "MAX_DELIVERABLE_AD_COUNT", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 175, "src": "4035:24:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "4001:58:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "457863656564656420746865206c696d6974206f662061647320746861742063616e2062652064656c69766572656420746f20796f757220696e76656e746f72792e", "id": 459, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "4073:68:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_5fb2033a4f86e03607b147b551967dc01e4d9efe9e84cd31d34f95975544ffb8", "typeString": "literal_string \"Exceeded the limit of ads that can be delivered to your inventory.\"" }, "value": "Exceeded the limit of ads that can be delivered to your inventory." } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_5fb2033a4f86e03607b147b551967dc01e4d9efe9e84cd31d34f95975544ffb8", "typeString": "literal_string \"Exceeded the limit of ads that can be delivered to your inventory.\"" } ], "id": 453, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "3980:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 460, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "3980:171:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 461, "nodeType": "ExpressionStatement", "src": "3980:171:2" }, { "assignments": [ 466 ], "declarations": [ { "constant": false, "id": 466, "mutability": "mutable", "name": "inventory", "nameLocation": "4193:9:2", "nodeType": "VariableDeclaration", "scope": 547, "src": "4162:40:2", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory" }, "typeName": { "id": 465, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 464, "name": "AdNetworkSet.Inventory", "nodeType": "IdentifierPath", "referencedDeclaration": 1779, "src": "4162:22:2" }, "referencedDeclaration": 1779, "src": "4162:22:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory" } }, "visibility": "internal" } ], "id": 471, "initialValue": { "arguments": [ { "id": 469, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 402, "src": "4222:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "id": 467, "name": "_inventories", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 213, "src": "4205:12:2", "typeDescriptions": { "typeIdentifier": "t_struct$_InventorySet_$1766_storage", "typeString": "struct AdNetworkSet.InventorySet storage ref" } }, "id": 468, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "get", "nodeType": "MemberAccess", "referencedDeclaration": 1856, "src": "4205:16:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_struct$_InventorySet_$1766_storage_ptr_$_t_uint256_$returns$_t_struct$_Inventory_$1779_storage_ptr_$bound_to$_t_struct$_InventorySet_$1766_storage_ptr_$", "typeString": "function (struct AdNetworkSet.InventorySet storage pointer,uint256) view returns (struct AdNetworkSet.Inventory storage pointer)" } }, "id": 470, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "4205:30:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "nodeType": "VariableDeclarationStatement", "src": "4162:73:2" }, { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 477, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { "id": 473, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967281, "src": "4253:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 474, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "value", "nodeType": "MemberAccess", "src": "4253:9:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": ">=", "rightExpression": { "expression": { "id": 475, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 466, "src": "4266:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 476, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "floorPrice", "nodeType": "MemberAccess", "referencedDeclaration": 1778, "src": "4266:20:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "4253:33:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "6164207072696365206d757374206265206c6172676572207468616e20666c6f6f722070726963652073657420627920696e76656e746f7279206f776e65722e", "id": 478, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "4288:66:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_276b86c7a00b3f00b740ebb03804c0fc4012d2d56e251449434230a161501bbb", "typeString": "literal_string \"ad price must be larger than floor price set by inventory owner.\"" }, "value": "ad price must be larger than floor price set by inventory owner." } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_276b86c7a00b3f00b740ebb03804c0fc4012d2d56e251449434230a161501bbb", "typeString": "literal_string \"ad price must be larger than floor price set by inventory owner.\"" } ], "id": 472, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "4245:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 479, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "4245:110:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 480, "nodeType": "ExpressionStatement", "src": "4245:110:2" }, { "expression": { "arguments": [], "expression": { "argumentTypes": [], "expression": { "id": 481, "name": "_adIds", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 216, "src": "4366:6:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Counter_$5_storage", "typeString": "struct Counters.Counter storage ref" } }, "id": 483, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "increment", "nodeType": "MemberAccess", "referencedDeclaration": 31, "src": "4366:16:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_struct$_Counter_$5_storage_ptr_$returns$__$bound_to$_t_struct$_Counter_$5_storage_ptr_$", "typeString": "function (struct Counters.Counter storage pointer)" } }, "id": 484, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "4366:18:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 485, "nodeType": "ExpressionStatement", "src": "4366:18:2" }, { "assignments": [ 487 ], "declarations": [ { "constant": false, "id": 487, "mutability": "mutable", "name": "adId", "nameLocation": "4402:4:2", "nodeType": "VariableDeclaration", "scope": 547, "src": "4394:12:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 486, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "4394:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 491, "initialValue": { "arguments": [], "expression": { "argumentTypes": [], "expression": { "id": 488, "name": "_adIds", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 216, "src": "4409:6:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Counter_$5_storage", "typeString": "struct Counters.Counter storage ref" } }, "id": 489, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "current", "nodeType": "MemberAccess", "referencedDeclaration": 17, "src": "4409:14:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_struct$_Counter_$5_storage_ptr_$returns$_t_uint256_$bound_to$_t_struct$_Counter_$5_storage_ptr_$", "typeString": "function (struct Counters.Counter storage pointer) view returns (uint256)" } }, "id": 490, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "4409:16:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", "src": "4394:31:2" }, { "assignments": [ 496 ], "declarations": [ { "constant": false, "id": 496, "mutability": "mutable", "name": "ad", "nameLocation": "4459:2:2", "nodeType": "VariableDeclaration", "scope": 547, "src": "4436:25:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_memory_ptr", "typeString": "struct AdNetworkSet.Ad" }, "typeName": { "id": 495, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 494, "name": "AdNetworkSet.Ad", "nodeType": "IdentifierPath", "referencedDeclaration": 1984, "src": "4436:15:2" }, "referencedDeclaration": 1984, "src": "4436:15:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad" } }, "visibility": "internal" } ], "id": 513, "initialValue": { "arguments": [ { "id": 499, "name": "adId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 487, "src": "4480:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 500, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 402, "src": "4486:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "arguments": [ { "expression": { "id": 503, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967281, "src": "4508:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 504, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "src": "4508:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 502, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "4500:8:2", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_payable_$", "typeString": "type(address payable)" }, "typeName": { "id": 501, "name": "address", "nodeType": "ElementaryTypeName", "src": "4500:8:2", "stateMutability": "payable", "typeDescriptions": {} } }, "id": 505, "isConstant": false, "isLValue": false, "isPure": false, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "4500:19:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, { "id": 506, "name": "_hash", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 404, "src": "4521:5:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, { "id": 507, "name": "_hashForDelivery", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 406, "src": "4528:16:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, { "id": 508, "name": "_start", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 408, "src": "4546:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, { "id": 509, "name": "_end", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 410, "src": "4554:4:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, { "expression": { "id": 510, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967281, "src": "4560:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 511, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "value", "nodeType": "MemberAccess", "src": "4560:9:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_address_payable", "typeString": "address payable" }, { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, { "typeIdentifier": "t_uint32", "typeString": "uint32" }, { "typeIdentifier": "t_uint32", "typeString": "uint32" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "id": 497, "name": "AdNetworkSet", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2164, "src": "4464:12:2", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_AdNetworkSet_$2164_$", "typeString": "type(library AdNetworkSet)" } }, "id": 498, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "Ad", "nodeType": "MemberAccess", "referencedDeclaration": 1984, "src": "4464:15:2", "typeDescriptions": { "typeIdentifier": "t_type$_t_struct$_Ad_$1984_storage_ptr_$", "typeString": "type(struct AdNetworkSet.Ad storage pointer)" } }, "id": 512, "isConstant": false, "isLValue": false, "isPure": false, "kind": "structConstructorCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "4464:106:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_memory_ptr", "typeString": "struct AdNetworkSet.Ad memory" } }, "nodeType": "VariableDeclarationStatement", "src": "4436:134:2" }, { "expression": { "arguments": [ { "arguments": [ { "id": 517, "name": "adId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 487, "src": "4597:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 518, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 496, "src": "4603:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_memory_ptr", "typeString": "struct AdNetworkSet.Ad memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_struct$_Ad_$1984_memory_ptr", "typeString": "struct AdNetworkSet.Ad memory" } ], "expression": { "id": 515, "name": "_ads", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 219, "src": "4588:4:2", "typeDescriptions": { "typeIdentifier": "t_struct$_AdSet_$1967_storage", "typeString": "struct AdNetworkSet.AdSet storage ref" } }, "id": 516, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "add", "nodeType": "MemberAccess", "referencedDeclaration": 2028, "src": "4588:8:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_struct$_AdSet_$1967_storage_ptr_$_t_uint256_$_t_struct$_Ad_$1984_memory_ptr_$returns$_t_bool_$bound_to$_t_struct$_AdSet_$1967_storage_ptr_$", "typeString": "function (struct AdNetworkSet.AdSet storage pointer,uint256,struct AdNetworkSet.Ad memory) returns (bool)" } }, "id": 519, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "4588:18:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "616473206d75737420626520616464656420636f72726563746c79", "id": 520, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "4608:29:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_55bde59c791e3aa65ae4147bb0db172e43fa3edefa784ea58d73aaa478127b14", "typeString": "literal_string \"ads must be added correctly\"" }, "value": "ads must be added correctly" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_55bde59c791e3aa65ae4147bb0db172e43fa3edefa784ea58d73aaa478127b14", "typeString": "literal_string \"ads must be added correctly\"" } ], "id": 514, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "4580:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 521, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "4580:58:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 522, "nodeType": "ExpressionStatement", "src": "4580:58:2" }, { "expression": { "id": 527, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 523, "name": "_requestApproval", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 223, "src": "4649:16:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" } }, "id": 525, "indexExpression": { "id": 524, "name": "adId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 487, "src": "4666:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "4649:22:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "id": 526, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 402, "src": "4674:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "4649:37:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 528, "nodeType": "ExpressionStatement", "src": "4649:37:2" }, { "expression": { "id": 532, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "4696:37:2", "subExpression": { "baseExpression": { "id": 529, "name": "_inventoryWaitAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 247, "src": "4696:21:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint32_$", "typeString": "mapping(uint256 => uint32)" } }, "id": 531, "indexExpression": { "id": 530, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 402, "src": "4718:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "4696:35:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 533, "nodeType": "ExpressionStatement", "src": "4696:37:2" }, { "expression": { "id": 538, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "4743:27:2", "subExpression": { "baseExpression": { "id": 534, "name": "_ownerAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 235, "src": "4743:13:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint32_$", "typeString": "mapping(address => uint32)" } }, "id": 537, "indexExpression": { "expression": { "id": 535, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967281, "src": "4757:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 536, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "src": "4757:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "4743:25:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 539, "nodeType": "ExpressionStatement", "src": "4743:27:2" }, { "eventCall": { "arguments": [ { "id": 541, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 402, "src": "4796:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 542, "name": "adId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 487, "src": "4810:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 540, "name": "AdCreated", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 261, "src": "4786:9:2", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_uint256_$returns$__$", "typeString": "function (uint256,uint256)" } }, "id": 543, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "4786:29:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 544, "nodeType": "EmitStatement", "src": "4781:34:2" }, { "expression": { "id": 545, "name": "adId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 487, "src": "4833:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "functionReturnParameters": 414, "id": 546, "nodeType": "Return", "src": "4826:11:2" } ] }, "functionSelector": "e815c06e", "id": 548, "implemented": true, "kind": "function", "modifiers": [], "name": "createAd", "nameLocation": "3181:8:2", "nodeType": "FunctionDefinition", "parameters": { "id": 411, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 402, "mutability": "mutable", "name": "_inventoryId", "nameLocation": "3198:12:2", "nodeType": "VariableDeclaration", "scope": 548, "src": "3190:20:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 401, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3190:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 404, "mutability": "mutable", "name": "_hash", "nameLocation": "3220:5:2", "nodeType": "VariableDeclaration", "scope": 548, "src": "3212:13:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 403, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "3212:7:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 406, "mutability": "mutable", "name": "_hashForDelivery", "nameLocation": "3235:16:2", "nodeType": "VariableDeclaration", "scope": 548, "src": "3227:24:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 405, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "3227:7:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 408, "mutability": "mutable", "name": "_start", "nameLocation": "3260:6:2", "nodeType": "VariableDeclaration", "scope": 548, "src": "3253:13:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" }, "typeName": { "id": 407, "name": "uint32", "nodeType": "ElementaryTypeName", "src": "3253:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "visibility": "internal" }, { "constant": false, "id": 410, "mutability": "mutable", "name": "_end", "nameLocation": "3275:4:2", "nodeType": "VariableDeclaration", "scope": 548, "src": "3268:11:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" }, "typeName": { "id": 409, "name": "uint32", "nodeType": "ElementaryTypeName", "src": "3268:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "visibility": "internal" } ], "src": "3189:91:2" }, "returnParameters": { "id": 414, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 413, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 548, "src": "3307:7:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 412, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3307:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "3306:9:2" }, "scope": 1755, "src": "3172:1672:2", "stateMutability": "payable", "virtual": false, "visibility": "external" }, { "body": { "id": 636, "nodeType": "Block", "src": "4915:855:2", "statements": [ { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 560, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "baseExpression": { "id": 556, "name": "_inventoryAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 243, "src": "4946:17:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint32_$", "typeString": "mapping(uint256 => uint32)" } }, "id": 558, "indexExpression": { "id": 557, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 550, "src": "4964:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "4946:31:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "id": 559, "name": "MAX_DELIVERABLE_AD_COUNT", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 175, "src": "4980:24:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "4946:58:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "457863656564656420746865206c696d6974206f662061647320746861742063616e2062652064656c69766572656420746f20796f757220696e76656e746f72792e", "id": 561, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "5018:68:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_5fb2033a4f86e03607b147b551967dc01e4d9efe9e84cd31d34f95975544ffb8", "typeString": "literal_string \"Exceeded the limit of ads that can be delivered to your inventory.\"" }, "value": "Exceeded the limit of ads that can be delivered to your inventory." } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_5fb2033a4f86e03607b147b551967dc01e4d9efe9e84cd31d34f95975544ffb8", "typeString": "literal_string \"Exceeded the limit of ads that can be delivered to your inventory.\"" } ], "id": 555, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "4925:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 562, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "4925:162:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 563, "nodeType": "ExpressionStatement", "src": "4925:162:2" }, { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 569, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "baseExpression": { "id": 565, "name": "_requestApproval", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 223, "src": "5118:16:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" } }, "id": 567, "indexExpression": { "id": 566, "name": "_adId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 552, "src": "5135:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "5118:23:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "id": 568, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 550, "src": "5145:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "5118:39:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "4164766572746973696e6720666f72207468652074617267657420696e76656e746f7279206973206e6f742063757272656e746c7920756e64657220726576696577", "id": 570, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "5171:68:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_6977932ff671ce5ee249f95c8460c6c87009b2b0c2c0bcfc1f0caa4abc358047", "typeString": "literal_string \"Advertising for the target inventory is not currently under review\"" }, "value": "Advertising for the target inventory is not currently under review" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_6977932ff671ce5ee249f95c8460c6c87009b2b0c2c0bcfc1f0caa4abc358047", "typeString": "literal_string \"Advertising for the target inventory is not currently under review\"" } ], "id": 564, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "5097:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 571, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "5097:143:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 572, "nodeType": "ExpressionStatement", "src": "5097:143:2" }, { "assignments": [ 577 ], "declarations": [ { "constant": false, "id": 577, "mutability": "mutable", "name": "inventory", "nameLocation": "5282:9:2", "nodeType": "VariableDeclaration", "scope": 636, "src": "5251:40:2", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory" }, "typeName": { "id": 576, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 575, "name": "AdNetworkSet.Inventory", "nodeType": "IdentifierPath", "referencedDeclaration": 1779, "src": "5251:22:2" }, "referencedDeclaration": 1779, "src": "5251:22:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory" } }, "visibility": "internal" } ], "id": 582, "initialValue": { "arguments": [ { "id": 580, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 550, "src": "5311:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "id": 578, "name": "_inventories", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 213, "src": "5294:12:2", "typeDescriptions": { "typeIdentifier": "t_struct$_InventorySet_$1766_storage", "typeString": "struct AdNetworkSet.InventorySet storage ref" } }, "id": 579, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "get", "nodeType": "MemberAccess", "referencedDeclaration": 1856, "src": "5294:16:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_struct$_InventorySet_$1766_storage_ptr_$_t_uint256_$returns$_t_struct$_Inventory_$1779_storage_ptr_$bound_to$_t_struct$_InventorySet_$1766_storage_ptr_$", "typeString": "function (struct AdNetworkSet.InventorySet storage pointer,uint256) view returns (struct AdNetworkSet.Inventory storage pointer)" } }, "id": 581, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "5294:30:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "nodeType": "VariableDeclarationStatement", "src": "5251:73:2" }, { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 588, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { "id": 584, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 577, "src": "5355:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 585, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", "referencedDeclaration": 1770, "src": "5355:15:2", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "expression": { "id": 586, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967281, "src": "5374:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 587, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "src": "5374:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "5355:29:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "4f6e6c7920696e76656e746f7279206f776e6572732063616e20617070726f7665206164732e", "id": 589, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "5398:40:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_ca0a05d4e8866fc1a00b8227f39eccee06d206e468238220c68c4bb4c8ad79a8", "typeString": "literal_string \"Only inventory owners can approve ads.\"" }, "value": "Only inventory owners can approve ads." } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_ca0a05d4e8866fc1a00b8227f39eccee06d206e468238220c68c4bb4c8ad79a8", "typeString": "literal_string \"Only inventory owners can approve ads.\"" } ], "id": 583, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "5334:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 590, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "5334:105:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 591, "nodeType": "ExpressionStatement", "src": "5334:105:2" }, { "assignments": [ 596 ], "declarations": [ { "constant": false, "id": 596, "mutability": "mutable", "name": "ad", "nameLocation": "5474:2:2", "nodeType": "VariableDeclaration", "scope": 636, "src": "5450:26:2", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad" }, "typeName": { "id": 595, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 594, "name": "AdNetworkSet.Ad", "nodeType": "IdentifierPath", "referencedDeclaration": 1984, "src": "5450:15:2" }, "referencedDeclaration": 1984, "src": "5450:15:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad" } }, "visibility": "internal" } ], "id": 601, "initialValue": { "arguments": [ { "id": 599, "name": "_adId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 552, "src": "5488:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "id": 597, "name": "_ads", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 219, "src": "5479:4:2", "typeDescriptions": { "typeIdentifier": "t_struct$_AdSet_$1967_storage", "typeString": "struct AdNetworkSet.AdSet storage ref" } }, "id": 598, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "get", "nodeType": "MemberAccess", "referencedDeclaration": 2079, "src": "5479:8:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_struct$_AdSet_$1967_storage_ptr_$_t_uint256_$returns$_t_struct$_Ad_$1984_storage_ptr_$bound_to$_t_struct$_AdSet_$1967_storage_ptr_$", "typeString": "function (struct AdNetworkSet.AdSet storage pointer,uint256) view returns (struct AdNetworkSet.Ad storage pointer)" } }, "id": 600, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "5479:15:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "nodeType": "VariableDeclarationStatement", "src": "5450:44:2" }, { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 607, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { "id": 603, "name": "block", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967292, "src": "5512:5:2", "typeDescriptions": { "typeIdentifier": "t_magic_block", "typeString": "block" } }, "id": 604, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "timestamp", "nodeType": "MemberAccess", "src": "5512:15:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "expression": { "id": 605, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 596, "src": "5530:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 606, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "start", "nodeType": "MemberAccess", "referencedDeclaration": 1979, "src": "5530:8:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "src": "5512:26:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 602, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "5504:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 608, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "5504:35:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 609, "nodeType": "ExpressionStatement", "src": "5504:35:2" }, { "expression": { "id": 613, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "delete", "prefix": true, "src": "5550:30:2", "subExpression": { "baseExpression": { "id": 610, "name": "_requestApproval", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 223, "src": "5557:16:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" } }, "id": 612, "indexExpression": { "id": 611, "name": "_adId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 552, "src": "5574:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "5557:23:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 614, "nodeType": "ExpressionStatement", "src": "5550:30:2" }, { "expression": { "id": 618, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "5590:33:2", "subExpression": { "baseExpression": { "id": 615, "name": "_inventoryAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 243, "src": "5590:17:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint32_$", "typeString": "mapping(uint256 => uint32)" } }, "id": 617, "indexExpression": { "id": 616, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 550, "src": "5608:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "5590:31:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 619, "nodeType": "ExpressionStatement", "src": "5590:33:2" }, { "expression": { "id": 623, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "--", "prefix": false, "src": "5633:37:2", "subExpression": { "baseExpression": { "id": 620, "name": "_inventoryWaitAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 247, "src": "5633:21:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint32_$", "typeString": "mapping(uint256 => uint32)" } }, "id": 622, "indexExpression": { "id": 621, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 550, "src": "5655:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "5633:35:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 624, "nodeType": "ExpressionStatement", "src": "5633:37:2" }, { "expression": { "id": 629, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 625, "name": "_adToInventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 227, "src": "5680:14:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" } }, "id": 627, "indexExpression": { "id": 626, "name": "_adId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 552, "src": "5695:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "5680:21:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "id": 628, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 550, "src": "5704:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "5680:36:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 630, "nodeType": "ExpressionStatement", "src": "5680:36:2" }, { "eventCall": { "arguments": [ { "id": 632, "name": "_adId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 552, "src": "5743:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 633, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 550, "src": "5750:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 631, "name": "AdApproved", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 267, "src": "5732:10:2", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_uint256_$returns$__$", "typeString": "function (uint256,uint256)" } }, "id": 634, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "5732:31:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 635, "nodeType": "EmitStatement", "src": "5727:36:2" } ] }, "functionSelector": "518de44d", "id": 637, "implemented": true, "kind": "function", "modifiers": [], "name": "approveAd", "nameLocation": "4859:9:2", "nodeType": "FunctionDefinition", "parameters": { "id": 553, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 550, "mutability": "mutable", "name": "_inventoryId", "nameLocation": "4877:12:2", "nodeType": "VariableDeclaration", "scope": 637, "src": "4869:20:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 549, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "4869:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 552, "mutability": "mutable", "name": "_adId", "nameLocation": "4899:5:2", "nodeType": "VariableDeclaration", "scope": 637, "src": "4891:13:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 551, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "4891:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "4868:37:2" }, "returnParameters": { "id": 554, "nodeType": "ParameterList", "parameters": [], "src": "4915:0:2" }, "scope": 1755, "src": "4850:920:2", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "body": { "id": 733, "nodeType": "Block", "src": "5840:806:2", "statements": [ { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 649, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "baseExpression": { "id": 645, "name": "_requestApproval", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 223, "src": "5871:16:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" } }, "id": 647, "indexExpression": { "id": 646, "name": "_adId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 641, "src": "5888:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "5871:23:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "id": 648, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 639, "src": "5898:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "5871:39:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "4164766572746973696e6720666f72207468652074617267657420696e76656e746f7279206973206e6f742063757272656e746c7920756e64657220726576696577", "id": 650, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "5924:68:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_6977932ff671ce5ee249f95c8460c6c87009b2b0c2c0bcfc1f0caa4abc358047", "typeString": "literal_string \"Advertising for the target inventory is not currently under review\"" }, "value": "Advertising for the target inventory is not currently under review" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_6977932ff671ce5ee249f95c8460c6c87009b2b0c2c0bcfc1f0caa4abc358047", "typeString": "literal_string \"Advertising for the target inventory is not currently under review\"" } ], "id": 644, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "5850:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 651, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "5850:143:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 652, "nodeType": "ExpressionStatement", "src": "5850:143:2" }, { "assignments": [ 657 ], "declarations": [ { "constant": false, "id": 657, "mutability": "mutable", "name": "inventory", "nameLocation": "6035:9:2", "nodeType": "VariableDeclaration", "scope": 733, "src": "6004:40:2", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory" }, "typeName": { "id": 656, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 655, "name": "AdNetworkSet.Inventory", "nodeType": "IdentifierPath", "referencedDeclaration": 1779, "src": "6004:22:2" }, "referencedDeclaration": 1779, "src": "6004:22:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory" } }, "visibility": "internal" } ], "id": 662, "initialValue": { "arguments": [ { "id": 660, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 639, "src": "6064:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "id": 658, "name": "_inventories", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 213, "src": "6047:12:2", "typeDescriptions": { "typeIdentifier": "t_struct$_InventorySet_$1766_storage", "typeString": "struct AdNetworkSet.InventorySet storage ref" } }, "id": 659, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "get", "nodeType": "MemberAccess", "referencedDeclaration": 1856, "src": "6047:16:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_struct$_InventorySet_$1766_storage_ptr_$_t_uint256_$returns$_t_struct$_Inventory_$1779_storage_ptr_$bound_to$_t_struct$_InventorySet_$1766_storage_ptr_$", "typeString": "function (struct AdNetworkSet.InventorySet storage pointer,uint256) view returns (struct AdNetworkSet.Inventory storage pointer)" } }, "id": 661, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "6047:30:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "nodeType": "VariableDeclarationStatement", "src": "6004:73:2" }, { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 668, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { "id": 664, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 657, "src": "6108:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 665, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", "referencedDeclaration": 1770, "src": "6108:15:2", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "expression": { "id": 666, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967281, "src": "6127:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 667, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "src": "6127:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "6108:29:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "4f6e6c7920696e76656e746f7279206f776e6572732063616e2072656a656374206164732e", "id": 669, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "6151:39:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_dccc571f50c08bf8c9bdae798fbc65f302c3b01f5074ba43958f25d7ef888791", "typeString": "literal_string \"Only inventory owners can reject ads.\"" }, "value": "Only inventory owners can reject ads." } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_dccc571f50c08bf8c9bdae798fbc65f302c3b01f5074ba43958f25d7ef888791", "typeString": "literal_string \"Only inventory owners can reject ads.\"" } ], "id": 663, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "6087:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 670, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "6087:104:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 671, "nodeType": "ExpressionStatement", "src": "6087:104:2" }, { "expression": { "id": 675, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "delete", "prefix": true, "src": "6202:30:2", "subExpression": { "baseExpression": { "id": 672, "name": "_requestApproval", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 223, "src": "6209:16:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" } }, "id": 674, "indexExpression": { "id": 673, "name": "_adId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 641, "src": "6226:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "6209:23:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 676, "nodeType": "ExpressionStatement", "src": "6202:30:2" }, { "expression": { "id": 680, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "--", "prefix": false, "src": "6242:37:2", "subExpression": { "baseExpression": { "id": 677, "name": "_inventoryWaitAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 247, "src": "6242:21:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint32_$", "typeString": "mapping(uint256 => uint32)" } }, "id": 679, "indexExpression": { "id": 678, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 639, "src": "6264:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "6242:35:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 681, "nodeType": "ExpressionStatement", "src": "6242:37:2" }, { "assignments": [ 686 ], "declarations": [ { "constant": false, "id": 686, "mutability": "mutable", "name": "ad", "nameLocation": "6313:2:2", "nodeType": "VariableDeclaration", "scope": 733, "src": "6289:26:2", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad" }, "typeName": { "id": 685, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 684, "name": "AdNetworkSet.Ad", "nodeType": "IdentifierPath", "referencedDeclaration": 1984, "src": "6289:15:2" }, "referencedDeclaration": 1984, "src": "6289:15:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad" } }, "visibility": "internal" } ], "id": 691, "initialValue": { "arguments": [ { "id": 689, "name": "_adId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 641, "src": "6327:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "id": 687, "name": "_ads", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 219, "src": "6318:4:2", "typeDescriptions": { "typeIdentifier": "t_struct$_AdSet_$1967_storage", "typeString": "struct AdNetworkSet.AdSet storage ref" } }, "id": 688, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "get", "nodeType": "MemberAccess", "referencedDeclaration": 2079, "src": "6318:8:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_struct$_AdSet_$1967_storage_ptr_$_t_uint256_$returns$_t_struct$_Ad_$1984_storage_ptr_$bound_to$_t_struct$_AdSet_$1967_storage_ptr_$", "typeString": "function (struct AdNetworkSet.AdSet storage pointer,uint256) view returns (struct AdNetworkSet.Ad storage pointer)" } }, "id": 690, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "6318:15:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "nodeType": "VariableDeclarationStatement", "src": "6289:44:2" }, { "expression": { "id": 696, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "--", "prefix": false, "src": "6343:25:2", "subExpression": { "baseExpression": { "id": 692, "name": "_ownerAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 235, "src": "6343:13:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint32_$", "typeString": "mapping(address => uint32)" } }, "id": 695, "indexExpression": { "expression": { "id": 693, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 686, "src": "6357:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 694, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", "referencedDeclaration": 1973, "src": "6357:8:2", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "6343:23:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 697, "nodeType": "ExpressionStatement", "src": "6343:25:2" }, { "assignments": [ 699 ], "declarations": [ { "constant": false, "id": 699, "mutability": "mutable", "name": "adOwner", "nameLocation": "6394:7:2", "nodeType": "VariableDeclaration", "scope": 733, "src": "6378:23:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" }, "typeName": { "id": 698, "name": "address", "nodeType": "ElementaryTypeName", "src": "6378:15:2", "stateMutability": "payable", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "visibility": "internal" } ], "id": 702, "initialValue": { "expression": { "id": 700, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 686, "src": "6404:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 701, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", "referencedDeclaration": 1973, "src": "6404:8:2", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "nodeType": "VariableDeclarationStatement", "src": "6378:34:2" }, { "assignments": [ 704 ], "declarations": [ { "constant": false, "id": 704, "mutability": "mutable", "name": "paybackPrice", "nameLocation": "6427:12:2", "nodeType": "VariableDeclaration", "scope": 733, "src": "6422:17:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 703, "name": "uint", "nodeType": "ElementaryTypeName", "src": "6422:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 707, "initialValue": { "expression": { "id": 705, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 686, "src": "6442:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 706, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "price", "nodeType": "MemberAccess", "referencedDeclaration": 1983, "src": "6442:8:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", "src": "6422:28:2" }, { "assignments": [ 709, null ], "declarations": [ { "constant": false, "id": 709, "mutability": "mutable", "name": "r", "nameLocation": "6467:1:2", "nodeType": "VariableDeclaration", "scope": 733, "src": "6462:6:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 708, "name": "bool", "nodeType": "ElementaryTypeName", "src": "6462:4:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "visibility": "internal" }, null ], "id": 716, "initialValue": { "arguments": [ { "hexValue": "", "id": 714, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "6508:2:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", "typeString": "literal_string \"\"" }, "value": "" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", "typeString": "literal_string \"\"" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", "typeString": "literal_string \"\"" } ], "expression": { "id": 710, "name": "adOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 699, "src": "6473:7:2", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "id": 711, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "call", "nodeType": "MemberAccess", "src": "6473:12:2", "typeDescriptions": { "typeIdentifier": "t_function_barecall_payable$_t_bytes_memory_ptr_$returns$_t_bool_$_t_bytes_memory_ptr_$", "typeString": "function (bytes memory) payable returns (bool,bytes memory)" } }, "id": 713, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "names": [ "value" ], "nodeType": "FunctionCallOptions", "options": [ { "id": 712, "name": "paybackPrice", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 704, "src": "6494:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "src": "6473:34:2", "typeDescriptions": { "typeIdentifier": "t_function_barecall_payable$_t_bytes_memory_ptr_$returns$_t_bool_$_t_bytes_memory_ptr_$value", "typeString": "function (bytes memory) payable returns (bool,bytes memory)" } }, "id": 715, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "6473:38:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$_t_bool_$_t_bytes_memory_ptr_$", "typeString": "tuple(bool,bytes memory)" } }, "nodeType": "VariableDeclarationStatement", "src": "6461:50:2" }, { "expression": { "arguments": [ { "id": 718, "name": "r", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 709, "src": "6529:1:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "4661696c656420746f207061796261636b206c6f636b2076616c756573", "id": 719, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "6532:31:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_2408c3db4aaa8531c95016fcf9417b46eca235e606d7ce723c7dc6f164a207fd", "typeString": "literal_string \"Failed to payback lock values\"" }, "value": "Failed to payback lock values" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_2408c3db4aaa8531c95016fcf9417b46eca235e606d7ce723c7dc6f164a207fd", "typeString": "literal_string \"Failed to payback lock values\"" } ], "id": 717, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "6521:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 720, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "6521:43:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 721, "nodeType": "ExpressionStatement", "src": "6521:43:2" }, { "expression": { "arguments": [ { "id": 725, "name": "_adId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 641, "src": "6586:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "id": 722, "name": "_ads", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 219, "src": "6574:4:2", "typeDescriptions": { "typeIdentifier": "t_struct$_AdSet_$1967_storage", "typeString": "struct AdNetworkSet.AdSet storage ref" } }, "id": 724, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "remove", "nodeType": "MemberAccess", "referencedDeclaration": 2163, "src": "6574:11:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_struct$_AdSet_$1967_storage_ptr_$_t_uint256_$returns$_t_bool_$bound_to$_t_struct$_AdSet_$1967_storage_ptr_$", "typeString": "function (struct AdNetworkSet.AdSet storage pointer,uint256) returns (bool)" } }, "id": 726, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "6574:18:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 727, "nodeType": "ExpressionStatement", "src": "6574:18:2" }, { "eventCall": { "arguments": [ { "id": 729, "name": "_adId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 641, "src": "6619:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 730, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 639, "src": "6626:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 728, "name": "AdRejected", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 273, "src": "6608:10:2", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_uint256_$returns$__$", "typeString": "function (uint256,uint256)" } }, "id": 731, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "6608:31:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 732, "nodeType": "EmitStatement", "src": "6603:36:2" } ] }, "functionSelector": "04216974", "id": 734, "implemented": true, "kind": "function", "modifiers": [], "name": "rejectAd", "nameLocation": "5785:8:2", "nodeType": "FunctionDefinition", "parameters": { "id": 642, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 639, "mutability": "mutable", "name": "_inventoryId", "nameLocation": "5802:12:2", "nodeType": "VariableDeclaration", "scope": 734, "src": "5794:20:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 638, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5794:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 641, "mutability": "mutable", "name": "_adId", "nameLocation": "5824:5:2", "nodeType": "VariableDeclaration", "scope": 734, "src": "5816:13:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 640, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5816:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "5793:37:2" }, "returnParameters": { "id": 643, "nodeType": "ParameterList", "parameters": [], "src": "5840:0:2" }, "scope": 1755, "src": "5776:870:2", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "body": { "id": 879, "nodeType": "Block", "src": "6714:1121:2", "statements": [ { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 746, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "baseExpression": { "id": 742, "name": "_adToInventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 227, "src": "6745:14:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" } }, "id": 744, "indexExpression": { "id": 743, "name": "_adId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 738, "src": "6760:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "6745:21:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "id": 745, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 736, "src": "6770:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "6745:37:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "4f6e6c792061647320746861742061726520696e2074686520696e76656e746f72792063616e20626520636f6c6c65637465642e", "id": 747, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "6796:54:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_659fefdbf37c49ed6966d6daba615f39d1833c29220febaffa25a47eec7c36ae", "typeString": "literal_string \"Only ads that are in the inventory can be collected.\"" }, "value": "Only ads that are in the inventory can be collected." } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_659fefdbf37c49ed6966d6daba615f39d1833c29220febaffa25a47eec7c36ae", "typeString": "literal_string \"Only ads that are in the inventory can be collected.\"" } ], "id": 741, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "6724:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 748, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "6724:127:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 749, "nodeType": "ExpressionStatement", "src": "6724:127:2" }, { "assignments": [ 754 ], "declarations": [ { "constant": false, "id": 754, "mutability": "mutable", "name": "ad", "nameLocation": "6886:2:2", "nodeType": "VariableDeclaration", "scope": 879, "src": "6862:26:2", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad" }, "typeName": { "id": 753, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 752, "name": "AdNetworkSet.Ad", "nodeType": "IdentifierPath", "referencedDeclaration": 1984, "src": "6862:15:2" }, "referencedDeclaration": 1984, "src": "6862:15:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad" } }, "visibility": "internal" } ], "id": 759, "initialValue": { "arguments": [ { "id": 757, "name": "_adId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 738, "src": "6900:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "id": 755, "name": "_ads", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 219, "src": "6891:4:2", "typeDescriptions": { "typeIdentifier": "t_struct$_AdSet_$1967_storage", "typeString": "struct AdNetworkSet.AdSet storage ref" } }, "id": 756, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "get", "nodeType": "MemberAccess", "referencedDeclaration": 2079, "src": "6891:8:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_struct$_AdSet_$1967_storage_ptr_$_t_uint256_$returns$_t_struct$_Ad_$1984_storage_ptr_$bound_to$_t_struct$_AdSet_$1967_storage_ptr_$", "typeString": "function (struct AdNetworkSet.AdSet storage pointer,uint256) view returns (struct AdNetworkSet.Ad storage pointer)" } }, "id": 758, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "6891:15:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "nodeType": "VariableDeclarationStatement", "src": "6862:44:2" }, { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 765, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { "id": 761, "name": "block", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967292, "src": "6937:5:2", "typeDescriptions": { "typeIdentifier": "t_magic_block", "typeString": "block" } }, "id": 762, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "timestamp", "nodeType": "MemberAccess", "src": "6937:15:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": ">=", "rightExpression": { "expression": { "id": 763, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 754, "src": "6956:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 764, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "end", "nodeType": "MemberAccess", "referencedDeclaration": 1981, "src": "6956:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "src": "6937:25:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "4f6e6c79206164732074686174206861766520657870697265642063616e20626520636f6c6c65637465642e", "id": 766, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "6976:46:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_78292a3aa51e81943d430cb8bf02e588b16925e83aa89fd5e23fc0c91298f7af", "typeString": "literal_string \"Only ads that have expired can be collected.\"" }, "value": "Only ads that have expired can be collected." } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_78292a3aa51e81943d430cb8bf02e588b16925e83aa89fd5e23fc0c91298f7af", "typeString": "literal_string \"Only ads that have expired can be collected.\"" } ], "id": 760, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "6916:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 767, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "6916:107:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 768, "nodeType": "ExpressionStatement", "src": "6916:107:2" }, { "assignments": [ 773 ], "declarations": [ { "constant": false, "id": 773, "mutability": "mutable", "name": "inventory", "nameLocation": "7064:9:2", "nodeType": "VariableDeclaration", "scope": 879, "src": "7033:40:2", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory" }, "typeName": { "id": 772, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 771, "name": "AdNetworkSet.Inventory", "nodeType": "IdentifierPath", "referencedDeclaration": 1779, "src": "7033:22:2" }, "referencedDeclaration": 1779, "src": "7033:22:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory" } }, "visibility": "internal" } ], "id": 778, "initialValue": { "arguments": [ { "id": 776, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 736, "src": "7093:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "id": 774, "name": "_inventories", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 213, "src": "7076:12:2", "typeDescriptions": { "typeIdentifier": "t_struct$_InventorySet_$1766_storage", "typeString": "struct AdNetworkSet.InventorySet storage ref" } }, "id": 775, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "get", "nodeType": "MemberAccess", "referencedDeclaration": 1856, "src": "7076:16:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_struct$_InventorySet_$1766_storage_ptr_$_t_uint256_$returns$_t_struct$_Inventory_$1779_storage_ptr_$bound_to$_t_struct$_InventorySet_$1766_storage_ptr_$", "typeString": "function (struct AdNetworkSet.InventorySet storage pointer,uint256) view returns (struct AdNetworkSet.Inventory storage pointer)" } }, "id": 777, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "7076:30:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "nodeType": "VariableDeclarationStatement", "src": "7033:73:2" }, { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_bool", "typeString": "bool" }, "id": 790, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 784, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { "id": 780, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967281, "src": "7137:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 781, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "src": "7137:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "expression": { "id": 782, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 773, "src": "7151:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 783, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", "referencedDeclaration": 1770, "src": "7151:15:2", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "src": "7137:29:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "BinaryOperation", "operator": "||", "rightExpression": { "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 789, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { "id": 785, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967281, "src": "7182:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 786, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "src": "7182:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "expression": { "id": 787, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 754, "src": "7196:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 788, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", "referencedDeclaration": 1973, "src": "7196:8:2", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "src": "7182:22:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "src": "7137:67:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "4f6e6c7920746865206f776e6572206f662074686520696e76656e746f7279206f7220746865206f776e6572206f66207468652061642063616e20636f6c6c656374207468652061642e", "id": 791, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "7218:76:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_b0aeae4f4248bb42a18652a04d02fcead20671ee6bcbd039d3ac82c8a2823c8f", "typeString": "literal_string \"Only the owner of the inventory or the owner of the ad can collect the ad.\"" }, "value": "Only the owner of the inventory or the owner of the ad can collect the ad." } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_b0aeae4f4248bb42a18652a04d02fcead20671ee6bcbd039d3ac82c8a2823c8f", "typeString": "literal_string \"Only the owner of the inventory or the owner of the ad can collect the ad.\"" } ], "id": 779, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "7116:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 792, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "7116:179:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 793, "nodeType": "ExpressionStatement", "src": "7116:179:2" }, { "condition": { "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 798, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { "id": 794, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967281, "src": "7310:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 795, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "src": "7310:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "expression": { "id": 796, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 773, "src": "7324:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 797, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", "referencedDeclaration": 1770, "src": "7324:15:2", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "src": "7310:29:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": { "condition": { "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 813, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { "id": 809, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967281, "src": "7410:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 810, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "src": "7410:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "expression": { "id": 811, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 754, "src": "7424:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 812, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", "referencedDeclaration": 1973, "src": "7424:8:2", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "src": "7410:22:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 849, "nodeType": "IfStatement", "src": "7406:235:2", "trueBody": { "id": 848, "nodeType": "Block", "src": "7434:207:2", "statements": [ { "assignments": [ 815 ], "declarations": [ { "constant": false, "id": 815, "mutability": "mutable", "name": "maxGasFee", "nameLocation": "7456:9:2", "nodeType": "VariableDeclaration", "scope": 848, "src": "7448:17:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 814, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "7448:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 828, "initialValue": { "arguments": [ { "id": 826, "name": "MAX_CACHE_BACK_GAS_FEE", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 192, "src": "7505:22:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "arguments": [ { "expression": { "id": 822, "name": "tx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967270, "src": "7488:2:2", "typeDescriptions": { "typeIdentifier": "t_magic_transaction", "typeString": "tx" } }, "id": 823, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "gasprice", "nodeType": "MemberAccess", "src": "7488:11:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "components": [ { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 819, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { "id": 816, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 754, "src": "7469:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 817, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "price", "nodeType": "MemberAccess", "referencedDeclaration": 1983, "src": "7469:8:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "/", "rightExpression": { "hexValue": "3130", "id": 818, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "7480:2:2", "typeDescriptions": { "typeIdentifier": "t_rational_10_by_1", "typeString": "int_const 10" }, "value": "10" }, "src": "7469:13:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "id": 820, "isConstant": false, "isInlineArray": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "TupleExpression", "src": "7468:15:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 821, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "min", "nodeType": "MemberAccess", "referencedDeclaration": 112, "src": "7468:19:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, "id": 824, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "7468:32:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 825, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "min", "nodeType": "MemberAccess", "referencedDeclaration": 112, "src": "7468:36:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, "id": 827, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "7468:60:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", "src": "7448:80:2" }, { "expression": { "arguments": [ { "id": 834, "name": "maxGasFee", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 815, "src": "7560:9:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "expression": { "id": 829, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 754, "src": "7542:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 832, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", "referencedDeclaration": 1973, "src": "7542:8:2", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "id": 833, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "transfer", "nodeType": "MemberAccess", "src": "7542:17:2", "typeDescriptions": { "typeIdentifier": "t_function_transfer_nonpayable$_t_uint256_$returns$__$", "typeString": "function (uint256)" } }, "id": 835, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "7542:28:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 836, "nodeType": "ExpressionStatement", "src": "7542:28:2" }, { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 845, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { "id": 842, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 754, "src": "7609:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 843, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "price", "nodeType": "MemberAccess", "referencedDeclaration": 1983, "src": "7609:8:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "-", "rightExpression": { "id": 844, "name": "maxGasFee", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 815, "src": "7620:9:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "7609:20:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "expression": { "id": 837, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 773, "src": "7584:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 840, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", "referencedDeclaration": 1770, "src": "7584:15:2", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "id": 841, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "transfer", "nodeType": "MemberAccess", "src": "7584:24:2", "typeDescriptions": { "typeIdentifier": "t_function_transfer_nonpayable$_t_uint256_$returns$__$", "typeString": "function (uint256)" } }, "id": 846, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "7584:46:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 847, "nodeType": "ExpressionStatement", "src": "7584:46:2" } ] } }, "id": 850, "nodeType": "IfStatement", "src": "7306:335:2", "trueBody": { "id": 808, "nodeType": "Block", "src": "7341:59:2", "statements": [ { "expression": { "arguments": [ { "expression": { "id": 804, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 754, "src": "7380:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 805, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "price", "nodeType": "MemberAccess", "referencedDeclaration": 1983, "src": "7380:8:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "expression": { "id": 799, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 773, "src": "7355:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 802, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", "referencedDeclaration": 1770, "src": "7355:15:2", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "id": 803, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "transfer", "nodeType": "MemberAccess", "src": "7355:24:2", "typeDescriptions": { "typeIdentifier": "t_function_transfer_nonpayable$_t_uint256_$returns$__$", "typeString": "function (uint256)" } }, "id": 806, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "7355:34:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 807, "nodeType": "ExpressionStatement", "src": "7355:34:2" } ] } }, { "expression": { "id": 854, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "delete", "prefix": true, "src": "7651:28:2", "subExpression": { "baseExpression": { "id": 851, "name": "_adToInventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 227, "src": "7658:14:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" } }, "id": 853, "indexExpression": { "id": 852, "name": "_adId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 738, "src": "7673:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "7658:21:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 855, "nodeType": "ExpressionStatement", "src": "7651:28:2" }, { "expression": { "id": 860, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "--", "prefix": false, "src": "7689:25:2", "subExpression": { "baseExpression": { "id": 856, "name": "_ownerAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 235, "src": "7689:13:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint32_$", "typeString": "mapping(address => uint32)" } }, "id": 859, "indexExpression": { "expression": { "id": 857, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 754, "src": "7703:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 858, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", "referencedDeclaration": 1973, "src": "7703:8:2", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "7689:23:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 861, "nodeType": "ExpressionStatement", "src": "7689:25:2" }, { "expression": { "id": 865, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "--", "prefix": false, "src": "7724:33:2", "subExpression": { "baseExpression": { "id": 862, "name": "_inventoryAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 243, "src": "7724:17:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint32_$", "typeString": "mapping(uint256 => uint32)" } }, "id": 864, "indexExpression": { "id": 863, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 736, "src": "7742:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "7724:31:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 866, "nodeType": "ExpressionStatement", "src": "7724:33:2" }, { "expression": { "arguments": [ { "id": 870, "name": "_adId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 738, "src": "7779:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "id": 867, "name": "_ads", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 219, "src": "7767:4:2", "typeDescriptions": { "typeIdentifier": "t_struct$_AdSet_$1967_storage", "typeString": "struct AdNetworkSet.AdSet storage ref" } }, "id": 869, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "remove", "nodeType": "MemberAccess", "referencedDeclaration": 2163, "src": "7767:11:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_struct$_AdSet_$1967_storage_ptr_$_t_uint256_$returns$_t_bool_$bound_to$_t_struct$_AdSet_$1967_storage_ptr_$", "typeString": "function (struct AdNetworkSet.AdSet storage pointer,uint256) returns (bool)" } }, "id": 871, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "7767:18:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 872, "nodeType": "ExpressionStatement", "src": "7767:18:2" }, { "expression": { "arguments": [ { "id": 876, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 736, "src": "7815:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "id": 873, "name": "_inventories", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 213, "src": "7795:12:2", "typeDescriptions": { "typeIdentifier": "t_struct$_InventorySet_$1766_storage", "typeString": "struct AdNetworkSet.InventorySet storage ref" } }, "id": 875, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "remove", "nodeType": "MemberAccess", "referencedDeclaration": 1958, "src": "7795:19:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_struct$_InventorySet_$1766_storage_ptr_$_t_uint256_$returns$_t_bool_$bound_to$_t_struct$_InventorySet_$1766_storage_ptr_$", "typeString": "function (struct AdNetworkSet.InventorySet storage pointer,uint256) returns (bool)" } }, "id": 877, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "7795:33:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 878, "nodeType": "ExpressionStatement", "src": "7795:33:2" } ] }, "functionSelector": "83739c30", "id": 880, "implemented": true, "kind": "function", "modifiers": [], "name": "collectAd", "nameLocation": "6661:9:2", "nodeType": "FunctionDefinition", "parameters": { "id": 739, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 736, "mutability": "mutable", "name": "_inventoryId", "nameLocation": "6679:12:2", "nodeType": "VariableDeclaration", "scope": 880, "src": "6671:20:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 735, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "6671:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 738, "mutability": "mutable", "name": "_adId", "nameLocation": "6698:5:2", "nodeType": "VariableDeclaration", "scope": 880, "src": "6693:10:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 737, "name": "uint", "nodeType": "ElementaryTypeName", "src": "6693:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "6670:34:2" }, "returnParameters": { "id": 740, "nodeType": "ParameterList", "parameters": [], "src": "6714:0:2" }, "scope": 1755, "src": "6652:1183:2", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "body": { "id": 1064, "nodeType": "Block", "src": "8156:1076:2", "statements": [ { "assignments": [ 907 ], "declarations": [ { "constant": false, "id": 907, "mutability": "mutable", "name": "inventoryAdCount", "nameLocation": "8171:16:2", "nodeType": "VariableDeclaration", "scope": 1064, "src": "8166:21:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 906, "name": "uint", "nodeType": "ElementaryTypeName", "src": "8166:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 915, "initialValue": { "commonType": { "typeIdentifier": "t_uint32", "typeString": "uint32" }, "id": 914, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "baseExpression": { "id": 908, "name": "_inventoryAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 243, "src": "8190:17:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint32_$", "typeString": "mapping(uint256 => uint32)" } }, "id": 910, "indexExpression": { "id": 909, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 882, "src": "8208:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "8190:31:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "nodeType": "BinaryOperation", "operator": "+", "rightExpression": { "baseExpression": { "id": 911, "name": "_inventoryWaitAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 247, "src": "8224:21:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint32_$", "typeString": "mapping(uint256 => uint32)" } }, "id": 913, "indexExpression": { "id": 912, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 882, "src": "8246:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "8224:35:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "src": "8190:69:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "nodeType": "VariableDeclarationStatement", "src": "8166:93:2" }, { "expression": { "id": 922, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 916, "name": "adIds", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 886, "src": "8269:5:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 920, "name": "inventoryAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 907, "src": "8291:16:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 919, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "8277:13:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (uint256[] memory)" }, "typeName": { "baseType": { "id": 917, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "8281:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 918, "nodeType": "ArrayTypeName", "src": "8281:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } } }, "id": 921, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "8277:31:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "src": "8269:39:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 923, "nodeType": "ExpressionStatement", "src": "8269:39:2" }, { "expression": { "id": 930, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 924, "name": "inventoryIds", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 889, "src": "8318:12:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 928, "name": "inventoryAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 907, "src": "8347:16:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 927, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "8333:13:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (uint256[] memory)" }, "typeName": { "baseType": { "id": 925, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "8337:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 926, "nodeType": "ArrayTypeName", "src": "8337:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } } }, "id": 929, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "8333:31:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "src": "8318:46:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 931, "nodeType": "ExpressionStatement", "src": "8318:46:2" }, { "expression": { "id": 938, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 932, "name": "adHashes", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 892, "src": "8374:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr", "typeString": "bytes32[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 936, "name": "inventoryAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 907, "src": "8399:16:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 935, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "8385:13:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_bytes32_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (bytes32[] memory)" }, "typeName": { "baseType": { "id": 933, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "8389:7:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "id": 934, "nodeType": "ArrayTypeName", "src": "8389:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr", "typeString": "bytes32[]" } } }, "id": 937, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "8385:31:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr", "typeString": "bytes32[] memory" } }, "src": "8374:42:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr", "typeString": "bytes32[] memory" } }, "id": 939, "nodeType": "ExpressionStatement", "src": "8374:42:2" }, { "expression": { "id": 946, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 940, "name": "adHashForDeliveries", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 895, "src": "8426:19:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr", "typeString": "bytes32[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 944, "name": "inventoryAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 907, "src": "8462:16:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 943, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "8448:13:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_bytes32_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (bytes32[] memory)" }, "typeName": { "baseType": { "id": 941, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "8452:7:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "id": 942, "nodeType": "ArrayTypeName", "src": "8452:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr", "typeString": "bytes32[]" } } }, "id": 945, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "8448:31:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr", "typeString": "bytes32[] memory" } }, "src": "8426:53:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr", "typeString": "bytes32[] memory" } }, "id": 947, "nodeType": "ExpressionStatement", "src": "8426:53:2" }, { "expression": { "id": 954, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 948, "name": "starts", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 898, "src": "8489:6:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_memory_ptr", "typeString": "uint32[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 952, "name": "inventoryAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 907, "src": "8511:16:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 951, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "8498:12:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint32_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (uint32[] memory)" }, "typeName": { "baseType": { "id": 949, "name": "uint32", "nodeType": "ElementaryTypeName", "src": "8502:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 950, "nodeType": "ArrayTypeName", "src": "8502:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_storage_ptr", "typeString": "uint32[]" } } }, "id": 953, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "8498:30:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_memory_ptr", "typeString": "uint32[] memory" } }, "src": "8489:39:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_memory_ptr", "typeString": "uint32[] memory" } }, "id": 955, "nodeType": "ExpressionStatement", "src": "8489:39:2" }, { "expression": { "id": 962, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 956, "name": "ends", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 901, "src": "8538:4:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_memory_ptr", "typeString": "uint32[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 960, "name": "inventoryAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 907, "src": "8558:16:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 959, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "8545:12:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint32_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (uint32[] memory)" }, "typeName": { "baseType": { "id": 957, "name": "uint32", "nodeType": "ElementaryTypeName", "src": "8549:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 958, "nodeType": "ArrayTypeName", "src": "8549:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_storage_ptr", "typeString": "uint32[]" } } }, "id": 961, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "8545:30:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_memory_ptr", "typeString": "uint32[] memory" } }, "src": "8538:37:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_memory_ptr", "typeString": "uint32[] memory" } }, "id": 963, "nodeType": "ExpressionStatement", "src": "8538:37:2" }, { "expression": { "id": 970, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 964, "name": "approved", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 904, "src": "8585:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bool_$dyn_memory_ptr", "typeString": "bool[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 968, "name": "inventoryAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 907, "src": "8607:16:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 967, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "8596:10:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_bool_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (bool[] memory)" }, "typeName": { "baseType": { "id": 965, "name": "bool", "nodeType": "ElementaryTypeName", "src": "8600:4:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 966, "nodeType": "ArrayTypeName", "src": "8600:6:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bool_$dyn_storage_ptr", "typeString": "bool[]" } } }, "id": 969, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "8596:28:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_bool_$dyn_memory_ptr", "typeString": "bool[] memory" } }, "src": "8585:39:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bool_$dyn_memory_ptr", "typeString": "bool[] memory" } }, "id": 971, "nodeType": "ExpressionStatement", "src": "8585:39:2" }, { "assignments": [ 973 ], "declarations": [ { "constant": false, "id": 973, "mutability": "mutable", "name": "adIdx", "nameLocation": "8640:5:2", "nodeType": "VariableDeclaration", "scope": 1064, "src": "8635:10:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 972, "name": "uint", "nodeType": "ElementaryTypeName", "src": "8635:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 975, "initialValue": { "hexValue": "30", "id": 974, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "8648:1:2", "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "nodeType": "VariableDeclarationStatement", "src": "8635:14:2" }, { "body": { "id": 1062, "nodeType": "Block", "src": "8712:514:2", "statements": [ { "assignments": [ 992 ], "declarations": [ { "constant": false, "id": 992, "mutability": "mutable", "name": "ad", "nameLocation": "8750:2:2", "nodeType": "VariableDeclaration", "scope": 1062, "src": "8726:26:2", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad" }, "typeName": { "id": 991, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 990, "name": "AdNetworkSet.Ad", "nodeType": "IdentifierPath", "referencedDeclaration": 1984, "src": "8726:15:2" }, "referencedDeclaration": 1984, "src": "8726:15:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad" } }, "visibility": "internal" } ], "id": 997, "initialValue": { "baseExpression": { "expression": { "id": 993, "name": "_ads", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 219, "src": "8755:4:2", "typeDescriptions": { "typeIdentifier": "t_struct$_AdSet_$1967_storage", "typeString": "struct AdNetworkSet.AdSet storage ref" } }, "id": 994, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "_values", "nodeType": "MemberAccess", "referencedDeclaration": 1962, "src": "8755:12:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_Ad_$1984_storage_$dyn_storage", "typeString": "struct AdNetworkSet.Ad storage ref[] storage ref" } }, "id": 996, "indexExpression": { "id": 995, "name": "idx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 977, "src": "8768:3:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "8755:17:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage", "typeString": "struct AdNetworkSet.Ad storage ref" } }, "nodeType": "VariableDeclarationStatement", "src": "8726:46:2" }, { "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1001, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { "id": 998, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 992, "src": "8790:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 999, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "inventoryId", "nodeType": "MemberAccess", "referencedDeclaration": 1971, "src": "8790:14:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "id": 1000, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 882, "src": "8808:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "8790:30:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1004, "nodeType": "IfStatement", "src": "8786:77:2", "trueBody": { "id": 1003, "nodeType": "Block", "src": "8822:41:2", "statements": [ { "id": 1002, "nodeType": "Continue", "src": "8840:8:2" } ] } }, { "expression": { "id": 1010, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1005, "name": "adIds", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 886, "src": "8877:5:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 1007, "indexExpression": { "id": 1006, "name": "adIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 973, "src": "8883:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "8877:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1008, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 992, "src": "8892:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1009, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "adId", "nodeType": "MemberAccess", "referencedDeclaration": 1969, "src": "8892:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "8877:22:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1011, "nodeType": "ExpressionStatement", "src": "8877:22:2" }, { "expression": { "id": 1017, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1012, "name": "inventoryIds", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 889, "src": "8913:12:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 1014, "indexExpression": { "id": 1013, "name": "adIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 973, "src": "8926:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "8913:19:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1015, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 992, "src": "8935:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1016, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "inventoryId", "nodeType": "MemberAccess", "referencedDeclaration": 1971, "src": "8935:14:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "8913:36:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1018, "nodeType": "ExpressionStatement", "src": "8913:36:2" }, { "expression": { "id": 1024, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1019, "name": "adHashes", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 892, "src": "8963:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr", "typeString": "bytes32[] memory" } }, "id": 1021, "indexExpression": { "id": 1020, "name": "adIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 973, "src": "8972:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "8963:15:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1022, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 992, "src": "8981:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1023, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "hash", "nodeType": "MemberAccess", "referencedDeclaration": 1975, "src": "8981:7:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "src": "8963:25:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "id": 1025, "nodeType": "ExpressionStatement", "src": "8963:25:2" }, { "expression": { "id": 1031, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1026, "name": "adHashForDeliveries", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 895, "src": "9002:19:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr", "typeString": "bytes32[] memory" } }, "id": 1028, "indexExpression": { "id": 1027, "name": "adIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 973, "src": "9022:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "9002:26:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1029, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 992, "src": "9031:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1030, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "hashForDelivery", "nodeType": "MemberAccess", "referencedDeclaration": 1977, "src": "9031:18:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "src": "9002:47:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "id": 1032, "nodeType": "ExpressionStatement", "src": "9002:47:2" }, { "expression": { "id": 1038, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1033, "name": "starts", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 898, "src": "9063:6:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_memory_ptr", "typeString": "uint32[] memory" } }, "id": 1035, "indexExpression": { "id": 1034, "name": "adIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 973, "src": "9070:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "9063:13:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1036, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 992, "src": "9079:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1037, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "start", "nodeType": "MemberAccess", "referencedDeclaration": 1979, "src": "9079:8:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "src": "9063:24:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 1039, "nodeType": "ExpressionStatement", "src": "9063:24:2" }, { "expression": { "id": 1045, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1040, "name": "ends", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 901, "src": "9101:4:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_memory_ptr", "typeString": "uint32[] memory" } }, "id": 1042, "indexExpression": { "id": 1041, "name": "adIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 973, "src": "9106:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "9101:11:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1043, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 992, "src": "9115:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1044, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "end", "nodeType": "MemberAccess", "referencedDeclaration": 1981, "src": "9115:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "src": "9101:20:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 1046, "nodeType": "ExpressionStatement", "src": "9101:20:2" }, { "expression": { "id": 1057, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1047, "name": "approved", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 904, "src": "9135:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bool_$dyn_memory_ptr", "typeString": "bool[] memory" } }, "id": 1049, "indexExpression": { "id": 1048, "name": "adIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 973, "src": "9144:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "9135:15:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1056, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "baseExpression": { "id": 1050, "name": "_adToInventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 227, "src": "9153:14:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" } }, "id": 1053, "indexExpression": { "expression": { "id": 1051, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 992, "src": "9168:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1052, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "adId", "nodeType": "MemberAccess", "referencedDeclaration": 1969, "src": "9168:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "9153:23:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "expression": { "id": 1054, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 992, "src": "9180:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1055, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "inventoryId", "nodeType": "MemberAccess", "referencedDeclaration": 1971, "src": "9180:14:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "9153:41:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "src": "9135:59:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1058, "nodeType": "ExpressionStatement", "src": "9135:59:2" }, { "expression": { "id": 1060, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "9208:7:2", "subExpression": { "id": 1059, "name": "adIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 973, "src": "9208:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1061, "nodeType": "ExpressionStatement", "src": "9208:7:2" } ] }, "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 984, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 980, "name": "idx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 977, "src": "8678:3:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "expression": { "expression": { "id": 981, "name": "_ads", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 219, "src": "8684:4:2", "typeDescriptions": { "typeIdentifier": "t_struct$_AdSet_$1967_storage", "typeString": "struct AdNetworkSet.AdSet storage ref" } }, "id": 982, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "_values", "nodeType": "MemberAccess", "referencedDeclaration": 1962, "src": "8684:12:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_Ad_$1984_storage_$dyn_storage", "typeString": "struct AdNetworkSet.Ad storage ref[] storage ref" } }, "id": 983, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "length", "nodeType": "MemberAccess", "src": "8684:19:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "8678:25:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1063, "initializationExpression": { "assignments": [ 977 ], "declarations": [ { "constant": false, "id": 977, "mutability": "mutable", "name": "idx", "nameLocation": "8669:3:2", "nodeType": "VariableDeclaration", "scope": 1063, "src": "8664:8:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 976, "name": "uint", "nodeType": "ElementaryTypeName", "src": "8664:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 979, "initialValue": { "hexValue": "30", "id": 978, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "8675:1:2", "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "nodeType": "VariableDeclarationStatement", "src": "8664:12:2" }, "loopExpression": { "expression": { "id": 986, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "8705:5:2", "subExpression": { "id": 985, "name": "idx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 977, "src": "8705:3:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 987, "nodeType": "ExpressionStatement", "src": "8705:5:2" }, "nodeType": "ForStatement", "src": "8659:567:2" } ] }, "functionSelector": "31eae261", "id": 1065, "implemented": true, "kind": "function", "modifiers": [], "name": "getAdsOf", "nameLocation": "7850:8:2", "nodeType": "FunctionDefinition", "parameters": { "id": 883, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 882, "mutability": "mutable", "name": "_inventoryId", "nameLocation": "7867:12:2", "nodeType": "VariableDeclaration", "scope": 1065, "src": "7859:20:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 881, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "7859:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "7858:22:2" }, "returnParameters": { "id": 905, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 886, "mutability": "mutable", "name": "adIds", "nameLocation": "7930:5:2", "nodeType": "VariableDeclaration", "scope": 1065, "src": "7913:22:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[]" }, "typeName": { "baseType": { "id": 884, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "7913:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 885, "nodeType": "ArrayTypeName", "src": "7913:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } }, "visibility": "internal" }, { "constant": false, "id": 889, "mutability": "mutable", "name": "inventoryIds", "nameLocation": "7962:12:2", "nodeType": "VariableDeclaration", "scope": 1065, "src": "7945:29:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[]" }, "typeName": { "baseType": { "id": 887, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "7945:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 888, "nodeType": "ArrayTypeName", "src": "7945:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } }, "visibility": "internal" }, { "constant": false, "id": 892, "mutability": "mutable", "name": "adHashes", "nameLocation": "8001:8:2", "nodeType": "VariableDeclaration", "scope": 1065, "src": "7984:25:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr", "typeString": "bytes32[]" }, "typeName": { "baseType": { "id": 890, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "7984:7:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "id": 891, "nodeType": "ArrayTypeName", "src": "7984:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr", "typeString": "bytes32[]" } }, "visibility": "internal" }, { "constant": false, "id": 895, "mutability": "mutable", "name": "adHashForDeliveries", "nameLocation": "8036:19:2", "nodeType": "VariableDeclaration", "scope": 1065, "src": "8019:36:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr", "typeString": "bytes32[]" }, "typeName": { "baseType": { "id": 893, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "8019:7:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "id": 894, "nodeType": "ArrayTypeName", "src": "8019:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr", "typeString": "bytes32[]" } }, "visibility": "internal" }, { "constant": false, "id": 898, "mutability": "mutable", "name": "starts", "nameLocation": "8081:6:2", "nodeType": "VariableDeclaration", "scope": 1065, "src": "8065:22:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_memory_ptr", "typeString": "uint32[]" }, "typeName": { "baseType": { "id": 896, "name": "uint32", "nodeType": "ElementaryTypeName", "src": "8065:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 897, "nodeType": "ArrayTypeName", "src": "8065:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_storage_ptr", "typeString": "uint32[]" } }, "visibility": "internal" }, { "constant": false, "id": 901, "mutability": "mutable", "name": "ends", "nameLocation": "8113:4:2", "nodeType": "VariableDeclaration", "scope": 1065, "src": "8097:20:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_memory_ptr", "typeString": "uint32[]" }, "typeName": { "baseType": { "id": 899, "name": "uint32", "nodeType": "ElementaryTypeName", "src": "8097:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 900, "nodeType": "ArrayTypeName", "src": "8097:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_storage_ptr", "typeString": "uint32[]" } }, "visibility": "internal" }, { "constant": false, "id": 904, "mutability": "mutable", "name": "approved", "nameLocation": "8141:8:2", "nodeType": "VariableDeclaration", "scope": 1065, "src": "8127:22:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_bool_$dyn_memory_ptr", "typeString": "bool[]" }, "typeName": { "baseType": { "id": 902, "name": "bool", "nodeType": "ElementaryTypeName", "src": "8127:4:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 903, "nodeType": "ArrayTypeName", "src": "8127:6:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bool_$dyn_storage_ptr", "typeString": "bool[]" } }, "visibility": "internal" } ], "src": "7903:252:2" }, "scope": 1755, "src": "7841:1391:2", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "body": { "id": 1227, "nodeType": "Block", "src": "9520:907:2", "statements": [ { "assignments": [ 1089 ], "declarations": [ { "constant": false, "id": 1089, "mutability": "mutable", "name": "inventoryAdCount", "nameLocation": "9535:16:2", "nodeType": "VariableDeclaration", "scope": 1227, "src": "9530:21:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1088, "name": "uint", "nodeType": "ElementaryTypeName", "src": "9530:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 1093, "initialValue": { "baseExpression": { "id": 1090, "name": "_ownerAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 235, "src": "9554:13:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint32_$", "typeString": "mapping(address => uint32)" } }, "id": 1092, "indexExpression": { "id": 1091, "name": "_ownerAddress", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1067, "src": "9568:13:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "9554:28:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "nodeType": "VariableDeclarationStatement", "src": "9530:52:2" }, { "expression": { "id": 1100, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1094, "name": "adIds", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1071, "src": "9593:5:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 1098, "name": "inventoryAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1089, "src": "9615:16:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1097, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "9601:13:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (uint256[] memory)" }, "typeName": { "baseType": { "id": 1095, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "9605:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1096, "nodeType": "ArrayTypeName", "src": "9605:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } } }, "id": 1099, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "9601:31:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "src": "9593:39:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 1101, "nodeType": "ExpressionStatement", "src": "9593:39:2" }, { "expression": { "id": 1108, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1102, "name": "inventoryIds", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1074, "src": "9642:12:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 1106, "name": "inventoryAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1089, "src": "9671:16:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1105, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "9657:13:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (uint256[] memory)" }, "typeName": { "baseType": { "id": 1103, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "9661:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1104, "nodeType": "ArrayTypeName", "src": "9661:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } } }, "id": 1107, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "9657:31:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "src": "9642:46:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 1109, "nodeType": "ExpressionStatement", "src": "9642:46:2" }, { "expression": { "id": 1116, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1110, "name": "adHashes", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1077, "src": "9698:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr", "typeString": "bytes32[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 1114, "name": "inventoryAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1089, "src": "9723:16:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1113, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "9709:13:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_bytes32_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (bytes32[] memory)" }, "typeName": { "baseType": { "id": 1111, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "9713:7:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "id": 1112, "nodeType": "ArrayTypeName", "src": "9713:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr", "typeString": "bytes32[]" } } }, "id": 1115, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "9709:31:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr", "typeString": "bytes32[] memory" } }, "src": "9698:42:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr", "typeString": "bytes32[] memory" } }, "id": 1117, "nodeType": "ExpressionStatement", "src": "9698:42:2" }, { "expression": { "id": 1124, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1118, "name": "starts", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1080, "src": "9750:6:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_memory_ptr", "typeString": "uint32[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 1122, "name": "inventoryAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1089, "src": "9772:16:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1121, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "9759:12:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint32_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (uint32[] memory)" }, "typeName": { "baseType": { "id": 1119, "name": "uint32", "nodeType": "ElementaryTypeName", "src": "9763:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 1120, "nodeType": "ArrayTypeName", "src": "9763:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_storage_ptr", "typeString": "uint32[]" } } }, "id": 1123, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "9759:30:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_memory_ptr", "typeString": "uint32[] memory" } }, "src": "9750:39:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_memory_ptr", "typeString": "uint32[] memory" } }, "id": 1125, "nodeType": "ExpressionStatement", "src": "9750:39:2" }, { "expression": { "id": 1132, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1126, "name": "ends", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1083, "src": "9799:4:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_memory_ptr", "typeString": "uint32[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 1130, "name": "inventoryAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1089, "src": "9819:16:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1129, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "9806:12:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint32_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (uint32[] memory)" }, "typeName": { "baseType": { "id": 1127, "name": "uint32", "nodeType": "ElementaryTypeName", "src": "9810:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 1128, "nodeType": "ArrayTypeName", "src": "9810:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_storage_ptr", "typeString": "uint32[]" } } }, "id": 1131, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "9806:30:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_memory_ptr", "typeString": "uint32[] memory" } }, "src": "9799:37:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_memory_ptr", "typeString": "uint32[] memory" } }, "id": 1133, "nodeType": "ExpressionStatement", "src": "9799:37:2" }, { "expression": { "id": 1140, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1134, "name": "approved", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1086, "src": "9846:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bool_$dyn_memory_ptr", "typeString": "bool[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 1138, "name": "inventoryAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1089, "src": "9868:16:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1137, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "9857:10:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_bool_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (bool[] memory)" }, "typeName": { "baseType": { "id": 1135, "name": "bool", "nodeType": "ElementaryTypeName", "src": "9861:4:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1136, "nodeType": "ArrayTypeName", "src": "9861:6:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bool_$dyn_storage_ptr", "typeString": "bool[]" } } }, "id": 1139, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "9857:28:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_bool_$dyn_memory_ptr", "typeString": "bool[] memory" } }, "src": "9846:39:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bool_$dyn_memory_ptr", "typeString": "bool[] memory" } }, "id": 1141, "nodeType": "ExpressionStatement", "src": "9846:39:2" }, { "assignments": [ 1143 ], "declarations": [ { "constant": false, "id": 1143, "mutability": "mutable", "name": "adIdx", "nameLocation": "9901:5:2", "nodeType": "VariableDeclaration", "scope": 1227, "src": "9896:10:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1142, "name": "uint", "nodeType": "ElementaryTypeName", "src": "9896:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 1145, "initialValue": { "hexValue": "30", "id": 1144, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "9909:1:2", "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "nodeType": "VariableDeclarationStatement", "src": "9896:14:2" }, { "body": { "id": 1225, "nodeType": "Block", "src": "9973:448:2", "statements": [ { "assignments": [ 1162 ], "declarations": [ { "constant": false, "id": 1162, "mutability": "mutable", "name": "ad", "nameLocation": "10011:2:2", "nodeType": "VariableDeclaration", "scope": 1225, "src": "9987:26:2", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad" }, "typeName": { "id": 1161, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 1160, "name": "AdNetworkSet.Ad", "nodeType": "IdentifierPath", "referencedDeclaration": 1984, "src": "9987:15:2" }, "referencedDeclaration": 1984, "src": "9987:15:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad" } }, "visibility": "internal" } ], "id": 1167, "initialValue": { "baseExpression": { "expression": { "id": 1163, "name": "_ads", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 219, "src": "10016:4:2", "typeDescriptions": { "typeIdentifier": "t_struct$_AdSet_$1967_storage", "typeString": "struct AdNetworkSet.AdSet storage ref" } }, "id": 1164, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "_values", "nodeType": "MemberAccess", "referencedDeclaration": 1962, "src": "10016:12:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_Ad_$1984_storage_$dyn_storage", "typeString": "struct AdNetworkSet.Ad storage ref[] storage ref" } }, "id": 1166, "indexExpression": { "id": 1165, "name": "idx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1147, "src": "10029:3:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "10016:17:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage", "typeString": "struct AdNetworkSet.Ad storage ref" } }, "nodeType": "VariableDeclarationStatement", "src": "9987:46:2" }, { "condition": { "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 1171, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { "id": 1168, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1162, "src": "10051:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1169, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", "referencedDeclaration": 1973, "src": "10051:8:2", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "id": 1170, "name": "_ownerAddress", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1067, "src": "10063:13:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "10051:25:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1174, "nodeType": "IfStatement", "src": "10047:72:2", "trueBody": { "id": 1173, "nodeType": "Block", "src": "10078:41:2", "statements": [ { "id": 1172, "nodeType": "Continue", "src": "10096:8:2" } ] } }, { "expression": { "id": 1180, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1175, "name": "adIds", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1071, "src": "10133:5:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 1177, "indexExpression": { "id": 1176, "name": "adIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1143, "src": "10139:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "10133:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1178, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1162, "src": "10148:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1179, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "adId", "nodeType": "MemberAccess", "referencedDeclaration": 1969, "src": "10148:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "10133:22:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1181, "nodeType": "ExpressionStatement", "src": "10133:22:2" }, { "expression": { "id": 1187, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1182, "name": "inventoryIds", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1074, "src": "10169:12:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 1184, "indexExpression": { "id": 1183, "name": "adIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1143, "src": "10182:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "10169:19:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1185, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1162, "src": "10191:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1186, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "inventoryId", "nodeType": "MemberAccess", "referencedDeclaration": 1971, "src": "10191:14:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "10169:36:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1188, "nodeType": "ExpressionStatement", "src": "10169:36:2" }, { "expression": { "id": 1194, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1189, "name": "adHashes", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1077, "src": "10219:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr", "typeString": "bytes32[] memory" } }, "id": 1191, "indexExpression": { "id": 1190, "name": "adIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1143, "src": "10228:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "10219:15:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1192, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1162, "src": "10237:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1193, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "hash", "nodeType": "MemberAccess", "referencedDeclaration": 1975, "src": "10237:7:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "src": "10219:25:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "id": 1195, "nodeType": "ExpressionStatement", "src": "10219:25:2" }, { "expression": { "id": 1201, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1196, "name": "starts", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1080, "src": "10258:6:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_memory_ptr", "typeString": "uint32[] memory" } }, "id": 1198, "indexExpression": { "id": 1197, "name": "adIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1143, "src": "10265:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "10258:13:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1199, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1162, "src": "10274:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1200, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "start", "nodeType": "MemberAccess", "referencedDeclaration": 1979, "src": "10274:8:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "src": "10258:24:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 1202, "nodeType": "ExpressionStatement", "src": "10258:24:2" }, { "expression": { "id": 1208, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1203, "name": "ends", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1083, "src": "10296:4:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_memory_ptr", "typeString": "uint32[] memory" } }, "id": 1205, "indexExpression": { "id": 1204, "name": "adIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1143, "src": "10301:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "10296:11:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1206, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1162, "src": "10310:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1207, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "end", "nodeType": "MemberAccess", "referencedDeclaration": 1981, "src": "10310:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "src": "10296:20:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 1209, "nodeType": "ExpressionStatement", "src": "10296:20:2" }, { "expression": { "id": 1220, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1210, "name": "approved", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1086, "src": "10330:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bool_$dyn_memory_ptr", "typeString": "bool[] memory" } }, "id": 1212, "indexExpression": { "id": 1211, "name": "adIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1143, "src": "10339:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "10330:15:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1219, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "baseExpression": { "id": 1213, "name": "_adToInventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 227, "src": "10348:14:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" } }, "id": 1216, "indexExpression": { "expression": { "id": 1214, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1162, "src": "10363:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1215, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "adId", "nodeType": "MemberAccess", "referencedDeclaration": 1969, "src": "10363:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "10348:23:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "expression": { "id": 1217, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1162, "src": "10375:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1218, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "inventoryId", "nodeType": "MemberAccess", "referencedDeclaration": 1971, "src": "10375:14:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "10348:41:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "src": "10330:59:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1221, "nodeType": "ExpressionStatement", "src": "10330:59:2" }, { "expression": { "id": 1223, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "10403:7:2", "subExpression": { "id": 1222, "name": "adIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1143, "src": "10403:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1224, "nodeType": "ExpressionStatement", "src": "10403:7:2" } ] }, "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1154, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1150, "name": "idx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1147, "src": "9939:3:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "expression": { "expression": { "id": 1151, "name": "_ads", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 219, "src": "9945:4:2", "typeDescriptions": { "typeIdentifier": "t_struct$_AdSet_$1967_storage", "typeString": "struct AdNetworkSet.AdSet storage ref" } }, "id": 1152, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "_values", "nodeType": "MemberAccess", "referencedDeclaration": 1962, "src": "9945:12:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_Ad_$1984_storage_$dyn_storage", "typeString": "struct AdNetworkSet.Ad storage ref[] storage ref" } }, "id": 1153, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "length", "nodeType": "MemberAccess", "src": "9945:19:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "9939:25:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1226, "initializationExpression": { "assignments": [ 1147 ], "declarations": [ { "constant": false, "id": 1147, "mutability": "mutable", "name": "idx", "nameLocation": "9930:3:2", "nodeType": "VariableDeclaration", "scope": 1226, "src": "9925:8:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1146, "name": "uint", "nodeType": "ElementaryTypeName", "src": "9925:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 1149, "initialValue": { "hexValue": "30", "id": 1148, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "9936:1:2", "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "nodeType": "VariableDeclarationStatement", "src": "9925:12:2" }, "loopExpression": { "expression": { "id": 1156, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "9966:5:2", "subExpression": { "id": 1155, "name": "idx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1147, "src": "9966:3:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1157, "nodeType": "ExpressionStatement", "src": "9966:5:2" }, "nodeType": "ForStatement", "src": "9920:501:2" } ] }, "functionSelector": "eba58b3e", "id": 1228, "implemented": true, "kind": "function", "modifiers": [], "name": "getAdsByOwnerAddress", "nameLocation": "9247:20:2", "nodeType": "FunctionDefinition", "parameters": { "id": 1068, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1067, "mutability": "mutable", "name": "_ownerAddress", "nameLocation": "9276:13:2", "nodeType": "VariableDeclaration", "scope": 1228, "src": "9268:21:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1066, "name": "address", "nodeType": "ElementaryTypeName", "src": "9268:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "9267:23:2" }, "returnParameters": { "id": 1087, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1071, "mutability": "mutable", "name": "adIds", "nameLocation": "9340:5:2", "nodeType": "VariableDeclaration", "scope": 1228, "src": "9323:22:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[]" }, "typeName": { "baseType": { "id": 1069, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "9323:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1070, "nodeType": "ArrayTypeName", "src": "9323:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } }, "visibility": "internal" }, { "constant": false, "id": 1074, "mutability": "mutable", "name": "inventoryIds", "nameLocation": "9372:12:2", "nodeType": "VariableDeclaration", "scope": 1228, "src": "9355:29:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[]" }, "typeName": { "baseType": { "id": 1072, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "9355:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1073, "nodeType": "ArrayTypeName", "src": "9355:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } }, "visibility": "internal" }, { "constant": false, "id": 1077, "mutability": "mutable", "name": "adHashes", "nameLocation": "9411:8:2", "nodeType": "VariableDeclaration", "scope": 1228, "src": "9394:25:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr", "typeString": "bytes32[]" }, "typeName": { "baseType": { "id": 1075, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "9394:7:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "id": 1076, "nodeType": "ArrayTypeName", "src": "9394:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr", "typeString": "bytes32[]" } }, "visibility": "internal" }, { "constant": false, "id": 1080, "mutability": "mutable", "name": "starts", "nameLocation": "9445:6:2", "nodeType": "VariableDeclaration", "scope": 1228, "src": "9429:22:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_memory_ptr", "typeString": "uint32[]" }, "typeName": { "baseType": { "id": 1078, "name": "uint32", "nodeType": "ElementaryTypeName", "src": "9429:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 1079, "nodeType": "ArrayTypeName", "src": "9429:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_storage_ptr", "typeString": "uint32[]" } }, "visibility": "internal" }, { "constant": false, "id": 1083, "mutability": "mutable", "name": "ends", "nameLocation": "9477:4:2", "nodeType": "VariableDeclaration", "scope": 1228, "src": "9461:20:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_memory_ptr", "typeString": "uint32[]" }, "typeName": { "baseType": { "id": 1081, "name": "uint32", "nodeType": "ElementaryTypeName", "src": "9461:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 1082, "nodeType": "ArrayTypeName", "src": "9461:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_storage_ptr", "typeString": "uint32[]" } }, "visibility": "internal" }, { "constant": false, "id": 1086, "mutability": "mutable", "name": "approved", "nameLocation": "9505:8:2", "nodeType": "VariableDeclaration", "scope": 1228, "src": "9491:22:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_bool_$dyn_memory_ptr", "typeString": "bool[]" }, "typeName": { "baseType": { "id": 1084, "name": "bool", "nodeType": "ElementaryTypeName", "src": "9491:4:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1085, "nodeType": "ArrayTypeName", "src": "9491:6:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bool_$dyn_storage_ptr", "typeString": "bool[]" } }, "visibility": "internal" } ], "src": "9313:206:2" }, "scope": 1755, "src": "9238:1189:2", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "body": { "id": 1385, "nodeType": "Block", "src": "10730:1059:2", "statements": [ { "assignments": [ 1252 ], "declarations": [ { "constant": false, "id": 1252, "mutability": "mutable", "name": "ownerInventoryCount", "nameLocation": "10745:19:2", "nodeType": "VariableDeclaration", "scope": 1385, "src": "10740:24:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1251, "name": "uint", "nodeType": "ElementaryTypeName", "src": "10740:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 1256, "initialValue": { "baseExpression": { "id": 1253, "name": "_ownerInventoryCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 239, "src": "10767:20:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint32_$", "typeString": "mapping(address => uint32)" } }, "id": 1255, "indexExpression": { "id": 1254, "name": "_ownerAddress", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1230, "src": "10788:13:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "10767:35:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "nodeType": "VariableDeclarationStatement", "src": "10740:62:2" }, { "expression": { "id": 1263, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1257, "name": "inventoryIds", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1234, "src": "10813:12:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 1261, "name": "ownerInventoryCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1252, "src": "10842:19:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1260, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "10828:13:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (uint256[] memory)" }, "typeName": { "baseType": { "id": 1258, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "10832:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1259, "nodeType": "ArrayTypeName", "src": "10832:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } } }, "id": 1262, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "10828:34:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "src": "10813:49:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 1264, "nodeType": "ExpressionStatement", "src": "10813:49:2" }, { "expression": { "id": 1271, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1265, "name": "owners", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1237, "src": "10872:6:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 1269, "name": "ownerInventoryCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1252, "src": "10895:19:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1268, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "10881:13:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_address_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (address[] memory)" }, "typeName": { "baseType": { "id": 1266, "name": "address", "nodeType": "ElementaryTypeName", "src": "10885:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 1267, "nodeType": "ArrayTypeName", "src": "10885:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", "typeString": "address[]" } } }, "id": 1270, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "10881:34:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[] memory" } }, "src": "10872:43:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[] memory" } }, "id": 1272, "nodeType": "ExpressionStatement", "src": "10872:43:2" }, { "expression": { "id": 1279, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1273, "name": "names", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1240, "src": "10925:5:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 1277, "name": "ownerInventoryCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1252, "src": "10946:19:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1276, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "10933:12:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_string_memory_ptr_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (string memory[] memory)" }, "typeName": { "baseType": { "id": 1274, "name": "string", "nodeType": "ElementaryTypeName", "src": "10937:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "id": 1275, "nodeType": "ArrayTypeName", "src": "10937:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr", "typeString": "string[]" } } }, "id": 1278, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "10933:33:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "src": "10925:41:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "id": 1280, "nodeType": "ExpressionStatement", "src": "10925:41:2" }, { "expression": { "id": 1287, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1281, "name": "uris", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1243, "src": "10976:4:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 1285, "name": "ownerInventoryCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1252, "src": "10996:19:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1284, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "10983:12:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_string_memory_ptr_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (string memory[] memory)" }, "typeName": { "baseType": { "id": 1282, "name": "string", "nodeType": "ElementaryTypeName", "src": "10987:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "id": 1283, "nodeType": "ArrayTypeName", "src": "10987:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr", "typeString": "string[]" } } }, "id": 1286, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "10983:33:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "src": "10976:40:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "id": 1288, "nodeType": "ExpressionStatement", "src": "10976:40:2" }, { "expression": { "id": 1295, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1289, "name": "publicKeys", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1246, "src": "11026:10:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 1293, "name": "ownerInventoryCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1252, "src": "11052:19:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1292, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "11039:12:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_string_memory_ptr_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (string memory[] memory)" }, "typeName": { "baseType": { "id": 1290, "name": "string", "nodeType": "ElementaryTypeName", "src": "11043:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "id": 1291, "nodeType": "ArrayTypeName", "src": "11043:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr", "typeString": "string[]" } } }, "id": 1294, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "11039:33:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "src": "11026:46:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "id": 1296, "nodeType": "ExpressionStatement", "src": "11026:46:2" }, { "expression": { "id": 1303, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1297, "name": "floorPrices", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1249, "src": "11082:11:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 1301, "name": "ownerInventoryCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1252, "src": "11110:19:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1300, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "11096:13:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (uint256[] memory)" }, "typeName": { "baseType": { "id": 1298, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "11100:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1299, "nodeType": "ArrayTypeName", "src": "11100:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } } }, "id": 1302, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "11096:34:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "src": "11082:48:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 1304, "nodeType": "ExpressionStatement", "src": "11082:48:2" }, { "assignments": [ 1306 ], "declarations": [ { "constant": false, "id": 1306, "mutability": "mutable", "name": "inventoryIdx", "nameLocation": "11146:12:2", "nodeType": "VariableDeclaration", "scope": 1385, "src": "11141:17:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1305, "name": "uint", "nodeType": "ElementaryTypeName", "src": "11141:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 1308, "initialValue": { "hexValue": "30", "id": 1307, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "11161:1:2", "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "nodeType": "VariableDeclarationStatement", "src": "11141:21:2" }, { "body": { "id": 1383, "nodeType": "Block", "src": "11233:550:2", "statements": [ { "assignments": [ 1325 ], "declarations": [ { "constant": false, "id": 1325, "mutability": "mutable", "name": "inventory", "nameLocation": "11278:9:2", "nodeType": "VariableDeclaration", "scope": 1383, "src": "11247:40:2", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory" }, "typeName": { "id": 1324, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 1323, "name": "AdNetworkSet.Inventory", "nodeType": "IdentifierPath", "referencedDeclaration": 1779, "src": "11247:22:2" }, "referencedDeclaration": 1779, "src": "11247:22:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory" } }, "visibility": "internal" } ], "id": 1330, "initialValue": { "baseExpression": { "expression": { "id": 1326, "name": "_inventories", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 213, "src": "11290:12:2", "typeDescriptions": { "typeIdentifier": "t_struct$_InventorySet_$1766_storage", "typeString": "struct AdNetworkSet.InventorySet storage ref" } }, "id": 1327, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "_values", "nodeType": "MemberAccess", "referencedDeclaration": 1761, "src": "11290:20:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_Inventory_$1779_storage_$dyn_storage", "typeString": "struct AdNetworkSet.Inventory storage ref[] storage ref" } }, "id": 1329, "indexExpression": { "id": 1328, "name": "idx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1310, "src": "11311:3:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "11290:25:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage", "typeString": "struct AdNetworkSet.Inventory storage ref" } }, "nodeType": "VariableDeclarationStatement", "src": "11247:68:2" }, { "condition": { "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 1334, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { "id": 1331, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1325, "src": "11333:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 1332, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", "referencedDeclaration": 1770, "src": "11333:15:2", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "id": 1333, "name": "_ownerAddress", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1230, "src": "11352:13:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "11333:32:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1337, "nodeType": "IfStatement", "src": "11329:79:2", "trueBody": { "id": 1336, "nodeType": "Block", "src": "11367:41:2", "statements": [ { "id": 1335, "nodeType": "Continue", "src": "11385:8:2" } ] } }, { "expression": { "id": 1343, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1338, "name": "inventoryIds", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1234, "src": "11422:12:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 1340, "indexExpression": { "id": 1339, "name": "inventoryIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1306, "src": "11435:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "11422:26:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1341, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1325, "src": "11451:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 1342, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "inventoryId", "nodeType": "MemberAccess", "referencedDeclaration": 1768, "src": "11451:21:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "11422:50:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1344, "nodeType": "ExpressionStatement", "src": "11422:50:2" }, { "expression": { "id": 1350, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1345, "name": "owners", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1237, "src": "11486:6:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[] memory" } }, "id": 1347, "indexExpression": { "id": 1346, "name": "inventoryIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1306, "src": "11493:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "11486:20:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1348, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1325, "src": "11509:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 1349, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", "referencedDeclaration": 1770, "src": "11509:15:2", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "src": "11486:38:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 1351, "nodeType": "ExpressionStatement", "src": "11486:38:2" }, { "expression": { "id": 1357, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1352, "name": "names", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1240, "src": "11538:5:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "id": 1354, "indexExpression": { "id": 1353, "name": "inventoryIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1306, "src": "11544:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "11538:19:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1355, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1325, "src": "11560:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 1356, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "name", "nodeType": "MemberAccess", "referencedDeclaration": 1772, "src": "11560:14:2", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "src": "11538:36:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "id": 1358, "nodeType": "ExpressionStatement", "src": "11538:36:2" }, { "expression": { "id": 1364, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1359, "name": "uris", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1243, "src": "11588:4:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "id": 1361, "indexExpression": { "id": 1360, "name": "inventoryIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1306, "src": "11593:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "11588:18:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1362, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1325, "src": "11609:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 1363, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "uri", "nodeType": "MemberAccess", "referencedDeclaration": 1774, "src": "11609:13:2", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "src": "11588:34:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "id": 1365, "nodeType": "ExpressionStatement", "src": "11588:34:2" }, { "expression": { "id": 1371, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1366, "name": "publicKeys", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1246, "src": "11636:10:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "id": 1368, "indexExpression": { "id": 1367, "name": "inventoryIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1306, "src": "11647:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "11636:24:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1369, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1325, "src": "11663:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 1370, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "publicKey", "nodeType": "MemberAccess", "referencedDeclaration": 1776, "src": "11663:19:2", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "src": "11636:46:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "id": 1372, "nodeType": "ExpressionStatement", "src": "11636:46:2" }, { "expression": { "id": 1378, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1373, "name": "floorPrices", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1249, "src": "11696:11:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 1375, "indexExpression": { "id": 1374, "name": "inventoryIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1306, "src": "11708:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "11696:25:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1376, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1325, "src": "11724:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 1377, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "floorPrice", "nodeType": "MemberAccess", "referencedDeclaration": 1778, "src": "11724:20:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "11696:48:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1379, "nodeType": "ExpressionStatement", "src": "11696:48:2" }, { "expression": { "id": 1381, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "11758:14:2", "subExpression": { "id": 1380, "name": "inventoryIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1306, "src": "11758:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1382, "nodeType": "ExpressionStatement", "src": "11758:14:2" } ] }, "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1317, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1313, "name": "idx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1310, "src": "11191:3:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "expression": { "expression": { "id": 1314, "name": "_inventories", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 213, "src": "11197:12:2", "typeDescriptions": { "typeIdentifier": "t_struct$_InventorySet_$1766_storage", "typeString": "struct AdNetworkSet.InventorySet storage ref" } }, "id": 1315, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "_values", "nodeType": "MemberAccess", "referencedDeclaration": 1761, "src": "11197:20:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_Inventory_$1779_storage_$dyn_storage", "typeString": "struct AdNetworkSet.Inventory storage ref[] storage ref" } }, "id": 1316, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "length", "nodeType": "MemberAccess", "src": "11197:27:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "11191:33:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1384, "initializationExpression": { "assignments": [ 1310 ], "declarations": [ { "constant": false, "id": 1310, "mutability": "mutable", "name": "idx", "nameLocation": "11182:3:2", "nodeType": "VariableDeclaration", "scope": 1384, "src": "11177:8:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1309, "name": "uint", "nodeType": "ElementaryTypeName", "src": "11177:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 1312, "initialValue": { "hexValue": "30", "id": 1311, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "11188:1:2", "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "nodeType": "VariableDeclarationStatement", "src": "11177:12:2" }, "loopExpression": { "expression": { "id": 1319, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "11226:5:2", "subExpression": { "id": 1318, "name": "idx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1310, "src": "11226:3:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1320, "nodeType": "ExpressionStatement", "src": "11226:5:2" }, "nodeType": "ForStatement", "src": "11172:611:2" } ] }, "functionSelector": "d68fb2fc", "id": 1386, "implemented": true, "kind": "function", "modifiers": [], "name": "getInventoriesByOwnerAddress", "nameLocation": "10442:28:2", "nodeType": "FunctionDefinition", "parameters": { "id": 1231, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1230, "mutability": "mutable", "name": "_ownerAddress", "nameLocation": "10479:13:2", "nodeType": "VariableDeclaration", "scope": 1386, "src": "10471:21:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1229, "name": "address", "nodeType": "ElementaryTypeName", "src": "10471:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "10470:23:2" }, "returnParameters": { "id": 1250, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1234, "mutability": "mutable", "name": "inventoryIds", "nameLocation": "10543:12:2", "nodeType": "VariableDeclaration", "scope": 1386, "src": "10526:29:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[]" }, "typeName": { "baseType": { "id": 1232, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "10526:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1233, "nodeType": "ArrayTypeName", "src": "10526:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } }, "visibility": "internal" }, { "constant": false, "id": 1237, "mutability": "mutable", "name": "owners", "nameLocation": "10582:6:2", "nodeType": "VariableDeclaration", "scope": 1386, "src": "10565:23:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[]" }, "typeName": { "baseType": { "id": 1235, "name": "address", "nodeType": "ElementaryTypeName", "src": "10565:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 1236, "nodeType": "ArrayTypeName", "src": "10565:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", "typeString": "address[]" } }, "visibility": "internal" }, { "constant": false, "id": 1240, "mutability": "mutable", "name": "names", "nameLocation": "10614:5:2", "nodeType": "VariableDeclaration", "scope": 1386, "src": "10598:21:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string[]" }, "typeName": { "baseType": { "id": 1238, "name": "string", "nodeType": "ElementaryTypeName", "src": "10598:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "id": 1239, "nodeType": "ArrayTypeName", "src": "10598:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr", "typeString": "string[]" } }, "visibility": "internal" }, { "constant": false, "id": 1243, "mutability": "mutable", "name": "uris", "nameLocation": "10645:4:2", "nodeType": "VariableDeclaration", "scope": 1386, "src": "10629:20:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string[]" }, "typeName": { "baseType": { "id": 1241, "name": "string", "nodeType": "ElementaryTypeName", "src": "10629:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "id": 1242, "nodeType": "ArrayTypeName", "src": "10629:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr", "typeString": "string[]" } }, "visibility": "internal" }, { "constant": false, "id": 1246, "mutability": "mutable", "name": "publicKeys", "nameLocation": "10675:10:2", "nodeType": "VariableDeclaration", "scope": 1386, "src": "10659:26:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string[]" }, "typeName": { "baseType": { "id": 1244, "name": "string", "nodeType": "ElementaryTypeName", "src": "10659:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "id": 1245, "nodeType": "ArrayTypeName", "src": "10659:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr", "typeString": "string[]" } }, "visibility": "internal" }, { "constant": false, "id": 1249, "mutability": "mutable", "name": "floorPrices", "nameLocation": "10712:11:2", "nodeType": "VariableDeclaration", "scope": 1386, "src": "10695:28:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[]" }, "typeName": { "baseType": { "id": 1247, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "10695:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1248, "nodeType": "ArrayTypeName", "src": "10695:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } }, "visibility": "internal" } ], "src": "10516:213:2" }, "scope": 1755, "src": "10433:1356:2", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "body": { "id": 1451, "nodeType": "Block", "src": "12036:406:2", "statements": [ { "assignments": [ 1407 ], "declarations": [ { "constant": false, "id": 1407, "mutability": "mutable", "name": "inventory", "nameLocation": "12077:9:2", "nodeType": "VariableDeclaration", "scope": 1451, "src": "12046:40:2", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory" }, "typeName": { "id": 1406, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 1405, "name": "AdNetworkSet.Inventory", "nodeType": "IdentifierPath", "referencedDeclaration": 1779, "src": "12046:22:2" }, "referencedDeclaration": 1779, "src": "12046:22:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory" } }, "visibility": "internal" } ], "id": 1412, "initialValue": { "arguments": [ { "id": 1410, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1388, "src": "12106:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "id": 1408, "name": "_inventories", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 213, "src": "12089:12:2", "typeDescriptions": { "typeIdentifier": "t_struct$_InventorySet_$1766_storage", "typeString": "struct AdNetworkSet.InventorySet storage ref" } }, "id": 1409, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "get", "nodeType": "MemberAccess", "referencedDeclaration": 1856, "src": "12089:16:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_struct$_InventorySet_$1766_storage_ptr_$_t_uint256_$returns$_t_struct$_Inventory_$1779_storage_ptr_$bound_to$_t_struct$_InventorySet_$1766_storage_ptr_$", "typeString": "function (struct AdNetworkSet.InventorySet storage pointer,uint256) view returns (struct AdNetworkSet.Inventory storage pointer)" } }, "id": 1411, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "12089:30:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "nodeType": "VariableDeclarationStatement", "src": "12046:73:2" }, { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1417, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { "id": 1414, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1407, "src": "12137:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 1415, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "inventoryId", "nodeType": "MemberAccess", "referencedDeclaration": 1768, "src": "12137:21:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "id": 1416, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1388, "src": "12162:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "12137:37:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "72657175657374656420696e76656e746f727920696420697320696e76616c6964", "id": 1418, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "12176:35:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_291ae92c44b91ab52e635174691fcb1c7f73b50296f9edd66f99d79578c050f3", "typeString": "literal_string \"requested inventory id is invalid\"" }, "value": "requested inventory id is invalid" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_291ae92c44b91ab52e635174691fcb1c7f73b50296f9edd66f99d79578c050f3", "typeString": "literal_string \"requested inventory id is invalid\"" } ], "id": 1413, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "12129:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 1419, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "12129:83:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1420, "nodeType": "ExpressionStatement", "src": "12129:83:2" }, { "expression": { "id": 1424, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1421, "name": "inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1391, "src": "12223:11:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1422, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1407, "src": "12237:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 1423, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "inventoryId", "nodeType": "MemberAccess", "referencedDeclaration": 1768, "src": "12237:21:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "12223:35:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1425, "nodeType": "ExpressionStatement", "src": "12223:35:2" }, { "expression": { "id": 1429, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1426, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1393, "src": "12268:5:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1427, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1407, "src": "12276:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 1428, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", "referencedDeclaration": 1770, "src": "12276:15:2", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "src": "12268:23:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 1430, "nodeType": "ExpressionStatement", "src": "12268:23:2" }, { "expression": { "id": 1434, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1431, "name": "name", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1395, "src": "12301:4:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1432, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1407, "src": "12308:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 1433, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "name", "nodeType": "MemberAccess", "referencedDeclaration": 1772, "src": "12308:14:2", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "src": "12301:21:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "id": 1435, "nodeType": "ExpressionStatement", "src": "12301:21:2" }, { "expression": { "id": 1439, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1436, "name": "uri", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1397, "src": "12332:3:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1437, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1407, "src": "12338:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 1438, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "uri", "nodeType": "MemberAccess", "referencedDeclaration": 1774, "src": "12338:13:2", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "src": "12332:19:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "id": 1440, "nodeType": "ExpressionStatement", "src": "12332:19:2" }, { "expression": { "id": 1444, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1441, "name": "publicKey", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1399, "src": "12361:9:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1442, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1407, "src": "12373:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 1443, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "publicKey", "nodeType": "MemberAccess", "referencedDeclaration": 1776, "src": "12373:19:2", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "src": "12361:31:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "id": 1445, "nodeType": "ExpressionStatement", "src": "12361:31:2" }, { "expression": { "id": 1449, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1446, "name": "floorPrice", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1401, "src": "12402:10:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1447, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1407, "src": "12415:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 1448, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "floorPrice", "nodeType": "MemberAccess", "referencedDeclaration": 1778, "src": "12415:20:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "12402:33:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1450, "nodeType": "ExpressionStatement", "src": "12402:33:2" } ] }, "functionSelector": "5b298d32", "id": 1452, "implemented": true, "kind": "function", "modifiers": [], "name": "getInventory", "nameLocation": "11804:12:2", "nodeType": "FunctionDefinition", "parameters": { "id": 1389, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1388, "mutability": "mutable", "name": "_inventoryId", "nameLocation": "11825:12:2", "nodeType": "VariableDeclaration", "scope": 1452, "src": "11817:20:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1387, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "11817:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "11816:22:2" }, "returnParameters": { "id": 1402, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1391, "mutability": "mutable", "name": "inventoryId", "nameLocation": "11879:11:2", "nodeType": "VariableDeclaration", "scope": 1452, "src": "11871:19:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1390, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "11871:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1393, "mutability": "mutable", "name": "owner", "nameLocation": "11908:5:2", "nodeType": "VariableDeclaration", "scope": 1452, "src": "11900:13:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1392, "name": "address", "nodeType": "ElementaryTypeName", "src": "11900:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 1395, "mutability": "mutable", "name": "name", "nameLocation": "11937:4:2", "nodeType": "VariableDeclaration", "scope": 1452, "src": "11923:18:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 1394, "name": "string", "nodeType": "ElementaryTypeName", "src": "11923:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" }, { "constant": false, "id": 1397, "mutability": "mutable", "name": "uri", "nameLocation": "11965:3:2", "nodeType": "VariableDeclaration", "scope": 1452, "src": "11951:17:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 1396, "name": "string", "nodeType": "ElementaryTypeName", "src": "11951:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" }, { "constant": false, "id": 1399, "mutability": "mutable", "name": "publicKey", "nameLocation": "11992:9:2", "nodeType": "VariableDeclaration", "scope": 1452, "src": "11978:23:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 1398, "name": "string", "nodeType": "ElementaryTypeName", "src": "11978:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" }, { "constant": false, "id": 1401, "mutability": "mutable", "name": "floorPrice", "nameLocation": "12019:10:2", "nodeType": "VariableDeclaration", "scope": 1452, "src": "12011:18:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1400, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "12011:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "11861:174:2" }, "scope": 1755, "src": "11795:647:2", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "body": { "id": 1630, "nodeType": "Block", "src": "12733:1039:2", "statements": [ { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_bool", "typeString": "bool" }, "id": 1484, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1480, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1478, "name": "limit", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1456, "src": "12751:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": ">", "rightExpression": { "hexValue": "30", "id": 1479, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "12759:1:2", "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "src": "12751:9:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "BinaryOperation", "operator": "&&", "rightExpression": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1483, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1481, "name": "limit", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1456, "src": "12764:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<=", "rightExpression": { "hexValue": "3530", "id": 1482, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "12773:2:2", "typeDescriptions": { "typeIdentifier": "t_rational_50_by_1", "typeString": "int_const 50" }, "value": "50" }, "src": "12764:11:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "src": "12751:24:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "496e76656e746f72792063616e20626520726574726965766520757020746f203330206974656d73206174207468652073616d652074696d65", "id": 1485, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "12777:59:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_7bd5de2a7921ab1cd368859225f2849493de4637062cfa621133b94bd187fcba", "typeString": "literal_string \"Inventory can be retrieve up to 30 items at the same time\"" }, "value": "Inventory can be retrieve up to 30 items at the same time" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_7bd5de2a7921ab1cd368859225f2849493de4637062cfa621133b94bd187fcba", "typeString": "literal_string \"Inventory can be retrieve up to 30 items at the same time\"" } ], "id": 1477, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "12743:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 1486, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "12743:94:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1487, "nodeType": "ExpressionStatement", "src": "12743:94:2" }, { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_bool", "typeString": "bool" }, "id": 1497, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1491, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1489, "name": "offset", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1454, "src": "12855:6:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": ">=", "rightExpression": { "hexValue": "30", "id": 1490, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "12865:1:2", "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "src": "12855:11:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "BinaryOperation", "operator": "&&", "rightExpression": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1496, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1492, "name": "offset", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1454, "src": "12870:6:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<=", "rightExpression": { "expression": { "expression": { "id": 1493, "name": "_inventories", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 213, "src": "12880:12:2", "typeDescriptions": { "typeIdentifier": "t_struct$_InventorySet_$1766_storage", "typeString": "struct AdNetworkSet.InventorySet storage ref" } }, "id": 1494, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "_values", "nodeType": "MemberAccess", "referencedDeclaration": 1761, "src": "12880:20:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_Inventory_$1779_storage_$dyn_storage", "typeString": "struct AdNetworkSet.Inventory storage ref[] storage ref" } }, "id": 1495, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "length", "nodeType": "MemberAccess", "src": "12880:27:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "12870:37:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "src": "12855:52:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 1488, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "12847:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 1498, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "12847:61:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1499, "nodeType": "ExpressionStatement", "src": "12847:61:2" }, { "assignments": [ 1501 ], "declarations": [ { "constant": false, "id": 1501, "mutability": "mutable", "name": "upper", "nameLocation": "12924:5:2", "nodeType": "VariableDeclaration", "scope": 1630, "src": "12919:10:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1500, "name": "uint", "nodeType": "ElementaryTypeName", "src": "12919:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 1510, "initialValue": { "arguments": [ { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1508, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1506, "name": "offset", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1454, "src": "12964:6:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "+", "rightExpression": { "id": 1507, "name": "limit", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1456, "src": "12973:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "12964:14:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "expression": { "expression": { "id": 1502, "name": "_inventories", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 213, "src": "12932:12:2", "typeDescriptions": { "typeIdentifier": "t_struct$_InventorySet_$1766_storage", "typeString": "struct AdNetworkSet.InventorySet storage ref" } }, "id": 1503, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "_values", "nodeType": "MemberAccess", "referencedDeclaration": 1761, "src": "12932:20:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_Inventory_$1779_storage_$dyn_storage", "typeString": "struct AdNetworkSet.Inventory storage ref[] storage ref" } }, "id": 1504, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "length", "nodeType": "MemberAccess", "src": "12932:27:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1505, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "min", "nodeType": "MemberAccess", "referencedDeclaration": 112, "src": "12932:31:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, "id": 1509, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "12932:47:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", "src": "12919:60:2" }, { "expression": { "id": 1517, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1511, "name": "inventoryIds", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1460, "src": "12989:12:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 1515, "name": "upper", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1501, "src": "13018:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1514, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "13004:13:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (uint256[] memory)" }, "typeName": { "baseType": { "id": 1512, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "13008:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1513, "nodeType": "ArrayTypeName", "src": "13008:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } } }, "id": 1516, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "13004:20:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "src": "12989:35:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 1518, "nodeType": "ExpressionStatement", "src": "12989:35:2" }, { "expression": { "id": 1525, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1519, "name": "owners", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1463, "src": "13034:6:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 1523, "name": "upper", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1501, "src": "13057:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1522, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "13043:13:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_address_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (address[] memory)" }, "typeName": { "baseType": { "id": 1520, "name": "address", "nodeType": "ElementaryTypeName", "src": "13047:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 1521, "nodeType": "ArrayTypeName", "src": "13047:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", "typeString": "address[]" } } }, "id": 1524, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "13043:20:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[] memory" } }, "src": "13034:29:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[] memory" } }, "id": 1526, "nodeType": "ExpressionStatement", "src": "13034:29:2" }, { "expression": { "id": 1533, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1527, "name": "names", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1466, "src": "13073:5:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 1531, "name": "upper", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1501, "src": "13094:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1530, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "13081:12:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_string_memory_ptr_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (string memory[] memory)" }, "typeName": { "baseType": { "id": 1528, "name": "string", "nodeType": "ElementaryTypeName", "src": "13085:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "id": 1529, "nodeType": "ArrayTypeName", "src": "13085:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr", "typeString": "string[]" } } }, "id": 1532, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "13081:19:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "src": "13073:27:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "id": 1534, "nodeType": "ExpressionStatement", "src": "13073:27:2" }, { "expression": { "id": 1541, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1535, "name": "uris", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1469, "src": "13110:4:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 1539, "name": "upper", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1501, "src": "13130:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1538, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "13117:12:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_string_memory_ptr_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (string memory[] memory)" }, "typeName": { "baseType": { "id": 1536, "name": "string", "nodeType": "ElementaryTypeName", "src": "13121:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "id": 1537, "nodeType": "ArrayTypeName", "src": "13121:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr", "typeString": "string[]" } } }, "id": 1540, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "13117:19:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "src": "13110:26:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "id": 1542, "nodeType": "ExpressionStatement", "src": "13110:26:2" }, { "expression": { "id": 1549, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1543, "name": "publicKeys", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1472, "src": "13146:10:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 1547, "name": "upper", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1501, "src": "13172:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1546, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "13159:12:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_string_memory_ptr_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (string memory[] memory)" }, "typeName": { "baseType": { "id": 1544, "name": "string", "nodeType": "ElementaryTypeName", "src": "13163:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "id": 1545, "nodeType": "ArrayTypeName", "src": "13163:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr", "typeString": "string[]" } } }, "id": 1548, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "13159:19:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "src": "13146:32:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "id": 1550, "nodeType": "ExpressionStatement", "src": "13146:32:2" }, { "expression": { "id": 1557, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1551, "name": "floorPrices", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1475, "src": "13188:11:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 1555, "name": "upper", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1501, "src": "13216:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1554, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "13202:13:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (uint256[] memory)" }, "typeName": { "baseType": { "id": 1552, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "13206:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1553, "nodeType": "ArrayTypeName", "src": "13206:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } } }, "id": 1556, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "13202:20:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "src": "13188:34:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 1558, "nodeType": "ExpressionStatement", "src": "13188:34:2" }, { "assignments": [ 1560 ], "declarations": [ { "constant": false, "id": 1560, "mutability": "mutable", "name": "inventoryIdx", "nameLocation": "13238:12:2", "nodeType": "VariableDeclaration", "scope": 1630, "src": "13233:17:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1559, "name": "uint", "nodeType": "ElementaryTypeName", "src": "13233:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 1562, "initialValue": { "hexValue": "30", "id": 1561, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "13253:1:2", "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "nodeType": "VariableDeclarationStatement", "src": "13233:21:2" }, { "body": { "id": 1628, "nodeType": "Block", "src": "13308:458:2", "statements": [ { "assignments": [ 1577 ], "declarations": [ { "constant": false, "id": 1577, "mutability": "mutable", "name": "inventory", "nameLocation": "13353:9:2", "nodeType": "VariableDeclaration", "scope": 1628, "src": "13322:40:2", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory" }, "typeName": { "id": 1576, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 1575, "name": "AdNetworkSet.Inventory", "nodeType": "IdentifierPath", "referencedDeclaration": 1779, "src": "13322:22:2" }, "referencedDeclaration": 1779, "src": "13322:22:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory" } }, "visibility": "internal" } ], "id": 1582, "initialValue": { "baseExpression": { "expression": { "id": 1578, "name": "_inventories", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 213, "src": "13365:12:2", "typeDescriptions": { "typeIdentifier": "t_struct$_InventorySet_$1766_storage", "typeString": "struct AdNetworkSet.InventorySet storage ref" } }, "id": 1579, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "_values", "nodeType": "MemberAccess", "referencedDeclaration": 1761, "src": "13365:20:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_Inventory_$1779_storage_$dyn_storage", "typeString": "struct AdNetworkSet.Inventory storage ref[] storage ref" } }, "id": 1581, "indexExpression": { "id": 1580, "name": "idx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1564, "src": "13386:3:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "13365:25:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage", "typeString": "struct AdNetworkSet.Inventory storage ref" } }, "nodeType": "VariableDeclarationStatement", "src": "13322:68:2" }, { "expression": { "id": 1588, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1583, "name": "inventoryIds", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1460, "src": "13405:12:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 1585, "indexExpression": { "id": 1584, "name": "inventoryIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1560, "src": "13418:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "13405:26:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1586, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1577, "src": "13434:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 1587, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "inventoryId", "nodeType": "MemberAccess", "referencedDeclaration": 1768, "src": "13434:21:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "13405:50:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1589, "nodeType": "ExpressionStatement", "src": "13405:50:2" }, { "expression": { "id": 1595, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1590, "name": "owners", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1463, "src": "13469:6:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[] memory" } }, "id": 1592, "indexExpression": { "id": 1591, "name": "inventoryIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1560, "src": "13476:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "13469:20:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1593, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1577, "src": "13492:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 1594, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", "referencedDeclaration": 1770, "src": "13492:15:2", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "src": "13469:38:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 1596, "nodeType": "ExpressionStatement", "src": "13469:38:2" }, { "expression": { "id": 1602, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1597, "name": "names", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1466, "src": "13521:5:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "id": 1599, "indexExpression": { "id": 1598, "name": "inventoryIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1560, "src": "13527:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "13521:19:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1600, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1577, "src": "13543:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 1601, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "name", "nodeType": "MemberAccess", "referencedDeclaration": 1772, "src": "13543:14:2", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "src": "13521:36:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "id": 1603, "nodeType": "ExpressionStatement", "src": "13521:36:2" }, { "expression": { "id": 1609, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1604, "name": "uris", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1469, "src": "13571:4:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "id": 1606, "indexExpression": { "id": 1605, "name": "inventoryIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1560, "src": "13576:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "13571:18:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1607, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1577, "src": "13592:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 1608, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "uri", "nodeType": "MemberAccess", "referencedDeclaration": 1774, "src": "13592:13:2", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "src": "13571:34:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "id": 1610, "nodeType": "ExpressionStatement", "src": "13571:34:2" }, { "expression": { "id": 1616, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1611, "name": "publicKeys", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1472, "src": "13619:10:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "id": 1613, "indexExpression": { "id": 1612, "name": "inventoryIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1560, "src": "13630:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "13619:24:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1614, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1577, "src": "13646:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 1615, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "publicKey", "nodeType": "MemberAccess", "referencedDeclaration": 1776, "src": "13646:19:2", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "src": "13619:46:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "id": 1617, "nodeType": "ExpressionStatement", "src": "13619:46:2" }, { "expression": { "id": 1623, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1618, "name": "floorPrices", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1475, "src": "13679:11:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 1620, "indexExpression": { "id": 1619, "name": "inventoryIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1560, "src": "13691:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "13679:25:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1621, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1577, "src": "13707:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 1622, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "floorPrice", "nodeType": "MemberAccess", "referencedDeclaration": 1778, "src": "13707:20:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "13679:48:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1624, "nodeType": "ExpressionStatement", "src": "13679:48:2" }, { "expression": { "id": 1626, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "13741:14:2", "subExpression": { "id": 1625, "name": "inventoryIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1560, "src": "13741:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1627, "nodeType": "ExpressionStatement", "src": "13741:14:2" } ] }, "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1569, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1567, "name": "idx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1564, "src": "13288:3:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "id": 1568, "name": "upper", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1501, "src": "13294:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "13288:11:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1629, "initializationExpression": { "assignments": [ 1564 ], "declarations": [ { "constant": false, "id": 1564, "mutability": "mutable", "name": "idx", "nameLocation": "13274:3:2", "nodeType": "VariableDeclaration", "scope": 1629, "src": "13269:8:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1563, "name": "uint", "nodeType": "ElementaryTypeName", "src": "13269:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 1566, "initialValue": { "id": 1565, "name": "offset", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1454, "src": "13280:6:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", "src": "13269:17:2" }, "loopExpression": { "expression": { "id": 1571, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "13301:5:2", "subExpression": { "id": 1570, "name": "idx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1564, "src": "13301:3:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1572, "nodeType": "ExpressionStatement", "src": "13301:5:2" }, "nodeType": "ForStatement", "src": "13264:502:2" } ] }, "functionSelector": "72af4556", "id": 1631, "implemented": true, "kind": "function", "modifiers": [], "name": "getInventories", "nameLocation": "12457:14:2", "nodeType": "FunctionDefinition", "parameters": { "id": 1457, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1454, "mutability": "mutable", "name": "offset", "nameLocation": "12477:6:2", "nodeType": "VariableDeclaration", "scope": 1631, "src": "12472:11:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1453, "name": "uint", "nodeType": "ElementaryTypeName", "src": "12472:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1456, "mutability": "mutable", "name": "limit", "nameLocation": "12490:5:2", "nodeType": "VariableDeclaration", "scope": 1631, "src": "12485:10:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1455, "name": "uint", "nodeType": "ElementaryTypeName", "src": "12485:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "12471:25:2" }, "returnParameters": { "id": 1476, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1460, "mutability": "mutable", "name": "inventoryIds", "nameLocation": "12546:12:2", "nodeType": "VariableDeclaration", "scope": 1631, "src": "12529:29:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[]" }, "typeName": { "baseType": { "id": 1458, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "12529:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1459, "nodeType": "ArrayTypeName", "src": "12529:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } }, "visibility": "internal" }, { "constant": false, "id": 1463, "mutability": "mutable", "name": "owners", "nameLocation": "12585:6:2", "nodeType": "VariableDeclaration", "scope": 1631, "src": "12568:23:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[]" }, "typeName": { "baseType": { "id": 1461, "name": "address", "nodeType": "ElementaryTypeName", "src": "12568:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 1462, "nodeType": "ArrayTypeName", "src": "12568:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", "typeString": "address[]" } }, "visibility": "internal" }, { "constant": false, "id": 1466, "mutability": "mutable", "name": "names", "nameLocation": "12617:5:2", "nodeType": "VariableDeclaration", "scope": 1631, "src": "12601:21:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string[]" }, "typeName": { "baseType": { "id": 1464, "name": "string", "nodeType": "ElementaryTypeName", "src": "12601:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "id": 1465, "nodeType": "ArrayTypeName", "src": "12601:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr", "typeString": "string[]" } }, "visibility": "internal" }, { "constant": false, "id": 1469, "mutability": "mutable", "name": "uris", "nameLocation": "12648:4:2", "nodeType": "VariableDeclaration", "scope": 1631, "src": "12632:20:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string[]" }, "typeName": { "baseType": { "id": 1467, "name": "string", "nodeType": "ElementaryTypeName", "src": "12632:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "id": 1468, "nodeType": "ArrayTypeName", "src": "12632:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr", "typeString": "string[]" } }, "visibility": "internal" }, { "constant": false, "id": 1472, "mutability": "mutable", "name": "publicKeys", "nameLocation": "12678:10:2", "nodeType": "VariableDeclaration", "scope": 1631, "src": "12662:26:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string[]" }, "typeName": { "baseType": { "id": 1470, "name": "string", "nodeType": "ElementaryTypeName", "src": "12662:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "id": 1471, "nodeType": "ArrayTypeName", "src": "12662:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr", "typeString": "string[]" } }, "visibility": "internal" }, { "constant": false, "id": 1475, "mutability": "mutable", "name": "floorPrices", "nameLocation": "12715:11:2", "nodeType": "VariableDeclaration", "scope": 1631, "src": "12698:28:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[]" }, "typeName": { "baseType": { "id": 1473, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "12698:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1474, "nodeType": "ArrayTypeName", "src": "12698:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } }, "visibility": "internal" } ], "src": "12519:213:2" }, "scope": 1755, "src": "12448:1324:2", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "body": { "id": 1753, "nodeType": "Block", "src": "13866:861:2", "statements": [ { "assignments": [ 1640 ], "declarations": [ { "constant": false, "id": 1640, "mutability": "mutable", "name": "expireCounts", "nameLocation": "13881:12:2", "nodeType": "VariableDeclaration", "scope": 1753, "src": "13876:17:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1639, "name": "uint", "nodeType": "ElementaryTypeName", "src": "13876:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 1642, "initialValue": { "hexValue": "30", "id": 1641, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "13896:1:2", "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "nodeType": "VariableDeclarationStatement", "src": "13876:21:2" }, { "body": { "id": 1684, "nodeType": "Block", "src": "13960:260:2", "statements": [ { "assignments": [ 1659 ], "declarations": [ { "constant": false, "id": 1659, "mutability": "mutable", "name": "ad", "nameLocation": "13998:2:2", "nodeType": "VariableDeclaration", "scope": 1684, "src": "13974:26:2", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad" }, "typeName": { "id": 1658, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 1657, "name": "AdNetworkSet.Ad", "nodeType": "IdentifierPath", "referencedDeclaration": 1984, "src": "13974:15:2" }, "referencedDeclaration": 1984, "src": "13974:15:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad" } }, "visibility": "internal" } ], "id": 1664, "initialValue": { "baseExpression": { "expression": { "id": 1660, "name": "_ads", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 219, "src": "14003:4:2", "typeDescriptions": { "typeIdentifier": "t_struct$_AdSet_$1967_storage", "typeString": "struct AdNetworkSet.AdSet storage ref" } }, "id": 1661, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "_values", "nodeType": "MemberAccess", "referencedDeclaration": 1962, "src": "14003:12:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_Ad_$1984_storage_$dyn_storage", "typeString": "struct AdNetworkSet.Ad storage ref[] storage ref" } }, "id": 1663, "indexExpression": { "id": 1662, "name": "idx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1644, "src": "14016:3:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "14003:17:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage", "typeString": "struct AdNetworkSet.Ad storage ref" } }, "nodeType": "VariableDeclarationStatement", "src": "13974:46:2" }, { "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1670, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "baseExpression": { "id": 1665, "name": "_adToInventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 227, "src": "14038:14:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" } }, "id": 1668, "indexExpression": { "expression": { "id": 1666, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1659, "src": "14053:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1667, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "adId", "nodeType": "MemberAccess", "referencedDeclaration": 1969, "src": "14053:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "14038:23:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "id": 1669, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1633, "src": "14065:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "14038:39:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1673, "nodeType": "IfStatement", "src": "14034:86:2", "trueBody": { "id": 1672, "nodeType": "Block", "src": "14079:41:2", "statements": [ { "id": 1671, "nodeType": "Continue", "src": "14097:8:2" } ] } }, { "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1678, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { "id": 1674, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1659, "src": "14137:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1675, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "end", "nodeType": "MemberAccess", "referencedDeclaration": 1981, "src": "14137:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "nodeType": "BinaryOperation", "operator": ">", "rightExpression": { "expression": { "id": 1676, "name": "block", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967292, "src": "14146:5:2", "typeDescriptions": { "typeIdentifier": "t_magic_block", "typeString": "block" } }, "id": 1677, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "timestamp", "nodeType": "MemberAccess", "src": "14146:15:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "14137:24:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1683, "nodeType": "IfStatement", "src": "14133:77:2", "trueBody": { "id": 1682, "nodeType": "Block", "src": "14163:47:2", "statements": [ { "expression": { "id": 1680, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "14181:14:2", "subExpression": { "id": 1679, "name": "expireCounts", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1640, "src": "14181:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1681, "nodeType": "ExpressionStatement", "src": "14181:14:2" } ] } } ] }, "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1651, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1647, "name": "idx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1644, "src": "13926:3:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "expression": { "expression": { "id": 1648, "name": "_ads", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 219, "src": "13932:4:2", "typeDescriptions": { "typeIdentifier": "t_struct$_AdSet_$1967_storage", "typeString": "struct AdNetworkSet.AdSet storage ref" } }, "id": 1649, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "_values", "nodeType": "MemberAccess", "referencedDeclaration": 1962, "src": "13932:12:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_Ad_$1984_storage_$dyn_storage", "typeString": "struct AdNetworkSet.Ad storage ref[] storage ref" } }, "id": 1650, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "length", "nodeType": "MemberAccess", "src": "13932:19:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "13926:25:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1685, "initializationExpression": { "assignments": [ 1644 ], "declarations": [ { "constant": false, "id": 1644, "mutability": "mutable", "name": "idx", "nameLocation": "13917:3:2", "nodeType": "VariableDeclaration", "scope": 1685, "src": "13912:8:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1643, "name": "uint", "nodeType": "ElementaryTypeName", "src": "13912:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 1646, "initialValue": { "hexValue": "30", "id": 1645, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "13923:1:2", "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "nodeType": "VariableDeclarationStatement", "src": "13912:12:2" }, "loopExpression": { "expression": { "id": 1653, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "13953:5:2", "subExpression": { "id": 1652, "name": "idx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1644, "src": "13953:3:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1654, "nodeType": "ExpressionStatement", "src": "13953:5:2" }, "nodeType": "ForStatement", "src": "13907:313:2" }, { "assignments": [ 1690 ], "declarations": [ { "constant": false, "id": 1690, "mutability": "mutable", "name": "expiredAdIds", "nameLocation": "14247:12:2", "nodeType": "VariableDeclaration", "scope": 1753, "src": "14230:29:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[]" }, "typeName": { "baseType": { "id": 1688, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "14230:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1689, "nodeType": "ArrayTypeName", "src": "14230:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } }, "visibility": "internal" } ], "id": 1696, "initialValue": { "arguments": [ { "id": 1694, "name": "expireCounts", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1640, "src": "14276:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1693, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "14262:13:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (uint256[] memory)" }, "typeName": { "baseType": { "id": 1691, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "14266:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1692, "nodeType": "ArrayTypeName", "src": "14266:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } } }, "id": 1695, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "14262:27:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "nodeType": "VariableDeclarationStatement", "src": "14230:59:2" }, { "expression": { "id": 1699, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1697, "name": "expireCounts", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1640, "src": "14299:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "hexValue": "30", "id": 1698, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "14314:1:2", "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "src": "14299:16:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1700, "nodeType": "ExpressionStatement", "src": "14299:16:2" }, { "body": { "id": 1749, "nodeType": "Block", "src": "14378:314:2", "statements": [ { "assignments": [ 1717 ], "declarations": [ { "constant": false, "id": 1717, "mutability": "mutable", "name": "ad", "nameLocation": "14416:2:2", "nodeType": "VariableDeclaration", "scope": 1749, "src": "14392:26:2", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad" }, "typeName": { "id": 1716, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 1715, "name": "AdNetworkSet.Ad", "nodeType": "IdentifierPath", "referencedDeclaration": 1984, "src": "14392:15:2" }, "referencedDeclaration": 1984, "src": "14392:15:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad" } }, "visibility": "internal" } ], "id": 1722, "initialValue": { "baseExpression": { "expression": { "id": 1718, "name": "_ads", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 219, "src": "14421:4:2", "typeDescriptions": { "typeIdentifier": "t_struct$_AdSet_$1967_storage", "typeString": "struct AdNetworkSet.AdSet storage ref" } }, "id": 1719, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "_values", "nodeType": "MemberAccess", "referencedDeclaration": 1962, "src": "14421:12:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_Ad_$1984_storage_$dyn_storage", "typeString": "struct AdNetworkSet.Ad storage ref[] storage ref" } }, "id": 1721, "indexExpression": { "id": 1720, "name": "idx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1702, "src": "14434:3:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "14421:17:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage", "typeString": "struct AdNetworkSet.Ad storage ref" } }, "nodeType": "VariableDeclarationStatement", "src": "14392:46:2" }, { "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1728, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "baseExpression": { "id": 1723, "name": "_adToInventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 227, "src": "14456:14:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" } }, "id": 1726, "indexExpression": { "expression": { "id": 1724, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1717, "src": "14471:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1725, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "adId", "nodeType": "MemberAccess", "referencedDeclaration": 1969, "src": "14471:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "14456:23:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "id": 1727, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1633, "src": "14483:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "14456:39:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1731, "nodeType": "IfStatement", "src": "14452:86:2", "trueBody": { "id": 1730, "nodeType": "Block", "src": "14497:41:2", "statements": [ { "id": 1729, "nodeType": "Continue", "src": "14515:8:2" } ] } }, { "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1736, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { "id": 1732, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1717, "src": "14555:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1733, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "end", "nodeType": "MemberAccess", "referencedDeclaration": 1981, "src": "14555:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "nodeType": "BinaryOperation", "operator": ">", "rightExpression": { "expression": { "id": 1734, "name": "block", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967292, "src": "14564:5:2", "typeDescriptions": { "typeIdentifier": "t_magic_block", "typeString": "block" } }, "id": 1735, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "timestamp", "nodeType": "MemberAccess", "src": "14564:15:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "14555:24:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1748, "nodeType": "IfStatement", "src": "14551:131:2", "trueBody": { "id": 1747, "nodeType": "Block", "src": "14581:101:2", "statements": [ { "expression": { "id": 1742, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1737, "name": "expiredAdIds", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1690, "src": "14599:12:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 1739, "indexExpression": { "id": 1738, "name": "expireCounts", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1640, "src": "14612:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "14599:26:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1740, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1717, "src": "14628:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1741, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "adId", "nodeType": "MemberAccess", "referencedDeclaration": 1969, "src": "14628:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "14599:36:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1743, "nodeType": "ExpressionStatement", "src": "14599:36:2" }, { "expression": { "id": 1745, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "14653:14:2", "subExpression": { "id": 1744, "name": "expireCounts", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1640, "src": "14653:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1746, "nodeType": "ExpressionStatement", "src": "14653:14:2" } ] } } ] }, "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1709, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1705, "name": "idx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1702, "src": "14344:3:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "expression": { "expression": { "id": 1706, "name": "_ads", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 219, "src": "14350:4:2", "typeDescriptions": { "typeIdentifier": "t_struct$_AdSet_$1967_storage", "typeString": "struct AdNetworkSet.AdSet storage ref" } }, "id": 1707, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "_values", "nodeType": "MemberAccess", "referencedDeclaration": 1962, "src": "14350:12:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_Ad_$1984_storage_$dyn_storage", "typeString": "struct AdNetworkSet.Ad storage ref[] storage ref" } }, "id": 1708, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "length", "nodeType": "MemberAccess", "src": "14350:19:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "14344:25:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1750, "initializationExpression": { "assignments": [ 1702 ], "declarations": [ { "constant": false, "id": 1702, "mutability": "mutable", "name": "idx", "nameLocation": "14335:3:2", "nodeType": "VariableDeclaration", "scope": 1750, "src": "14330:8:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1701, "name": "uint", "nodeType": "ElementaryTypeName", "src": "14330:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 1704, "initialValue": { "hexValue": "30", "id": 1703, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "14341:1:2", "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "nodeType": "VariableDeclarationStatement", "src": "14330:12:2" }, "loopExpression": { "expression": { "id": 1711, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "14371:5:2", "subExpression": { "id": 1710, "name": "idx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1702, "src": "14371:3:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1712, "nodeType": "ExpressionStatement", "src": "14371:5:2" }, "nodeType": "ForStatement", "src": "14325:367:2" }, { "expression": { "id": 1751, "name": "expiredAdIds", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1690, "src": "14708:12:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "functionReturnParameters": 1638, "id": 1752, "nodeType": "Return", "src": "14701:19:2" } ] }, "functionSelector": "24bfee7d", "id": 1754, "implemented": true, "kind": "function", "modifiers": [], "name": "getExpiredAdIds", "nameLocation": "13787:15:2", "nodeType": "FunctionDefinition", "parameters": { "id": 1634, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1633, "mutability": "mutable", "name": "_inventoryId", "nameLocation": "13811:12:2", "nodeType": "VariableDeclaration", "scope": 1754, "src": "13803:20:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1632, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "13803:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "13802:22:2" }, "returnParameters": { "id": 1638, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1637, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 1754, "src": "13848:16:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[]" }, "typeName": { "baseType": { "id": 1635, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "13848:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1636, "nodeType": "ArrayTypeName", "src": "13848:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } }, "visibility": "internal" } ], "src": "13847:18:2" }, "scope": 1755, "src": "13778:949:2", "stateMutability": "view", "virtual": false, "visibility": "external" } ], "scope": 1756, "src": "194:14536:2", "usedErrors": [] } ], "src": "32:14699:2" }, "legacyAST": { "absolutePath": "project:/contracts/AdNetwork.sol", "exportedSymbols": { "AdNetwork": [ 1755 ], "AdNetworkSet": [ 2164 ], "Counters": [ 73 ], "Math": [ 161 ] }, "id": 1756, "license": "MIT", "nodeType": "SourceUnit", "nodes": [ { "id": 163, "literals": [ "solidity", "^", "0.8", ".0" ], "nodeType": "PragmaDirective", "src": "32:23:2" }, { "absolutePath": "@openzeppelin/contracts/utils/Counters.sol", "file": "@openzeppelin/contracts/utils/Counters.sol", "id": 164, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 1756, "sourceUnit": 74, "src": "57:52:2", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "@openzeppelin/contracts/utils/math/Math.sol", "file": "@openzeppelin/contracts/utils/math/Math.sol", "id": 165, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 1756, "sourceUnit": 162, "src": "110:53:2", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "project:/contracts/AdNetworkSet.sol", "file": "./AdNetworkSet.sol", "id": 166, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 1756, "sourceUnit": 2165, "src": "164:28:2", "symbolAliases": [], "unitAlias": "" }, { "abstract": false, "baseContracts": [], "canonicalName": "AdNetwork", "contractDependencies": [], "contractKind": "contract", "fullyImplemented": true, "id": 1755, "linearizedBaseContracts": [ 1755 ], "name": "AdNetwork", "nameLocation": "203:9:2", "nodeType": "ContractDefinition", "nodes": [ { "constant": true, "id": 169, "mutability": "constant", "name": "MAX_CREATABLE_AD_COUNT", "nameLocation": "233:22:2", "nodeType": "VariableDeclaration", "scope": 1755, "src": "219:41:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 167, "name": "uint", "nodeType": "ElementaryTypeName", "src": "219:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": { "hexValue": "3130", "id": 168, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "258:2:2", "typeDescriptions": { "typeIdentifier": "t_rational_10_by_1", "typeString": "int_const 10" }, "value": "10" }, "visibility": "internal" }, { "constant": true, "id": 172, "mutability": "constant", "name": "MAX_CREATABLE_INVENTORY_COUNT", "nameLocation": "280:29:2", "nodeType": "VariableDeclaration", "scope": 1755, "src": "266:48:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 170, "name": "uint", "nodeType": "ElementaryTypeName", "src": "266:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": { "hexValue": "3130", "id": 171, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "312:2:2", "typeDescriptions": { "typeIdentifier": "t_rational_10_by_1", "typeString": "int_const 10" }, "value": "10" }, "visibility": "internal" }, { "constant": true, "id": 175, "mutability": "constant", "name": "MAX_DELIVERABLE_AD_COUNT", "nameLocation": "334:24:2", "nodeType": "VariableDeclaration", "scope": 1755, "src": "320:43:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 173, "name": "uint", "nodeType": "ElementaryTypeName", "src": "320:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": { "hexValue": "3130", "id": 174, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "361:2:2", "typeDescriptions": { "typeIdentifier": "t_rational_10_by_1", "typeString": "int_const 10" }, "value": "10" }, "visibility": "internal" }, { "constant": true, "documentation": { "id": 176, "nodeType": "StructuredDocumentation", "src": "369:47:2", "text": "@dev Delivery time must be at least 1 hour." }, "id": 181, "mutability": "constant", "name": "MIN_DELIVERY_TIME", "nameLocation": "435:17:2", "nodeType": "VariableDeclaration", "scope": 1755, "src": "421:41:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 177, "name": "uint", "nodeType": "ElementaryTypeName", "src": "421:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": { "commonType": { "typeIdentifier": "t_rational_3600_by_1", "typeString": "int_const 3600" }, "id": 180, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "leftExpression": { "hexValue": "3630", "id": 178, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "455:2:2", "typeDescriptions": { "typeIdentifier": "t_rational_60_by_1", "typeString": "int_const 60" }, "value": "60" }, "nodeType": "BinaryOperation", "operator": "*", "rightExpression": { "hexValue": "3630", "id": 179, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "460:2:2", "typeDescriptions": { "typeIdentifier": "t_rational_60_by_1", "typeString": "int_const 60" }, "value": "60" }, "src": "455:7:2", "typeDescriptions": { "typeIdentifier": "t_rational_3600_by_1", "typeString": "int_const 3600" } }, "visibility": "internal" }, { "constant": true, "documentation": { "id": 182, "nodeType": "StructuredDocumentation", "src": "468:175:2", "text": "@dev Since there is a high possibility that the screening will not be completed in time,\n it is necessary to allow at least 12 hours before the distribution starts." }, "id": 189, "mutability": "constant", "name": "MIN_TIME_REQUIRED_TO_START_DELIVERY", "nameLocation": "662:35:2", "nodeType": "VariableDeclaration", "scope": 1755, "src": "648:64:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 183, "name": "uint", "nodeType": "ElementaryTypeName", "src": "648:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": { "commonType": { "typeIdentifier": "t_rational_43200_by_1", "typeString": "int_const 43200" }, "id": 188, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "leftExpression": { "commonType": { "typeIdentifier": "t_rational_3600_by_1", "typeString": "int_const 3600" }, "id": 186, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "leftExpression": { "hexValue": "3630", "id": 184, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "700:2:2", "typeDescriptions": { "typeIdentifier": "t_rational_60_by_1", "typeString": "int_const 60" }, "value": "60" }, "nodeType": "BinaryOperation", "operator": "*", "rightExpression": { "hexValue": "3630", "id": 185, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "705:2:2", "typeDescriptions": { "typeIdentifier": "t_rational_60_by_1", "typeString": "int_const 60" }, "value": "60" }, "src": "700:7:2", "typeDescriptions": { "typeIdentifier": "t_rational_3600_by_1", "typeString": "int_const 3600" } }, "nodeType": "BinaryOperation", "operator": "*", "rightExpression": { "hexValue": "3132", "id": 187, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "710:2:2", "typeDescriptions": { "typeIdentifier": "t_rational_12_by_1", "typeString": "int_const 12" }, "value": "12" }, "src": "700:12:2", "typeDescriptions": { "typeIdentifier": "t_rational_43200_by_1", "typeString": "int_const 43200" } }, "visibility": "internal" }, { "constant": true, "id": 192, "mutability": "constant", "name": "MAX_CACHE_BACK_GAS_FEE", "nameLocation": "732:22:2", "nodeType": "VariableDeclaration", "scope": 1755, "src": "718:45:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 190, "name": "uint", "nodeType": "ElementaryTypeName", "src": "718:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": { "hexValue": "3130", "id": 191, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "757:6:2", "subdenomination": "wei", "typeDescriptions": { "typeIdentifier": "t_rational_10_by_1", "typeString": "int_const 10" }, "value": "10" }, "visibility": "internal" }, { "id": 196, "libraryName": { "id": 193, "name": "Counters", "nodeType": "IdentifierPath", "referencedDeclaration": 73, "src": "776:8:2" }, "nodeType": "UsingForDirective", "src": "770:36:2", "typeName": { "id": 195, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 194, "name": "Counters.Counter", "nodeType": "IdentifierPath", "referencedDeclaration": 5, "src": "789:16:2" }, "referencedDeclaration": 5, "src": "789:16:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Counter_$5_storage_ptr", "typeString": "struct Counters.Counter" } } }, { "id": 200, "libraryName": { "id": 197, "name": "AdNetworkSet", "nodeType": "IdentifierPath", "referencedDeclaration": 2164, "src": "817:12:2" }, "nodeType": "UsingForDirective", "src": "811:49:2", "typeName": { "id": 199, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 198, "name": "AdNetworkSet.InventorySet", "nodeType": "IdentifierPath", "referencedDeclaration": 1766, "src": "834:25:2" }, "referencedDeclaration": 1766, "src": "834:25:2", "typeDescriptions": { "typeIdentifier": "t_struct$_InventorySet_$1766_storage_ptr", "typeString": "struct AdNetworkSet.InventorySet" } } }, { "id": 204, "libraryName": { "id": 201, "name": "AdNetworkSet", "nodeType": "IdentifierPath", "referencedDeclaration": 2164, "src": "871:12:2" }, "nodeType": "UsingForDirective", "src": "865:42:2", "typeName": { "id": 203, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 202, "name": "AdNetworkSet.AdSet", "nodeType": "IdentifierPath", "referencedDeclaration": 1967, "src": "888:18:2" }, "referencedDeclaration": 1967, "src": "888:18:2", "typeDescriptions": { "typeIdentifier": "t_struct$_AdSet_$1967_storage_ptr", "typeString": "struct AdNetworkSet.AdSet" } } }, { "id": 207, "libraryName": { "id": 205, "name": "Math", "nodeType": "IdentifierPath", "referencedDeclaration": 161, "src": "918:4:2" }, "nodeType": "UsingForDirective", "src": "912:23:2", "typeName": { "id": 206, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "927:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } }, { "constant": false, "id": 210, "mutability": "mutable", "name": "_inventoryIds", "nameLocation": "966:13:2", "nodeType": "VariableDeclaration", "scope": 1755, "src": "941:38:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_struct$_Counter_$5_storage", "typeString": "struct Counters.Counter" }, "typeName": { "id": 209, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 208, "name": "Counters.Counter", "nodeType": "IdentifierPath", "referencedDeclaration": 5, "src": "941:16:2" }, "referencedDeclaration": 5, "src": "941:16:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Counter_$5_storage_ptr", "typeString": "struct Counters.Counter" } }, "visibility": "private" }, { "constant": false, "id": 213, "mutability": "mutable", "name": "_inventories", "nameLocation": "1019:12:2", "nodeType": "VariableDeclaration", "scope": 1755, "src": "985:46:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_struct$_InventorySet_$1766_storage", "typeString": "struct AdNetworkSet.InventorySet" }, "typeName": { "id": 212, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 211, "name": "AdNetworkSet.InventorySet", "nodeType": "IdentifierPath", "referencedDeclaration": 1766, "src": "985:25:2" }, "referencedDeclaration": 1766, "src": "985:25:2", "typeDescriptions": { "typeIdentifier": "t_struct$_InventorySet_$1766_storage_ptr", "typeString": "struct AdNetworkSet.InventorySet" } }, "visibility": "private" }, { "constant": false, "id": 216, "mutability": "mutable", "name": "_adIds", "nameLocation": "1062:6:2", "nodeType": "VariableDeclaration", "scope": 1755, "src": "1037:31:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_struct$_Counter_$5_storage", "typeString": "struct Counters.Counter" }, "typeName": { "id": 215, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 214, "name": "Counters.Counter", "nodeType": "IdentifierPath", "referencedDeclaration": 5, "src": "1037:16:2" }, "referencedDeclaration": 5, "src": "1037:16:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Counter_$5_storage_ptr", "typeString": "struct Counters.Counter" } }, "visibility": "private" }, { "constant": false, "id": 219, "mutability": "mutable", "name": "_ads", "nameLocation": "1101:4:2", "nodeType": "VariableDeclaration", "scope": 1755, "src": "1074:31:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_struct$_AdSet_$1967_storage", "typeString": "struct AdNetworkSet.AdSet" }, "typeName": { "id": 218, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 217, "name": "AdNetworkSet.AdSet", "nodeType": "IdentifierPath", "referencedDeclaration": 1967, "src": "1074:18:2" }, "referencedDeclaration": 1967, "src": "1074:18:2", "typeDescriptions": { "typeIdentifier": "t_struct$_AdSet_$1967_storage_ptr", "typeString": "struct AdNetworkSet.AdSet" } }, "visibility": "private" }, { "constant": false, "id": 223, "mutability": "mutable", "name": "_requestApproval", "nameLocation": "1148:16:2", "nodeType": "VariableDeclaration", "scope": 1755, "src": "1112:52:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" }, "typeName": { "id": 222, "keyType": { "id": 220, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1120:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Mapping", "src": "1112:27:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" }, "valueType": { "id": 221, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1131:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } }, "visibility": "private" }, { "constant": false, "id": 227, "mutability": "mutable", "name": "_adToInventory", "nameLocation": "1206:14:2", "nodeType": "VariableDeclaration", "scope": 1755, "src": "1170:50:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" }, "typeName": { "id": 226, "keyType": { "id": 224, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1178:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Mapping", "src": "1170:27:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" }, "valueType": { "id": 225, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1189:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } }, "visibility": "private" }, { "constant": false, "id": 231, "mutability": "mutable", "name": "_waitAdToInventory", "nameLocation": "1262:18:2", "nodeType": "VariableDeclaration", "scope": 1755, "src": "1226:54:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" }, "typeName": { "id": 230, "keyType": { "id": 228, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1234:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Mapping", "src": "1226:27:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" }, "valueType": { "id": 229, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1245:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } }, "visibility": "private" }, { "constant": false, "id": 235, "mutability": "mutable", "name": "_ownerAdCount", "nameLocation": "1321:13:2", "nodeType": "VariableDeclaration", "scope": 1755, "src": "1286:48:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint32_$", "typeString": "mapping(address => uint32)" }, "typeName": { "id": 234, "keyType": { "id": 232, "name": "address", "nodeType": "ElementaryTypeName", "src": "1294:7:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Mapping", "src": "1286:26:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint32_$", "typeString": "mapping(address => uint32)" }, "valueType": { "id": 233, "name": "uint32", "nodeType": "ElementaryTypeName", "src": "1305:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } } }, "visibility": "private" }, { "constant": false, "id": 239, "mutability": "mutable", "name": "_ownerInventoryCount", "nameLocation": "1375:20:2", "nodeType": "VariableDeclaration", "scope": 1755, "src": "1340:55:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint32_$", "typeString": "mapping(address => uint32)" }, "typeName": { "id": 238, "keyType": { "id": 236, "name": "address", "nodeType": "ElementaryTypeName", "src": "1348:7:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Mapping", "src": "1340:26:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint32_$", "typeString": "mapping(address => uint32)" }, "valueType": { "id": 237, "name": "uint32", "nodeType": "ElementaryTypeName", "src": "1359:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } } }, "visibility": "private" }, { "constant": false, "id": 243, "mutability": "mutable", "name": "_inventoryAdCount", "nameLocation": "1436:17:2", "nodeType": "VariableDeclaration", "scope": 1755, "src": "1401:52:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint32_$", "typeString": "mapping(uint256 => uint32)" }, "typeName": { "id": 242, "keyType": { "id": 240, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1409:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Mapping", "src": "1401:26:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint32_$", "typeString": "mapping(uint256 => uint32)" }, "valueType": { "id": 241, "name": "uint32", "nodeType": "ElementaryTypeName", "src": "1420:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } } }, "visibility": "private" }, { "constant": false, "id": 247, "mutability": "mutable", "name": "_inventoryWaitAdCount", "nameLocation": "1494:21:2", "nodeType": "VariableDeclaration", "scope": 1755, "src": "1459:56:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint32_$", "typeString": "mapping(uint256 => uint32)" }, "typeName": { "id": 246, "keyType": { "id": 244, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1467:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Mapping", "src": "1459:26:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint32_$", "typeString": "mapping(uint256 => uint32)" }, "valueType": { "id": 245, "name": "uint32", "nodeType": "ElementaryTypeName", "src": "1478:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } } }, "visibility": "private" }, { "anonymous": false, "id": 255, "name": "AdReviewRequestSent", "nameLocation": "1528:19:2", "nodeType": "EventDefinition", "parameters": { "id": 254, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 249, "indexed": true, "mutability": "mutable", "name": "inventoryId", "nameLocation": "1564:11:2", "nodeType": "VariableDeclaration", "scope": 255, "src": "1548:27:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 248, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1548:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 251, "indexed": false, "mutability": "mutable", "name": "requestHash", "nameLocation": "1585:11:2", "nodeType": "VariableDeclaration", "scope": 255, "src": "1577:19:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 250, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "1577:7:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 253, "indexed": false, "mutability": "mutable", "name": "adHash", "nameLocation": "1606:6:2", "nodeType": "VariableDeclaration", "scope": 255, "src": "1598:14:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 252, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "1598:7:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "1547:66:2" }, "src": "1522:92:2" }, { "anonymous": false, "id": 261, "name": "AdCreated", "nameLocation": "1625:9:2", "nodeType": "EventDefinition", "parameters": { "id": 260, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 257, "indexed": true, "mutability": "mutable", "name": "inventoryId", "nameLocation": "1651:11:2", "nodeType": "VariableDeclaration", "scope": 261, "src": "1635:27:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 256, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1635:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 259, "indexed": false, "mutability": "mutable", "name": "adId", "nameLocation": "1672:4:2", "nodeType": "VariableDeclaration", "scope": 261, "src": "1664:12:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 258, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1664:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "1634:43:2" }, "src": "1619:59:2" }, { "anonymous": false, "id": 267, "name": "AdApproved", "nameLocation": "1689:10:2", "nodeType": "EventDefinition", "parameters": { "id": 266, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 263, "indexed": true, "mutability": "mutable", "name": "adId", "nameLocation": "1716:4:2", "nodeType": "VariableDeclaration", "scope": 267, "src": "1700:20:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 262, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1700:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 265, "indexed": false, "mutability": "mutable", "name": "inventoryId", "nameLocation": "1730:11:2", "nodeType": "VariableDeclaration", "scope": 267, "src": "1722:19:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 264, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1722:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "1699:43:2" }, "src": "1683:60:2" }, { "anonymous": false, "id": 273, "name": "AdRejected", "nameLocation": "1754:10:2", "nodeType": "EventDefinition", "parameters": { "id": 272, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 269, "indexed": true, "mutability": "mutable", "name": "adId", "nameLocation": "1781:4:2", "nodeType": "VariableDeclaration", "scope": 273, "src": "1765:20:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 268, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1765:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 271, "indexed": false, "mutability": "mutable", "name": "inventoryId", "nameLocation": "1795:11:2", "nodeType": "VariableDeclaration", "scope": 273, "src": "1787:19:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 270, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1787:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "1764:43:2" }, "src": "1748:60:2" }, { "anonymous": false, "id": 277, "name": "InventoryCreated", "nameLocation": "1819:16:2", "nodeType": "EventDefinition", "parameters": { "id": 276, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 275, "indexed": false, "mutability": "mutable", "name": "inventoryId", "nameLocation": "1844:11:2", "nodeType": "VariableDeclaration", "scope": 277, "src": "1836:19:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 274, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1836:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "1835:21:2" }, "src": "1813:44:2" }, { "body": { "id": 280, "nodeType": "Block", "src": "1877:7:2", "statements": [] }, "id": 281, "implemented": true, "kind": "constructor", "modifiers": [], "name": "", "nameLocation": "-1:-1:-1", "nodeType": "FunctionDefinition", "parameters": { "id": 278, "nodeType": "ParameterList", "parameters": [], "src": "1874:2:2" }, "returnParameters": { "id": 279, "nodeType": "ParameterList", "parameters": [], "src": "1877:0:2" }, "scope": 1755, "src": "1863:21:2", "stateMutability": "nonpayable", "virtual": false, "visibility": "public" }, { "body": { "id": 353, "nodeType": "Block", "src": "2028:622:2", "statements": [ { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 300, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "baseExpression": { "id": 295, "name": "_ownerInventoryCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 239, "src": "2059:20:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint32_$", "typeString": "mapping(address => uint32)" } }, "id": 298, "indexExpression": { "expression": { "id": 296, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967281, "src": "2080:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 297, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "src": "2080:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "2059:32:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "id": 299, "name": "MAX_CREATABLE_INVENTORY_COUNT", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 172, "src": "2094:29:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "2059:64:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "596f752068617665207265616368656420746865206d6178696d756d206e756d626572206f6620696e76656e746f727920796f752063616e206372656174652e20596f75206e65656420746f2072656d6f766520756e77616e74656420696e76656e746f72792e", "id": 301, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "2137:105:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_b717876e01b3276a505705385fc7b04097db7f77d638318e5f6bcb3761acccc5", "typeString": "literal_string \"You have reached the maximum number of inventory you can create. You need to remove unwanted inventory.\"" }, "value": "You have reached the maximum number of inventory you can create. You need to remove unwanted inventory." } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_b717876e01b3276a505705385fc7b04097db7f77d638318e5f6bcb3761acccc5", "typeString": "literal_string \"You have reached the maximum number of inventory you can create. You need to remove unwanted inventory.\"" } ], "id": 294, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "2038:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 302, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2038:205:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 303, "nodeType": "ExpressionStatement", "src": "2038:205:2" }, { "expression": { "arguments": [], "expression": { "argumentTypes": [], "expression": { "id": 304, "name": "_inventoryIds", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 210, "src": "2253:13:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Counter_$5_storage", "typeString": "struct Counters.Counter storage ref" } }, "id": 306, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "increment", "nodeType": "MemberAccess", "referencedDeclaration": 31, "src": "2253:23:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_struct$_Counter_$5_storage_ptr_$returns$__$bound_to$_t_struct$_Counter_$5_storage_ptr_$", "typeString": "function (struct Counters.Counter storage pointer)" } }, "id": 307, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2253:25:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 308, "nodeType": "ExpressionStatement", "src": "2253:25:2" }, { "assignments": [ 310 ], "declarations": [ { "constant": false, "id": 310, "mutability": "mutable", "name": "inventoryId", "nameLocation": "2296:11:2", "nodeType": "VariableDeclaration", "scope": 353, "src": "2288:19:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 309, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2288:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 314, "initialValue": { "arguments": [], "expression": { "argumentTypes": [], "expression": { "id": 311, "name": "_inventoryIds", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 210, "src": "2310:13:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Counter_$5_storage", "typeString": "struct Counters.Counter storage ref" } }, "id": 312, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "current", "nodeType": "MemberAccess", "referencedDeclaration": 17, "src": "2310:21:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_struct$_Counter_$5_storage_ptr_$returns$_t_uint256_$bound_to$_t_struct$_Counter_$5_storage_ptr_$", "typeString": "function (struct Counters.Counter storage pointer) view returns (uint256)" } }, "id": 313, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2310:23:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", "src": "2288:45:2" }, { "assignments": [ 319 ], "declarations": [ { "constant": false, "id": 319, "mutability": "mutable", "name": "inventory", "nameLocation": "2374:9:2", "nodeType": "VariableDeclaration", "scope": 353, "src": "2344:39:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_memory_ptr", "typeString": "struct AdNetworkSet.Inventory" }, "typeName": { "id": 318, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 317, "name": "AdNetworkSet.Inventory", "nodeType": "IdentifierPath", "referencedDeclaration": 1779, "src": "2344:22:2" }, "referencedDeclaration": 1779, "src": "2344:22:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory" } }, "visibility": "internal" } ], "id": 333, "initialValue": { "arguments": [ { "id": 322, "name": "inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 310, "src": "2409:11:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "arguments": [ { "expression": { "id": 325, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967281, "src": "2430:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 326, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "src": "2430:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 324, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "2422:8:2", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_payable_$", "typeString": "type(address payable)" }, "typeName": { "id": 323, "name": "address", "nodeType": "ElementaryTypeName", "src": "2422:8:2", "stateMutability": "payable", "typeDescriptions": {} } }, "id": 327, "isConstant": false, "isLValue": false, "isPure": false, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2422:19:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, { "id": 328, "name": "name", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 283, "src": "2443:4:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, { "id": 329, "name": "uri", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 285, "src": "2449:3:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, { "id": 330, "name": "publicKey", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 287, "src": "2454:9:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, { "id": 331, "name": "floorPrice", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 289, "src": "2465:10:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_address_payable", "typeString": "address payable" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "id": 320, "name": "AdNetworkSet", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2164, "src": "2386:12:2", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_AdNetworkSet_$2164_$", "typeString": "type(library AdNetworkSet)" } }, "id": 321, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "Inventory", "nodeType": "MemberAccess", "referencedDeclaration": 1779, "src": "2386:22:2", "typeDescriptions": { "typeIdentifier": "t_type$_t_struct$_Inventory_$1779_storage_ptr_$", "typeString": "type(struct AdNetworkSet.Inventory storage pointer)" } }, "id": 332, "isConstant": false, "isLValue": false, "isPure": false, "kind": "structConstructorCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2386:90:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_memory_ptr", "typeString": "struct AdNetworkSet.Inventory memory" } }, "nodeType": "VariableDeclarationStatement", "src": "2344:132:2" }, { "expression": { "arguments": [ { "id": 337, "name": "inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 310, "src": "2503:11:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 338, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 319, "src": "2516:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_memory_ptr", "typeString": "struct AdNetworkSet.Inventory memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_struct$_Inventory_$1779_memory_ptr", "typeString": "struct AdNetworkSet.Inventory memory" } ], "expression": { "id": 334, "name": "_inventories", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 213, "src": "2486:12:2", "typeDescriptions": { "typeIdentifier": "t_struct$_InventorySet_$1766_storage", "typeString": "struct AdNetworkSet.InventorySet storage ref" } }, "id": 336, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "add", "nodeType": "MemberAccess", "referencedDeclaration": 1823, "src": "2486:16:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_struct$_InventorySet_$1766_storage_ptr_$_t_uint256_$_t_struct$_Inventory_$1779_memory_ptr_$returns$_t_bool_$bound_to$_t_struct$_InventorySet_$1766_storage_ptr_$", "typeString": "function (struct AdNetworkSet.InventorySet storage pointer,uint256,struct AdNetworkSet.Inventory memory) returns (bool)" } }, "id": 339, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2486:40:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 340, "nodeType": "ExpressionStatement", "src": "2486:40:2" }, { "expression": { "id": 345, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "2536:34:2", "subExpression": { "baseExpression": { "id": 341, "name": "_ownerInventoryCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 239, "src": "2536:20:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint32_$", "typeString": "mapping(address => uint32)" } }, "id": 344, "indexExpression": { "expression": { "id": 342, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967281, "src": "2557:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 343, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "src": "2557:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "2536:32:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 346, "nodeType": "ExpressionStatement", "src": "2536:34:2" }, { "eventCall": { "arguments": [ { "id": 348, "name": "inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 310, "src": "2602:11:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 347, "name": "InventoryCreated", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 277, "src": "2585:16:2", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$returns$__$", "typeString": "function (uint256)" } }, "id": 349, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2585:29:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 350, "nodeType": "EmitStatement", "src": "2580:34:2" }, { "expression": { "id": 351, "name": "inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 310, "src": "2632:11:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "functionReturnParameters": 293, "id": 352, "nodeType": "Return", "src": "2625:18:2" } ] }, "functionSelector": "fd58ac9c", "id": 354, "implemented": true, "kind": "function", "modifiers": [], "name": "createAdInventory", "nameLocation": "1899:17:2", "nodeType": "FunctionDefinition", "parameters": { "id": 290, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 283, "mutability": "mutable", "name": "name", "nameLocation": "1931:4:2", "nodeType": "VariableDeclaration", "scope": 354, "src": "1917:18:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 282, "name": "string", "nodeType": "ElementaryTypeName", "src": "1917:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" }, { "constant": false, "id": 285, "mutability": "mutable", "name": "uri", "nameLocation": "1951:3:2", "nodeType": "VariableDeclaration", "scope": 354, "src": "1937:17:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 284, "name": "string", "nodeType": "ElementaryTypeName", "src": "1937:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" }, { "constant": false, "id": 287, "mutability": "mutable", "name": "publicKey", "nameLocation": "1970:9:2", "nodeType": "VariableDeclaration", "scope": 354, "src": "1956:23:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 286, "name": "string", "nodeType": "ElementaryTypeName", "src": "1956:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" }, { "constant": false, "id": 289, "mutability": "mutable", "name": "floorPrice", "nameLocation": "1989:10:2", "nodeType": "VariableDeclaration", "scope": 354, "src": "1981:18:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 288, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1981:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "1916:84:2" }, "returnParameters": { "id": 293, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 292, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 354, "src": "2019:7:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 291, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2019:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "2018:9:2" }, "scope": 1755, "src": "1890:760:2", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "body": { "id": 399, "nodeType": "Block", "src": "2714:452:2", "statements": [ { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_uint32", "typeString": "uint32" }, "id": 364, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "baseExpression": { "id": 360, "name": "_inventoryAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 243, "src": "2745:17:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint32_$", "typeString": "mapping(uint256 => uint32)" } }, "id": 362, "indexExpression": { "id": 361, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 356, "src": "2763:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "2745:31:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "hexValue": "30", "id": 363, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "2780:1:2", "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "src": "2745:36:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "596f752063616e27742064656c65746520616e20696e76656e746f72792069662074686572652061726520616473206c65667420696e2074686520696e76656e746f72792e", "id": 365, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "2795:71:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_5a05621a21b214233d27b1cd87e126c48be1e0211b2f9f27b784e90ac6512976", "typeString": "literal_string \"You can't delete an inventory if there are ads left in the inventory.\"" }, "value": "You can't delete an inventory if there are ads left in the inventory." } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_5a05621a21b214233d27b1cd87e126c48be1e0211b2f9f27b784e90ac6512976", "typeString": "literal_string \"You can't delete an inventory if there are ads left in the inventory.\"" } ], "id": 359, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "2724:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 366, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2724:143:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 367, "nodeType": "ExpressionStatement", "src": "2724:143:2" }, { "assignments": [ 372 ], "declarations": [ { "constant": false, "id": 372, "mutability": "mutable", "name": "inventory", "nameLocation": "2909:9:2", "nodeType": "VariableDeclaration", "scope": 399, "src": "2878:40:2", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory" }, "typeName": { "id": 371, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 370, "name": "AdNetworkSet.Inventory", "nodeType": "IdentifierPath", "referencedDeclaration": 1779, "src": "2878:22:2" }, "referencedDeclaration": 1779, "src": "2878:22:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory" } }, "visibility": "internal" } ], "id": 377, "initialValue": { "arguments": [ { "id": 375, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 356, "src": "2938:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "id": 373, "name": "_inventories", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 213, "src": "2921:12:2", "typeDescriptions": { "typeIdentifier": "t_struct$_InventorySet_$1766_storage", "typeString": "struct AdNetworkSet.InventorySet storage ref" } }, "id": 374, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "get", "nodeType": "MemberAccess", "referencedDeclaration": 1856, "src": "2921:16:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_struct$_InventorySet_$1766_storage_ptr_$_t_uint256_$returns$_t_struct$_Inventory_$1779_storage_ptr_$bound_to$_t_struct$_InventorySet_$1766_storage_ptr_$", "typeString": "function (struct AdNetworkSet.InventorySet storage pointer,uint256) view returns (struct AdNetworkSet.Inventory storage pointer)" } }, "id": 376, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2921:30:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "nodeType": "VariableDeclarationStatement", "src": "2878:73:2" }, { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 383, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { "id": 379, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 372, "src": "2982:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 380, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", "referencedDeclaration": 1770, "src": "2982:15:2", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "expression": { "id": 381, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967281, "src": "3001:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 382, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "src": "3001:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "2982:29:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "4f6e6c7920696e76656e746f7279206f776e6572732063616e2072656d6f766520696e76656e746f72792e", "id": 384, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "3025:45:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_b903fdbac6049d74b9eb64dc2d970791bb006ea8cf852de471611d0d1f3dfb73", "typeString": "literal_string \"Only inventory owners can remove inventory.\"" }, "value": "Only inventory owners can remove inventory." } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_b903fdbac6049d74b9eb64dc2d970791bb006ea8cf852de471611d0d1f3dfb73", "typeString": "literal_string \"Only inventory owners can remove inventory.\"" } ], "id": 378, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "2961:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 385, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2961:110:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 386, "nodeType": "ExpressionStatement", "src": "2961:110:2" }, { "expression": { "arguments": [ { "id": 390, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 356, "src": "3102:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "id": 387, "name": "_inventories", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 213, "src": "3082:12:2", "typeDescriptions": { "typeIdentifier": "t_struct$_InventorySet_$1766_storage", "typeString": "struct AdNetworkSet.InventorySet storage ref" } }, "id": 389, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "remove", "nodeType": "MemberAccess", "referencedDeclaration": 1958, "src": "3082:19:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_struct$_InventorySet_$1766_storage_ptr_$_t_uint256_$returns$_t_bool_$bound_to$_t_struct$_InventorySet_$1766_storage_ptr_$", "typeString": "function (struct AdNetworkSet.InventorySet storage pointer,uint256) returns (bool)" } }, "id": 391, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "3082:33:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 392, "nodeType": "ExpressionStatement", "src": "3082:33:2" }, { "expression": { "id": 397, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "--", "prefix": false, "src": "3125:34:2", "subExpression": { "baseExpression": { "id": 393, "name": "_ownerInventoryCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 239, "src": "3125:20:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint32_$", "typeString": "mapping(address => uint32)" } }, "id": 396, "indexExpression": { "expression": { "id": 394, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967281, "src": "3146:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 395, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "src": "3146:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "3125:32:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 398, "nodeType": "ExpressionStatement", "src": "3125:34:2" } ] }, "functionSelector": "2e9d3ffb", "id": 400, "implemented": true, "kind": "function", "modifiers": [], "name": "removeAdInventory", "nameLocation": "2665:17:2", "nodeType": "FunctionDefinition", "parameters": { "id": 357, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 356, "mutability": "mutable", "name": "_inventoryId", "nameLocation": "2691:12:2", "nodeType": "VariableDeclaration", "scope": 400, "src": "2683:20:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 355, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2683:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "2682:22:2" }, "returnParameters": { "id": 358, "nodeType": "ParameterList", "parameters": [], "src": "2714:0:2" }, "scope": 1755, "src": "2656:510:2", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "body": { "id": 547, "nodeType": "Block", "src": "3316:1528:2", "statements": [ { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 421, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "baseExpression": { "id": 416, "name": "_ownerAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 235, "src": "3347:13:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint32_$", "typeString": "mapping(address => uint32)" } }, "id": 419, "indexExpression": { "expression": { "id": 417, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967281, "src": "3361:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 418, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "src": "3361:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "3347:25:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "id": 420, "name": "MAX_CREATABLE_AD_COUNT", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 169, "src": "3375:22:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "3347:50:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "596f752068617665207265616368656420746865206d6178696d756d206e756d626572206f662061647320796f752063616e206372656174652e20596f75206e65656420746f2072656d6f766520756e77616e746564206164732e", "id": 422, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "3411:93:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_e73bff7657bdbb5bdef4ed41a4c1c24dfb5c73f6334bacdcb8893c75bf0f5744", "typeString": "literal_string \"You have reached the maximum number of ads you can create. You need to remove unwanted ads.\"" }, "value": "You have reached the maximum number of ads you can create. You need to remove unwanted ads." } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_e73bff7657bdbb5bdef4ed41a4c1c24dfb5c73f6334bacdcb8893c75bf0f5744", "typeString": "literal_string \"You have reached the maximum number of ads you can create. You need to remove unwanted ads.\"" } ], "id": 415, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "3326:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 423, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "3326:179:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 424, "nodeType": "ExpressionStatement", "src": "3326:179:2" }, { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_bool", "typeString": "bool" }, "id": 434, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "commonType": { "typeIdentifier": "t_uint32", "typeString": "uint32" }, "id": 428, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 426, "name": "_end", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 410, "src": "3536:4:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "nodeType": "BinaryOperation", "operator": ">", "rightExpression": { "id": 427, "name": "_start", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 408, "src": "3543:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "src": "3536:13:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "BinaryOperation", "operator": "&&", "rightExpression": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 433, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "commonType": { "typeIdentifier": "t_uint32", "typeString": "uint32" }, "id": 431, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 429, "name": "_end", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 410, "src": "3565:4:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "nodeType": "BinaryOperation", "operator": "-", "rightExpression": { "id": 430, "name": "_start", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 408, "src": "3572:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "src": "3565:13:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "nodeType": "BinaryOperation", "operator": ">=", "rightExpression": { "id": 432, "name": "MIN_DELIVERY_TIME", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 181, "src": "3582:17:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "3565:34:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "src": "3536:63:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "5468652064656c69766572792073746172742074696d65206d757374206265206265666f7265207468652064656c697665727920656e642074696d652c20616e642061206d696e696d756d2064656c697665727920706572696f64206d757374206265207365742e", "id": 435, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "3613:106:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_5447ff33ec71380c4433dea19bd92e1e04cd36dcd9d05b85381a884186004cac", "typeString": "literal_string \"The delivery start time must be before the delivery end time, and a minimum delivery period must be set.\"" }, "value": "The delivery start time must be before the delivery end time, and a minimum delivery period must be set." } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_5447ff33ec71380c4433dea19bd92e1e04cd36dcd9d05b85381a884186004cac", "typeString": "literal_string \"The delivery start time must be before the delivery end time, and a minimum delivery period must be set.\"" } ], "id": 425, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "3515:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 436, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "3515:214:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 437, "nodeType": "ExpressionStatement", "src": "3515:214:2" }, { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_bool", "typeString": "bool" }, "id": 449, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 442, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 439, "name": "_start", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 408, "src": "3760:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "nodeType": "BinaryOperation", "operator": ">", "rightExpression": { "expression": { "id": 440, "name": "block", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967292, "src": "3769:5:2", "typeDescriptions": { "typeIdentifier": "t_magic_block", "typeString": "block" } }, "id": 441, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "timestamp", "nodeType": "MemberAccess", "src": "3769:15:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "3760:24:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "BinaryOperation", "operator": "&&", "rightExpression": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 448, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 446, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 443, "name": "_start", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 408, "src": "3800:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "nodeType": "BinaryOperation", "operator": "-", "rightExpression": { "expression": { "id": 444, "name": "block", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967292, "src": "3809:5:2", "typeDescriptions": { "typeIdentifier": "t_magic_block", "typeString": "block" } }, "id": 445, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "timestamp", "nodeType": "MemberAccess", "src": "3809:15:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "3800:24:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": ">=", "rightExpression": { "id": 447, "name": "MIN_TIME_REQUIRED_TO_START_DELIVERY", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 189, "src": "3828:35:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "3800:63:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "src": "3760:103:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "4974206973206e656365737361727920746f20616c6c6f772061206365727461696e20616d6f756e74206f662074696d65206265666f72652074686520646973747269627574696f6e207374617274732e", "id": 450, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "3877:83:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_0e7f391a772d09ccfabb4f385b147176f21130142ee83356b796e2c0f11049c3", "typeString": "literal_string \"It is necessary to allow a certain amount of time before the distribution starts.\"" }, "value": "It is necessary to allow a certain amount of time before the distribution starts." } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_0e7f391a772d09ccfabb4f385b147176f21130142ee83356b796e2c0f11049c3", "typeString": "literal_string \"It is necessary to allow a certain amount of time before the distribution starts.\"" } ], "id": 438, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "3739:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 451, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "3739:231:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 452, "nodeType": "ExpressionStatement", "src": "3739:231:2" }, { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 458, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "baseExpression": { "id": 454, "name": "_inventoryAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 243, "src": "4001:17:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint32_$", "typeString": "mapping(uint256 => uint32)" } }, "id": 456, "indexExpression": { "id": 455, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 402, "src": "4019:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "4001:31:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "id": 457, "name": "MAX_DELIVERABLE_AD_COUNT", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 175, "src": "4035:24:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "4001:58:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "457863656564656420746865206c696d6974206f662061647320746861742063616e2062652064656c69766572656420746f20796f757220696e76656e746f72792e", "id": 459, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "4073:68:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_5fb2033a4f86e03607b147b551967dc01e4d9efe9e84cd31d34f95975544ffb8", "typeString": "literal_string \"Exceeded the limit of ads that can be delivered to your inventory.\"" }, "value": "Exceeded the limit of ads that can be delivered to your inventory." } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_5fb2033a4f86e03607b147b551967dc01e4d9efe9e84cd31d34f95975544ffb8", "typeString": "literal_string \"Exceeded the limit of ads that can be delivered to your inventory.\"" } ], "id": 453, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "3980:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 460, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "3980:171:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 461, "nodeType": "ExpressionStatement", "src": "3980:171:2" }, { "assignments": [ 466 ], "declarations": [ { "constant": false, "id": 466, "mutability": "mutable", "name": "inventory", "nameLocation": "4193:9:2", "nodeType": "VariableDeclaration", "scope": 547, "src": "4162:40:2", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory" }, "typeName": { "id": 465, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 464, "name": "AdNetworkSet.Inventory", "nodeType": "IdentifierPath", "referencedDeclaration": 1779, "src": "4162:22:2" }, "referencedDeclaration": 1779, "src": "4162:22:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory" } }, "visibility": "internal" } ], "id": 471, "initialValue": { "arguments": [ { "id": 469, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 402, "src": "4222:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "id": 467, "name": "_inventories", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 213, "src": "4205:12:2", "typeDescriptions": { "typeIdentifier": "t_struct$_InventorySet_$1766_storage", "typeString": "struct AdNetworkSet.InventorySet storage ref" } }, "id": 468, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "get", "nodeType": "MemberAccess", "referencedDeclaration": 1856, "src": "4205:16:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_struct$_InventorySet_$1766_storage_ptr_$_t_uint256_$returns$_t_struct$_Inventory_$1779_storage_ptr_$bound_to$_t_struct$_InventorySet_$1766_storage_ptr_$", "typeString": "function (struct AdNetworkSet.InventorySet storage pointer,uint256) view returns (struct AdNetworkSet.Inventory storage pointer)" } }, "id": 470, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "4205:30:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "nodeType": "VariableDeclarationStatement", "src": "4162:73:2" }, { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 477, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { "id": 473, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967281, "src": "4253:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 474, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "value", "nodeType": "MemberAccess", "src": "4253:9:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": ">=", "rightExpression": { "expression": { "id": 475, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 466, "src": "4266:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 476, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "floorPrice", "nodeType": "MemberAccess", "referencedDeclaration": 1778, "src": "4266:20:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "4253:33:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "6164207072696365206d757374206265206c6172676572207468616e20666c6f6f722070726963652073657420627920696e76656e746f7279206f776e65722e", "id": 478, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "4288:66:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_276b86c7a00b3f00b740ebb03804c0fc4012d2d56e251449434230a161501bbb", "typeString": "literal_string \"ad price must be larger than floor price set by inventory owner.\"" }, "value": "ad price must be larger than floor price set by inventory owner." } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_276b86c7a00b3f00b740ebb03804c0fc4012d2d56e251449434230a161501bbb", "typeString": "literal_string \"ad price must be larger than floor price set by inventory owner.\"" } ], "id": 472, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "4245:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 479, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "4245:110:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 480, "nodeType": "ExpressionStatement", "src": "4245:110:2" }, { "expression": { "arguments": [], "expression": { "argumentTypes": [], "expression": { "id": 481, "name": "_adIds", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 216, "src": "4366:6:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Counter_$5_storage", "typeString": "struct Counters.Counter storage ref" } }, "id": 483, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "increment", "nodeType": "MemberAccess", "referencedDeclaration": 31, "src": "4366:16:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_struct$_Counter_$5_storage_ptr_$returns$__$bound_to$_t_struct$_Counter_$5_storage_ptr_$", "typeString": "function (struct Counters.Counter storage pointer)" } }, "id": 484, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "4366:18:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 485, "nodeType": "ExpressionStatement", "src": "4366:18:2" }, { "assignments": [ 487 ], "declarations": [ { "constant": false, "id": 487, "mutability": "mutable", "name": "adId", "nameLocation": "4402:4:2", "nodeType": "VariableDeclaration", "scope": 547, "src": "4394:12:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 486, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "4394:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 491, "initialValue": { "arguments": [], "expression": { "argumentTypes": [], "expression": { "id": 488, "name": "_adIds", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 216, "src": "4409:6:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Counter_$5_storage", "typeString": "struct Counters.Counter storage ref" } }, "id": 489, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "current", "nodeType": "MemberAccess", "referencedDeclaration": 17, "src": "4409:14:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_struct$_Counter_$5_storage_ptr_$returns$_t_uint256_$bound_to$_t_struct$_Counter_$5_storage_ptr_$", "typeString": "function (struct Counters.Counter storage pointer) view returns (uint256)" } }, "id": 490, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "4409:16:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", "src": "4394:31:2" }, { "assignments": [ 496 ], "declarations": [ { "constant": false, "id": 496, "mutability": "mutable", "name": "ad", "nameLocation": "4459:2:2", "nodeType": "VariableDeclaration", "scope": 547, "src": "4436:25:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_memory_ptr", "typeString": "struct AdNetworkSet.Ad" }, "typeName": { "id": 495, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 494, "name": "AdNetworkSet.Ad", "nodeType": "IdentifierPath", "referencedDeclaration": 1984, "src": "4436:15:2" }, "referencedDeclaration": 1984, "src": "4436:15:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad" } }, "visibility": "internal" } ], "id": 513, "initialValue": { "arguments": [ { "id": 499, "name": "adId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 487, "src": "4480:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 500, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 402, "src": "4486:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "arguments": [ { "expression": { "id": 503, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967281, "src": "4508:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 504, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "src": "4508:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 502, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "4500:8:2", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_payable_$", "typeString": "type(address payable)" }, "typeName": { "id": 501, "name": "address", "nodeType": "ElementaryTypeName", "src": "4500:8:2", "stateMutability": "payable", "typeDescriptions": {} } }, "id": 505, "isConstant": false, "isLValue": false, "isPure": false, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "4500:19:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, { "id": 506, "name": "_hash", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 404, "src": "4521:5:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, { "id": 507, "name": "_hashForDelivery", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 406, "src": "4528:16:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, { "id": 508, "name": "_start", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 408, "src": "4546:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, { "id": 509, "name": "_end", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 410, "src": "4554:4:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, { "expression": { "id": 510, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967281, "src": "4560:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 511, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "value", "nodeType": "MemberAccess", "src": "4560:9:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_address_payable", "typeString": "address payable" }, { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, { "typeIdentifier": "t_uint32", "typeString": "uint32" }, { "typeIdentifier": "t_uint32", "typeString": "uint32" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "id": 497, "name": "AdNetworkSet", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2164, "src": "4464:12:2", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_AdNetworkSet_$2164_$", "typeString": "type(library AdNetworkSet)" } }, "id": 498, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "Ad", "nodeType": "MemberAccess", "referencedDeclaration": 1984, "src": "4464:15:2", "typeDescriptions": { "typeIdentifier": "t_type$_t_struct$_Ad_$1984_storage_ptr_$", "typeString": "type(struct AdNetworkSet.Ad storage pointer)" } }, "id": 512, "isConstant": false, "isLValue": false, "isPure": false, "kind": "structConstructorCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "4464:106:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_memory_ptr", "typeString": "struct AdNetworkSet.Ad memory" } }, "nodeType": "VariableDeclarationStatement", "src": "4436:134:2" }, { "expression": { "arguments": [ { "arguments": [ { "id": 517, "name": "adId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 487, "src": "4597:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 518, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 496, "src": "4603:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_memory_ptr", "typeString": "struct AdNetworkSet.Ad memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_struct$_Ad_$1984_memory_ptr", "typeString": "struct AdNetworkSet.Ad memory" } ], "expression": { "id": 515, "name": "_ads", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 219, "src": "4588:4:2", "typeDescriptions": { "typeIdentifier": "t_struct$_AdSet_$1967_storage", "typeString": "struct AdNetworkSet.AdSet storage ref" } }, "id": 516, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "add", "nodeType": "MemberAccess", "referencedDeclaration": 2028, "src": "4588:8:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_struct$_AdSet_$1967_storage_ptr_$_t_uint256_$_t_struct$_Ad_$1984_memory_ptr_$returns$_t_bool_$bound_to$_t_struct$_AdSet_$1967_storage_ptr_$", "typeString": "function (struct AdNetworkSet.AdSet storage pointer,uint256,struct AdNetworkSet.Ad memory) returns (bool)" } }, "id": 519, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "4588:18:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "616473206d75737420626520616464656420636f72726563746c79", "id": 520, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "4608:29:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_55bde59c791e3aa65ae4147bb0db172e43fa3edefa784ea58d73aaa478127b14", "typeString": "literal_string \"ads must be added correctly\"" }, "value": "ads must be added correctly" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_55bde59c791e3aa65ae4147bb0db172e43fa3edefa784ea58d73aaa478127b14", "typeString": "literal_string \"ads must be added correctly\"" } ], "id": 514, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "4580:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 521, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "4580:58:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 522, "nodeType": "ExpressionStatement", "src": "4580:58:2" }, { "expression": { "id": 527, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 523, "name": "_requestApproval", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 223, "src": "4649:16:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" } }, "id": 525, "indexExpression": { "id": 524, "name": "adId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 487, "src": "4666:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "4649:22:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "id": 526, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 402, "src": "4674:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "4649:37:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 528, "nodeType": "ExpressionStatement", "src": "4649:37:2" }, { "expression": { "id": 532, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "4696:37:2", "subExpression": { "baseExpression": { "id": 529, "name": "_inventoryWaitAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 247, "src": "4696:21:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint32_$", "typeString": "mapping(uint256 => uint32)" } }, "id": 531, "indexExpression": { "id": 530, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 402, "src": "4718:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "4696:35:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 533, "nodeType": "ExpressionStatement", "src": "4696:37:2" }, { "expression": { "id": 538, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "4743:27:2", "subExpression": { "baseExpression": { "id": 534, "name": "_ownerAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 235, "src": "4743:13:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint32_$", "typeString": "mapping(address => uint32)" } }, "id": 537, "indexExpression": { "expression": { "id": 535, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967281, "src": "4757:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 536, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "src": "4757:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "4743:25:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 539, "nodeType": "ExpressionStatement", "src": "4743:27:2" }, { "eventCall": { "arguments": [ { "id": 541, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 402, "src": "4796:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 542, "name": "adId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 487, "src": "4810:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 540, "name": "AdCreated", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 261, "src": "4786:9:2", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_uint256_$returns$__$", "typeString": "function (uint256,uint256)" } }, "id": 543, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "4786:29:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 544, "nodeType": "EmitStatement", "src": "4781:34:2" }, { "expression": { "id": 545, "name": "adId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 487, "src": "4833:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "functionReturnParameters": 414, "id": 546, "nodeType": "Return", "src": "4826:11:2" } ] }, "functionSelector": "e815c06e", "id": 548, "implemented": true, "kind": "function", "modifiers": [], "name": "createAd", "nameLocation": "3181:8:2", "nodeType": "FunctionDefinition", "parameters": { "id": 411, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 402, "mutability": "mutable", "name": "_inventoryId", "nameLocation": "3198:12:2", "nodeType": "VariableDeclaration", "scope": 548, "src": "3190:20:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 401, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3190:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 404, "mutability": "mutable", "name": "_hash", "nameLocation": "3220:5:2", "nodeType": "VariableDeclaration", "scope": 548, "src": "3212:13:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 403, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "3212:7:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 406, "mutability": "mutable", "name": "_hashForDelivery", "nameLocation": "3235:16:2", "nodeType": "VariableDeclaration", "scope": 548, "src": "3227:24:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 405, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "3227:7:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 408, "mutability": "mutable", "name": "_start", "nameLocation": "3260:6:2", "nodeType": "VariableDeclaration", "scope": 548, "src": "3253:13:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" }, "typeName": { "id": 407, "name": "uint32", "nodeType": "ElementaryTypeName", "src": "3253:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "visibility": "internal" }, { "constant": false, "id": 410, "mutability": "mutable", "name": "_end", "nameLocation": "3275:4:2", "nodeType": "VariableDeclaration", "scope": 548, "src": "3268:11:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" }, "typeName": { "id": 409, "name": "uint32", "nodeType": "ElementaryTypeName", "src": "3268:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "visibility": "internal" } ], "src": "3189:91:2" }, "returnParameters": { "id": 414, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 413, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 548, "src": "3307:7:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 412, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3307:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "3306:9:2" }, "scope": 1755, "src": "3172:1672:2", "stateMutability": "payable", "virtual": false, "visibility": "external" }, { "body": { "id": 636, "nodeType": "Block", "src": "4915:855:2", "statements": [ { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 560, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "baseExpression": { "id": 556, "name": "_inventoryAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 243, "src": "4946:17:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint32_$", "typeString": "mapping(uint256 => uint32)" } }, "id": 558, "indexExpression": { "id": 557, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 550, "src": "4964:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "4946:31:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "id": 559, "name": "MAX_DELIVERABLE_AD_COUNT", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 175, "src": "4980:24:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "4946:58:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "457863656564656420746865206c696d6974206f662061647320746861742063616e2062652064656c69766572656420746f20796f757220696e76656e746f72792e", "id": 561, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "5018:68:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_5fb2033a4f86e03607b147b551967dc01e4d9efe9e84cd31d34f95975544ffb8", "typeString": "literal_string \"Exceeded the limit of ads that can be delivered to your inventory.\"" }, "value": "Exceeded the limit of ads that can be delivered to your inventory." } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_5fb2033a4f86e03607b147b551967dc01e4d9efe9e84cd31d34f95975544ffb8", "typeString": "literal_string \"Exceeded the limit of ads that can be delivered to your inventory.\"" } ], "id": 555, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "4925:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 562, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "4925:162:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 563, "nodeType": "ExpressionStatement", "src": "4925:162:2" }, { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 569, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "baseExpression": { "id": 565, "name": "_requestApproval", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 223, "src": "5118:16:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" } }, "id": 567, "indexExpression": { "id": 566, "name": "_adId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 552, "src": "5135:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "5118:23:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "id": 568, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 550, "src": "5145:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "5118:39:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "4164766572746973696e6720666f72207468652074617267657420696e76656e746f7279206973206e6f742063757272656e746c7920756e64657220726576696577", "id": 570, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "5171:68:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_6977932ff671ce5ee249f95c8460c6c87009b2b0c2c0bcfc1f0caa4abc358047", "typeString": "literal_string \"Advertising for the target inventory is not currently under review\"" }, "value": "Advertising for the target inventory is not currently under review" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_6977932ff671ce5ee249f95c8460c6c87009b2b0c2c0bcfc1f0caa4abc358047", "typeString": "literal_string \"Advertising for the target inventory is not currently under review\"" } ], "id": 564, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "5097:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 571, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "5097:143:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 572, "nodeType": "ExpressionStatement", "src": "5097:143:2" }, { "assignments": [ 577 ], "declarations": [ { "constant": false, "id": 577, "mutability": "mutable", "name": "inventory", "nameLocation": "5282:9:2", "nodeType": "VariableDeclaration", "scope": 636, "src": "5251:40:2", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory" }, "typeName": { "id": 576, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 575, "name": "AdNetworkSet.Inventory", "nodeType": "IdentifierPath", "referencedDeclaration": 1779, "src": "5251:22:2" }, "referencedDeclaration": 1779, "src": "5251:22:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory" } }, "visibility": "internal" } ], "id": 582, "initialValue": { "arguments": [ { "id": 580, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 550, "src": "5311:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "id": 578, "name": "_inventories", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 213, "src": "5294:12:2", "typeDescriptions": { "typeIdentifier": "t_struct$_InventorySet_$1766_storage", "typeString": "struct AdNetworkSet.InventorySet storage ref" } }, "id": 579, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "get", "nodeType": "MemberAccess", "referencedDeclaration": 1856, "src": "5294:16:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_struct$_InventorySet_$1766_storage_ptr_$_t_uint256_$returns$_t_struct$_Inventory_$1779_storage_ptr_$bound_to$_t_struct$_InventorySet_$1766_storage_ptr_$", "typeString": "function (struct AdNetworkSet.InventorySet storage pointer,uint256) view returns (struct AdNetworkSet.Inventory storage pointer)" } }, "id": 581, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "5294:30:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "nodeType": "VariableDeclarationStatement", "src": "5251:73:2" }, { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 588, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { "id": 584, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 577, "src": "5355:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 585, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", "referencedDeclaration": 1770, "src": "5355:15:2", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "expression": { "id": 586, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967281, "src": "5374:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 587, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "src": "5374:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "5355:29:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "4f6e6c7920696e76656e746f7279206f776e6572732063616e20617070726f7665206164732e", "id": 589, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "5398:40:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_ca0a05d4e8866fc1a00b8227f39eccee06d206e468238220c68c4bb4c8ad79a8", "typeString": "literal_string \"Only inventory owners can approve ads.\"" }, "value": "Only inventory owners can approve ads." } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_ca0a05d4e8866fc1a00b8227f39eccee06d206e468238220c68c4bb4c8ad79a8", "typeString": "literal_string \"Only inventory owners can approve ads.\"" } ], "id": 583, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "5334:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 590, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "5334:105:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 591, "nodeType": "ExpressionStatement", "src": "5334:105:2" }, { "assignments": [ 596 ], "declarations": [ { "constant": false, "id": 596, "mutability": "mutable", "name": "ad", "nameLocation": "5474:2:2", "nodeType": "VariableDeclaration", "scope": 636, "src": "5450:26:2", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad" }, "typeName": { "id": 595, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 594, "name": "AdNetworkSet.Ad", "nodeType": "IdentifierPath", "referencedDeclaration": 1984, "src": "5450:15:2" }, "referencedDeclaration": 1984, "src": "5450:15:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad" } }, "visibility": "internal" } ], "id": 601, "initialValue": { "arguments": [ { "id": 599, "name": "_adId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 552, "src": "5488:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "id": 597, "name": "_ads", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 219, "src": "5479:4:2", "typeDescriptions": { "typeIdentifier": "t_struct$_AdSet_$1967_storage", "typeString": "struct AdNetworkSet.AdSet storage ref" } }, "id": 598, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "get", "nodeType": "MemberAccess", "referencedDeclaration": 2079, "src": "5479:8:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_struct$_AdSet_$1967_storage_ptr_$_t_uint256_$returns$_t_struct$_Ad_$1984_storage_ptr_$bound_to$_t_struct$_AdSet_$1967_storage_ptr_$", "typeString": "function (struct AdNetworkSet.AdSet storage pointer,uint256) view returns (struct AdNetworkSet.Ad storage pointer)" } }, "id": 600, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "5479:15:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "nodeType": "VariableDeclarationStatement", "src": "5450:44:2" }, { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 607, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { "id": 603, "name": "block", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967292, "src": "5512:5:2", "typeDescriptions": { "typeIdentifier": "t_magic_block", "typeString": "block" } }, "id": 604, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "timestamp", "nodeType": "MemberAccess", "src": "5512:15:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "expression": { "id": 605, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 596, "src": "5530:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 606, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "start", "nodeType": "MemberAccess", "referencedDeclaration": 1979, "src": "5530:8:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "src": "5512:26:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 602, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "5504:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 608, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "5504:35:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 609, "nodeType": "ExpressionStatement", "src": "5504:35:2" }, { "expression": { "id": 613, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "delete", "prefix": true, "src": "5550:30:2", "subExpression": { "baseExpression": { "id": 610, "name": "_requestApproval", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 223, "src": "5557:16:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" } }, "id": 612, "indexExpression": { "id": 611, "name": "_adId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 552, "src": "5574:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "5557:23:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 614, "nodeType": "ExpressionStatement", "src": "5550:30:2" }, { "expression": { "id": 618, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "5590:33:2", "subExpression": { "baseExpression": { "id": 615, "name": "_inventoryAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 243, "src": "5590:17:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint32_$", "typeString": "mapping(uint256 => uint32)" } }, "id": 617, "indexExpression": { "id": 616, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 550, "src": "5608:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "5590:31:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 619, "nodeType": "ExpressionStatement", "src": "5590:33:2" }, { "expression": { "id": 623, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "--", "prefix": false, "src": "5633:37:2", "subExpression": { "baseExpression": { "id": 620, "name": "_inventoryWaitAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 247, "src": "5633:21:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint32_$", "typeString": "mapping(uint256 => uint32)" } }, "id": 622, "indexExpression": { "id": 621, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 550, "src": "5655:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "5633:35:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 624, "nodeType": "ExpressionStatement", "src": "5633:37:2" }, { "expression": { "id": 629, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 625, "name": "_adToInventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 227, "src": "5680:14:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" } }, "id": 627, "indexExpression": { "id": 626, "name": "_adId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 552, "src": "5695:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "5680:21:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "id": 628, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 550, "src": "5704:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "5680:36:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 630, "nodeType": "ExpressionStatement", "src": "5680:36:2" }, { "eventCall": { "arguments": [ { "id": 632, "name": "_adId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 552, "src": "5743:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 633, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 550, "src": "5750:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 631, "name": "AdApproved", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 267, "src": "5732:10:2", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_uint256_$returns$__$", "typeString": "function (uint256,uint256)" } }, "id": 634, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "5732:31:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 635, "nodeType": "EmitStatement", "src": "5727:36:2" } ] }, "functionSelector": "518de44d", "id": 637, "implemented": true, "kind": "function", "modifiers": [], "name": "approveAd", "nameLocation": "4859:9:2", "nodeType": "FunctionDefinition", "parameters": { "id": 553, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 550, "mutability": "mutable", "name": "_inventoryId", "nameLocation": "4877:12:2", "nodeType": "VariableDeclaration", "scope": 637, "src": "4869:20:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 549, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "4869:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 552, "mutability": "mutable", "name": "_adId", "nameLocation": "4899:5:2", "nodeType": "VariableDeclaration", "scope": 637, "src": "4891:13:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 551, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "4891:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "4868:37:2" }, "returnParameters": { "id": 554, "nodeType": "ParameterList", "parameters": [], "src": "4915:0:2" }, "scope": 1755, "src": "4850:920:2", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "body": { "id": 733, "nodeType": "Block", "src": "5840:806:2", "statements": [ { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 649, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "baseExpression": { "id": 645, "name": "_requestApproval", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 223, "src": "5871:16:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" } }, "id": 647, "indexExpression": { "id": 646, "name": "_adId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 641, "src": "5888:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "5871:23:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "id": 648, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 639, "src": "5898:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "5871:39:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "4164766572746973696e6720666f72207468652074617267657420696e76656e746f7279206973206e6f742063757272656e746c7920756e64657220726576696577", "id": 650, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "5924:68:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_6977932ff671ce5ee249f95c8460c6c87009b2b0c2c0bcfc1f0caa4abc358047", "typeString": "literal_string \"Advertising for the target inventory is not currently under review\"" }, "value": "Advertising for the target inventory is not currently under review" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_6977932ff671ce5ee249f95c8460c6c87009b2b0c2c0bcfc1f0caa4abc358047", "typeString": "literal_string \"Advertising for the target inventory is not currently under review\"" } ], "id": 644, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "5850:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 651, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "5850:143:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 652, "nodeType": "ExpressionStatement", "src": "5850:143:2" }, { "assignments": [ 657 ], "declarations": [ { "constant": false, "id": 657, "mutability": "mutable", "name": "inventory", "nameLocation": "6035:9:2", "nodeType": "VariableDeclaration", "scope": 733, "src": "6004:40:2", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory" }, "typeName": { "id": 656, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 655, "name": "AdNetworkSet.Inventory", "nodeType": "IdentifierPath", "referencedDeclaration": 1779, "src": "6004:22:2" }, "referencedDeclaration": 1779, "src": "6004:22:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory" } }, "visibility": "internal" } ], "id": 662, "initialValue": { "arguments": [ { "id": 660, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 639, "src": "6064:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "id": 658, "name": "_inventories", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 213, "src": "6047:12:2", "typeDescriptions": { "typeIdentifier": "t_struct$_InventorySet_$1766_storage", "typeString": "struct AdNetworkSet.InventorySet storage ref" } }, "id": 659, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "get", "nodeType": "MemberAccess", "referencedDeclaration": 1856, "src": "6047:16:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_struct$_InventorySet_$1766_storage_ptr_$_t_uint256_$returns$_t_struct$_Inventory_$1779_storage_ptr_$bound_to$_t_struct$_InventorySet_$1766_storage_ptr_$", "typeString": "function (struct AdNetworkSet.InventorySet storage pointer,uint256) view returns (struct AdNetworkSet.Inventory storage pointer)" } }, "id": 661, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "6047:30:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "nodeType": "VariableDeclarationStatement", "src": "6004:73:2" }, { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 668, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { "id": 664, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 657, "src": "6108:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 665, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", "referencedDeclaration": 1770, "src": "6108:15:2", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "expression": { "id": 666, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967281, "src": "6127:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 667, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "src": "6127:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "6108:29:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "4f6e6c7920696e76656e746f7279206f776e6572732063616e2072656a656374206164732e", "id": 669, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "6151:39:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_dccc571f50c08bf8c9bdae798fbc65f302c3b01f5074ba43958f25d7ef888791", "typeString": "literal_string \"Only inventory owners can reject ads.\"" }, "value": "Only inventory owners can reject ads." } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_dccc571f50c08bf8c9bdae798fbc65f302c3b01f5074ba43958f25d7ef888791", "typeString": "literal_string \"Only inventory owners can reject ads.\"" } ], "id": 663, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "6087:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 670, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "6087:104:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 671, "nodeType": "ExpressionStatement", "src": "6087:104:2" }, { "expression": { "id": 675, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "delete", "prefix": true, "src": "6202:30:2", "subExpression": { "baseExpression": { "id": 672, "name": "_requestApproval", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 223, "src": "6209:16:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" } }, "id": 674, "indexExpression": { "id": 673, "name": "_adId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 641, "src": "6226:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "6209:23:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 676, "nodeType": "ExpressionStatement", "src": "6202:30:2" }, { "expression": { "id": 680, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "--", "prefix": false, "src": "6242:37:2", "subExpression": { "baseExpression": { "id": 677, "name": "_inventoryWaitAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 247, "src": "6242:21:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint32_$", "typeString": "mapping(uint256 => uint32)" } }, "id": 679, "indexExpression": { "id": 678, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 639, "src": "6264:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "6242:35:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 681, "nodeType": "ExpressionStatement", "src": "6242:37:2" }, { "assignments": [ 686 ], "declarations": [ { "constant": false, "id": 686, "mutability": "mutable", "name": "ad", "nameLocation": "6313:2:2", "nodeType": "VariableDeclaration", "scope": 733, "src": "6289:26:2", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad" }, "typeName": { "id": 685, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 684, "name": "AdNetworkSet.Ad", "nodeType": "IdentifierPath", "referencedDeclaration": 1984, "src": "6289:15:2" }, "referencedDeclaration": 1984, "src": "6289:15:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad" } }, "visibility": "internal" } ], "id": 691, "initialValue": { "arguments": [ { "id": 689, "name": "_adId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 641, "src": "6327:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "id": 687, "name": "_ads", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 219, "src": "6318:4:2", "typeDescriptions": { "typeIdentifier": "t_struct$_AdSet_$1967_storage", "typeString": "struct AdNetworkSet.AdSet storage ref" } }, "id": 688, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "get", "nodeType": "MemberAccess", "referencedDeclaration": 2079, "src": "6318:8:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_struct$_AdSet_$1967_storage_ptr_$_t_uint256_$returns$_t_struct$_Ad_$1984_storage_ptr_$bound_to$_t_struct$_AdSet_$1967_storage_ptr_$", "typeString": "function (struct AdNetworkSet.AdSet storage pointer,uint256) view returns (struct AdNetworkSet.Ad storage pointer)" } }, "id": 690, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "6318:15:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "nodeType": "VariableDeclarationStatement", "src": "6289:44:2" }, { "expression": { "id": 696, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "--", "prefix": false, "src": "6343:25:2", "subExpression": { "baseExpression": { "id": 692, "name": "_ownerAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 235, "src": "6343:13:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint32_$", "typeString": "mapping(address => uint32)" } }, "id": 695, "indexExpression": { "expression": { "id": 693, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 686, "src": "6357:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 694, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", "referencedDeclaration": 1973, "src": "6357:8:2", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "6343:23:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 697, "nodeType": "ExpressionStatement", "src": "6343:25:2" }, { "assignments": [ 699 ], "declarations": [ { "constant": false, "id": 699, "mutability": "mutable", "name": "adOwner", "nameLocation": "6394:7:2", "nodeType": "VariableDeclaration", "scope": 733, "src": "6378:23:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" }, "typeName": { "id": 698, "name": "address", "nodeType": "ElementaryTypeName", "src": "6378:15:2", "stateMutability": "payable", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "visibility": "internal" } ], "id": 702, "initialValue": { "expression": { "id": 700, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 686, "src": "6404:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 701, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", "referencedDeclaration": 1973, "src": "6404:8:2", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "nodeType": "VariableDeclarationStatement", "src": "6378:34:2" }, { "assignments": [ 704 ], "declarations": [ { "constant": false, "id": 704, "mutability": "mutable", "name": "paybackPrice", "nameLocation": "6427:12:2", "nodeType": "VariableDeclaration", "scope": 733, "src": "6422:17:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 703, "name": "uint", "nodeType": "ElementaryTypeName", "src": "6422:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 707, "initialValue": { "expression": { "id": 705, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 686, "src": "6442:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 706, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "price", "nodeType": "MemberAccess", "referencedDeclaration": 1983, "src": "6442:8:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", "src": "6422:28:2" }, { "assignments": [ 709, null ], "declarations": [ { "constant": false, "id": 709, "mutability": "mutable", "name": "r", "nameLocation": "6467:1:2", "nodeType": "VariableDeclaration", "scope": 733, "src": "6462:6:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 708, "name": "bool", "nodeType": "ElementaryTypeName", "src": "6462:4:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "visibility": "internal" }, null ], "id": 716, "initialValue": { "arguments": [ { "hexValue": "", "id": 714, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "6508:2:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", "typeString": "literal_string \"\"" }, "value": "" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", "typeString": "literal_string \"\"" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", "typeString": "literal_string \"\"" } ], "expression": { "id": 710, "name": "adOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 699, "src": "6473:7:2", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "id": 711, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "call", "nodeType": "MemberAccess", "src": "6473:12:2", "typeDescriptions": { "typeIdentifier": "t_function_barecall_payable$_t_bytes_memory_ptr_$returns$_t_bool_$_t_bytes_memory_ptr_$", "typeString": "function (bytes memory) payable returns (bool,bytes memory)" } }, "id": 713, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "names": [ "value" ], "nodeType": "FunctionCallOptions", "options": [ { "id": 712, "name": "paybackPrice", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 704, "src": "6494:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "src": "6473:34:2", "typeDescriptions": { "typeIdentifier": "t_function_barecall_payable$_t_bytes_memory_ptr_$returns$_t_bool_$_t_bytes_memory_ptr_$value", "typeString": "function (bytes memory) payable returns (bool,bytes memory)" } }, "id": 715, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "6473:38:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$_t_bool_$_t_bytes_memory_ptr_$", "typeString": "tuple(bool,bytes memory)" } }, "nodeType": "VariableDeclarationStatement", "src": "6461:50:2" }, { "expression": { "arguments": [ { "id": 718, "name": "r", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 709, "src": "6529:1:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "4661696c656420746f207061796261636b206c6f636b2076616c756573", "id": 719, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "6532:31:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_2408c3db4aaa8531c95016fcf9417b46eca235e606d7ce723c7dc6f164a207fd", "typeString": "literal_string \"Failed to payback lock values\"" }, "value": "Failed to payback lock values" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_2408c3db4aaa8531c95016fcf9417b46eca235e606d7ce723c7dc6f164a207fd", "typeString": "literal_string \"Failed to payback lock values\"" } ], "id": 717, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "6521:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 720, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "6521:43:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 721, "nodeType": "ExpressionStatement", "src": "6521:43:2" }, { "expression": { "arguments": [ { "id": 725, "name": "_adId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 641, "src": "6586:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "id": 722, "name": "_ads", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 219, "src": "6574:4:2", "typeDescriptions": { "typeIdentifier": "t_struct$_AdSet_$1967_storage", "typeString": "struct AdNetworkSet.AdSet storage ref" } }, "id": 724, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "remove", "nodeType": "MemberAccess", "referencedDeclaration": 2163, "src": "6574:11:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_struct$_AdSet_$1967_storage_ptr_$_t_uint256_$returns$_t_bool_$bound_to$_t_struct$_AdSet_$1967_storage_ptr_$", "typeString": "function (struct AdNetworkSet.AdSet storage pointer,uint256) returns (bool)" } }, "id": 726, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "6574:18:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 727, "nodeType": "ExpressionStatement", "src": "6574:18:2" }, { "eventCall": { "arguments": [ { "id": 729, "name": "_adId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 641, "src": "6619:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "id": 730, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 639, "src": "6626:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 728, "name": "AdRejected", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 273, "src": "6608:10:2", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_uint256_$returns$__$", "typeString": "function (uint256,uint256)" } }, "id": 731, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "6608:31:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 732, "nodeType": "EmitStatement", "src": "6603:36:2" } ] }, "functionSelector": "04216974", "id": 734, "implemented": true, "kind": "function", "modifiers": [], "name": "rejectAd", "nameLocation": "5785:8:2", "nodeType": "FunctionDefinition", "parameters": { "id": 642, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 639, "mutability": "mutable", "name": "_inventoryId", "nameLocation": "5802:12:2", "nodeType": "VariableDeclaration", "scope": 734, "src": "5794:20:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 638, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5794:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 641, "mutability": "mutable", "name": "_adId", "nameLocation": "5824:5:2", "nodeType": "VariableDeclaration", "scope": 734, "src": "5816:13:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 640, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5816:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "5793:37:2" }, "returnParameters": { "id": 643, "nodeType": "ParameterList", "parameters": [], "src": "5840:0:2" }, "scope": 1755, "src": "5776:870:2", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "body": { "id": 879, "nodeType": "Block", "src": "6714:1121:2", "statements": [ { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 746, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "baseExpression": { "id": 742, "name": "_adToInventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 227, "src": "6745:14:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" } }, "id": 744, "indexExpression": { "id": 743, "name": "_adId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 738, "src": "6760:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "6745:21:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "id": 745, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 736, "src": "6770:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "6745:37:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "4f6e6c792061647320746861742061726520696e2074686520696e76656e746f72792063616e20626520636f6c6c65637465642e", "id": 747, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "6796:54:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_659fefdbf37c49ed6966d6daba615f39d1833c29220febaffa25a47eec7c36ae", "typeString": "literal_string \"Only ads that are in the inventory can be collected.\"" }, "value": "Only ads that are in the inventory can be collected." } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_659fefdbf37c49ed6966d6daba615f39d1833c29220febaffa25a47eec7c36ae", "typeString": "literal_string \"Only ads that are in the inventory can be collected.\"" } ], "id": 741, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "6724:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 748, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "6724:127:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 749, "nodeType": "ExpressionStatement", "src": "6724:127:2" }, { "assignments": [ 754 ], "declarations": [ { "constant": false, "id": 754, "mutability": "mutable", "name": "ad", "nameLocation": "6886:2:2", "nodeType": "VariableDeclaration", "scope": 879, "src": "6862:26:2", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad" }, "typeName": { "id": 753, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 752, "name": "AdNetworkSet.Ad", "nodeType": "IdentifierPath", "referencedDeclaration": 1984, "src": "6862:15:2" }, "referencedDeclaration": 1984, "src": "6862:15:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad" } }, "visibility": "internal" } ], "id": 759, "initialValue": { "arguments": [ { "id": 757, "name": "_adId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 738, "src": "6900:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "id": 755, "name": "_ads", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 219, "src": "6891:4:2", "typeDescriptions": { "typeIdentifier": "t_struct$_AdSet_$1967_storage", "typeString": "struct AdNetworkSet.AdSet storage ref" } }, "id": 756, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "get", "nodeType": "MemberAccess", "referencedDeclaration": 2079, "src": "6891:8:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_struct$_AdSet_$1967_storage_ptr_$_t_uint256_$returns$_t_struct$_Ad_$1984_storage_ptr_$bound_to$_t_struct$_AdSet_$1967_storage_ptr_$", "typeString": "function (struct AdNetworkSet.AdSet storage pointer,uint256) view returns (struct AdNetworkSet.Ad storage pointer)" } }, "id": 758, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "6891:15:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "nodeType": "VariableDeclarationStatement", "src": "6862:44:2" }, { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 765, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { "id": 761, "name": "block", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967292, "src": "6937:5:2", "typeDescriptions": { "typeIdentifier": "t_magic_block", "typeString": "block" } }, "id": 762, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "timestamp", "nodeType": "MemberAccess", "src": "6937:15:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": ">=", "rightExpression": { "expression": { "id": 763, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 754, "src": "6956:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 764, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "end", "nodeType": "MemberAccess", "referencedDeclaration": 1981, "src": "6956:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "src": "6937:25:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "4f6e6c79206164732074686174206861766520657870697265642063616e20626520636f6c6c65637465642e", "id": 766, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "6976:46:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_78292a3aa51e81943d430cb8bf02e588b16925e83aa89fd5e23fc0c91298f7af", "typeString": "literal_string \"Only ads that have expired can be collected.\"" }, "value": "Only ads that have expired can be collected." } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_78292a3aa51e81943d430cb8bf02e588b16925e83aa89fd5e23fc0c91298f7af", "typeString": "literal_string \"Only ads that have expired can be collected.\"" } ], "id": 760, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "6916:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 767, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "6916:107:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 768, "nodeType": "ExpressionStatement", "src": "6916:107:2" }, { "assignments": [ 773 ], "declarations": [ { "constant": false, "id": 773, "mutability": "mutable", "name": "inventory", "nameLocation": "7064:9:2", "nodeType": "VariableDeclaration", "scope": 879, "src": "7033:40:2", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory" }, "typeName": { "id": 772, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 771, "name": "AdNetworkSet.Inventory", "nodeType": "IdentifierPath", "referencedDeclaration": 1779, "src": "7033:22:2" }, "referencedDeclaration": 1779, "src": "7033:22:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory" } }, "visibility": "internal" } ], "id": 778, "initialValue": { "arguments": [ { "id": 776, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 736, "src": "7093:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "id": 774, "name": "_inventories", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 213, "src": "7076:12:2", "typeDescriptions": { "typeIdentifier": "t_struct$_InventorySet_$1766_storage", "typeString": "struct AdNetworkSet.InventorySet storage ref" } }, "id": 775, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "get", "nodeType": "MemberAccess", "referencedDeclaration": 1856, "src": "7076:16:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_struct$_InventorySet_$1766_storage_ptr_$_t_uint256_$returns$_t_struct$_Inventory_$1779_storage_ptr_$bound_to$_t_struct$_InventorySet_$1766_storage_ptr_$", "typeString": "function (struct AdNetworkSet.InventorySet storage pointer,uint256) view returns (struct AdNetworkSet.Inventory storage pointer)" } }, "id": 777, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "7076:30:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "nodeType": "VariableDeclarationStatement", "src": "7033:73:2" }, { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_bool", "typeString": "bool" }, "id": 790, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 784, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { "id": 780, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967281, "src": "7137:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 781, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "src": "7137:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "expression": { "id": 782, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 773, "src": "7151:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 783, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", "referencedDeclaration": 1770, "src": "7151:15:2", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "src": "7137:29:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "BinaryOperation", "operator": "||", "rightExpression": { "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 789, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { "id": 785, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967281, "src": "7182:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 786, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "src": "7182:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "expression": { "id": 787, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 754, "src": "7196:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 788, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", "referencedDeclaration": 1973, "src": "7196:8:2", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "src": "7182:22:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "src": "7137:67:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "4f6e6c7920746865206f776e6572206f662074686520696e76656e746f7279206f7220746865206f776e6572206f66207468652061642063616e20636f6c6c656374207468652061642e", "id": 791, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "7218:76:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_b0aeae4f4248bb42a18652a04d02fcead20671ee6bcbd039d3ac82c8a2823c8f", "typeString": "literal_string \"Only the owner of the inventory or the owner of the ad can collect the ad.\"" }, "value": "Only the owner of the inventory or the owner of the ad can collect the ad." } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_b0aeae4f4248bb42a18652a04d02fcead20671ee6bcbd039d3ac82c8a2823c8f", "typeString": "literal_string \"Only the owner of the inventory or the owner of the ad can collect the ad.\"" } ], "id": 779, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "7116:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 792, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "7116:179:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 793, "nodeType": "ExpressionStatement", "src": "7116:179:2" }, { "condition": { "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 798, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { "id": 794, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967281, "src": "7310:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 795, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "src": "7310:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "expression": { "id": 796, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 773, "src": "7324:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 797, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", "referencedDeclaration": 1770, "src": "7324:15:2", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "src": "7310:29:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": { "condition": { "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 813, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { "id": 809, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967281, "src": "7410:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 810, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "src": "7410:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "expression": { "id": 811, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 754, "src": "7424:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 812, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", "referencedDeclaration": 1973, "src": "7424:8:2", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "src": "7410:22:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 849, "nodeType": "IfStatement", "src": "7406:235:2", "trueBody": { "id": 848, "nodeType": "Block", "src": "7434:207:2", "statements": [ { "assignments": [ 815 ], "declarations": [ { "constant": false, "id": 815, "mutability": "mutable", "name": "maxGasFee", "nameLocation": "7456:9:2", "nodeType": "VariableDeclaration", "scope": 848, "src": "7448:17:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 814, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "7448:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 828, "initialValue": { "arguments": [ { "id": 826, "name": "MAX_CACHE_BACK_GAS_FEE", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 192, "src": "7505:22:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "arguments": [ { "expression": { "id": 822, "name": "tx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967270, "src": "7488:2:2", "typeDescriptions": { "typeIdentifier": "t_magic_transaction", "typeString": "tx" } }, "id": 823, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "gasprice", "nodeType": "MemberAccess", "src": "7488:11:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "components": [ { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 819, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { "id": 816, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 754, "src": "7469:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 817, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "price", "nodeType": "MemberAccess", "referencedDeclaration": 1983, "src": "7469:8:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "/", "rightExpression": { "hexValue": "3130", "id": 818, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "7480:2:2", "typeDescriptions": { "typeIdentifier": "t_rational_10_by_1", "typeString": "int_const 10" }, "value": "10" }, "src": "7469:13:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "id": 820, "isConstant": false, "isInlineArray": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "TupleExpression", "src": "7468:15:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 821, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "min", "nodeType": "MemberAccess", "referencedDeclaration": 112, "src": "7468:19:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, "id": 824, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "7468:32:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 825, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "min", "nodeType": "MemberAccess", "referencedDeclaration": 112, "src": "7468:36:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, "id": 827, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "7468:60:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", "src": "7448:80:2" }, { "expression": { "arguments": [ { "id": 834, "name": "maxGasFee", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 815, "src": "7560:9:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "expression": { "id": 829, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 754, "src": "7542:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 832, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", "referencedDeclaration": 1973, "src": "7542:8:2", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "id": 833, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "transfer", "nodeType": "MemberAccess", "src": "7542:17:2", "typeDescriptions": { "typeIdentifier": "t_function_transfer_nonpayable$_t_uint256_$returns$__$", "typeString": "function (uint256)" } }, "id": 835, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "7542:28:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 836, "nodeType": "ExpressionStatement", "src": "7542:28:2" }, { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 845, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { "id": 842, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 754, "src": "7609:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 843, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "price", "nodeType": "MemberAccess", "referencedDeclaration": 1983, "src": "7609:8:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "-", "rightExpression": { "id": 844, "name": "maxGasFee", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 815, "src": "7620:9:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "7609:20:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "expression": { "id": 837, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 773, "src": "7584:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 840, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", "referencedDeclaration": 1770, "src": "7584:15:2", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "id": 841, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "transfer", "nodeType": "MemberAccess", "src": "7584:24:2", "typeDescriptions": { "typeIdentifier": "t_function_transfer_nonpayable$_t_uint256_$returns$__$", "typeString": "function (uint256)" } }, "id": 846, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "7584:46:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 847, "nodeType": "ExpressionStatement", "src": "7584:46:2" } ] } }, "id": 850, "nodeType": "IfStatement", "src": "7306:335:2", "trueBody": { "id": 808, "nodeType": "Block", "src": "7341:59:2", "statements": [ { "expression": { "arguments": [ { "expression": { "id": 804, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 754, "src": "7380:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 805, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "price", "nodeType": "MemberAccess", "referencedDeclaration": 1983, "src": "7380:8:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "expression": { "id": 799, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 773, "src": "7355:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 802, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", "referencedDeclaration": 1770, "src": "7355:15:2", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "id": 803, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "transfer", "nodeType": "MemberAccess", "src": "7355:24:2", "typeDescriptions": { "typeIdentifier": "t_function_transfer_nonpayable$_t_uint256_$returns$__$", "typeString": "function (uint256)" } }, "id": 806, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "7355:34:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 807, "nodeType": "ExpressionStatement", "src": "7355:34:2" } ] } }, { "expression": { "id": 854, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "delete", "prefix": true, "src": "7651:28:2", "subExpression": { "baseExpression": { "id": 851, "name": "_adToInventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 227, "src": "7658:14:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" } }, "id": 853, "indexExpression": { "id": 852, "name": "_adId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 738, "src": "7673:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "7658:21:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 855, "nodeType": "ExpressionStatement", "src": "7651:28:2" }, { "expression": { "id": 860, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "--", "prefix": false, "src": "7689:25:2", "subExpression": { "baseExpression": { "id": 856, "name": "_ownerAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 235, "src": "7689:13:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint32_$", "typeString": "mapping(address => uint32)" } }, "id": 859, "indexExpression": { "expression": { "id": 857, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 754, "src": "7703:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 858, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", "referencedDeclaration": 1973, "src": "7703:8:2", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "7689:23:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 861, "nodeType": "ExpressionStatement", "src": "7689:25:2" }, { "expression": { "id": 865, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "--", "prefix": false, "src": "7724:33:2", "subExpression": { "baseExpression": { "id": 862, "name": "_inventoryAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 243, "src": "7724:17:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint32_$", "typeString": "mapping(uint256 => uint32)" } }, "id": 864, "indexExpression": { "id": 863, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 736, "src": "7742:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "7724:31:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 866, "nodeType": "ExpressionStatement", "src": "7724:33:2" }, { "expression": { "arguments": [ { "id": 870, "name": "_adId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 738, "src": "7779:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "id": 867, "name": "_ads", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 219, "src": "7767:4:2", "typeDescriptions": { "typeIdentifier": "t_struct$_AdSet_$1967_storage", "typeString": "struct AdNetworkSet.AdSet storage ref" } }, "id": 869, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "remove", "nodeType": "MemberAccess", "referencedDeclaration": 2163, "src": "7767:11:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_struct$_AdSet_$1967_storage_ptr_$_t_uint256_$returns$_t_bool_$bound_to$_t_struct$_AdSet_$1967_storage_ptr_$", "typeString": "function (struct AdNetworkSet.AdSet storage pointer,uint256) returns (bool)" } }, "id": 871, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "7767:18:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 872, "nodeType": "ExpressionStatement", "src": "7767:18:2" }, { "expression": { "arguments": [ { "id": 876, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 736, "src": "7815:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "id": 873, "name": "_inventories", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 213, "src": "7795:12:2", "typeDescriptions": { "typeIdentifier": "t_struct$_InventorySet_$1766_storage", "typeString": "struct AdNetworkSet.InventorySet storage ref" } }, "id": 875, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "remove", "nodeType": "MemberAccess", "referencedDeclaration": 1958, "src": "7795:19:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_struct$_InventorySet_$1766_storage_ptr_$_t_uint256_$returns$_t_bool_$bound_to$_t_struct$_InventorySet_$1766_storage_ptr_$", "typeString": "function (struct AdNetworkSet.InventorySet storage pointer,uint256) returns (bool)" } }, "id": 877, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "7795:33:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 878, "nodeType": "ExpressionStatement", "src": "7795:33:2" } ] }, "functionSelector": "83739c30", "id": 880, "implemented": true, "kind": "function", "modifiers": [], "name": "collectAd", "nameLocation": "6661:9:2", "nodeType": "FunctionDefinition", "parameters": { "id": 739, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 736, "mutability": "mutable", "name": "_inventoryId", "nameLocation": "6679:12:2", "nodeType": "VariableDeclaration", "scope": 880, "src": "6671:20:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 735, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "6671:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 738, "mutability": "mutable", "name": "_adId", "nameLocation": "6698:5:2", "nodeType": "VariableDeclaration", "scope": 880, "src": "6693:10:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 737, "name": "uint", "nodeType": "ElementaryTypeName", "src": "6693:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "6670:34:2" }, "returnParameters": { "id": 740, "nodeType": "ParameterList", "parameters": [], "src": "6714:0:2" }, "scope": 1755, "src": "6652:1183:2", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "body": { "id": 1064, "nodeType": "Block", "src": "8156:1076:2", "statements": [ { "assignments": [ 907 ], "declarations": [ { "constant": false, "id": 907, "mutability": "mutable", "name": "inventoryAdCount", "nameLocation": "8171:16:2", "nodeType": "VariableDeclaration", "scope": 1064, "src": "8166:21:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 906, "name": "uint", "nodeType": "ElementaryTypeName", "src": "8166:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 915, "initialValue": { "commonType": { "typeIdentifier": "t_uint32", "typeString": "uint32" }, "id": 914, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "baseExpression": { "id": 908, "name": "_inventoryAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 243, "src": "8190:17:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint32_$", "typeString": "mapping(uint256 => uint32)" } }, "id": 910, "indexExpression": { "id": 909, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 882, "src": "8208:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "8190:31:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "nodeType": "BinaryOperation", "operator": "+", "rightExpression": { "baseExpression": { "id": 911, "name": "_inventoryWaitAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 247, "src": "8224:21:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint32_$", "typeString": "mapping(uint256 => uint32)" } }, "id": 913, "indexExpression": { "id": 912, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 882, "src": "8246:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "8224:35:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "src": "8190:69:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "nodeType": "VariableDeclarationStatement", "src": "8166:93:2" }, { "expression": { "id": 922, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 916, "name": "adIds", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 886, "src": "8269:5:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 920, "name": "inventoryAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 907, "src": "8291:16:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 919, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "8277:13:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (uint256[] memory)" }, "typeName": { "baseType": { "id": 917, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "8281:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 918, "nodeType": "ArrayTypeName", "src": "8281:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } } }, "id": 921, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "8277:31:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "src": "8269:39:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 923, "nodeType": "ExpressionStatement", "src": "8269:39:2" }, { "expression": { "id": 930, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 924, "name": "inventoryIds", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 889, "src": "8318:12:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 928, "name": "inventoryAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 907, "src": "8347:16:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 927, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "8333:13:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (uint256[] memory)" }, "typeName": { "baseType": { "id": 925, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "8337:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 926, "nodeType": "ArrayTypeName", "src": "8337:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } } }, "id": 929, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "8333:31:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "src": "8318:46:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 931, "nodeType": "ExpressionStatement", "src": "8318:46:2" }, { "expression": { "id": 938, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 932, "name": "adHashes", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 892, "src": "8374:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr", "typeString": "bytes32[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 936, "name": "inventoryAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 907, "src": "8399:16:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 935, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "8385:13:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_bytes32_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (bytes32[] memory)" }, "typeName": { "baseType": { "id": 933, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "8389:7:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "id": 934, "nodeType": "ArrayTypeName", "src": "8389:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr", "typeString": "bytes32[]" } } }, "id": 937, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "8385:31:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr", "typeString": "bytes32[] memory" } }, "src": "8374:42:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr", "typeString": "bytes32[] memory" } }, "id": 939, "nodeType": "ExpressionStatement", "src": "8374:42:2" }, { "expression": { "id": 946, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 940, "name": "adHashForDeliveries", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 895, "src": "8426:19:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr", "typeString": "bytes32[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 944, "name": "inventoryAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 907, "src": "8462:16:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 943, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "8448:13:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_bytes32_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (bytes32[] memory)" }, "typeName": { "baseType": { "id": 941, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "8452:7:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "id": 942, "nodeType": "ArrayTypeName", "src": "8452:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr", "typeString": "bytes32[]" } } }, "id": 945, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "8448:31:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr", "typeString": "bytes32[] memory" } }, "src": "8426:53:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr", "typeString": "bytes32[] memory" } }, "id": 947, "nodeType": "ExpressionStatement", "src": "8426:53:2" }, { "expression": { "id": 954, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 948, "name": "starts", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 898, "src": "8489:6:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_memory_ptr", "typeString": "uint32[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 952, "name": "inventoryAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 907, "src": "8511:16:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 951, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "8498:12:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint32_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (uint32[] memory)" }, "typeName": { "baseType": { "id": 949, "name": "uint32", "nodeType": "ElementaryTypeName", "src": "8502:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 950, "nodeType": "ArrayTypeName", "src": "8502:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_storage_ptr", "typeString": "uint32[]" } } }, "id": 953, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "8498:30:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_memory_ptr", "typeString": "uint32[] memory" } }, "src": "8489:39:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_memory_ptr", "typeString": "uint32[] memory" } }, "id": 955, "nodeType": "ExpressionStatement", "src": "8489:39:2" }, { "expression": { "id": 962, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 956, "name": "ends", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 901, "src": "8538:4:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_memory_ptr", "typeString": "uint32[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 960, "name": "inventoryAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 907, "src": "8558:16:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 959, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "8545:12:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint32_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (uint32[] memory)" }, "typeName": { "baseType": { "id": 957, "name": "uint32", "nodeType": "ElementaryTypeName", "src": "8549:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 958, "nodeType": "ArrayTypeName", "src": "8549:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_storage_ptr", "typeString": "uint32[]" } } }, "id": 961, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "8545:30:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_memory_ptr", "typeString": "uint32[] memory" } }, "src": "8538:37:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_memory_ptr", "typeString": "uint32[] memory" } }, "id": 963, "nodeType": "ExpressionStatement", "src": "8538:37:2" }, { "expression": { "id": 970, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 964, "name": "approved", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 904, "src": "8585:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bool_$dyn_memory_ptr", "typeString": "bool[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 968, "name": "inventoryAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 907, "src": "8607:16:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 967, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "8596:10:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_bool_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (bool[] memory)" }, "typeName": { "baseType": { "id": 965, "name": "bool", "nodeType": "ElementaryTypeName", "src": "8600:4:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 966, "nodeType": "ArrayTypeName", "src": "8600:6:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bool_$dyn_storage_ptr", "typeString": "bool[]" } } }, "id": 969, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "8596:28:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_bool_$dyn_memory_ptr", "typeString": "bool[] memory" } }, "src": "8585:39:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bool_$dyn_memory_ptr", "typeString": "bool[] memory" } }, "id": 971, "nodeType": "ExpressionStatement", "src": "8585:39:2" }, { "assignments": [ 973 ], "declarations": [ { "constant": false, "id": 973, "mutability": "mutable", "name": "adIdx", "nameLocation": "8640:5:2", "nodeType": "VariableDeclaration", "scope": 1064, "src": "8635:10:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 972, "name": "uint", "nodeType": "ElementaryTypeName", "src": "8635:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 975, "initialValue": { "hexValue": "30", "id": 974, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "8648:1:2", "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "nodeType": "VariableDeclarationStatement", "src": "8635:14:2" }, { "body": { "id": 1062, "nodeType": "Block", "src": "8712:514:2", "statements": [ { "assignments": [ 992 ], "declarations": [ { "constant": false, "id": 992, "mutability": "mutable", "name": "ad", "nameLocation": "8750:2:2", "nodeType": "VariableDeclaration", "scope": 1062, "src": "8726:26:2", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad" }, "typeName": { "id": 991, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 990, "name": "AdNetworkSet.Ad", "nodeType": "IdentifierPath", "referencedDeclaration": 1984, "src": "8726:15:2" }, "referencedDeclaration": 1984, "src": "8726:15:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad" } }, "visibility": "internal" } ], "id": 997, "initialValue": { "baseExpression": { "expression": { "id": 993, "name": "_ads", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 219, "src": "8755:4:2", "typeDescriptions": { "typeIdentifier": "t_struct$_AdSet_$1967_storage", "typeString": "struct AdNetworkSet.AdSet storage ref" } }, "id": 994, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "_values", "nodeType": "MemberAccess", "referencedDeclaration": 1962, "src": "8755:12:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_Ad_$1984_storage_$dyn_storage", "typeString": "struct AdNetworkSet.Ad storage ref[] storage ref" } }, "id": 996, "indexExpression": { "id": 995, "name": "idx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 977, "src": "8768:3:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "8755:17:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage", "typeString": "struct AdNetworkSet.Ad storage ref" } }, "nodeType": "VariableDeclarationStatement", "src": "8726:46:2" }, { "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1001, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { "id": 998, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 992, "src": "8790:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 999, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "inventoryId", "nodeType": "MemberAccess", "referencedDeclaration": 1971, "src": "8790:14:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "id": 1000, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 882, "src": "8808:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "8790:30:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1004, "nodeType": "IfStatement", "src": "8786:77:2", "trueBody": { "id": 1003, "nodeType": "Block", "src": "8822:41:2", "statements": [ { "id": 1002, "nodeType": "Continue", "src": "8840:8:2" } ] } }, { "expression": { "id": 1010, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1005, "name": "adIds", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 886, "src": "8877:5:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 1007, "indexExpression": { "id": 1006, "name": "adIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 973, "src": "8883:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "8877:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1008, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 992, "src": "8892:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1009, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "adId", "nodeType": "MemberAccess", "referencedDeclaration": 1969, "src": "8892:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "8877:22:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1011, "nodeType": "ExpressionStatement", "src": "8877:22:2" }, { "expression": { "id": 1017, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1012, "name": "inventoryIds", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 889, "src": "8913:12:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 1014, "indexExpression": { "id": 1013, "name": "adIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 973, "src": "8926:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "8913:19:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1015, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 992, "src": "8935:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1016, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "inventoryId", "nodeType": "MemberAccess", "referencedDeclaration": 1971, "src": "8935:14:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "8913:36:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1018, "nodeType": "ExpressionStatement", "src": "8913:36:2" }, { "expression": { "id": 1024, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1019, "name": "adHashes", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 892, "src": "8963:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr", "typeString": "bytes32[] memory" } }, "id": 1021, "indexExpression": { "id": 1020, "name": "adIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 973, "src": "8972:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "8963:15:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1022, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 992, "src": "8981:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1023, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "hash", "nodeType": "MemberAccess", "referencedDeclaration": 1975, "src": "8981:7:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "src": "8963:25:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "id": 1025, "nodeType": "ExpressionStatement", "src": "8963:25:2" }, { "expression": { "id": 1031, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1026, "name": "adHashForDeliveries", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 895, "src": "9002:19:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr", "typeString": "bytes32[] memory" } }, "id": 1028, "indexExpression": { "id": 1027, "name": "adIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 973, "src": "9022:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "9002:26:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1029, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 992, "src": "9031:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1030, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "hashForDelivery", "nodeType": "MemberAccess", "referencedDeclaration": 1977, "src": "9031:18:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "src": "9002:47:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "id": 1032, "nodeType": "ExpressionStatement", "src": "9002:47:2" }, { "expression": { "id": 1038, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1033, "name": "starts", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 898, "src": "9063:6:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_memory_ptr", "typeString": "uint32[] memory" } }, "id": 1035, "indexExpression": { "id": 1034, "name": "adIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 973, "src": "9070:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "9063:13:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1036, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 992, "src": "9079:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1037, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "start", "nodeType": "MemberAccess", "referencedDeclaration": 1979, "src": "9079:8:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "src": "9063:24:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 1039, "nodeType": "ExpressionStatement", "src": "9063:24:2" }, { "expression": { "id": 1045, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1040, "name": "ends", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 901, "src": "9101:4:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_memory_ptr", "typeString": "uint32[] memory" } }, "id": 1042, "indexExpression": { "id": 1041, "name": "adIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 973, "src": "9106:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "9101:11:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1043, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 992, "src": "9115:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1044, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "end", "nodeType": "MemberAccess", "referencedDeclaration": 1981, "src": "9115:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "src": "9101:20:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 1046, "nodeType": "ExpressionStatement", "src": "9101:20:2" }, { "expression": { "id": 1057, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1047, "name": "approved", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 904, "src": "9135:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bool_$dyn_memory_ptr", "typeString": "bool[] memory" } }, "id": 1049, "indexExpression": { "id": 1048, "name": "adIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 973, "src": "9144:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "9135:15:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1056, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "baseExpression": { "id": 1050, "name": "_adToInventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 227, "src": "9153:14:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" } }, "id": 1053, "indexExpression": { "expression": { "id": 1051, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 992, "src": "9168:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1052, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "adId", "nodeType": "MemberAccess", "referencedDeclaration": 1969, "src": "9168:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "9153:23:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "expression": { "id": 1054, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 992, "src": "9180:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1055, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "inventoryId", "nodeType": "MemberAccess", "referencedDeclaration": 1971, "src": "9180:14:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "9153:41:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "src": "9135:59:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1058, "nodeType": "ExpressionStatement", "src": "9135:59:2" }, { "expression": { "id": 1060, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "9208:7:2", "subExpression": { "id": 1059, "name": "adIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 973, "src": "9208:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1061, "nodeType": "ExpressionStatement", "src": "9208:7:2" } ] }, "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 984, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 980, "name": "idx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 977, "src": "8678:3:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "expression": { "expression": { "id": 981, "name": "_ads", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 219, "src": "8684:4:2", "typeDescriptions": { "typeIdentifier": "t_struct$_AdSet_$1967_storage", "typeString": "struct AdNetworkSet.AdSet storage ref" } }, "id": 982, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "_values", "nodeType": "MemberAccess", "referencedDeclaration": 1962, "src": "8684:12:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_Ad_$1984_storage_$dyn_storage", "typeString": "struct AdNetworkSet.Ad storage ref[] storage ref" } }, "id": 983, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "length", "nodeType": "MemberAccess", "src": "8684:19:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "8678:25:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1063, "initializationExpression": { "assignments": [ 977 ], "declarations": [ { "constant": false, "id": 977, "mutability": "mutable", "name": "idx", "nameLocation": "8669:3:2", "nodeType": "VariableDeclaration", "scope": 1063, "src": "8664:8:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 976, "name": "uint", "nodeType": "ElementaryTypeName", "src": "8664:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 979, "initialValue": { "hexValue": "30", "id": 978, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "8675:1:2", "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "nodeType": "VariableDeclarationStatement", "src": "8664:12:2" }, "loopExpression": { "expression": { "id": 986, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "8705:5:2", "subExpression": { "id": 985, "name": "idx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 977, "src": "8705:3:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 987, "nodeType": "ExpressionStatement", "src": "8705:5:2" }, "nodeType": "ForStatement", "src": "8659:567:2" } ] }, "functionSelector": "31eae261", "id": 1065, "implemented": true, "kind": "function", "modifiers": [], "name": "getAdsOf", "nameLocation": "7850:8:2", "nodeType": "FunctionDefinition", "parameters": { "id": 883, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 882, "mutability": "mutable", "name": "_inventoryId", "nameLocation": "7867:12:2", "nodeType": "VariableDeclaration", "scope": 1065, "src": "7859:20:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 881, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "7859:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "7858:22:2" }, "returnParameters": { "id": 905, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 886, "mutability": "mutable", "name": "adIds", "nameLocation": "7930:5:2", "nodeType": "VariableDeclaration", "scope": 1065, "src": "7913:22:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[]" }, "typeName": { "baseType": { "id": 884, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "7913:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 885, "nodeType": "ArrayTypeName", "src": "7913:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } }, "visibility": "internal" }, { "constant": false, "id": 889, "mutability": "mutable", "name": "inventoryIds", "nameLocation": "7962:12:2", "nodeType": "VariableDeclaration", "scope": 1065, "src": "7945:29:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[]" }, "typeName": { "baseType": { "id": 887, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "7945:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 888, "nodeType": "ArrayTypeName", "src": "7945:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } }, "visibility": "internal" }, { "constant": false, "id": 892, "mutability": "mutable", "name": "adHashes", "nameLocation": "8001:8:2", "nodeType": "VariableDeclaration", "scope": 1065, "src": "7984:25:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr", "typeString": "bytes32[]" }, "typeName": { "baseType": { "id": 890, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "7984:7:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "id": 891, "nodeType": "ArrayTypeName", "src": "7984:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr", "typeString": "bytes32[]" } }, "visibility": "internal" }, { "constant": false, "id": 895, "mutability": "mutable", "name": "adHashForDeliveries", "nameLocation": "8036:19:2", "nodeType": "VariableDeclaration", "scope": 1065, "src": "8019:36:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr", "typeString": "bytes32[]" }, "typeName": { "baseType": { "id": 893, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "8019:7:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "id": 894, "nodeType": "ArrayTypeName", "src": "8019:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr", "typeString": "bytes32[]" } }, "visibility": "internal" }, { "constant": false, "id": 898, "mutability": "mutable", "name": "starts", "nameLocation": "8081:6:2", "nodeType": "VariableDeclaration", "scope": 1065, "src": "8065:22:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_memory_ptr", "typeString": "uint32[]" }, "typeName": { "baseType": { "id": 896, "name": "uint32", "nodeType": "ElementaryTypeName", "src": "8065:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 897, "nodeType": "ArrayTypeName", "src": "8065:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_storage_ptr", "typeString": "uint32[]" } }, "visibility": "internal" }, { "constant": false, "id": 901, "mutability": "mutable", "name": "ends", "nameLocation": "8113:4:2", "nodeType": "VariableDeclaration", "scope": 1065, "src": "8097:20:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_memory_ptr", "typeString": "uint32[]" }, "typeName": { "baseType": { "id": 899, "name": "uint32", "nodeType": "ElementaryTypeName", "src": "8097:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 900, "nodeType": "ArrayTypeName", "src": "8097:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_storage_ptr", "typeString": "uint32[]" } }, "visibility": "internal" }, { "constant": false, "id": 904, "mutability": "mutable", "name": "approved", "nameLocation": "8141:8:2", "nodeType": "VariableDeclaration", "scope": 1065, "src": "8127:22:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_bool_$dyn_memory_ptr", "typeString": "bool[]" }, "typeName": { "baseType": { "id": 902, "name": "bool", "nodeType": "ElementaryTypeName", "src": "8127:4:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 903, "nodeType": "ArrayTypeName", "src": "8127:6:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bool_$dyn_storage_ptr", "typeString": "bool[]" } }, "visibility": "internal" } ], "src": "7903:252:2" }, "scope": 1755, "src": "7841:1391:2", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "body": { "id": 1227, "nodeType": "Block", "src": "9520:907:2", "statements": [ { "assignments": [ 1089 ], "declarations": [ { "constant": false, "id": 1089, "mutability": "mutable", "name": "inventoryAdCount", "nameLocation": "9535:16:2", "nodeType": "VariableDeclaration", "scope": 1227, "src": "9530:21:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1088, "name": "uint", "nodeType": "ElementaryTypeName", "src": "9530:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 1093, "initialValue": { "baseExpression": { "id": 1090, "name": "_ownerAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 235, "src": "9554:13:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint32_$", "typeString": "mapping(address => uint32)" } }, "id": 1092, "indexExpression": { "id": 1091, "name": "_ownerAddress", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1067, "src": "9568:13:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "9554:28:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "nodeType": "VariableDeclarationStatement", "src": "9530:52:2" }, { "expression": { "id": 1100, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1094, "name": "adIds", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1071, "src": "9593:5:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 1098, "name": "inventoryAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1089, "src": "9615:16:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1097, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "9601:13:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (uint256[] memory)" }, "typeName": { "baseType": { "id": 1095, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "9605:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1096, "nodeType": "ArrayTypeName", "src": "9605:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } } }, "id": 1099, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "9601:31:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "src": "9593:39:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 1101, "nodeType": "ExpressionStatement", "src": "9593:39:2" }, { "expression": { "id": 1108, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1102, "name": "inventoryIds", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1074, "src": "9642:12:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 1106, "name": "inventoryAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1089, "src": "9671:16:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1105, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "9657:13:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (uint256[] memory)" }, "typeName": { "baseType": { "id": 1103, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "9661:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1104, "nodeType": "ArrayTypeName", "src": "9661:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } } }, "id": 1107, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "9657:31:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "src": "9642:46:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 1109, "nodeType": "ExpressionStatement", "src": "9642:46:2" }, { "expression": { "id": 1116, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1110, "name": "adHashes", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1077, "src": "9698:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr", "typeString": "bytes32[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 1114, "name": "inventoryAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1089, "src": "9723:16:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1113, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "9709:13:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_bytes32_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (bytes32[] memory)" }, "typeName": { "baseType": { "id": 1111, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "9713:7:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "id": 1112, "nodeType": "ArrayTypeName", "src": "9713:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr", "typeString": "bytes32[]" } } }, "id": 1115, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "9709:31:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr", "typeString": "bytes32[] memory" } }, "src": "9698:42:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr", "typeString": "bytes32[] memory" } }, "id": 1117, "nodeType": "ExpressionStatement", "src": "9698:42:2" }, { "expression": { "id": 1124, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1118, "name": "starts", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1080, "src": "9750:6:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_memory_ptr", "typeString": "uint32[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 1122, "name": "inventoryAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1089, "src": "9772:16:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1121, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "9759:12:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint32_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (uint32[] memory)" }, "typeName": { "baseType": { "id": 1119, "name": "uint32", "nodeType": "ElementaryTypeName", "src": "9763:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 1120, "nodeType": "ArrayTypeName", "src": "9763:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_storage_ptr", "typeString": "uint32[]" } } }, "id": 1123, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "9759:30:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_memory_ptr", "typeString": "uint32[] memory" } }, "src": "9750:39:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_memory_ptr", "typeString": "uint32[] memory" } }, "id": 1125, "nodeType": "ExpressionStatement", "src": "9750:39:2" }, { "expression": { "id": 1132, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1126, "name": "ends", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1083, "src": "9799:4:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_memory_ptr", "typeString": "uint32[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 1130, "name": "inventoryAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1089, "src": "9819:16:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1129, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "9806:12:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint32_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (uint32[] memory)" }, "typeName": { "baseType": { "id": 1127, "name": "uint32", "nodeType": "ElementaryTypeName", "src": "9810:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 1128, "nodeType": "ArrayTypeName", "src": "9810:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_storage_ptr", "typeString": "uint32[]" } } }, "id": 1131, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "9806:30:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_memory_ptr", "typeString": "uint32[] memory" } }, "src": "9799:37:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_memory_ptr", "typeString": "uint32[] memory" } }, "id": 1133, "nodeType": "ExpressionStatement", "src": "9799:37:2" }, { "expression": { "id": 1140, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1134, "name": "approved", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1086, "src": "9846:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bool_$dyn_memory_ptr", "typeString": "bool[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 1138, "name": "inventoryAdCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1089, "src": "9868:16:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1137, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "9857:10:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_bool_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (bool[] memory)" }, "typeName": { "baseType": { "id": 1135, "name": "bool", "nodeType": "ElementaryTypeName", "src": "9861:4:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1136, "nodeType": "ArrayTypeName", "src": "9861:6:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bool_$dyn_storage_ptr", "typeString": "bool[]" } } }, "id": 1139, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "9857:28:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_bool_$dyn_memory_ptr", "typeString": "bool[] memory" } }, "src": "9846:39:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bool_$dyn_memory_ptr", "typeString": "bool[] memory" } }, "id": 1141, "nodeType": "ExpressionStatement", "src": "9846:39:2" }, { "assignments": [ 1143 ], "declarations": [ { "constant": false, "id": 1143, "mutability": "mutable", "name": "adIdx", "nameLocation": "9901:5:2", "nodeType": "VariableDeclaration", "scope": 1227, "src": "9896:10:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1142, "name": "uint", "nodeType": "ElementaryTypeName", "src": "9896:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 1145, "initialValue": { "hexValue": "30", "id": 1144, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "9909:1:2", "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "nodeType": "VariableDeclarationStatement", "src": "9896:14:2" }, { "body": { "id": 1225, "nodeType": "Block", "src": "9973:448:2", "statements": [ { "assignments": [ 1162 ], "declarations": [ { "constant": false, "id": 1162, "mutability": "mutable", "name": "ad", "nameLocation": "10011:2:2", "nodeType": "VariableDeclaration", "scope": 1225, "src": "9987:26:2", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad" }, "typeName": { "id": 1161, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 1160, "name": "AdNetworkSet.Ad", "nodeType": "IdentifierPath", "referencedDeclaration": 1984, "src": "9987:15:2" }, "referencedDeclaration": 1984, "src": "9987:15:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad" } }, "visibility": "internal" } ], "id": 1167, "initialValue": { "baseExpression": { "expression": { "id": 1163, "name": "_ads", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 219, "src": "10016:4:2", "typeDescriptions": { "typeIdentifier": "t_struct$_AdSet_$1967_storage", "typeString": "struct AdNetworkSet.AdSet storage ref" } }, "id": 1164, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "_values", "nodeType": "MemberAccess", "referencedDeclaration": 1962, "src": "10016:12:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_Ad_$1984_storage_$dyn_storage", "typeString": "struct AdNetworkSet.Ad storage ref[] storage ref" } }, "id": 1166, "indexExpression": { "id": 1165, "name": "idx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1147, "src": "10029:3:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "10016:17:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage", "typeString": "struct AdNetworkSet.Ad storage ref" } }, "nodeType": "VariableDeclarationStatement", "src": "9987:46:2" }, { "condition": { "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 1171, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { "id": 1168, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1162, "src": "10051:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1169, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", "referencedDeclaration": 1973, "src": "10051:8:2", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "id": 1170, "name": "_ownerAddress", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1067, "src": "10063:13:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "10051:25:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1174, "nodeType": "IfStatement", "src": "10047:72:2", "trueBody": { "id": 1173, "nodeType": "Block", "src": "10078:41:2", "statements": [ { "id": 1172, "nodeType": "Continue", "src": "10096:8:2" } ] } }, { "expression": { "id": 1180, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1175, "name": "adIds", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1071, "src": "10133:5:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 1177, "indexExpression": { "id": 1176, "name": "adIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1143, "src": "10139:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "10133:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1178, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1162, "src": "10148:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1179, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "adId", "nodeType": "MemberAccess", "referencedDeclaration": 1969, "src": "10148:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "10133:22:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1181, "nodeType": "ExpressionStatement", "src": "10133:22:2" }, { "expression": { "id": 1187, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1182, "name": "inventoryIds", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1074, "src": "10169:12:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 1184, "indexExpression": { "id": 1183, "name": "adIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1143, "src": "10182:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "10169:19:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1185, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1162, "src": "10191:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1186, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "inventoryId", "nodeType": "MemberAccess", "referencedDeclaration": 1971, "src": "10191:14:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "10169:36:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1188, "nodeType": "ExpressionStatement", "src": "10169:36:2" }, { "expression": { "id": 1194, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1189, "name": "adHashes", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1077, "src": "10219:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr", "typeString": "bytes32[] memory" } }, "id": 1191, "indexExpression": { "id": 1190, "name": "adIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1143, "src": "10228:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "10219:15:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1192, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1162, "src": "10237:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1193, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "hash", "nodeType": "MemberAccess", "referencedDeclaration": 1975, "src": "10237:7:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "src": "10219:25:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "id": 1195, "nodeType": "ExpressionStatement", "src": "10219:25:2" }, { "expression": { "id": 1201, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1196, "name": "starts", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1080, "src": "10258:6:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_memory_ptr", "typeString": "uint32[] memory" } }, "id": 1198, "indexExpression": { "id": 1197, "name": "adIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1143, "src": "10265:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "10258:13:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1199, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1162, "src": "10274:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1200, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "start", "nodeType": "MemberAccess", "referencedDeclaration": 1979, "src": "10274:8:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "src": "10258:24:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 1202, "nodeType": "ExpressionStatement", "src": "10258:24:2" }, { "expression": { "id": 1208, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1203, "name": "ends", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1083, "src": "10296:4:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_memory_ptr", "typeString": "uint32[] memory" } }, "id": 1205, "indexExpression": { "id": 1204, "name": "adIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1143, "src": "10301:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "10296:11:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1206, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1162, "src": "10310:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1207, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "end", "nodeType": "MemberAccess", "referencedDeclaration": 1981, "src": "10310:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "src": "10296:20:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 1209, "nodeType": "ExpressionStatement", "src": "10296:20:2" }, { "expression": { "id": 1220, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1210, "name": "approved", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1086, "src": "10330:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bool_$dyn_memory_ptr", "typeString": "bool[] memory" } }, "id": 1212, "indexExpression": { "id": 1211, "name": "adIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1143, "src": "10339:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "10330:15:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1219, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "baseExpression": { "id": 1213, "name": "_adToInventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 227, "src": "10348:14:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" } }, "id": 1216, "indexExpression": { "expression": { "id": 1214, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1162, "src": "10363:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1215, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "adId", "nodeType": "MemberAccess", "referencedDeclaration": 1969, "src": "10363:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "10348:23:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "expression": { "id": 1217, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1162, "src": "10375:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1218, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "inventoryId", "nodeType": "MemberAccess", "referencedDeclaration": 1971, "src": "10375:14:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "10348:41:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "src": "10330:59:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1221, "nodeType": "ExpressionStatement", "src": "10330:59:2" }, { "expression": { "id": 1223, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "10403:7:2", "subExpression": { "id": 1222, "name": "adIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1143, "src": "10403:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1224, "nodeType": "ExpressionStatement", "src": "10403:7:2" } ] }, "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1154, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1150, "name": "idx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1147, "src": "9939:3:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "expression": { "expression": { "id": 1151, "name": "_ads", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 219, "src": "9945:4:2", "typeDescriptions": { "typeIdentifier": "t_struct$_AdSet_$1967_storage", "typeString": "struct AdNetworkSet.AdSet storage ref" } }, "id": 1152, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "_values", "nodeType": "MemberAccess", "referencedDeclaration": 1962, "src": "9945:12:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_Ad_$1984_storage_$dyn_storage", "typeString": "struct AdNetworkSet.Ad storage ref[] storage ref" } }, "id": 1153, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "length", "nodeType": "MemberAccess", "src": "9945:19:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "9939:25:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1226, "initializationExpression": { "assignments": [ 1147 ], "declarations": [ { "constant": false, "id": 1147, "mutability": "mutable", "name": "idx", "nameLocation": "9930:3:2", "nodeType": "VariableDeclaration", "scope": 1226, "src": "9925:8:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1146, "name": "uint", "nodeType": "ElementaryTypeName", "src": "9925:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 1149, "initialValue": { "hexValue": "30", "id": 1148, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "9936:1:2", "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "nodeType": "VariableDeclarationStatement", "src": "9925:12:2" }, "loopExpression": { "expression": { "id": 1156, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "9966:5:2", "subExpression": { "id": 1155, "name": "idx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1147, "src": "9966:3:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1157, "nodeType": "ExpressionStatement", "src": "9966:5:2" }, "nodeType": "ForStatement", "src": "9920:501:2" } ] }, "functionSelector": "eba58b3e", "id": 1228, "implemented": true, "kind": "function", "modifiers": [], "name": "getAdsByOwnerAddress", "nameLocation": "9247:20:2", "nodeType": "FunctionDefinition", "parameters": { "id": 1068, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1067, "mutability": "mutable", "name": "_ownerAddress", "nameLocation": "9276:13:2", "nodeType": "VariableDeclaration", "scope": 1228, "src": "9268:21:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1066, "name": "address", "nodeType": "ElementaryTypeName", "src": "9268:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "9267:23:2" }, "returnParameters": { "id": 1087, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1071, "mutability": "mutable", "name": "adIds", "nameLocation": "9340:5:2", "nodeType": "VariableDeclaration", "scope": 1228, "src": "9323:22:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[]" }, "typeName": { "baseType": { "id": 1069, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "9323:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1070, "nodeType": "ArrayTypeName", "src": "9323:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } }, "visibility": "internal" }, { "constant": false, "id": 1074, "mutability": "mutable", "name": "inventoryIds", "nameLocation": "9372:12:2", "nodeType": "VariableDeclaration", "scope": 1228, "src": "9355:29:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[]" }, "typeName": { "baseType": { "id": 1072, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "9355:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1073, "nodeType": "ArrayTypeName", "src": "9355:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } }, "visibility": "internal" }, { "constant": false, "id": 1077, "mutability": "mutable", "name": "adHashes", "nameLocation": "9411:8:2", "nodeType": "VariableDeclaration", "scope": 1228, "src": "9394:25:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr", "typeString": "bytes32[]" }, "typeName": { "baseType": { "id": 1075, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "9394:7:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "id": 1076, "nodeType": "ArrayTypeName", "src": "9394:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr", "typeString": "bytes32[]" } }, "visibility": "internal" }, { "constant": false, "id": 1080, "mutability": "mutable", "name": "starts", "nameLocation": "9445:6:2", "nodeType": "VariableDeclaration", "scope": 1228, "src": "9429:22:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_memory_ptr", "typeString": "uint32[]" }, "typeName": { "baseType": { "id": 1078, "name": "uint32", "nodeType": "ElementaryTypeName", "src": "9429:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 1079, "nodeType": "ArrayTypeName", "src": "9429:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_storage_ptr", "typeString": "uint32[]" } }, "visibility": "internal" }, { "constant": false, "id": 1083, "mutability": "mutable", "name": "ends", "nameLocation": "9477:4:2", "nodeType": "VariableDeclaration", "scope": 1228, "src": "9461:20:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_memory_ptr", "typeString": "uint32[]" }, "typeName": { "baseType": { "id": 1081, "name": "uint32", "nodeType": "ElementaryTypeName", "src": "9461:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "id": 1082, "nodeType": "ArrayTypeName", "src": "9461:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint32_$dyn_storage_ptr", "typeString": "uint32[]" } }, "visibility": "internal" }, { "constant": false, "id": 1086, "mutability": "mutable", "name": "approved", "nameLocation": "9505:8:2", "nodeType": "VariableDeclaration", "scope": 1228, "src": "9491:22:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_bool_$dyn_memory_ptr", "typeString": "bool[]" }, "typeName": { "baseType": { "id": 1084, "name": "bool", "nodeType": "ElementaryTypeName", "src": "9491:4:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1085, "nodeType": "ArrayTypeName", "src": "9491:6:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_bool_$dyn_storage_ptr", "typeString": "bool[]" } }, "visibility": "internal" } ], "src": "9313:206:2" }, "scope": 1755, "src": "9238:1189:2", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "body": { "id": 1385, "nodeType": "Block", "src": "10730:1059:2", "statements": [ { "assignments": [ 1252 ], "declarations": [ { "constant": false, "id": 1252, "mutability": "mutable", "name": "ownerInventoryCount", "nameLocation": "10745:19:2", "nodeType": "VariableDeclaration", "scope": 1385, "src": "10740:24:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1251, "name": "uint", "nodeType": "ElementaryTypeName", "src": "10740:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 1256, "initialValue": { "baseExpression": { "id": 1253, "name": "_ownerInventoryCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 239, "src": "10767:20:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint32_$", "typeString": "mapping(address => uint32)" } }, "id": 1255, "indexExpression": { "id": 1254, "name": "_ownerAddress", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1230, "src": "10788:13:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "10767:35:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "nodeType": "VariableDeclarationStatement", "src": "10740:62:2" }, { "expression": { "id": 1263, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1257, "name": "inventoryIds", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1234, "src": "10813:12:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 1261, "name": "ownerInventoryCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1252, "src": "10842:19:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1260, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "10828:13:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (uint256[] memory)" }, "typeName": { "baseType": { "id": 1258, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "10832:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1259, "nodeType": "ArrayTypeName", "src": "10832:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } } }, "id": 1262, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "10828:34:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "src": "10813:49:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 1264, "nodeType": "ExpressionStatement", "src": "10813:49:2" }, { "expression": { "id": 1271, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1265, "name": "owners", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1237, "src": "10872:6:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 1269, "name": "ownerInventoryCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1252, "src": "10895:19:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1268, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "10881:13:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_address_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (address[] memory)" }, "typeName": { "baseType": { "id": 1266, "name": "address", "nodeType": "ElementaryTypeName", "src": "10885:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 1267, "nodeType": "ArrayTypeName", "src": "10885:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", "typeString": "address[]" } } }, "id": 1270, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "10881:34:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[] memory" } }, "src": "10872:43:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[] memory" } }, "id": 1272, "nodeType": "ExpressionStatement", "src": "10872:43:2" }, { "expression": { "id": 1279, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1273, "name": "names", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1240, "src": "10925:5:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 1277, "name": "ownerInventoryCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1252, "src": "10946:19:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1276, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "10933:12:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_string_memory_ptr_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (string memory[] memory)" }, "typeName": { "baseType": { "id": 1274, "name": "string", "nodeType": "ElementaryTypeName", "src": "10937:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "id": 1275, "nodeType": "ArrayTypeName", "src": "10937:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr", "typeString": "string[]" } } }, "id": 1278, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "10933:33:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "src": "10925:41:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "id": 1280, "nodeType": "ExpressionStatement", "src": "10925:41:2" }, { "expression": { "id": 1287, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1281, "name": "uris", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1243, "src": "10976:4:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 1285, "name": "ownerInventoryCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1252, "src": "10996:19:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1284, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "10983:12:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_string_memory_ptr_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (string memory[] memory)" }, "typeName": { "baseType": { "id": 1282, "name": "string", "nodeType": "ElementaryTypeName", "src": "10987:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "id": 1283, "nodeType": "ArrayTypeName", "src": "10987:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr", "typeString": "string[]" } } }, "id": 1286, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "10983:33:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "src": "10976:40:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "id": 1288, "nodeType": "ExpressionStatement", "src": "10976:40:2" }, { "expression": { "id": 1295, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1289, "name": "publicKeys", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1246, "src": "11026:10:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 1293, "name": "ownerInventoryCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1252, "src": "11052:19:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1292, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "11039:12:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_string_memory_ptr_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (string memory[] memory)" }, "typeName": { "baseType": { "id": 1290, "name": "string", "nodeType": "ElementaryTypeName", "src": "11043:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "id": 1291, "nodeType": "ArrayTypeName", "src": "11043:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr", "typeString": "string[]" } } }, "id": 1294, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "11039:33:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "src": "11026:46:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "id": 1296, "nodeType": "ExpressionStatement", "src": "11026:46:2" }, { "expression": { "id": 1303, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1297, "name": "floorPrices", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1249, "src": "11082:11:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 1301, "name": "ownerInventoryCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1252, "src": "11110:19:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1300, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "11096:13:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (uint256[] memory)" }, "typeName": { "baseType": { "id": 1298, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "11100:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1299, "nodeType": "ArrayTypeName", "src": "11100:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } } }, "id": 1302, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "11096:34:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "src": "11082:48:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 1304, "nodeType": "ExpressionStatement", "src": "11082:48:2" }, { "assignments": [ 1306 ], "declarations": [ { "constant": false, "id": 1306, "mutability": "mutable", "name": "inventoryIdx", "nameLocation": "11146:12:2", "nodeType": "VariableDeclaration", "scope": 1385, "src": "11141:17:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1305, "name": "uint", "nodeType": "ElementaryTypeName", "src": "11141:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 1308, "initialValue": { "hexValue": "30", "id": 1307, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "11161:1:2", "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "nodeType": "VariableDeclarationStatement", "src": "11141:21:2" }, { "body": { "id": 1383, "nodeType": "Block", "src": "11233:550:2", "statements": [ { "assignments": [ 1325 ], "declarations": [ { "constant": false, "id": 1325, "mutability": "mutable", "name": "inventory", "nameLocation": "11278:9:2", "nodeType": "VariableDeclaration", "scope": 1383, "src": "11247:40:2", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory" }, "typeName": { "id": 1324, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 1323, "name": "AdNetworkSet.Inventory", "nodeType": "IdentifierPath", "referencedDeclaration": 1779, "src": "11247:22:2" }, "referencedDeclaration": 1779, "src": "11247:22:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory" } }, "visibility": "internal" } ], "id": 1330, "initialValue": { "baseExpression": { "expression": { "id": 1326, "name": "_inventories", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 213, "src": "11290:12:2", "typeDescriptions": { "typeIdentifier": "t_struct$_InventorySet_$1766_storage", "typeString": "struct AdNetworkSet.InventorySet storage ref" } }, "id": 1327, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "_values", "nodeType": "MemberAccess", "referencedDeclaration": 1761, "src": "11290:20:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_Inventory_$1779_storage_$dyn_storage", "typeString": "struct AdNetworkSet.Inventory storage ref[] storage ref" } }, "id": 1329, "indexExpression": { "id": 1328, "name": "idx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1310, "src": "11311:3:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "11290:25:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage", "typeString": "struct AdNetworkSet.Inventory storage ref" } }, "nodeType": "VariableDeclarationStatement", "src": "11247:68:2" }, { "condition": { "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 1334, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { "id": 1331, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1325, "src": "11333:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 1332, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", "referencedDeclaration": 1770, "src": "11333:15:2", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "id": 1333, "name": "_ownerAddress", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1230, "src": "11352:13:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "11333:32:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1337, "nodeType": "IfStatement", "src": "11329:79:2", "trueBody": { "id": 1336, "nodeType": "Block", "src": "11367:41:2", "statements": [ { "id": 1335, "nodeType": "Continue", "src": "11385:8:2" } ] } }, { "expression": { "id": 1343, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1338, "name": "inventoryIds", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1234, "src": "11422:12:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 1340, "indexExpression": { "id": 1339, "name": "inventoryIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1306, "src": "11435:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "11422:26:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1341, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1325, "src": "11451:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 1342, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "inventoryId", "nodeType": "MemberAccess", "referencedDeclaration": 1768, "src": "11451:21:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "11422:50:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1344, "nodeType": "ExpressionStatement", "src": "11422:50:2" }, { "expression": { "id": 1350, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1345, "name": "owners", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1237, "src": "11486:6:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[] memory" } }, "id": 1347, "indexExpression": { "id": 1346, "name": "inventoryIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1306, "src": "11493:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "11486:20:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1348, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1325, "src": "11509:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 1349, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", "referencedDeclaration": 1770, "src": "11509:15:2", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "src": "11486:38:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 1351, "nodeType": "ExpressionStatement", "src": "11486:38:2" }, { "expression": { "id": 1357, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1352, "name": "names", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1240, "src": "11538:5:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "id": 1354, "indexExpression": { "id": 1353, "name": "inventoryIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1306, "src": "11544:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "11538:19:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1355, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1325, "src": "11560:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 1356, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "name", "nodeType": "MemberAccess", "referencedDeclaration": 1772, "src": "11560:14:2", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "src": "11538:36:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "id": 1358, "nodeType": "ExpressionStatement", "src": "11538:36:2" }, { "expression": { "id": 1364, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1359, "name": "uris", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1243, "src": "11588:4:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "id": 1361, "indexExpression": { "id": 1360, "name": "inventoryIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1306, "src": "11593:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "11588:18:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1362, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1325, "src": "11609:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 1363, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "uri", "nodeType": "MemberAccess", "referencedDeclaration": 1774, "src": "11609:13:2", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "src": "11588:34:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "id": 1365, "nodeType": "ExpressionStatement", "src": "11588:34:2" }, { "expression": { "id": 1371, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1366, "name": "publicKeys", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1246, "src": "11636:10:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "id": 1368, "indexExpression": { "id": 1367, "name": "inventoryIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1306, "src": "11647:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "11636:24:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1369, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1325, "src": "11663:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 1370, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "publicKey", "nodeType": "MemberAccess", "referencedDeclaration": 1776, "src": "11663:19:2", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "src": "11636:46:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "id": 1372, "nodeType": "ExpressionStatement", "src": "11636:46:2" }, { "expression": { "id": 1378, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1373, "name": "floorPrices", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1249, "src": "11696:11:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 1375, "indexExpression": { "id": 1374, "name": "inventoryIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1306, "src": "11708:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "11696:25:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1376, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1325, "src": "11724:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 1377, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "floorPrice", "nodeType": "MemberAccess", "referencedDeclaration": 1778, "src": "11724:20:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "11696:48:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1379, "nodeType": "ExpressionStatement", "src": "11696:48:2" }, { "expression": { "id": 1381, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "11758:14:2", "subExpression": { "id": 1380, "name": "inventoryIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1306, "src": "11758:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1382, "nodeType": "ExpressionStatement", "src": "11758:14:2" } ] }, "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1317, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1313, "name": "idx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1310, "src": "11191:3:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "expression": { "expression": { "id": 1314, "name": "_inventories", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 213, "src": "11197:12:2", "typeDescriptions": { "typeIdentifier": "t_struct$_InventorySet_$1766_storage", "typeString": "struct AdNetworkSet.InventorySet storage ref" } }, "id": 1315, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "_values", "nodeType": "MemberAccess", "referencedDeclaration": 1761, "src": "11197:20:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_Inventory_$1779_storage_$dyn_storage", "typeString": "struct AdNetworkSet.Inventory storage ref[] storage ref" } }, "id": 1316, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "length", "nodeType": "MemberAccess", "src": "11197:27:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "11191:33:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1384, "initializationExpression": { "assignments": [ 1310 ], "declarations": [ { "constant": false, "id": 1310, "mutability": "mutable", "name": "idx", "nameLocation": "11182:3:2", "nodeType": "VariableDeclaration", "scope": 1384, "src": "11177:8:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1309, "name": "uint", "nodeType": "ElementaryTypeName", "src": "11177:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 1312, "initialValue": { "hexValue": "30", "id": 1311, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "11188:1:2", "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "nodeType": "VariableDeclarationStatement", "src": "11177:12:2" }, "loopExpression": { "expression": { "id": 1319, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "11226:5:2", "subExpression": { "id": 1318, "name": "idx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1310, "src": "11226:3:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1320, "nodeType": "ExpressionStatement", "src": "11226:5:2" }, "nodeType": "ForStatement", "src": "11172:611:2" } ] }, "functionSelector": "d68fb2fc", "id": 1386, "implemented": true, "kind": "function", "modifiers": [], "name": "getInventoriesByOwnerAddress", "nameLocation": "10442:28:2", "nodeType": "FunctionDefinition", "parameters": { "id": 1231, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1230, "mutability": "mutable", "name": "_ownerAddress", "nameLocation": "10479:13:2", "nodeType": "VariableDeclaration", "scope": 1386, "src": "10471:21:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1229, "name": "address", "nodeType": "ElementaryTypeName", "src": "10471:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "10470:23:2" }, "returnParameters": { "id": 1250, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1234, "mutability": "mutable", "name": "inventoryIds", "nameLocation": "10543:12:2", "nodeType": "VariableDeclaration", "scope": 1386, "src": "10526:29:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[]" }, "typeName": { "baseType": { "id": 1232, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "10526:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1233, "nodeType": "ArrayTypeName", "src": "10526:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } }, "visibility": "internal" }, { "constant": false, "id": 1237, "mutability": "mutable", "name": "owners", "nameLocation": "10582:6:2", "nodeType": "VariableDeclaration", "scope": 1386, "src": "10565:23:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[]" }, "typeName": { "baseType": { "id": 1235, "name": "address", "nodeType": "ElementaryTypeName", "src": "10565:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 1236, "nodeType": "ArrayTypeName", "src": "10565:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", "typeString": "address[]" } }, "visibility": "internal" }, { "constant": false, "id": 1240, "mutability": "mutable", "name": "names", "nameLocation": "10614:5:2", "nodeType": "VariableDeclaration", "scope": 1386, "src": "10598:21:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string[]" }, "typeName": { "baseType": { "id": 1238, "name": "string", "nodeType": "ElementaryTypeName", "src": "10598:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "id": 1239, "nodeType": "ArrayTypeName", "src": "10598:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr", "typeString": "string[]" } }, "visibility": "internal" }, { "constant": false, "id": 1243, "mutability": "mutable", "name": "uris", "nameLocation": "10645:4:2", "nodeType": "VariableDeclaration", "scope": 1386, "src": "10629:20:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string[]" }, "typeName": { "baseType": { "id": 1241, "name": "string", "nodeType": "ElementaryTypeName", "src": "10629:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "id": 1242, "nodeType": "ArrayTypeName", "src": "10629:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr", "typeString": "string[]" } }, "visibility": "internal" }, { "constant": false, "id": 1246, "mutability": "mutable", "name": "publicKeys", "nameLocation": "10675:10:2", "nodeType": "VariableDeclaration", "scope": 1386, "src": "10659:26:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string[]" }, "typeName": { "baseType": { "id": 1244, "name": "string", "nodeType": "ElementaryTypeName", "src": "10659:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "id": 1245, "nodeType": "ArrayTypeName", "src": "10659:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr", "typeString": "string[]" } }, "visibility": "internal" }, { "constant": false, "id": 1249, "mutability": "mutable", "name": "floorPrices", "nameLocation": "10712:11:2", "nodeType": "VariableDeclaration", "scope": 1386, "src": "10695:28:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[]" }, "typeName": { "baseType": { "id": 1247, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "10695:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1248, "nodeType": "ArrayTypeName", "src": "10695:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } }, "visibility": "internal" } ], "src": "10516:213:2" }, "scope": 1755, "src": "10433:1356:2", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "body": { "id": 1451, "nodeType": "Block", "src": "12036:406:2", "statements": [ { "assignments": [ 1407 ], "declarations": [ { "constant": false, "id": 1407, "mutability": "mutable", "name": "inventory", "nameLocation": "12077:9:2", "nodeType": "VariableDeclaration", "scope": 1451, "src": "12046:40:2", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory" }, "typeName": { "id": 1406, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 1405, "name": "AdNetworkSet.Inventory", "nodeType": "IdentifierPath", "referencedDeclaration": 1779, "src": "12046:22:2" }, "referencedDeclaration": 1779, "src": "12046:22:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory" } }, "visibility": "internal" } ], "id": 1412, "initialValue": { "arguments": [ { "id": 1410, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1388, "src": "12106:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "id": 1408, "name": "_inventories", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 213, "src": "12089:12:2", "typeDescriptions": { "typeIdentifier": "t_struct$_InventorySet_$1766_storage", "typeString": "struct AdNetworkSet.InventorySet storage ref" } }, "id": 1409, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "get", "nodeType": "MemberAccess", "referencedDeclaration": 1856, "src": "12089:16:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_struct$_InventorySet_$1766_storage_ptr_$_t_uint256_$returns$_t_struct$_Inventory_$1779_storage_ptr_$bound_to$_t_struct$_InventorySet_$1766_storage_ptr_$", "typeString": "function (struct AdNetworkSet.InventorySet storage pointer,uint256) view returns (struct AdNetworkSet.Inventory storage pointer)" } }, "id": 1411, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "12089:30:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "nodeType": "VariableDeclarationStatement", "src": "12046:73:2" }, { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1417, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { "id": 1414, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1407, "src": "12137:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 1415, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "inventoryId", "nodeType": "MemberAccess", "referencedDeclaration": 1768, "src": "12137:21:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "id": 1416, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1388, "src": "12162:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "12137:37:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "72657175657374656420696e76656e746f727920696420697320696e76616c6964", "id": 1418, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "12176:35:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_291ae92c44b91ab52e635174691fcb1c7f73b50296f9edd66f99d79578c050f3", "typeString": "literal_string \"requested inventory id is invalid\"" }, "value": "requested inventory id is invalid" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_291ae92c44b91ab52e635174691fcb1c7f73b50296f9edd66f99d79578c050f3", "typeString": "literal_string \"requested inventory id is invalid\"" } ], "id": 1413, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "12129:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 1419, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "12129:83:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1420, "nodeType": "ExpressionStatement", "src": "12129:83:2" }, { "expression": { "id": 1424, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1421, "name": "inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1391, "src": "12223:11:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1422, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1407, "src": "12237:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 1423, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "inventoryId", "nodeType": "MemberAccess", "referencedDeclaration": 1768, "src": "12237:21:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "12223:35:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1425, "nodeType": "ExpressionStatement", "src": "12223:35:2" }, { "expression": { "id": 1429, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1426, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1393, "src": "12268:5:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1427, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1407, "src": "12276:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 1428, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", "referencedDeclaration": 1770, "src": "12276:15:2", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "src": "12268:23:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 1430, "nodeType": "ExpressionStatement", "src": "12268:23:2" }, { "expression": { "id": 1434, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1431, "name": "name", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1395, "src": "12301:4:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1432, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1407, "src": "12308:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 1433, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "name", "nodeType": "MemberAccess", "referencedDeclaration": 1772, "src": "12308:14:2", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "src": "12301:21:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "id": 1435, "nodeType": "ExpressionStatement", "src": "12301:21:2" }, { "expression": { "id": 1439, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1436, "name": "uri", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1397, "src": "12332:3:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1437, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1407, "src": "12338:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 1438, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "uri", "nodeType": "MemberAccess", "referencedDeclaration": 1774, "src": "12338:13:2", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "src": "12332:19:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "id": 1440, "nodeType": "ExpressionStatement", "src": "12332:19:2" }, { "expression": { "id": 1444, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1441, "name": "publicKey", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1399, "src": "12361:9:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1442, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1407, "src": "12373:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 1443, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "publicKey", "nodeType": "MemberAccess", "referencedDeclaration": 1776, "src": "12373:19:2", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "src": "12361:31:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "id": 1445, "nodeType": "ExpressionStatement", "src": "12361:31:2" }, { "expression": { "id": 1449, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1446, "name": "floorPrice", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1401, "src": "12402:10:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1447, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1407, "src": "12415:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 1448, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "floorPrice", "nodeType": "MemberAccess", "referencedDeclaration": 1778, "src": "12415:20:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "12402:33:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1450, "nodeType": "ExpressionStatement", "src": "12402:33:2" } ] }, "functionSelector": "5b298d32", "id": 1452, "implemented": true, "kind": "function", "modifiers": [], "name": "getInventory", "nameLocation": "11804:12:2", "nodeType": "FunctionDefinition", "parameters": { "id": 1389, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1388, "mutability": "mutable", "name": "_inventoryId", "nameLocation": "11825:12:2", "nodeType": "VariableDeclaration", "scope": 1452, "src": "11817:20:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1387, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "11817:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "11816:22:2" }, "returnParameters": { "id": 1402, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1391, "mutability": "mutable", "name": "inventoryId", "nameLocation": "11879:11:2", "nodeType": "VariableDeclaration", "scope": 1452, "src": "11871:19:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1390, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "11871:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1393, "mutability": "mutable", "name": "owner", "nameLocation": "11908:5:2", "nodeType": "VariableDeclaration", "scope": 1452, "src": "11900:13:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1392, "name": "address", "nodeType": "ElementaryTypeName", "src": "11900:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 1395, "mutability": "mutable", "name": "name", "nameLocation": "11937:4:2", "nodeType": "VariableDeclaration", "scope": 1452, "src": "11923:18:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 1394, "name": "string", "nodeType": "ElementaryTypeName", "src": "11923:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" }, { "constant": false, "id": 1397, "mutability": "mutable", "name": "uri", "nameLocation": "11965:3:2", "nodeType": "VariableDeclaration", "scope": 1452, "src": "11951:17:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 1396, "name": "string", "nodeType": "ElementaryTypeName", "src": "11951:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" }, { "constant": false, "id": 1399, "mutability": "mutable", "name": "publicKey", "nameLocation": "11992:9:2", "nodeType": "VariableDeclaration", "scope": 1452, "src": "11978:23:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 1398, "name": "string", "nodeType": "ElementaryTypeName", "src": "11978:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" }, { "constant": false, "id": 1401, "mutability": "mutable", "name": "floorPrice", "nameLocation": "12019:10:2", "nodeType": "VariableDeclaration", "scope": 1452, "src": "12011:18:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1400, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "12011:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "11861:174:2" }, "scope": 1755, "src": "11795:647:2", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "body": { "id": 1630, "nodeType": "Block", "src": "12733:1039:2", "statements": [ { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_bool", "typeString": "bool" }, "id": 1484, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1480, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1478, "name": "limit", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1456, "src": "12751:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": ">", "rightExpression": { "hexValue": "30", "id": 1479, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "12759:1:2", "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "src": "12751:9:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "BinaryOperation", "operator": "&&", "rightExpression": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1483, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1481, "name": "limit", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1456, "src": "12764:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<=", "rightExpression": { "hexValue": "3530", "id": 1482, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "12773:2:2", "typeDescriptions": { "typeIdentifier": "t_rational_50_by_1", "typeString": "int_const 50" }, "value": "50" }, "src": "12764:11:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "src": "12751:24:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "496e76656e746f72792063616e20626520726574726965766520757020746f203330206974656d73206174207468652073616d652074696d65", "id": 1485, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "12777:59:2", "typeDescriptions": { "typeIdentifier": "t_stringliteral_7bd5de2a7921ab1cd368859225f2849493de4637062cfa621133b94bd187fcba", "typeString": "literal_string \"Inventory can be retrieve up to 30 items at the same time\"" }, "value": "Inventory can be retrieve up to 30 items at the same time" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_7bd5de2a7921ab1cd368859225f2849493de4637062cfa621133b94bd187fcba", "typeString": "literal_string \"Inventory can be retrieve up to 30 items at the same time\"" } ], "id": 1477, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "12743:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 1486, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "12743:94:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1487, "nodeType": "ExpressionStatement", "src": "12743:94:2" }, { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_bool", "typeString": "bool" }, "id": 1497, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1491, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1489, "name": "offset", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1454, "src": "12855:6:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": ">=", "rightExpression": { "hexValue": "30", "id": 1490, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "12865:1:2", "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "src": "12855:11:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "BinaryOperation", "operator": "&&", "rightExpression": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1496, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1492, "name": "offset", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1454, "src": "12870:6:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<=", "rightExpression": { "expression": { "expression": { "id": 1493, "name": "_inventories", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 213, "src": "12880:12:2", "typeDescriptions": { "typeIdentifier": "t_struct$_InventorySet_$1766_storage", "typeString": "struct AdNetworkSet.InventorySet storage ref" } }, "id": 1494, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "_values", "nodeType": "MemberAccess", "referencedDeclaration": 1761, "src": "12880:20:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_Inventory_$1779_storage_$dyn_storage", "typeString": "struct AdNetworkSet.Inventory storage ref[] storage ref" } }, "id": 1495, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "length", "nodeType": "MemberAccess", "src": "12880:27:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "12870:37:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "src": "12855:52:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 1488, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 4294967278, 4294967278 ], "referencedDeclaration": 4294967278, "src": "12847:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 1498, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "12847:61:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1499, "nodeType": "ExpressionStatement", "src": "12847:61:2" }, { "assignments": [ 1501 ], "declarations": [ { "constant": false, "id": 1501, "mutability": "mutable", "name": "upper", "nameLocation": "12924:5:2", "nodeType": "VariableDeclaration", "scope": 1630, "src": "12919:10:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1500, "name": "uint", "nodeType": "ElementaryTypeName", "src": "12919:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 1510, "initialValue": { "arguments": [ { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1508, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1506, "name": "offset", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1454, "src": "12964:6:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "+", "rightExpression": { "id": 1507, "name": "limit", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1456, "src": "12973:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "12964:14:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "expression": { "expression": { "id": 1502, "name": "_inventories", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 213, "src": "12932:12:2", "typeDescriptions": { "typeIdentifier": "t_struct$_InventorySet_$1766_storage", "typeString": "struct AdNetworkSet.InventorySet storage ref" } }, "id": 1503, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "_values", "nodeType": "MemberAccess", "referencedDeclaration": 1761, "src": "12932:20:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_Inventory_$1779_storage_$dyn_storage", "typeString": "struct AdNetworkSet.Inventory storage ref[] storage ref" } }, "id": 1504, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "length", "nodeType": "MemberAccess", "src": "12932:27:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1505, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "min", "nodeType": "MemberAccess", "referencedDeclaration": 112, "src": "12932:31:2", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, "id": 1509, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "12932:47:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", "src": "12919:60:2" }, { "expression": { "id": 1517, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1511, "name": "inventoryIds", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1460, "src": "12989:12:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 1515, "name": "upper", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1501, "src": "13018:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1514, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "13004:13:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (uint256[] memory)" }, "typeName": { "baseType": { "id": 1512, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "13008:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1513, "nodeType": "ArrayTypeName", "src": "13008:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } } }, "id": 1516, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "13004:20:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "src": "12989:35:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 1518, "nodeType": "ExpressionStatement", "src": "12989:35:2" }, { "expression": { "id": 1525, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1519, "name": "owners", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1463, "src": "13034:6:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 1523, "name": "upper", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1501, "src": "13057:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1522, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "13043:13:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_address_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (address[] memory)" }, "typeName": { "baseType": { "id": 1520, "name": "address", "nodeType": "ElementaryTypeName", "src": "13047:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 1521, "nodeType": "ArrayTypeName", "src": "13047:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", "typeString": "address[]" } } }, "id": 1524, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "13043:20:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[] memory" } }, "src": "13034:29:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[] memory" } }, "id": 1526, "nodeType": "ExpressionStatement", "src": "13034:29:2" }, { "expression": { "id": 1533, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1527, "name": "names", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1466, "src": "13073:5:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 1531, "name": "upper", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1501, "src": "13094:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1530, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "13081:12:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_string_memory_ptr_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (string memory[] memory)" }, "typeName": { "baseType": { "id": 1528, "name": "string", "nodeType": "ElementaryTypeName", "src": "13085:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "id": 1529, "nodeType": "ArrayTypeName", "src": "13085:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr", "typeString": "string[]" } } }, "id": 1532, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "13081:19:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "src": "13073:27:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "id": 1534, "nodeType": "ExpressionStatement", "src": "13073:27:2" }, { "expression": { "id": 1541, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1535, "name": "uris", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1469, "src": "13110:4:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 1539, "name": "upper", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1501, "src": "13130:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1538, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "13117:12:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_string_memory_ptr_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (string memory[] memory)" }, "typeName": { "baseType": { "id": 1536, "name": "string", "nodeType": "ElementaryTypeName", "src": "13121:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "id": 1537, "nodeType": "ArrayTypeName", "src": "13121:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr", "typeString": "string[]" } } }, "id": 1540, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "13117:19:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "src": "13110:26:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "id": 1542, "nodeType": "ExpressionStatement", "src": "13110:26:2" }, { "expression": { "id": 1549, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1543, "name": "publicKeys", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1472, "src": "13146:10:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 1547, "name": "upper", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1501, "src": "13172:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1546, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "13159:12:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_string_memory_ptr_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (string memory[] memory)" }, "typeName": { "baseType": { "id": 1544, "name": "string", "nodeType": "ElementaryTypeName", "src": "13163:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "id": 1545, "nodeType": "ArrayTypeName", "src": "13163:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr", "typeString": "string[]" } } }, "id": 1548, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "13159:19:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "src": "13146:32:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "id": 1550, "nodeType": "ExpressionStatement", "src": "13146:32:2" }, { "expression": { "id": 1557, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1551, "name": "floorPrices", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1475, "src": "13188:11:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "id": 1555, "name": "upper", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1501, "src": "13216:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1554, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "13202:13:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (uint256[] memory)" }, "typeName": { "baseType": { "id": 1552, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "13206:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1553, "nodeType": "ArrayTypeName", "src": "13206:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } } }, "id": 1556, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "13202:20:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "src": "13188:34:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 1558, "nodeType": "ExpressionStatement", "src": "13188:34:2" }, { "assignments": [ 1560 ], "declarations": [ { "constant": false, "id": 1560, "mutability": "mutable", "name": "inventoryIdx", "nameLocation": "13238:12:2", "nodeType": "VariableDeclaration", "scope": 1630, "src": "13233:17:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1559, "name": "uint", "nodeType": "ElementaryTypeName", "src": "13233:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 1562, "initialValue": { "hexValue": "30", "id": 1561, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "13253:1:2", "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "nodeType": "VariableDeclarationStatement", "src": "13233:21:2" }, { "body": { "id": 1628, "nodeType": "Block", "src": "13308:458:2", "statements": [ { "assignments": [ 1577 ], "declarations": [ { "constant": false, "id": 1577, "mutability": "mutable", "name": "inventory", "nameLocation": "13353:9:2", "nodeType": "VariableDeclaration", "scope": 1628, "src": "13322:40:2", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory" }, "typeName": { "id": 1576, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 1575, "name": "AdNetworkSet.Inventory", "nodeType": "IdentifierPath", "referencedDeclaration": 1779, "src": "13322:22:2" }, "referencedDeclaration": 1779, "src": "13322:22:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory" } }, "visibility": "internal" } ], "id": 1582, "initialValue": { "baseExpression": { "expression": { "id": 1578, "name": "_inventories", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 213, "src": "13365:12:2", "typeDescriptions": { "typeIdentifier": "t_struct$_InventorySet_$1766_storage", "typeString": "struct AdNetworkSet.InventorySet storage ref" } }, "id": 1579, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "_values", "nodeType": "MemberAccess", "referencedDeclaration": 1761, "src": "13365:20:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_Inventory_$1779_storage_$dyn_storage", "typeString": "struct AdNetworkSet.Inventory storage ref[] storage ref" } }, "id": 1581, "indexExpression": { "id": 1580, "name": "idx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1564, "src": "13386:3:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "13365:25:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage", "typeString": "struct AdNetworkSet.Inventory storage ref" } }, "nodeType": "VariableDeclarationStatement", "src": "13322:68:2" }, { "expression": { "id": 1588, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1583, "name": "inventoryIds", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1460, "src": "13405:12:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 1585, "indexExpression": { "id": 1584, "name": "inventoryIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1560, "src": "13418:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "13405:26:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1586, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1577, "src": "13434:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 1587, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "inventoryId", "nodeType": "MemberAccess", "referencedDeclaration": 1768, "src": "13434:21:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "13405:50:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1589, "nodeType": "ExpressionStatement", "src": "13405:50:2" }, { "expression": { "id": 1595, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1590, "name": "owners", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1463, "src": "13469:6:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[] memory" } }, "id": 1592, "indexExpression": { "id": 1591, "name": "inventoryIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1560, "src": "13476:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "13469:20:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1593, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1577, "src": "13492:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 1594, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", "referencedDeclaration": 1770, "src": "13492:15:2", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "src": "13469:38:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 1596, "nodeType": "ExpressionStatement", "src": "13469:38:2" }, { "expression": { "id": 1602, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1597, "name": "names", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1466, "src": "13521:5:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "id": 1599, "indexExpression": { "id": 1598, "name": "inventoryIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1560, "src": "13527:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "13521:19:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1600, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1577, "src": "13543:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 1601, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "name", "nodeType": "MemberAccess", "referencedDeclaration": 1772, "src": "13543:14:2", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "src": "13521:36:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "id": 1603, "nodeType": "ExpressionStatement", "src": "13521:36:2" }, { "expression": { "id": 1609, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1604, "name": "uris", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1469, "src": "13571:4:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "id": 1606, "indexExpression": { "id": 1605, "name": "inventoryIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1560, "src": "13576:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "13571:18:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1607, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1577, "src": "13592:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 1608, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "uri", "nodeType": "MemberAccess", "referencedDeclaration": 1774, "src": "13592:13:2", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "src": "13571:34:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "id": 1610, "nodeType": "ExpressionStatement", "src": "13571:34:2" }, { "expression": { "id": 1616, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1611, "name": "publicKeys", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1472, "src": "13619:10:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string memory[] memory" } }, "id": 1613, "indexExpression": { "id": 1612, "name": "inventoryIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1560, "src": "13630:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "13619:24:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1614, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1577, "src": "13646:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 1615, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "publicKey", "nodeType": "MemberAccess", "referencedDeclaration": 1776, "src": "13646:19:2", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "src": "13619:46:2", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "id": 1617, "nodeType": "ExpressionStatement", "src": "13619:46:2" }, { "expression": { "id": 1623, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1618, "name": "floorPrices", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1475, "src": "13679:11:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 1620, "indexExpression": { "id": 1619, "name": "inventoryIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1560, "src": "13691:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "13679:25:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1621, "name": "inventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1577, "src": "13707:9:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Inventory_$1779_storage_ptr", "typeString": "struct AdNetworkSet.Inventory storage pointer" } }, "id": 1622, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "floorPrice", "nodeType": "MemberAccess", "referencedDeclaration": 1778, "src": "13707:20:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "13679:48:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1624, "nodeType": "ExpressionStatement", "src": "13679:48:2" }, { "expression": { "id": 1626, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "13741:14:2", "subExpression": { "id": 1625, "name": "inventoryIdx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1560, "src": "13741:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1627, "nodeType": "ExpressionStatement", "src": "13741:14:2" } ] }, "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1569, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1567, "name": "idx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1564, "src": "13288:3:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "id": 1568, "name": "upper", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1501, "src": "13294:5:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "13288:11:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1629, "initializationExpression": { "assignments": [ 1564 ], "declarations": [ { "constant": false, "id": 1564, "mutability": "mutable", "name": "idx", "nameLocation": "13274:3:2", "nodeType": "VariableDeclaration", "scope": 1629, "src": "13269:8:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1563, "name": "uint", "nodeType": "ElementaryTypeName", "src": "13269:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 1566, "initialValue": { "id": 1565, "name": "offset", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1454, "src": "13280:6:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", "src": "13269:17:2" }, "loopExpression": { "expression": { "id": 1571, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "13301:5:2", "subExpression": { "id": 1570, "name": "idx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1564, "src": "13301:3:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1572, "nodeType": "ExpressionStatement", "src": "13301:5:2" }, "nodeType": "ForStatement", "src": "13264:502:2" } ] }, "functionSelector": "72af4556", "id": 1631, "implemented": true, "kind": "function", "modifiers": [], "name": "getInventories", "nameLocation": "12457:14:2", "nodeType": "FunctionDefinition", "parameters": { "id": 1457, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1454, "mutability": "mutable", "name": "offset", "nameLocation": "12477:6:2", "nodeType": "VariableDeclaration", "scope": 1631, "src": "12472:11:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1453, "name": "uint", "nodeType": "ElementaryTypeName", "src": "12472:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 1456, "mutability": "mutable", "name": "limit", "nameLocation": "12490:5:2", "nodeType": "VariableDeclaration", "scope": 1631, "src": "12485:10:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1455, "name": "uint", "nodeType": "ElementaryTypeName", "src": "12485:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "12471:25:2" }, "returnParameters": { "id": 1476, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1460, "mutability": "mutable", "name": "inventoryIds", "nameLocation": "12546:12:2", "nodeType": "VariableDeclaration", "scope": 1631, "src": "12529:29:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[]" }, "typeName": { "baseType": { "id": 1458, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "12529:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1459, "nodeType": "ArrayTypeName", "src": "12529:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } }, "visibility": "internal" }, { "constant": false, "id": 1463, "mutability": "mutable", "name": "owners", "nameLocation": "12585:6:2", "nodeType": "VariableDeclaration", "scope": 1631, "src": "12568:23:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[]" }, "typeName": { "baseType": { "id": 1461, "name": "address", "nodeType": "ElementaryTypeName", "src": "12568:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 1462, "nodeType": "ArrayTypeName", "src": "12568:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", "typeString": "address[]" } }, "visibility": "internal" }, { "constant": false, "id": 1466, "mutability": "mutable", "name": "names", "nameLocation": "12617:5:2", "nodeType": "VariableDeclaration", "scope": 1631, "src": "12601:21:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string[]" }, "typeName": { "baseType": { "id": 1464, "name": "string", "nodeType": "ElementaryTypeName", "src": "12601:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "id": 1465, "nodeType": "ArrayTypeName", "src": "12601:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr", "typeString": "string[]" } }, "visibility": "internal" }, { "constant": false, "id": 1469, "mutability": "mutable", "name": "uris", "nameLocation": "12648:4:2", "nodeType": "VariableDeclaration", "scope": 1631, "src": "12632:20:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string[]" }, "typeName": { "baseType": { "id": 1467, "name": "string", "nodeType": "ElementaryTypeName", "src": "12632:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "id": 1468, "nodeType": "ArrayTypeName", "src": "12632:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr", "typeString": "string[]" } }, "visibility": "internal" }, { "constant": false, "id": 1472, "mutability": "mutable", "name": "publicKeys", "nameLocation": "12678:10:2", "nodeType": "VariableDeclaration", "scope": 1631, "src": "12662:26:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr", "typeString": "string[]" }, "typeName": { "baseType": { "id": 1470, "name": "string", "nodeType": "ElementaryTypeName", "src": "12662:6:2", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "id": 1471, "nodeType": "ArrayTypeName", "src": "12662:8:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr", "typeString": "string[]" } }, "visibility": "internal" }, { "constant": false, "id": 1475, "mutability": "mutable", "name": "floorPrices", "nameLocation": "12715:11:2", "nodeType": "VariableDeclaration", "scope": 1631, "src": "12698:28:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[]" }, "typeName": { "baseType": { "id": 1473, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "12698:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1474, "nodeType": "ArrayTypeName", "src": "12698:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } }, "visibility": "internal" } ], "src": "12519:213:2" }, "scope": 1755, "src": "12448:1324:2", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "body": { "id": 1753, "nodeType": "Block", "src": "13866:861:2", "statements": [ { "assignments": [ 1640 ], "declarations": [ { "constant": false, "id": 1640, "mutability": "mutable", "name": "expireCounts", "nameLocation": "13881:12:2", "nodeType": "VariableDeclaration", "scope": 1753, "src": "13876:17:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1639, "name": "uint", "nodeType": "ElementaryTypeName", "src": "13876:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 1642, "initialValue": { "hexValue": "30", "id": 1641, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "13896:1:2", "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "nodeType": "VariableDeclarationStatement", "src": "13876:21:2" }, { "body": { "id": 1684, "nodeType": "Block", "src": "13960:260:2", "statements": [ { "assignments": [ 1659 ], "declarations": [ { "constant": false, "id": 1659, "mutability": "mutable", "name": "ad", "nameLocation": "13998:2:2", "nodeType": "VariableDeclaration", "scope": 1684, "src": "13974:26:2", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad" }, "typeName": { "id": 1658, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 1657, "name": "AdNetworkSet.Ad", "nodeType": "IdentifierPath", "referencedDeclaration": 1984, "src": "13974:15:2" }, "referencedDeclaration": 1984, "src": "13974:15:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad" } }, "visibility": "internal" } ], "id": 1664, "initialValue": { "baseExpression": { "expression": { "id": 1660, "name": "_ads", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 219, "src": "14003:4:2", "typeDescriptions": { "typeIdentifier": "t_struct$_AdSet_$1967_storage", "typeString": "struct AdNetworkSet.AdSet storage ref" } }, "id": 1661, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "_values", "nodeType": "MemberAccess", "referencedDeclaration": 1962, "src": "14003:12:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_Ad_$1984_storage_$dyn_storage", "typeString": "struct AdNetworkSet.Ad storage ref[] storage ref" } }, "id": 1663, "indexExpression": { "id": 1662, "name": "idx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1644, "src": "14016:3:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "14003:17:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage", "typeString": "struct AdNetworkSet.Ad storage ref" } }, "nodeType": "VariableDeclarationStatement", "src": "13974:46:2" }, { "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1670, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "baseExpression": { "id": 1665, "name": "_adToInventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 227, "src": "14038:14:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" } }, "id": 1668, "indexExpression": { "expression": { "id": 1666, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1659, "src": "14053:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1667, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "adId", "nodeType": "MemberAccess", "referencedDeclaration": 1969, "src": "14053:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "14038:23:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "id": 1669, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1633, "src": "14065:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "14038:39:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1673, "nodeType": "IfStatement", "src": "14034:86:2", "trueBody": { "id": 1672, "nodeType": "Block", "src": "14079:41:2", "statements": [ { "id": 1671, "nodeType": "Continue", "src": "14097:8:2" } ] } }, { "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1678, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { "id": 1674, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1659, "src": "14137:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1675, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "end", "nodeType": "MemberAccess", "referencedDeclaration": 1981, "src": "14137:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "nodeType": "BinaryOperation", "operator": ">", "rightExpression": { "expression": { "id": 1676, "name": "block", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967292, "src": "14146:5:2", "typeDescriptions": { "typeIdentifier": "t_magic_block", "typeString": "block" } }, "id": 1677, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "timestamp", "nodeType": "MemberAccess", "src": "14146:15:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "14137:24:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1683, "nodeType": "IfStatement", "src": "14133:77:2", "trueBody": { "id": 1682, "nodeType": "Block", "src": "14163:47:2", "statements": [ { "expression": { "id": 1680, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "14181:14:2", "subExpression": { "id": 1679, "name": "expireCounts", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1640, "src": "14181:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1681, "nodeType": "ExpressionStatement", "src": "14181:14:2" } ] } } ] }, "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1651, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1647, "name": "idx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1644, "src": "13926:3:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "expression": { "expression": { "id": 1648, "name": "_ads", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 219, "src": "13932:4:2", "typeDescriptions": { "typeIdentifier": "t_struct$_AdSet_$1967_storage", "typeString": "struct AdNetworkSet.AdSet storage ref" } }, "id": 1649, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "_values", "nodeType": "MemberAccess", "referencedDeclaration": 1962, "src": "13932:12:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_Ad_$1984_storage_$dyn_storage", "typeString": "struct AdNetworkSet.Ad storage ref[] storage ref" } }, "id": 1650, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "length", "nodeType": "MemberAccess", "src": "13932:19:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "13926:25:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1685, "initializationExpression": { "assignments": [ 1644 ], "declarations": [ { "constant": false, "id": 1644, "mutability": "mutable", "name": "idx", "nameLocation": "13917:3:2", "nodeType": "VariableDeclaration", "scope": 1685, "src": "13912:8:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1643, "name": "uint", "nodeType": "ElementaryTypeName", "src": "13912:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 1646, "initialValue": { "hexValue": "30", "id": 1645, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "13923:1:2", "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "nodeType": "VariableDeclarationStatement", "src": "13912:12:2" }, "loopExpression": { "expression": { "id": 1653, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "13953:5:2", "subExpression": { "id": 1652, "name": "idx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1644, "src": "13953:3:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1654, "nodeType": "ExpressionStatement", "src": "13953:5:2" }, "nodeType": "ForStatement", "src": "13907:313:2" }, { "assignments": [ 1690 ], "declarations": [ { "constant": false, "id": 1690, "mutability": "mutable", "name": "expiredAdIds", "nameLocation": "14247:12:2", "nodeType": "VariableDeclaration", "scope": 1753, "src": "14230:29:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[]" }, "typeName": { "baseType": { "id": 1688, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "14230:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1689, "nodeType": "ArrayTypeName", "src": "14230:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } }, "visibility": "internal" } ], "id": 1696, "initialValue": { "arguments": [ { "id": 1694, "name": "expireCounts", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1640, "src": "14276:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 1693, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", "src": "14262:13:2", "typeDescriptions": { "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$", "typeString": "function (uint256) pure returns (uint256[] memory)" }, "typeName": { "baseType": { "id": 1691, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "14266:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1692, "nodeType": "ArrayTypeName", "src": "14266:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } } }, "id": 1695, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "14262:27:2", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "nodeType": "VariableDeclarationStatement", "src": "14230:59:2" }, { "expression": { "id": 1699, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 1697, "name": "expireCounts", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1640, "src": "14299:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "hexValue": "30", "id": 1698, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "14314:1:2", "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "src": "14299:16:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1700, "nodeType": "ExpressionStatement", "src": "14299:16:2" }, { "body": { "id": 1749, "nodeType": "Block", "src": "14378:314:2", "statements": [ { "assignments": [ 1717 ], "declarations": [ { "constant": false, "id": 1717, "mutability": "mutable", "name": "ad", "nameLocation": "14416:2:2", "nodeType": "VariableDeclaration", "scope": 1749, "src": "14392:26:2", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad" }, "typeName": { "id": 1716, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 1715, "name": "AdNetworkSet.Ad", "nodeType": "IdentifierPath", "referencedDeclaration": 1984, "src": "14392:15:2" }, "referencedDeclaration": 1984, "src": "14392:15:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad" } }, "visibility": "internal" } ], "id": 1722, "initialValue": { "baseExpression": { "expression": { "id": 1718, "name": "_ads", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 219, "src": "14421:4:2", "typeDescriptions": { "typeIdentifier": "t_struct$_AdSet_$1967_storage", "typeString": "struct AdNetworkSet.AdSet storage ref" } }, "id": 1719, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "_values", "nodeType": "MemberAccess", "referencedDeclaration": 1962, "src": "14421:12:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_Ad_$1984_storage_$dyn_storage", "typeString": "struct AdNetworkSet.Ad storage ref[] storage ref" } }, "id": 1721, "indexExpression": { "id": 1720, "name": "idx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1702, "src": "14434:3:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "14421:17:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage", "typeString": "struct AdNetworkSet.Ad storage ref" } }, "nodeType": "VariableDeclarationStatement", "src": "14392:46:2" }, { "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1728, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "baseExpression": { "id": 1723, "name": "_adToInventory", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 227, "src": "14456:14:2", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" } }, "id": 1726, "indexExpression": { "expression": { "id": 1724, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1717, "src": "14471:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1725, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "adId", "nodeType": "MemberAccess", "referencedDeclaration": 1969, "src": "14471:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "14456:23:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "id": 1727, "name": "_inventoryId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1633, "src": "14483:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "14456:39:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1731, "nodeType": "IfStatement", "src": "14452:86:2", "trueBody": { "id": 1730, "nodeType": "Block", "src": "14497:41:2", "statements": [ { "id": 1729, "nodeType": "Continue", "src": "14515:8:2" } ] } }, { "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1736, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "expression": { "id": 1732, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1717, "src": "14555:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1733, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "end", "nodeType": "MemberAccess", "referencedDeclaration": 1981, "src": "14555:6:2", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "nodeType": "BinaryOperation", "operator": ">", "rightExpression": { "expression": { "id": 1734, "name": "block", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967292, "src": "14564:5:2", "typeDescriptions": { "typeIdentifier": "t_magic_block", "typeString": "block" } }, "id": 1735, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "timestamp", "nodeType": "MemberAccess", "src": "14564:15:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "14555:24:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1748, "nodeType": "IfStatement", "src": "14551:131:2", "trueBody": { "id": 1747, "nodeType": "Block", "src": "14581:101:2", "statements": [ { "expression": { "id": 1742, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "baseExpression": { "id": 1737, "name": "expiredAdIds", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1690, "src": "14599:12:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "id": 1739, "indexExpression": { "id": 1738, "name": "expireCounts", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1640, "src": "14612:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "14599:26:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "expression": { "id": 1740, "name": "ad", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1717, "src": "14628:2:2", "typeDescriptions": { "typeIdentifier": "t_struct$_Ad_$1984_storage_ptr", "typeString": "struct AdNetworkSet.Ad storage pointer" } }, "id": 1741, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "adId", "nodeType": "MemberAccess", "referencedDeclaration": 1969, "src": "14628:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "14599:36:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1743, "nodeType": "ExpressionStatement", "src": "14599:36:2" }, { "expression": { "id": 1745, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "14653:14:2", "subExpression": { "id": 1744, "name": "expireCounts", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1640, "src": "14653:12:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1746, "nodeType": "ExpressionStatement", "src": "14653:14:2" } ] } } ] }, "condition": { "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 1709, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 1705, "name": "idx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1702, "src": "14344:3:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "expression": { "expression": { "id": 1706, "name": "_ads", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 219, "src": "14350:4:2", "typeDescriptions": { "typeIdentifier": "t_struct$_AdSet_$1967_storage", "typeString": "struct AdNetworkSet.AdSet storage ref" } }, "id": 1707, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "_values", "nodeType": "MemberAccess", "referencedDeclaration": 1962, "src": "14350:12:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_struct$_Ad_$1984_storage_$dyn_storage", "typeString": "struct AdNetworkSet.Ad storage ref[] storage ref" } }, "id": 1708, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "length", "nodeType": "MemberAccess", "src": "14350:19:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "14344:25:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 1750, "initializationExpression": { "assignments": [ 1702 ], "declarations": [ { "constant": false, "id": 1702, "mutability": "mutable", "name": "idx", "nameLocation": "14335:3:2", "nodeType": "VariableDeclaration", "scope": 1750, "src": "14330:8:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1701, "name": "uint", "nodeType": "ElementaryTypeName", "src": "14330:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "id": 1704, "initialValue": { "hexValue": "30", "id": 1703, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "14341:1:2", "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "nodeType": "VariableDeclarationStatement", "src": "14330:12:2" }, "loopExpression": { "expression": { "id": 1711, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "++", "prefix": false, "src": "14371:5:2", "subExpression": { "id": 1710, "name": "idx", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1702, "src": "14371:3:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1712, "nodeType": "ExpressionStatement", "src": "14371:5:2" }, "nodeType": "ForStatement", "src": "14325:367:2" }, { "expression": { "id": 1751, "name": "expiredAdIds", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1690, "src": "14708:12:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[] memory" } }, "functionReturnParameters": 1638, "id": 1752, "nodeType": "Return", "src": "14701:19:2" } ] }, "functionSelector": "24bfee7d", "id": 1754, "implemented": true, "kind": "function", "modifiers": [], "name": "getExpiredAdIds", "nameLocation": "13787:15:2", "nodeType": "FunctionDefinition", "parameters": { "id": 1634, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1633, "mutability": "mutable", "name": "_inventoryId", "nameLocation": "13811:12:2", "nodeType": "VariableDeclaration", "scope": 1754, "src": "13803:20:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1632, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "13803:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "13802:22:2" }, "returnParameters": { "id": 1638, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1637, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 1754, "src": "13848:16:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr", "typeString": "uint256[]" }, "typeName": { "baseType": { "id": 1635, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "13848:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 1636, "nodeType": "ArrayTypeName", "src": "13848:9:2", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } }, "visibility": "internal" } ], "src": "13847:18:2" }, "scope": 1755, "src": "13778:949:2", "stateMutability": "view", "virtual": false, "visibility": "external" } ], "scope": 1756, "src": "194:14536:2", "usedErrors": [] } ], "src": "32:14699:2" }, "compiler": { "name": "solc", "version": "0.8.11+commit.d7f03943.Emscripten.clang" }, "networks": { "5777": { "events": {}, "links": {}, "address": "0x0A53b84CF0eCea309d6cD8e1f7A81E23b53022fd", "transactionHash": "0x00e8d60440f839061b56cd6349ab0dfb48fe1fb69e3eb79de53b95512b5d8470" } }, "schemaVersion": "3.4.4", "updatedAt": "2022-02-20T08:11:22.805Z", "networkType": "ethereum", "devdoc": { "kind": "dev", "methods": {}, "stateVariables": { "MIN_DELIVERY_TIME": { "details": "Delivery time must be at least 1 hour." }, "MIN_TIME_REQUIRED_TO_START_DELIVERY": { "details": "Since there is a high possibility that the screening will not be completed in time, it is necessary to allow at least 12 hours before the distribution starts." } }, "version": 1 }, "userdoc": { "kind": "user", "methods": {}, "version": 1 } }