UNPKG

@materia-dex/materia-contracts-proxy

Version:

Proxy contract for the Materia protocol

316 lines 10.1 kB
{ "compiler": { "version": "0.8.0+commit.c7dfd78e" }, "language": "Solidity", "output": { "abi": [ { "inputs": [ { "internalType": "address", "name": "receiver", "type": "address" } ], "name": "destroy", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "operator", "type": "address" }, { "internalType": "address", "name": "from", "type": "address" }, { "internalType": "uint256[]", "name": "ids", "type": "uint256[]" }, { "internalType": "uint256[]", "name": "values", "type": "uint256[]" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "name": "onERC1155BatchReceived", "outputs": [ { "internalType": "bytes4", "name": "", "type": "bytes4" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "operator", "type": "address" }, { "internalType": "address", "name": "from", "type": "address" }, { "internalType": "uint256", "name": "id", "type": "uint256" }, { "internalType": "uint256", "name": "value", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "name": "onERC1155Received", "outputs": [ { "internalType": "bytes4", "name": "", "type": "bytes4" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "orchestrator", "outputs": [ { "internalType": "contract IMateriaOrchestrator", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newOrchestrator", "type": "address" } ], "name": "setOrchestrator", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes4", "name": "interfaceId", "type": "bytes4" } ], "name": "supportsInterface", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" } ], "devdoc": { "kind": "dev", "methods": { "onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)": { "details": "Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256(\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\"))` (i.e. 0xbc197c81, or its own function selector).", "params": { "data": "Additional data with no specified format", "from": "The address which previously owned the token", "ids": "An array containing ids of each token being transferred (order and length must match values array)", "operator": "The address which initiated the batch transfer (i.e. msg.sender)", "values": "An array containing amounts of each token being transferred (order and length must match ids array)" }, "returns": { "_0": "`bytes4(keccak256(\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\"))` if transfer is allowed" } }, "onERC1155Received(address,address,uint256,uint256,bytes)": { "details": "Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256(\"onERC1155Received(address,address,uint256,uint256,bytes)\"))` (i.e. 0xf23a6e61, or its own function selector).", "params": { "data": "Additional data with no specified format", "from": "The address which previously owned the token", "id": "The ID of the token being transferred", "operator": "The address which initiated the transfer (i.e. msg.sender)", "value": "The amount of tokens being transferred" }, "returns": { "_0": "`bytes4(keccak256(\"onERC1155Received(address,address,uint256,uint256,bytes)\"))` if transfer is allowed" } }, "supportsInterface(bytes4)": { "details": "Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas." } }, "version": 1 }, "userdoc": { "kind": "user", "methods": {}, "version": 1 } }, "settings": { "compilationTarget": { "localhost/proxy/contracts/interfaces/IMateriaOperator.sol": "IMateriaOperator" }, "evmVersion": "istanbul", "libraries": {}, "metadata": { "bytecodeHash": "ipfs" }, "optimizer": { "enabled": true, "runs": 200 }, "remappings": [] }, "sources": { "localhost/proxy/contracts/interfaces/IBaseTokenData.sol": { "keccak256": "0xb02cb2c7ab9fbf94410ea13965f6e62ad4d348b6731396b5a2abddc166ccd6b0", "license": "MIT", "urls": [ "bzz-raw://110ed41f2461b9344138b591128b021b92f81d6f476fc709aeb76843a16562b7", "dweb:/ipfs/QmVJBCMwrVFA6wna2UCypYeY14jxPndotMpYkNztPNpoFj" ] }, "localhost/proxy/contracts/interfaces/IERC1155.sol": { "keccak256": "0xaa5e55648d433ba71d84fff3acee448218e17671e2c2ba2eeff1a83fc4b15be5", "license": "MIT", "urls": [ "bzz-raw://d1321493739df1579140492d5ee05071da8eb92acad2355a3402d92f6dba8718", "dweb:/ipfs/QmZsDJqPsJdJBPAv7M8Q2RQPUCJK5HaZeof6kqty45ypcr" ] }, "localhost/proxy/contracts/interfaces/IERC1155Receiver.sol": { "keccak256": "0x9c96a59c3d5d16b21c6ebb23b262748059cca44e1ad095fd65beb6b3fdd9ce7a", "license": "MIT", "urls": [ "bzz-raw://7eb00d2f71977ce2a09e17fd023f6d73d0982012a522d8e8165a767dd2fe7b7d", "dweb:/ipfs/QmPRkNMER5Er2LdP5sAAoondAp8R37ULZPpwxVekwf12U4" ] }, "localhost/proxy/contracts/interfaces/IERC1155Views.sol": { "keccak256": "0x165133ed153e90263b5cff3656bce55e46aaefc682bed5a593427e9f99c01026", "license": "MIT", "urls": [ "bzz-raw://8d8265b2c2503af1140b1bf5e4dd4ba36fdda7268b498288b9f9d40d156a122f", "dweb:/ipfs/QmNU2dX6ML4S5Kw1kemAxF6qTrcLj9btU5pGmRwAeTRZKC" ] }, "localhost/proxy/contracts/interfaces/IERC165.sol": { "keccak256": "0x1e37c0672c8b126c1962605427b70bdb93e6deb37bb086bfa91355072449f810", "license": "MIT", "urls": [ "bzz-raw://de7b376c2da4c1ad9fe9e37c31871228778e27a43d7bf9de4a8d8a9a9712f46a", "dweb:/ipfs/QmPd41MzMckfbxvf2g9W1GPLzFeZt39LCmS4GXGD7AEUbr" ] }, "localhost/proxy/contracts/interfaces/IERC20.sol": { "keccak256": "0xa8547ef7a4aabd9c15930d0caaedaf02826ec2345fa5015ba134b4087fd3eb06", "license": "MIT", "urls": [ "bzz-raw://ed005dc99628ad306463c7e1909c127fbedcb67ac3035c6ab6c69a438564665c", "dweb:/ipfs/QmXWTqBYXuNoKq5NgKQE9CzUzBG39a84qTvYTkSMxLZV3f" ] }, "localhost/proxy/contracts/interfaces/IERC20Data.sol": { "keccak256": "0xfe4e3c95be7c3f34f3a588d7d643025740b769d48330398a0d6b9e894534e070", "license": "MIT", "urls": [ "bzz-raw://5da70697458012ee9e6432d94b1a5258d36902b5f1790c479b0a3f03649de366", "dweb:/ipfs/QmSpkrRfK4cmVXuBrGb4MDmp9gLNKQrYqgiWCciqRFxJdU" ] }, "localhost/proxy/contracts/interfaces/IERC20WrapperV1.sol": { "keccak256": "0xb11ab8431790ecf02d6380277e277a1e44fcf1cbc81973301149e7080157ea4a", "license": "MIT", "urls": [ "bzz-raw://1b5dfc1840e8834ba39b1a634fdc2ba67d250adc4f8540f0ee33e16439ccb9cd", "dweb:/ipfs/QmTyF4vz44kcYuLuZAEW7tBxWuMiNZAojDKopi8oeudgk3" ] }, "localhost/proxy/contracts/interfaces/IEthItemInteroperableInterface.sol": { "keccak256": "0xd6c86125dbcd0941a00ee9727d1a37c4e0558b8d917f661d8059b85fe297ca42", "license": "MIT", "urls": [ "bzz-raw://7d7bd235c9e3447a082147c068e6f71b04677b279a640fcb76c5b32ab5d13370", "dweb:/ipfs/QmXZJZ388qAKj2DeHDKAucrPReDqqpmKrh9NFtkkib5Yqe" ] }, "localhost/proxy/contracts/interfaces/IEthItemMainInterface.sol": { "keccak256": "0x1bc85f4e88618a2d75910da856d5d43a87213463dae57054b44aa0e2220c43e0", "license": "MIT", "urls": [ "bzz-raw://12240288d6503024c37ad756722f451ad3d819affd30b9d54ca0e06942c414b0", "dweb:/ipfs/QmU1hLcanobgXgEEXbbA56YPob23ghDXXqjK7gCCXbj3mT" ] }, "localhost/proxy/contracts/interfaces/IEthItemModelBase.sol": { "keccak256": "0x2ef4d851f1127e58dc496490f84ebe5690bff39c48a0ff43338d0087e3b114da", "license": "MIT", "urls": [ "bzz-raw://7db0efdf2c2c6c758fa12146e9aa31ebe1fc7b1eaa36d644ada5a7696b22c627", "dweb:/ipfs/QmXP62zz7qHJtQfxNRoxPsPiJxhXTKaKRfjCHGxetwgYyV" ] }, "localhost/proxy/contracts/interfaces/IMateriaFactory.sol": { "keccak256": "0x247c5514714d063f59d935aea1bf149a04f1c1cc3a2e3bee3d6b7e37cc689e8b", "license": "UNLICENSED", "urls": [ "bzz-raw://8adda63f7fdc816f5f0bafb0045d9e511fa48792a8b1d7b2ba9cf157875a801e", "dweb:/ipfs/QmU9gXzFnC6ygpGYaVnKKNatm59or73wWju7bTG4t66Xnb" ] }, "localhost/proxy/contracts/interfaces/IMateriaOperator.sol": { "keccak256": "0xe3de35f409b12ba745470faecf97239743c2c68804c75d6a4c3b4fcab9726d7d", "license": "UNLICENSED", "urls": [ "bzz-raw://f8a82a0275d934c06ca15892f1d5d62a0d9bd0eca2ea2f9b28c73a37df3bab64", "dweb:/ipfs/QmRt1XBp3u83Vbi8H1tyHpoGF2YcZbvjJ8GbiFL3wat1Xp" ] }, "localhost/proxy/contracts/interfaces/IMateriaOrchestrator.sol": { "keccak256": "0x9fcdad44612111b3311a616b0bf0e35149c10b3e8092d0e875ec1898464e653d", "license": "UNLICENSED", "urls": [ "bzz-raw://8bc17ed13bbeb03ad1e7c4c2a5c9ba94df8c48f9cfa45b80d70f7ec9ea731602", "dweb:/ipfs/QmXAPCXxRWJ8mJHLjV4tX9fJv4hrSMguLezLRoNj7nSgG6" ] } }, "version": 1 }