@materia-dex/materia-contracts-proxy
Version:
Proxy contract for the Materia protocol
410 lines • 11.3 kB
JSON
{
"compiler": {
"version": "0.8.0+commit.c7dfd78e"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "address",
"name": "wrapper",
"type": "address"
}
],
"name": "_wrapEth",
"outputs": [
{
"internalType": "address",
"name": "interoperable",
"type": "address"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "token",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenAmountDesired",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "bridgeAmountDesired",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "tokenAmountMin",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "bridgeAmountMin",
"type": "uint256"
},
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "deadline",
"type": "uint256"
}
],
"name": "addLiquidity",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "bridgeAmountDesired",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "ethAmountMin",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "bridgeAmountMin",
"type": "uint256"
},
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "deadline",
"type": "uint256"
}
],
"name": "addLiquidityETH",
"outputs": [
{
"internalType": "uint256",
"name": "ethAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "bridgeAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "liquidity",
"type": "uint256"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
},
{
"internalType": "address",
"name": "",
"type": "address"
},
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
},
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
},
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"name": "onERC1155BatchReceived",
"outputs": [
{
"internalType": "bytes4",
"name": "",
"type": "bytes4"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"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": [
{
"internalType": "bytes4",
"name": "",
"type": "bytes4"
}
],
"name": "supportsInterface",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "pure",
"type": "function"
}
],
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
},
"settings": {
"compilationTarget": {
"localhost/proxy/contracts/MateriaLiquidityAdder.sol": "MateriaLiquidityAdder"
},
"evmVersion": "istanbul",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
},
"sources": {
"localhost/proxy/contracts/MateriaLiquidityAdder.sol": {
"keccak256": "0x10b1b0898d60176f68c6e2b4841ea882637a665e151b278c72e34027b4443c4f",
"license": "GPL3",
"urls": [
"bzz-raw://4eddbf858a54bde023cecae6ea17e191e499a6fb85724e909950013e50a82cb0",
"dweb:/ipfs/QmZmUTz9tSSgW8rGGkRHm5FWAjhWTRLXzarWecSPTGN1dN"
]
},
"localhost/proxy/contracts/MateriaOperator.sol": {
"keccak256": "0x7e24e47c5b7ea0c6aab875e4584404ad81d95664234ad43f7628b98964b7847c",
"license": "GPL3",
"urls": [
"bzz-raw://889da5b13c22a13e856b195ede80e45b8b28d0f6a2aafc5ed7683c571350dae5",
"dweb:/ipfs/QmSYXV2jXLAxUHhKawvWiDBR78Vm4mZbGQccr6mGhRZJ3X"
]
},
"localhost/proxy/contracts/interfaces/IBaseTokenData.sol": {
"keccak256": "0xb02cb2c7ab9fbf94410ea13965f6e62ad4d348b6731396b5a2abddc166ccd6b0",
"license": "MIT",
"urls": [
"bzz-raw://110ed41f2461b9344138b591128b021b92f81d6f476fc709aeb76843a16562b7",
"dweb:/ipfs/QmVJBCMwrVFA6wna2UCypYeY14jxPndotMpYkNztPNpoFj"
]
},
"localhost/proxy/contracts/interfaces/IDoubleProxy.sol": {
"keccak256": "0xb3775ff336d8ca9e0f7cb3b7e7c322d96c6360b53ec4a3ce45c6540d4f0126a3",
"license": "GPL3",
"urls": [
"bzz-raw://6ec1948724904ecf9185f960548865d20a13969a840c926e9162e4bb354d18f6",
"dweb:/ipfs/QmXbRyhfnW3E4Mij5y8v9JfHVB2vqxxwDgNfvHeu3wHiHJ"
]
},
"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": "0xbb23d0937dd4e8da3b15e4e461603554abc9945d40b713f5f8f6e612d7e36dae",
"license": "GPL3",
"urls": [
"bzz-raw://1cc856dd3375c7c345c693edda94b27d5c03d666843989308d6e61ef786b3718",
"dweb:/ipfs/QmZaq9Vec3gVXNFoaWX56B2DQPYjpiDahdEoqogskHiJAp"
]
},
"localhost/proxy/contracts/interfaces/IMateriaOrchestrator.sol": {
"keccak256": "0x814e3d0afa89938e5f56714107a82a08cb629bee2bf996abb531f856fbe57a63",
"license": "GPL3",
"urls": [
"bzz-raw://34d059d6109540c0397389072e30ece71e8411d2743dab22893c81ff2c213d9d",
"dweb:/ipfs/QmQEFReYHgYFf26nnJS4A2WWF3wg3QscsBAKMfmfj9dnnF"
]
},
"localhost/proxy/contracts/interfaces/IMateriaPair.sol": {
"keccak256": "0x9bebb503cf622a7e7328ff812b8817e1d3b22e273d345083118e92522b810693",
"urls": [
"bzz-raw://a0b3308a2e9f28a85ec586372329792eaf32562c7293af0657ef03f8d04bc7f9",
"dweb:/ipfs/QmegwdpH1wYAUtTwKu1yUiekj13CB251znNc4Kb2Jf5b2L"
]
},
"localhost/proxy/contracts/libraries/MateriaLibrary.sol": {
"keccak256": "0x84b8cdd67ecab6d9bd442140670a16c4608fefdcaa702c25339a89b0527381c6",
"license": "GPL3",
"urls": [
"bzz-raw://f2ce38a46f0ddc6b043ba9e91590f482553fc96c7bec769825d36089f6d08887",
"dweb:/ipfs/QmXVp7AwoHFm4whU26XE9kvaYmfb4QyXrzsqaEGXvgybFN"
]
},
"localhost/proxy/contracts/libraries/SafeMath.sol": {
"keccak256": "0xe04b4ed1aab8779734d012e907f742e8b6e8ad539c01d5466b9eb58752fdc514",
"license": "UNLICENSED",
"urls": [
"bzz-raw://667941f2ea3584629681a303e988ffcbc33a2e8313f4658ad8700b2209b3ea4d",
"dweb:/ipfs/QmafqLrntkf6gRyhAHt4wYojdHwuZXeD8gcE7FJWW6rKWm"
]
},
"localhost/proxy/contracts/libraries/TransferHelper.sol": {
"keccak256": "0xb2c4a89b2ee4538b41badb2b6e2d141deeca68be9298ec3e7f98b6812b4ee2a2",
"license": "GPL-3.0-or-later",
"urls": [
"bzz-raw://9bf3e8a68c38541e0425dfd1f825371086a9a18eaadf12000e00b0440156198b",
"dweb:/ipfs/QmcfasSoXaDg5A5dscMiKH41fWnCFnbJfpSAzn5gbMaVxd"
]
}
},
"version": 1
}