@price-oracle/v1-core-interfaces
Version:
Price Oracle v1 Core Interfaces and needed integration files
2,752 lines • 119 kB
JSON
{
"abi": [
{
"inputs": [
{
"internalType": "contract ILockManager",
"name": "_lockManager",
"type": "address"
}
],
"name": "LockedWethSecondaryMarket_InvalidLockManager",
"type": "error"
},
{
"inputs": [
{
"internalType": "contract IPoolManager",
"name": "_poolManager",
"type": "address"
}
],
"name": "LockedWethSecondaryMarket_InvalidPoolManager",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint16",
"name": "_discount",
"type": "uint16"
},
{
"internalType": "uint16",
"name": "_maxDiscount",
"type": "uint16"
}
],
"name": "LockedWethSecondaryMarket_MaxDiscountExceeded",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_orderId",
"type": "uint256"
}
],
"name": "LockedWethSecondaryMarket_NotOrderOwner",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_orderId",
"type": "uint256"
}
],
"name": "LockedWethSecondaryMarket_OrderNotAvailable",
"type": "error"
},
{
"inputs": [],
"name": "LockedWethSecondaryMarket_ZeroAmount",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"components": [
{
"internalType": "contract ILockManager",
"name": "lockedWethToken",
"type": "address"
},
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "uint16",
"name": "discount",
"type": "uint16"
}
],
"indexed": false,
"internalType": "struct ILockedWethSecondaryMarket.SellOrder",
"name": "_order",
"type": "tuple"
},
{
"indexed": false,
"internalType": "address",
"name": "_buyer",
"type": "address"
}
],
"name": "SellOrderBought",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"components": [
{
"internalType": "contract ILockManager",
"name": "lockedWethToken",
"type": "address"
},
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "uint16",
"name": "discount",
"type": "uint16"
}
],
"indexed": false,
"internalType": "struct ILockedWethSecondaryMarket.SellOrder",
"name": "_order",
"type": "tuple"
}
],
"name": "SellOrderCancelled",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"components": [
{
"internalType": "contract ILockManager",
"name": "lockedWethToken",
"type": "address"
},
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "uint16",
"name": "discount",
"type": "uint16"
}
],
"indexed": false,
"internalType": "struct ILockedWethSecondaryMarket.SellOrder",
"name": "_order",
"type": "tuple"
}
],
"name": "SellOrderPosted",
"type": "event"
},
{
"inputs": [],
"name": "POOL_MANAGER_FACTORY",
"outputs": [
{
"internalType": "contract IPoolManagerFactory",
"name": "_poolManagerFactory",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "WETH",
"outputs": [
{
"internalType": "contract IERC20",
"name": "_weth",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_orderId",
"type": "uint256"
}
],
"name": "buyOrder",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_orderId",
"type": "uint256"
}
],
"name": "cancelOrder",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_startFrom",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
}
],
"name": "getSellOrders",
"outputs": [
{
"components": [
{
"internalType": "contract ILockManager",
"name": "lockedWethToken",
"type": "address"
},
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "uint16",
"name": "discount",
"type": "uint16"
}
],
"internalType": "struct ILockedWethSecondaryMarket.SellOrder[]",
"name": "_sellOrders",
"type": "tuple[]"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract ILockManager",
"name": "_lockedWethToken",
"type": "address"
},
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
},
{
"internalType": "uint16",
"name": "_discount",
"type": "uint16"
}
],
"name": "postOrder",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_orderId",
"type": "uint256"
}
],
"name": "sellOrders",
"outputs": [
{
"internalType": "contract ILockManager",
"name": "_lockedWethToken",
"type": "address"
},
{
"internalType": "uint256",
"name": "_id",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
},
{
"internalType": "address",
"name": "_owner",
"type": "address"
},
{
"internalType": "uint16",
"name": "_discount",
"type": "uint16"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "sellOrdersCount",
"outputs": [
{
"internalType": "uint256",
"name": "_sellOrdersCount",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}
],
"bytecode": {
"object": "0x",
"sourceMap": "",
"linkReferences": {}
},
"deployedBytecode": {
"object": "0x",
"sourceMap": "",
"linkReferences": {}
},
"methodIdentifiers": {
"POOL_MANAGER_FACTORY()": "daa6f534",
"WETH()": "ad5c4648",
"buyOrder(uint256)": "22f85eaa",
"cancelOrder(uint256)": "514fcac7",
"getSellOrders(uint256,uint256)": "fff3c5b4",
"postOrder(address,uint256,uint16)": "0a9a1022",
"sellOrders(uint256)": "4a8393f3",
"sellOrdersCount()": "2ad4530a"
},
"rawMetadata": "{\"compiler\":{\"version\":\"0.8.10+commit.fc410830\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"contract ILockManager\",\"name\":\"_lockManager\",\"type\":\"address\"}],\"name\":\"LockedWethSecondaryMarket_InvalidLockManager\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"contract IPoolManager\",\"name\":\"_poolManager\",\"type\":\"address\"}],\"name\":\"LockedWethSecondaryMarket_InvalidPoolManager\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_discount\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"_maxDiscount\",\"type\":\"uint16\"}],\"name\":\"LockedWethSecondaryMarket_MaxDiscountExceeded\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_orderId\",\"type\":\"uint256\"}],\"name\":\"LockedWethSecondaryMarket_NotOrderOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_orderId\",\"type\":\"uint256\"}],\"name\":\"LockedWethSecondaryMarket_OrderNotAvailable\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"LockedWethSecondaryMarket_ZeroAmount\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"components\":[{\"internalType\":\"contract ILockManager\",\"name\":\"lockedWethToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"discount\",\"type\":\"uint16\"}],\"indexed\":false,\"internalType\":\"struct ILockedWethSecondaryMarket.SellOrder\",\"name\":\"_order\",\"type\":\"tuple\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_buyer\",\"type\":\"address\"}],\"name\":\"SellOrderBought\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"components\":[{\"internalType\":\"contract ILockManager\",\"name\":\"lockedWethToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"discount\",\"type\":\"uint16\"}],\"indexed\":false,\"internalType\":\"struct ILockedWethSecondaryMarket.SellOrder\",\"name\":\"_order\",\"type\":\"tuple\"}],\"name\":\"SellOrderCancelled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"components\":[{\"internalType\":\"contract ILockManager\",\"name\":\"lockedWethToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"discount\",\"type\":\"uint16\"}],\"indexed\":false,\"internalType\":\"struct ILockedWethSecondaryMarket.SellOrder\",\"name\":\"_order\",\"type\":\"tuple\"}],\"name\":\"SellOrderPosted\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"POOL_MANAGER_FACTORY\",\"outputs\":[{\"internalType\":\"contract IPoolManagerFactory\",\"name\":\"_poolManagerFactory\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"WETH\",\"outputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"_weth\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_orderId\",\"type\":\"uint256\"}],\"name\":\"buyOrder\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_orderId\",\"type\":\"uint256\"}],\"name\":\"cancelOrder\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_startFrom\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"getSellOrders\",\"outputs\":[{\"components\":[{\"internalType\":\"contract ILockManager\",\"name\":\"lockedWethToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"discount\",\"type\":\"uint16\"}],\"internalType\":\"struct ILockedWethSecondaryMarket.SellOrder[]\",\"name\":\"_sellOrders\",\"type\":\"tuple[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract ILockManager\",\"name\":\"_lockedWethToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"uint16\",\"name\":\"_discount\",\"type\":\"uint16\"}],\"name\":\"postOrder\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_orderId\",\"type\":\"uint256\"}],\"name\":\"sellOrders\",\"outputs\":[{\"internalType\":\"contract ILockManager\",\"name\":\"_lockedWethToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"_discount\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"sellOrdersCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"_sellOrdersCount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"errors\":{\"LockedWethSecondaryMarket_MaxDiscountExceeded(uint16,uint16)\":[{\"params\":{\"_discount\":\"The invalid discount value\",\"_maxDiscount\":\"The max discount value allowed\"}}],\"LockedWethSecondaryMarket_NotOrderOwner(uint256)\":[{\"params\":{\"_orderId\":\"The id of the order\"}}],\"LockedWethSecondaryMarket_OrderNotAvailable(uint256)\":[{\"details\":\"The order could not be available because it was already sold or canceled\",\"params\":{\"_orderId\":\"The order's id used to call the buy function\"}}]},\"events\":{\"SellOrderBought((address,uint256,uint256,address,uint16),address)\":{\"params\":{\"_buyer\":\"The address of the account that purchased the order\",\"_order\":\"The order bought\"}},\"SellOrderCancelled((address,uint256,uint256,address,uint16))\":{\"params\":{\"_order\":\"The order canceled\"}},\"SellOrderPosted((address,uint256,uint256,address,uint16))\":{\"params\":{\"_order\":\"The sell order posted\"}}},\"kind\":\"dev\",\"methods\":{\"POOL_MANAGER_FACTORY()\":{\"returns\":{\"_poolManagerFactory\":\"The pool manager factory\"}},\"WETH()\":{\"returns\":{\"_weth\":\"The WETH token\"}},\"buyOrder(uint256)\":{\"details\":\"The sell order is bought with WETH tokens and cannot be purchased partially\",\"params\":{\"_orderId\":\"The id of the sell order to be bought\"}},\"cancelOrder(uint256)\":{\"details\":\"The caller must be the order owner\",\"params\":{\"_orderId\":\"The id of the order to be canceled\"}},\"getSellOrders(uint256,uint256)\":{\"details\":\"Minimum _startFrom is 1; ids start from 1\",\"params\":{\"_amount\":\"The maximum amount of orders to retrieve\",\"_startFrom\":\"The index from where to start the pagination\"},\"returns\":{\"_sellOrders\":\"The paginated orders posted\"}},\"postOrder(address,uint256,uint16)\":{\"details\":\"The amount is represented in WETH tokens The LockedWeth tokens remain in the poster account The discount value must be less than the discount precision\",\"params\":{\"_amount\":\"The amount of LockedWeth tokens to be sold\",\"_discount\":\"The discount value\",\"_lockedWethToken\":\"The locked WETH\"}},\"sellOrders(uint256)\":{\"params\":{\"_orderId\":\"The order id\"}},\"sellOrdersCount()\":{\"returns\":{\"_sellOrdersCount\":\"The sell orders count\"}}},\"title\":\"LockedWethSecondaryMarket contract\",\"version\":1},\"userdoc\":{\"errors\":{\"LockedWethSecondaryMarket_InvalidLockManager(address)\":[{\"notice\":\"Thrown when the lock manager is invalid\"}],\"LockedWethSecondaryMarket_InvalidPoolManager(address)\":[{\"notice\":\"Thrown when the pool manager is invalid\"}],\"LockedWethSecondaryMarket_MaxDiscountExceeded(uint16,uint16)\":[{\"notice\":\"Thrown when the discount value exceeds the max discount\"}],\"LockedWethSecondaryMarket_NotOrderOwner(uint256)\":[{\"notice\":\"Thrown when trying to delete an order and the caller is not the owner\"}],\"LockedWethSecondaryMarket_OrderNotAvailable(uint256)\":[{\"notice\":\"Thrown when trying to buy a sell order whose amount is zero\"}],\"LockedWethSecondaryMarket_ZeroAmount()\":[{\"notice\":\"Thrown when the order amount is zero\"}]},\"events\":{\"SellOrderBought((address,uint256,uint256,address,uint16),address)\":{\"notice\":\"Emitted when a sell order is bought\"},\"SellOrderCancelled((address,uint256,uint256,address,uint16))\":{\"notice\":\"Emitted when a sell order is canceled\"},\"SellOrderPosted((address,uint256,uint256,address,uint16))\":{\"notice\":\"Emitted when a new LockedWeth sell order is posted\"}},\"kind\":\"user\",\"methods\":{\"POOL_MANAGER_FACTORY()\":{\"notice\":\"Returns the pool manager factory contract\"},\"WETH()\":{\"notice\":\"Returns the WETH contract\"},\"buyOrder(uint256)\":{\"notice\":\"Buys a sell order\"},\"cancelOrder(uint256)\":{\"notice\":\"Cancels a sell order\"},\"getSellOrders(uint256,uint256)\":{\"notice\":\"Returns pagination of the orders posted\"},\"postOrder(address,uint256,uint16)\":{\"notice\":\"Posts a LockedWeth sell limit order\"},\"sellOrders(uint256)\":{\"notice\":\"Returns a sell order\"},\"sellOrdersCount()\":{\"notice\":\"Returns the sell orders count\"}},\"notice\":\"This contract manages LockedWeth tokens sell orders\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"solidity/interfaces/periphery/ILockedWethSecondaryMarket.sol\":\"ILockedWethSecondaryMarket\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":20000},\"remappings\":[\":@contracts/=solidity/contracts/\",\":@defi-wonderland/=node_modules/@defi-wonderland/\",\":@interfaces/=solidity/interfaces/\",\":@openzeppelin/=node_modules/@openzeppelin/\",\":@test/=solidity/test/\",\":@uniswap/=node_modules/@uniswap/\",\":@uniswap/v3-core/=node_modules/@uniswap/v3-core/\",\":@uniswap/v3-periphery/=node_modules/@uniswap/v3-periphery/\",\":base64-sol/=node_modules/base64-sol/\",\":chainlink/=node_modules/chainlink/contracts/src/v0.8/\",\":ds-test/=node_modules/ds-test/src/\",\":forge-std/=node_modules/forge-std/src/\",\":isolmate/=node_modules/@defi-wonderland/isolmate/src/\",\":keep3r-v2/=node_modules/keep3r-v2/\",\":keep3r/=node_modules/keep3r-v2/solidity/\",\":openzeppelin-solidity/=node_modules/openzeppelin-solidity/\",\":oz/=node_modules/openzeppelin-solidity/contracts/\",\":uni-v3-core/=node_modules/@uniswap/v3-core/contracts/\",\":uni-v3-periphery/=node_modules/@uniswap/v3-periphery/contracts/\",\":weird-erc20/=node_modules/weird-erc20/src/\"]},\"sources\":{\"node_modules/@defi-wonderland/isolmate/src/interfaces/tokens/IERC20.sol\":{\"keccak256\":\"0xea23a986a9efba47639b24eae7dbfd6936be01e5fc3530202fe1f4b8bb4131b8\",\"license\":\"AGPL-3.0-only\",\"urls\":[\"bzz-raw://37e08545e18de038023d32de846032533af9513c0b7b84a6c5c371941b6bd5f7\",\"dweb:/ipfs/QmRYNSXwiJ9wE36ogE5J77g6pbGK7T7qqqAF99DZq3eW5B\"]},\"node_modules/@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol\":{\"keccak256\":\"0xfe6113d518466cd6652c85b111e01f33eb62157f49ae5ed7d5a3947a2044adb1\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://1c42b9e6f5902ac38dd43e25750939baa7e0c1425dc75afd717c4412731065d5\",\"dweb:/ipfs/QmWaoacnzsucTvBME2o7YgZBZMhaHv7fkj83htHMVWJKWh\"]},\"node_modules/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolActions.sol\":{\"keccak256\":\"0x9453dd0e7442188667d01d9b65de3f1e14e9511ff3e303179a15f6fc267f7634\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://982f4328f956c3e60e67501e759eb292ac487f76460c774c50e9ae4fcc92aae5\",\"dweb:/ipfs/QmRnzEDsaqtd9PJEVcgQi7p5aV5pMSvRUoGZJAdwFUJxgZ\"]},\"node_modules/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolDerivedState.sol\":{\"keccak256\":\"0xe603ac5b17ecdee73ba2b27efdf386c257a19c14206e87eee77e2017b742d9e5\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://8febc9bdb399a4d94bb89f5377732652e2400e4a8dee808201ade6848f9004e7\",\"dweb:/ipfs/QmaKDqYYFU4d2W2iN77aDHptfbFmYZRrMYXHeGpJmM8C1c\"]},\"node_modules/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolEvents.sol\":{\"keccak256\":\"0x8071514d0fe5d17d6fbd31c191cdfb703031c24e0ece3621d88ab10e871375cd\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d0b571930cc7488b1d546a7e9cea7c52d8b3c4e207da657ed0e0db7343b8cd03\",\"dweb:/ipfs/QmaGK6vVwB95QSTR1XMYvrh7ivYAYZxi3fD7v6VMA4jZ39\"]},\"node_modules/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolImmutables.sol\":{\"keccak256\":\"0xf6e5d2cd1139c4c276bdbc8e1d2b256e456c866a91f1b868da265c6d2685c3f7\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://b99c8c9ae8e27ee6559e5866bea82cbc9ffc8247f8d15b7422a4deb287d4d047\",\"dweb:/ipfs/QmfL8gaqt3ffAnm6nVj5ksuNpLygXuL3xq5VBqrkwC2JJ3\"]},\"node_modules/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolOwnerActions.sol\":{\"keccak256\":\"0x759b78a2918af9e99e246dc3af084f654e48ef32bb4e4cb8a966aa3dcaece235\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://64144fb96e1c7fdba87305acadb98a198d26a3d46c097cb3a666e567f6f29735\",\"dweb:/ipfs/QmUnWVwN9FKB9uV5Pr8YfLpWZnYM2DENnRMaadZ492JS9u\"]},\"node_modules/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolState.sol\":{\"keccak256\":\"0x852dc1f5df7dcf7f11e7bb3eed79f0cea72ad4b25f6a9d2c35aafb48925fd49f\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://ed63907c38ff36b0e22bc9ffc53e791ea74f0d4f0e7c257fdfb5aaf8825b1f0f\",\"dweb:/ipfs/QmSQrckghEjs6HVsA5GVgpNpZWvTXMY5eQLF7cN6deFeEg\"]},\"node_modules/keep3r-v2/solidity/interfaces/IKeep3r.sol\":{\"keccak256\":\"0x273a39984c1475c60182e636bb91a1b89ec98646a036cac6a87067869b3adeb9\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://13fa95e5526a22c48222b74cbbaa2a7b80126e02112e96fec38d0d75bb20d450\",\"dweb:/ipfs/QmYj3AUhMYmiG9MMqbK9VUFqgnn4X6jaZqKG5myFBYYmmv\"]},\"node_modules/keep3r-v2/solidity/interfaces/peripherals/IBaseErrors.sol\":{\"keccak256\":\"0x9130019a08d9eaedfb920a323fed5c7f409736cd918f1a32921c93551b3ee00e\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://5c4ae0dc1b01e1eaf0e795631c0ae2c761b70d3aa9b6883a3948462cfecc06e6\",\"dweb:/ipfs/QmaUsKrdPJqcQnVxb23f2obQyWeK2C3Nikf6LqibaqMLCz\"]},\"node_modules/keep3r-v2/solidity/interfaces/peripherals/IDustCollector.sol\":{\"keccak256\":\"0x38dce228111f2a3c6b26ac09c5652c3f1f184c4cfe50d11ff0958ef6a50683bb\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6f7bfe74d44a4b1e1e8a73892e44cb7f3a0086ae012c46e354bf1b40a16ded52\",\"dweb:/ipfs/QmeP3F3i2wXRy5yzSWtazNqH8KyKdncFto8AdB9M7VfjUW\"]},\"node_modules/keep3r-v2/solidity/interfaces/peripherals/IGovernable.sol\":{\"keccak256\":\"0x3284624b2479bbf97c821f37c93a096dcb869b30bbf9b20d30d1800f9535452c\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a058f2e2d3d09fe89230e5e4292568c2a14e24a4cf953d4284daa29cf4de4fa0\",\"dweb:/ipfs/QmSGL7FDT29bvfa5zvoq9PkNVWSpR6ZY523axPXoSq3u7M\"]},\"node_modules/keep3r-v2/solidity/interfaces/peripherals/IKeep3rAccountance.sol\":{\"keccak256\":\"0xf4748c236ddf409e45e7169c735e2fc54e627b2b3ccd189ebb438ad768f1deb1\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ad6a28e2d17b5eed1a365f995349203053d964ad78c64eb7c0fd4eed0a202bf1\",\"dweb:/ipfs/QmaLH6GkuTkLJ8AukTLXrvSDiS8KAFwDkbynPURTcsumzF\"]},\"node_modules/keep3r-v2/solidity/interfaces/peripherals/IKeep3rDisputable.sol\":{\"keccak256\":\"0x002b9b4c75e62d48d74b6447649d39eb5c1e128d2523bb11e08e9cd3e27b1f70\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://82c436aaecd1b3152a796c14707ac93a8d2988db101e470a8b2b84c23f3d506f\",\"dweb:/ipfs/QmYUgdQFmZic2c6RUxxWNkSUvqM11B1Ti6rgFZMFRzsT7B\"]},\"node_modules/keep3r-v2/solidity/interfaces/peripherals/IKeep3rJobs.sol\":{\"keccak256\":\"0x08915189f1a9484d17a51b7fb343b765b9edba29062bb644af9663af18f03e34\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f5b549c9264d1783a22c8980187c97f2bc7db30c61cd2b1652ed1b184e49d86b\",\"dweb:/ipfs/QmeJR2qYWNkEM1qCwiKczQdfBpXUp45rS3o8Zf43AKoSaR\"]},\"node_modules/keep3r-v2/solidity/interfaces/peripherals/IKeep3rKeepers.sol\":{\"keccak256\":\"0xc95e6bba82a8371c6bd15a8e9d0df91c826b5050b8ee01d913c1c13a4e92a49b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://370a48951cc8c8d1b96507683dbf8f798605867388e6f50e29e1741a8873d46d\",\"dweb:/ipfs/QmVD8zzzcaUUxrVrodoPfHV5zdXqt6ZXKfSshy43gWwsNt\"]},\"node_modules/keep3r-v2/solidity/interfaces/peripherals/IKeep3rParameters.sol\":{\"keccak256\":\"0x942f99c6e3b229a551faaae8f03000b934b20502a7cfade14780508201fd098e\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://b994c19a217b30352f7a6ca67044bde835d06ddfe51a6b651076d99a7214e1b0\",\"dweb:/ipfs/Qmdb1gc4xtQLSa3nLuen8GK7esb8tj3KgmYvzY2ovvraw1\"]},\"node_modules/keep3r-v2/solidity/interfaces/peripherals/IKeep3rRoles.sol\":{\"keccak256\":\"0xe6eca166cf6ad99e5379d754030222873bb9868ff3e2a76de815a438ead533a2\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://7d5036cc038714163c3c79479fe00ff0070e5a0a155e00e562d1d645a636b76b\",\"dweb:/ipfs/QmSZPJntRruGnXFEYuUrBrUSfqDDzJ5awMXx2r1nyDAQbd\"]},\"solidity/interfaces/IFeeManager.sol\":{\"keccak256\":\"0x601f6a0b64273647af20e1c59aeffe2086be4c4978773d0adf7c2bfe41c2c727\",\"license\":\"AGPL-3.0-only\",\"urls\":[\"bzz-raw://e2c4dc963c1c515fa7ef18bce567fcee6e7acf895031adcfe3fdeb8f7e37caed\",\"dweb:/ipfs/QmWsu86sEAFS2egVJiYSvykcKv9fUfscepuKTfVsat8Bok\"]},\"solidity/interfaces/ILockManager.sol\":{\"keccak256\":\"0xa232140a3c96344e2143d9e7c465097c77304b12c5267fb9e7c22ca467c11b57\",\"license\":\"AGPL-3.0-only\",\"urls\":[\"bzz-raw://59e01db60aef7cb9add55070a96a0dfc297d83b99f70562e986e385d3cdb8da8\",\"dweb:/ipfs/QmaAHyD6swNuF5gYsxpyhyzxq11bMUwFUYQZiAezX98JTX\"]},\"solidity/interfaces/ILockManagerFactory.sol\":{\"keccak256\":\"0xae1530bf74a0d9f1e71abec4cce3462b46ad53b067ef0022795929953b23f817\",\"license\":\"AGPL-3.0-only\",\"urls\":[\"bzz-raw://2505cbc50886430000811c75a4ed31c8392f8b476c1d43720bd1aa63ae2a090b\",\"dweb:/ipfs/QmPaN3AkvGVaQYdwMDeGjJrYkEqpmfHWvb4xfG2ZuftSER\"]},\"solidity/interfaces/ILockManagerGovernor.sol\":{\"keccak256\":\"0x6dbdf9194a2a45a434fd31cc62acff5003d53a949baef6a454d5dea97dd29ea3\",\"license\":\"AGPL-3.0-only\",\"urls\":[\"bzz-raw://6dc8fe41a53db8c09982e78c88036dcc9c9c2bcb45a4d766b40b631a8df33f5b\",\"dweb:/ipfs/QmcFq2LTpZT7ZzNw6VBkXbSLuuX9LGcshzjP7xX9Bzr2cS\"]},\"solidity/interfaces/IPoolManager.sol\":{\"keccak256\":\"0xf795ff3abbe3b2b4def474a505e78569d41086da3f6d439f732b9ee5295ba49d\",\"license\":\"AGPL-3.0-only\",\"urls\":[\"bzz-raw://62041119416c6418fec45bbaca62fba107acda209dd12ef040a8dab1b65d3878\",\"dweb:/ipfs/QmbB2BeWsmHRRxbeQY7XNQekcaJP9j97n9juXU7khsUzgN\"]},\"solidity/interfaces/IPoolManagerDeployer.sol\":{\"keccak256\":\"0xbc4c205c007a713aa9c166982ce77f208456749f437cc782d6500d6f456f4113\",\"license\":\"AGPL-3.0-only\",\"urls\":[\"bzz-raw://70e7239fa222d567ac9851d971c7cbb5ee3ebfa52fd04692db4feb0e21350016\",\"dweb:/ipfs/QmZhFWjSSjYNbggeeo4cUhxinX9vGPAGuUkMqMVxZmnd9D\"]},\"solidity/interfaces/IPoolManagerFactory.sol\":{\"keccak256\":\"0x0aea0b427578023099fb9a1bf09a20762c1c958ef5859c762fc673d3314e97cd\",\"license\":\"AGPL-3.0-only\",\"urls\":[\"bzz-raw://b8fc29e8f15ef3eaa6262189ac28960c7960e52d2a8de23d6451e3189ae80cc9\",\"dweb:/ipfs/QmYKicDyJi2Lw8YuY92SFyBzfDmvBGuECpH6mm15wbi7J3\"]},\"solidity/interfaces/IPoolManagerGovernor.sol\":{\"keccak256\":\"0x67020a4d2879b26138ffe80168e12caeacb0cdc3852de452a35946a0bab3ff13\",\"license\":\"AGPL-3.0-only\",\"urls\":[\"bzz-raw://c6b07c8f824577fce45baaf9a1643b7c1a51398396a47e08306eef8ccdfe87ba\",\"dweb:/ipfs/QmbeATmPW1T9GyrbguSkEkPKJLUS4ALH5BFLs1n38PZnuv\"]},\"solidity/interfaces/jobs/ICardinalityJob.sol\":{\"keccak256\":\"0xb2ea5ab5837457a18099b93596d0bb21d0eba97679219332b2c600027acb7efc\",\"license\":\"AGPL-3.0-only\",\"urls\":[\"bzz-raw://36a717206961aa821014c799c45e5d4987042f0447f2da70b0b26e6e348cc4c8\",\"dweb:/ipfs/QmR4E7L8smEL7KrGRCXaXoP45P3C9AmHopgnvhZQhrFEAY\"]},\"solidity/interfaces/jobs/IFeeCollectorJob.sol\":{\"keccak256\":\"0x719f4225d74474973cb4c58a524661dd5b0d437c17258f7be1f028377a2a1ed2\",\"license\":\"AGPL-3.0-only\",\"urls\":[\"bzz-raw://e414800cc7c4c064caa2e57f243a15ec88a4fa72919d568da944e30a176353e7\",\"dweb:/ipfs/QmRpJdh9C5TCArQPYD2qq1tjNeaQVUHGhRh9YtsdxqAreh\"]},\"solidity/interfaces/jobs/IKeep3rJob.sol\":{\"keccak256\":\"0x537540063984e38ff186592936016ac3b452a21da322ae8fb9bf173b8c2fabe8\",\"license\":\"AGPL-3.0-only\",\"urls\":[\"bzz-raw://847d7cc63dd034253aeeb2fdea6225f7b27fda867888b7e21297838f1eb05c1f\",\"dweb:/ipfs/Qmeaci4yeX8rUXamD9cp3biJBGUxYUkJTkLTWf4vcsYJFt\"]},\"solidity/interfaces/periphery/IGovernorMiniBravo.sol\":{\"keccak256\":\"0x3385738365ff7ba2aaac8a1e507f571e3e5bd97988241b6678ed4aa1d61cfbae\",\"license\":\"AGPL-3.0-only\",\"urls\":[\"bzz-raw://fd624c0e163d0a174c078c4cb450eefa84a86dc70ccdb8625636e1963866cffd\",\"dweb:/ipfs/QmYVVRctxeYgPeKKUPBSuwZ11uU3EPf4opYuLA7aJWKGAB\"]},\"solidity/interfaces/periphery/ILockedWethSecondaryMarket.sol\":{\"keccak256\":\"0x0444ecbe5a01ba937674bb31f3b49b8ea0dfeb5cfa4a759aa4ca8a49318d13cf\",\"license\":\"AGPL-3.0-only\",\"urls\":[\"bzz-raw://3a9a85cec9cef1a62535bfc71be0b66631a6a8179a124047383de05c1d034396\",\"dweb:/ipfs/QmPEVDxKVaAEtXWPK2w6XDY6XBUfH7gLza47ZX94fRYUBS\"]},\"solidity/interfaces/periphery/IPriceOracle.sol\":{\"keccak256\":\"0x27e349905c9e686510cd51ccb3f11c6617bc3135c8188215db980d8fcc02ef26\",\"license\":\"AGPL-3.0-only\",\"urls\":[\"bzz-raw://1c0096e91e4ce57273090f452af1f8cbc7112c57359404a9920070b969213d08\",\"dweb:/ipfs/QmW56eqevPWT9vzYq3gGC47DaFfEb2QEr3gFK4Tvt1WcjL\"]},\"solidity/interfaces/periphery/IPriceOracleCorrections.sol\":{\"keccak256\":\"0x53b8f395595d23beba0d5295fa494fc28b4452d2526fe8da5932e98ef9b3e12f\",\"license\":\"AGPL-3.0-only\",\"urls\":[\"bzz-raw://e3795b5aacfcd9a3caf85291ed73d17fd37621574072950dad79ecbccbc0d6c4\",\"dweb:/ipfs/QmPK9LKsCS5NJZVktcngDnkDBbkTqoTEkvUmEEwaCj4sHJ\"]},\"solidity/interfaces/strategies/IStrategy.sol\":{\"keccak256\":\"0x4d9be7375229a6b01fdadda608b30096a90f1f828ab21b12937ce601c83b83b0\",\"license\":\"AGPL-3.0-only\",\"urls\":[\"bzz-raw://549b50053afaa6782060bb6d6568b728c874dbab422077b4a9d08f70acd83adc\",\"dweb:/ipfs/QmWniAa47EZfDfhqPKYgVeaQ6FFbou6JsVquKyXovcxPhU\"]},\"solidity/interfaces/utils/IPriceGovernable.sol\":{\"keccak256\":\"0xd58d6f0d8634ccd0e4ebf04a73c48b6741e221c66c369f3d09ec7891e96a266f\",\"license\":\"AGPL-3.0-only\",\"urls\":[\"bzz-raw://8e838c65618d08f0300e555d520e8062eae0d09f387812437a9dad0fd782ae9b\",\"dweb:/ipfs/QmYarNLYUK192seJ4hgB4nHjzzb5sxS8Bsm1K4aA21fLuX\"]},\"solidity/interfaces/utils/IPricePausable.sol\":{\"keccak256\":\"0x32147e0eac7998813804d67fef37ca41796e9d12d9cdd30206d5fb04badba29e\",\"license\":\"AGPL-3.0-only\",\"urls\":[\"bzz-raw://0cebfa2c49375ed9140244cead0d3f4c501970343ccfdd27c7fe41cc2b937ff4\",\"dweb:/ipfs/QmPZ4AY4KFSYmJnHnmwH33kuadY8t4JnnH8hjcVThVB87E\"]}},\"version\":1}",
"metadata": {
"compiler": {
"version": "0.8.10+commit.fc410830"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [
{
"internalType": "contract ILockManager",
"name": "_lockManager",
"type": "address"
}
],
"type": "error",
"name": "LockedWethSecondaryMarket_InvalidLockManager"
},
{
"inputs": [
{
"internalType": "contract IPoolManager",
"name": "_poolManager",
"type": "address"
}
],
"type": "error",
"name": "LockedWethSecondaryMarket_InvalidPoolManager"
},
{
"inputs": [
{
"internalType": "uint16",
"name": "_discount",
"type": "uint16"
},
{
"internalType": "uint16",
"name": "_maxDiscount",
"type": "uint16"
}
],
"type": "error",
"name": "LockedWethSecondaryMarket_MaxDiscountExceeded"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_orderId",
"type": "uint256"
}
],
"type": "error",
"name": "LockedWethSecondaryMarket_NotOrderOwner"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_orderId",
"type": "uint256"
}
],
"type": "error",
"name": "LockedWethSecondaryMarket_OrderNotAvailable"
},
{
"inputs": [],
"type": "error",
"name": "LockedWethSecondaryMarket_ZeroAmount"
},
{
"inputs": [
{
"internalType": "struct ILockedWethSecondaryMarket.SellOrder",
"name": "_order",
"type": "tuple",
"components": [
{
"internalType": "contract ILockManager",
"name": "lockedWethToken",
"type": "address"
},
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "uint16",
"name": "discount",
"type": "uint16"
}
],
"indexed": false
},
{
"internalType": "address",
"name": "_buyer",
"type": "address",
"indexed": false
}
],
"type": "event",
"name": "SellOrderBought",
"anonymous": false
},
{
"inputs": [
{
"internalType": "struct ILockedWethSecondaryMarket.SellOrder",
"name": "_order",
"type": "tuple",
"components": [
{
"internalType": "contract ILockManager",
"name": "lockedWethToken",
"type": "address"
},
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "uint16",
"name": "discount",
"type": "uint16"
}
],
"indexed": false
}
],
"type": "event",
"name": "SellOrderCancelled",
"anonymous": false
},
{
"inputs": [
{
"internalType": "struct ILockedWethSecondaryMarket.SellOrder",
"name": "_order",
"type": "tuple",
"components": [
{
"internalType": "contract ILockManager",
"name": "lockedWethToken",
"type": "address"
},
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "uint16",
"name": "discount",
"type": "uint16"
}
],
"indexed": false
}
],
"type": "event",
"name": "SellOrderPosted",
"anonymous": false
},
{
"inputs": [],
"stateMutability": "view",
"type": "function",
"name": "POOL_MANAGER_FACTORY",
"outputs": [
{
"internalType": "contract IPoolManagerFactory",
"name": "_poolManagerFactory",
"type": "address"
}
]
},
{
"inputs": [],
"stateMutability": "view",
"type": "function",
"name": "WETH",
"outputs": [
{
"internalType": "contract IERC20",
"name": "_weth",
"type": "address"
}
]
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_orderId",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function",
"name": "buyOrder"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_orderId",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function",
"name": "cancelOrder"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_startFrom",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function",
"name": "getSellOrders",
"outputs": [
{
"internalType": "struct ILockedWethSecondaryMarket.SellOrder[]",
"name": "_sellOrders",
"type": "tuple[]",
"components": [
{
"internalType": "contract ILockManager",
"name": "lockedWethToken",
"type": "address"
},
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "uint16",
"name": "discount",
"type": "uint16"
}
]
}
]
},
{
"inputs": [
{
"internalType": "contract ILockManager",
"name": "_lockedWethToken",
"type": "address"
},
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
},
{
"internalType": "uint16",
"name": "_discount",
"type": "uint16"
}
],
"stateMutability": "nonpayable",
"type": "function",
"name": "postOrder"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_orderId",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function",
"name": "sellOrders",
"outputs": [
{
"internalType": "contract ILockManager",
"name": "_lockedWethToken",
"type": "address"
},
{
"internalType": "uint256",
"name": "_id",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
},
{
"internalType": "address",
"name": "_owner",
"type": "address"
},
{
"internalType": "uint16",
"name": "_discount",
"type": "uint16"
}
]
},
{
"inputs": [],
"stateMutability": "view",
"type": "function",
"name": "sellOrdersCount",
"outputs": [
{
"internalType": "uint256",
"name": "_sellOrdersCount",
"type": "uint256"
}
]
}
],
"devdoc": {
"kind": "dev",
"methods": {
"POOL_MANAGER_FACTORY()": {
"returns": {
"_poolManagerFactory": "The pool manager factory"
}
},
"WETH()": {
"returns": {
"_weth": "The WETH token"
}
},
"buyOrder(uint256)": {
"details": "The sell order is bought with WETH tokens and cannot be purchased partially",
"params": {
"_orderId": "The id of the sell order to be bought"
}
},
"cancelOrder(uint256)": {
"details": "The caller must be the order owner",
"params": {
"_orderId": "The id of the order to be canceled"
}
},
"getSellOrders(uint256,uint256)": {
"details": "Minimum _startFrom is 1; ids start from 1",
"params": {
"_amount": "The maximum amount of orders to retrieve",
"_startFrom": "The index from where to start the pagination"
},
"returns": {
"_sellOrders": "The paginated orders posted"
}
},
"postOrder(address,uint256,uint16)": {
"details": "The amount is represented in WETH tokens The LockedWeth tokens remain in the poster account The discount value must be less than the discount precision",
"params": {
"_amount": "The amount of LockedWeth tokens to be sold",
"_discount": "The discount value",
"_lockedWethToken": "The locked WETH"
}
},
"sellOrders(uint256)": {
"params": {
"_orderId": "The order id"
}
},
"sellOrdersCount()": {
"returns": {
"_sellOrdersCount": "The sell orders count"
}
}
},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {
"POOL_MANAGER_FACTORY()": {
"notice": "Returns the pool manager factory contract"
},
"WETH()": {
"notice": "Returns the WETH contract"
},
"buyOrder(uint256)": {
"notice": "Buys a sell order"
},
"cancelOrder(uint256)": {
"notice": "Cancels a sell order"
},
"getSellOrders(uint256,uint256)": {
"notice": "Returns pagination of the orders posted"
},
"postOrder(address,uint256,uint16)": {
"notice": "Posts a LockedWeth sell limit order"
},
"sellOrders(uint256)": {
"notice": "Returns a sell order"
},
"sellOrdersCount()": {
"notice": "Returns the sell orders count"
}
},
"version": 1
}
},
"settings": {
"remappings": [
":@contracts/=solidity/contracts/",
":@defi-wonderland/=node_modules/@defi-wonderland/",
":@interfaces/=solidity/interfaces/",
":@openzeppelin/=node_modules/@openzeppelin/",
":@test/=solidity/test/",
":@uniswap/=node_modules/@uniswap/",
":@uniswap/v3-core/=node_modules/@uniswap/v3-core/",
":@uniswap/v3-periphery/=node_modules/@uniswap/v3-periphery/",
":base64-sol/=node_modules/base64-sol/",
":chainlink/=node_modules/chainlink/contracts/src/v0.8/",
":ds-test/=node_modules/ds-test/src/",
":forge-std/=node_modules/forge-std/src/",
":isolmate/=node_modules/@defi-wonderland/isolmate/src/",
":keep3r-v2/=node_modules/keep3r-v2/",
":keep3r/=node_modules/keep3r-v2/solidity/",
":openzeppelin-solidity/=node_modules/openzeppelin-solidity/",
":oz/=node_modules/openzeppelin-solidity/contracts/",
":uni-v3-core/=node_modules/@uniswap/v3-core/contracts/",
":uni-v3-periphery/=node_modules/@uniswap/v3-periphery/contracts/",
":weird-erc20/=node_modules/weird-erc20/src/"
],
"optimizer": {
"enabled": true,
"runs": 20000
},
"metadata": {
"bytecodeHash": "ipfs"
},
"compilationTarget": {
"solidity/interfaces/periphery/ILockedWethSecondaryMarket.sol": "ILockedWethSecondaryMarket"
},
"libraries": {}
},
"sources": {
"node_modules/@defi-wonderland/isolmate/src/interfaces/tokens/IERC20.sol": {
"keccak256": "0xea23a986a9efba47639b24eae7dbfd6936be01e5fc3530202fe1f4b8bb4131b8",
"urls": [
"bzz-raw://37e08545e18de038023d32de846032533af9513c0b7b84a6c5c371941b6bd5f7",
"dweb:/ipfs/QmRYNSXwiJ9wE36ogE5J77g6pbGK7T7qqqAF99DZq3eW5B"
],
"license": "AGPL-3.0-only"
},
"node_modules/@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol": {
"keccak256": "0xfe6113d518466cd6652c85b111e01f33eb62157f49ae5ed7d5a3947a2044adb1",
"urls": [
"bzz-raw://1c42b9e6f5902ac38dd43e25750939baa7e0c1425dc75afd717c4412731065d5",
"dweb:/ipfs/QmWaoacnzsucTvBME2o7YgZBZMhaHv7fkj83htHMVWJKWh"
],
"license": "GPL-2.0-or-later"
},
"node_modules/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolActions.sol": {
"keccak256": "0x9453dd0e7442188667d01d9b65de3f1e14e9511ff3e303179a15f6fc267f7634",
"urls": [
"bzz-raw://982f4328f956c3e60e67501e759eb292ac487f76460c774c50e9ae4fcc92aae5",
"dweb:/ipfs/QmRnzEDsaqtd9PJEVcgQi7p5aV5pMSvRUoGZJAdwFUJxgZ"
],
"license": "GPL-2.0-or-later"
},
"node_modules/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolDerivedState.sol": {
"keccak256": "0xe603ac5b17ecdee73ba2b27efdf386c257a19c14206e87eee77e2017b742d9e5",
"urls": [
"bzz-raw://8febc9bdb399a4d94bb89f5377732652e2400e4a8dee808201ade6848f9004e7",
"dweb:/ipfs/QmaKDqYYFU4d2W2iN77aDHptfbFmYZRrMYXHeGpJmM8C1c"
],
"license": "GPL-2.0-or-later"
},
"node_modules/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolEvents.sol": {
"keccak256": "0x8071514d0fe5d17d6fbd31c191cdfb703031c24e0ece3621d88ab10e871375cd",
"urls": [
"bzz-raw://d0b571930cc7488b1d546a7e9cea7c52d8b3c4e207da657ed0e0db7343b8cd03",
"dweb:/ipfs/QmaGK6vVwB95QSTR1XMYvrh7ivYAYZxi3fD7v6VMA4jZ39"
],
"license": "GPL-2.0-or-later"
},
"node_modules/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolImmutables.sol": {
"keccak256": "0xf6e5d2cd1139c4c276bdbc8e1d2b256e456c866a91f1b868da265c6d2685c3f7",
"urls": [
"bzz-raw://b99c8c9ae8e27ee6559e5866bea82cbc9ffc8247f8d15b7422a4deb287d4d047",
"dweb:/ipfs/QmfL8gaqt3ffAnm6nVj5ksuNpLygXuL3xq5VBqrkwC2JJ3"
],
"license": "GPL-2.0-or-later"
},
"node_modules/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolOwnerActions.sol": {
"keccak256": "0x759b78a2918af9e99e246dc3af084f654e48ef32bb4e4cb8a966aa3dcaece235",
"urls": [
"bzz-raw://64144fb96e1c7fdba87305acadb98a198d26a3d46c097cb3a666e567f6f29735",
"dweb:/ipfs/QmUnWVwN9FKB9uV5Pr8YfLpWZnYM2DENnRMaadZ492JS9u"
],
"license": "GPL-2.0-or-later"
},
"node_modules/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolState.sol": {
"keccak256": "0x852dc1f5df7dcf7f11e7bb3eed79f0cea72ad4b25f6a9d2c35aafb48925fd49f",
"urls": [
"bzz-raw://ed63907c38ff36b0e22bc9ffc53e791ea74f0d4f0e7c257fdfb5aaf8825b1f0f",
"dweb:/ipfs/QmSQrckghEjs6HVsA5GVgpNpZWvTXMY5eQLF7cN6deFeEg"
],
"license": "GPL-2.0-or-later"
},
"node_modules/keep3r-v2/solidity/interfaces/IKeep3r.sol": {
"keccak256": "0x273a39984c1475c60182e636bb91a1b89ec98646a036cac6a87067869b3adeb9",
"urls": [
"bzz-raw://13fa95e5526a22c48222b74cbbaa2a7b80126e02112e96fec38d0d75bb20d450",
"dweb:/ipfs/QmYj3AUhMYmiG9MMqbK9VUFqgnn4X6jaZqKG5myFBYYmmv"
],
"license": "MIT"
},
"node_modules/keep3r-v2/solidity/interfaces/peripherals/IBaseErrors.sol": {
"keccak256": "0x9130019a08d9eaedfb920a323fed5c7f409736cd918f1a32921c93551b3ee00e",
"urls": [
"bzz-raw://5c4ae0dc1b01e1eaf0e795631c0ae2c761b70d3aa9b6883a3948462cfecc06e6",
"dweb:/ipfs/QmaUsKrdPJqcQnVxb23f2obQyWeK2C3Nikf6LqibaqMLCz"
],
"license": "MIT"
},
"node_modules/keep3r-v2/solidity/interfaces/peripherals/IDustCollector.sol": {
"keccak256": "0x38dce228111f2a3c6b26ac09c5652c3f1f184c4cfe50d11ff0958ef6a50683bb",
"urls": [
"bzz-raw://6f7bfe74d44a4b1e1e8a73892e44cb7f3a0086ae012c46e354bf1b40a16ded52",
"dweb:/ipfs/QmeP3F3i2wXRy5yzSWtazNqH8KyKdncFto8AdB9M7VfjUW"
],
"license": "MIT"
},
"node_modules/keep3r-v2/solidity/interfaces/peripherals/IGovernable.sol": {
"keccak256": "0x3284624b2479bbf97c821f37c93a096dcb869b30bbf9b20d30d1800f9535452c",
"urls": [
"bzz-raw://a058f2e2d3d09fe89230e5e4292568c2a14e24a4cf953d4284daa29cf4de4fa0",
"dweb:/ipfs/QmSGL7FDT29bvfa5zvoq9PkNVWSpR6ZY523axPXoSq3u7M"
],
"license": "MIT"
},
"node_modules/keep3r-v2/solidity/interfaces/peripherals/IKeep3rAccountance.sol": {
"keccak256": "0xf4748c236ddf409e45e7169c735e2fc54e627b2b3ccd189ebb438ad768f1deb1",
"urls": [
"bzz-raw://ad6a28e2d17b5eed1a365f995349203053d964ad78c64eb7c0fd4eed0a202bf1",
"dweb:/ipfs/QmaLH6GkuTkLJ8AukTLXrvSDiS8KAFwDkbynPURTcsumzF"
],
"license": "MIT"
},
"node_modules/keep3r-v2/solidity/interfaces/peripherals/IKeep3rDisputable.sol": {
"keccak256": "0x002b9b4c75e62d48d74b6447649d39eb5c1e128d2523bb11e08e9cd3e27b1f70",
"urls": [
"bzz-raw://82c436aaecd1b3152a796c14707ac93a8d2988db101e470a8b2b84c23f3d506f",
"dweb:/ipfs/QmYUgdQFmZic2c6RUxxWNkSUvqM11B1Ti6rgFZMFRzsT7B"
],
"license": "MIT"
},
"node_modules/keep3r-v2/solidity/interfaces/peripherals/IKeep3rJobs.sol": {
"keccak256": "0x08915189f1a9484d17a51b7fb343b765b9edba29062bb644af9663af18f03e34",
"urls": [
"bzz-raw://f5b549c9264d1783a22c8980187c97f2bc7db30c61cd2b1652ed1b184e49d86b",
"dweb:/ipfs/QmeJR2qYWNkEM1qCwiKczQdfBpXUp45rS3o8Zf43AKoSaR"
],
"license": "MIT"
},
"node_modules/keep3r-v2/solidity/interfaces/peripherals/IKeep3rKeepers.sol": {
"keccak256": "0xc95e6bba82a8371c6bd15a8e9d0df91c826b5050b8ee01d913c1c13a4e92a49b",
"urls": [
"bzz-raw://370a48951cc8c8d1b96507683dbf8f798605867388e6f50e29e1741a8873d46d",
"dweb:/ipfs/QmVD8zzzcaUUxrVrodoPfHV5zdXqt6ZXKfSshy43gWwsNt"
],
"license": "MIT"
},
"node_modules/keep3r-v2/solidity/interfaces/peripherals/IKeep3rParameters.sol": {
"keccak256": "0x942f99c6e3b229a551faaae8f03000b934b20502a7cfade14780508201fd098e",
"urls": [
"bzz-raw://b994c19a217b30352f7a6ca67044bde835d06ddfe51a6b651076d99a7214e1b0",
"dweb:/ipfs/Qmdb1gc4xtQLSa3nLuen8GK7esb8tj3KgmYvzY2ovvraw1"
],
"license": "MIT"
},
"node_modules/keep3r-v2/solidity/interfaces/peripherals/IKeep3rRoles.sol": {
"keccak256": "0xe6eca166cf6ad99e5379d754030222873bb9868ff3e2a76de815a438ead533a2",
"urls": [
"bzz-raw://7d5036cc038714163c3c79479fe00ff0070e5a0a155e00e562d1d645a636b76b",
"dweb:/ipfs/QmSZPJntRruGnXFEYuUrBrUSfqDDzJ5awMXx2r1nyDAQbd"
],
"license": "MIT"
},
"solidity/interfaces/IFeeManager.sol": {
"keccak256": "0x601f6a0b64273647af20e1c59aeffe2086be4c4978773d0adf7c2bfe41c2c727",
"urls": [
"bzz-raw://e2c4dc963c1c515fa7ef18bce567fcee6e7acf895031adcfe3fdeb8f7e37caed",
"dweb:/ipfs/QmWsu86sEAFS2egVJiYSvykcKv9fUfscepuKTfVsat8Bok"
],
"license": "AGPL-3.0-only"
},
"solidity/interfaces/ILockManager.sol": {
"keccak256": "0xa232140a3c96344e2143d9e7c465097c77304b12c5267fb9e7c22ca467c11b57",
"urls": [
"bzz-raw://59e01db60aef7cb9add55070a96a0dfc297d83b99f70562e986e385d3cdb8da8",
"dweb:/ipfs/QmaAHyD6swNuF5gYsxpyhyzxq11bMUwFUYQZiAezX98JTX"
],
"license": "AGPL-3.0-only"
},
"solidity/interfaces/ILockManagerFactory.sol": {
"keccak256": "0xae1530bf74a0d9f1e71abec4cce3462b46ad53b067ef0022795929953b23f817",
"urls": [
"bzz-raw://2505cbc50886430000811c75a4ed31c8392f8b476c1d43720bd1aa63ae2a090b",
"dweb:/ipfs/QmPaN3AkvGVaQYdwMDeGjJrYkEqpmfHWvb4xfG2ZuftSER"
],
"license": "AGPL-3.0-only"
},
"solidity/interfaces/ILockManagerGovernor.sol": {
"keccak256": "0x6dbdf9194a2a45a434fd31cc62acff5003d53a949baef6a454d5dea97dd29ea3",
"urls": [
"bzz-raw://6dc8fe41a53db8c09982e78c88036dcc9c9c2bcb45a4d766b40b631a8df33f5b",
"dweb:/ipfs/QmcFq2LTpZT7ZzNw6VBkXbSLuuX9LGcshzjP7xX9Bzr2cS"
],
"license": "AGPL-3.0-only"
},
"solidity/interfaces/IPoolManager.sol": {
"keccak256": "0xf795ff3abbe3b2b4def474a505e78569d41086da3f6d439f732b9ee5295ba49d",
"urls": [
"bzz-raw://62041119416c6418fec45bbaca62fba107acda209dd12ef040a8dab1b65d3878",
"dweb:/ipfs/QmbB2BeWsmHRRxbeQY7XNQekcaJP9j97n9juXU7khsUzgN"
],
"license": "AGPL-3.0-only"
},
"solidity/interfaces/IPoolManagerDeployer.sol": {
"keccak256": "0xbc4c205c007a713aa9c166982ce77f208456749f437cc782d6500d6f456f4113",
"urls": [
"bzz-raw://70e7239fa222d567ac9851d971c7cbb5ee3ebfa52fd04692db4feb0e21350016",
"dweb:/ipfs/QmZhFWjSSjYNbggeeo4cUhxinX9vGPAGuUkMqMVxZmnd9D"
],
"license": "AGPL-3.0-only"
},
"solidity/interfaces/IPoolManagerFactory.sol": {
"keccak256": "0x0aea0b427578023099fb9a1bf09a20762c1c958ef5859c762fc673d3314e97cd",
"urls": [
"bzz-raw://b8fc29e8f15ef3eaa6262189ac28960c7960e52d2a8de23d6451e3189ae80cc9",
"dweb:/ipfs/QmYKicDyJi2Lw8YuY92SFyBzfDmvBGuECpH6mm15wbi7J3"
],
"license": "AGPL-3.0-only"
},
"solidity/interfaces/IPoolManagerGovernor.sol": {
"keccak256": "0x67020a4d2879b26138ffe80168e12caeacb0cdc3852de452a35946a0bab3ff13",
"urls": [
"bzz-raw://c6b07c8f824577fce45baaf9a1643b7c1a51398396a47e08306eef8ccdfe87ba",
"dweb:/ipfs/QmbeATmPW1T9GyrbguSkEkPKJLUS4ALH5BFLs1n38PZnuv"
],
"license": "AGPL-3.0-only"
},
"solidity/interfaces/jobs/ICardinalityJob.sol": {
"keccak256": "0xb2ea5ab5837457a18099b93596d0bb21d0eba97679219332b2c600027acb7efc",
"urls": [
"bzz-raw://36a717206961aa821014c799c45e5d4987042f0447f2da70b0b26e6e348cc4c8",
"dweb:/ipfs/QmR4E7L8smEL7KrGRCXaXoP45P3C9AmHopgnvhZQhrFEAY"
],
"license": "AGPL-3.0-only"
},
"solidity/interfaces/jobs/IFeeCollectorJob.sol": {
"keccak256": "0x719f4225d74474973cb4c58a524661dd5b0d437c17258f7be1f028377a2a1ed2",
"urls": [
"bzz-raw://e414800cc7c4c064caa2e57f243a15ec88a4fa72919d568da944e30a176353e7",
"dweb:/ipfs/QmRpJdh9C5TCArQPYD2qq1tjNeaQVUHGhRh9YtsdxqAreh"
],
"license": "AGPL-3.0-only"
},
"solidity/interfaces/jobs/IKeep3rJob.sol": {
"keccak256": "0x537540063984e38ff186592936016ac3b452a21da322ae8fb9bf173b8c2fabe8",
"urls": [
"bzz-raw://847d7cc63dd034253aeeb2fdea6225f7b27fda867888b7e21297838f1eb05c1f",
"dweb:/ipfs/Qmeaci4yeX8rUXamD9cp3biJBGUxYUkJTkLTWf4vcsYJFt"
],
"license": "AGPL-3.0-only"
},
"solidity/interfaces/periphery/IGovernorMiniBravo.sol": {
"keccak256": "0x3385738365ff7ba2aaac8a1e507f571e3e5bd97988241b6678ed4aa1d61cfbae",
"urls": [
"bzz-raw://fd624c0e163d0a174c078c4cb450eefa84a86dc70ccdb8625636e1963866cffd",
"dweb:/ipfs/QmYVVRctxeYgPeKKUPBSuwZ11uU3EPf4opYuLA7aJWKGAB"
],
"license": "AGPL-3.0-only"
},
"solidity/interfaces/periphery/ILockedWethSecondaryMarket.sol": {
"keccak256": "0x0444ecbe5a01ba937674bb31f3b49b8ea0dfeb5cfa4a759aa4ca8a49318d13cf",
"urls": [
"bzz-raw://3a9a85cec9cef1a62535bfc71be0b66631a6a8179a124047383de05c1d034396",
"dweb:/ipfs/QmPEVDxKVaAEtXWPK2w6XDY6XBUfH7gLza47ZX94fRYUBS"
],
"license": "AGPL-3.0-only"
},
"solidity/interfaces/periphery/IPriceOracle.sol": {
"keccak256": "0x27e349905c9e686510cd51ccb3f11c6617bc3135c8188215db980d8fcc02ef26",
"urls": [
"bzz-raw://1c0096e91e4ce57273090f452af1f8cbc7112c57359404a9920070b969213d08",
"dweb:/ipfs/QmW56eqevPWT9vzYq3gGC47DaFfEb2QEr3gFK4Tvt1WcjL"
],
"license": "AGPL-3.0-only"
},
"solidity/interfaces/periphery/IPriceOracleCorrections.sol": {
"keccak256": "0x53b8f395595d23beba0d5295fa494fc28b4452d2526fe8da5932e98ef9b3e12f",
"urls": [
"bzz-raw://e3795b5aacfcd9a3caf85291ed73d17fd37621574072950dad79ecbccbc0d6c4",
"dweb:/ipfs/QmPK9LKsCS5NJZVktcngDnkDBbkTqoTEkvUmEEwaCj4sHJ"
],
"license": "AGPL-3.0-only"
},
"solidity/interfaces/strategies/IStrategy.sol": {
"keccak256": "0x4d9be7375229a6b01fdadda608b30096a90f1f828ab21b12937ce601c83b83b0",
"urls": [
"bzz-raw://549b50053afaa6782060bb6d6568b728c874dbab422077b4a9d08f70acd83adc",
"dweb:/ipfs/QmWniAa47EZfDfhqPKYgVeaQ6FFbou6JsVquKyXovcxPhU"
],
"license": "AGPL-3.0-only"
},
"solidity/interfaces/utils/IPriceGovernable.sol": {
"keccak256": "0xd58d6f0d8634ccd0e4ebf04a73c48b6741e221c66c369f3d09ec7891e96a266f",
"urls": [
"bzz-raw://8e838c65618d08f0300e555d520e8062eae0d09f387812437a9dad0fd782ae9b",
"dweb:/ipfs/QmYarNLYUK192seJ4hgB4nHjzzb5sxS8Bsm1K4aA21fLuX"
],
"license": "AGPL-3.0-only"
},
"solidity/interfaces/utils/IPricePausable.sol": {
"keccak256": "0x32147e0eac7998813804d67fef37ca41796e9d12d9cdd30206d5fb04badba29e",
"urls": [
"bzz-raw://0cebfa2c49375ed9140244cead0d3f4c501970343ccfdd27c7fe41cc2b937ff4",
"dweb:/ipfs/QmPZ4AY4KFSYmJnHnmwH33kuadY8t4JnnH8hjcVThVB87E"
],
"license": "AGPL-3.0-only"
}
},
"version": 1
},
"ast": {
"absolutePath": "solidity/interfaces/periphery/ILockedWethSecondaryMarket.sol",
"id": 44869,
"exportedSymbols": {
"IERC20": [
112
],
"IFeeManager": [
42596
],
"IGovernorMiniBravo": [
44727
],
"ILockManager": [
42935
],
"ILockManagerGovernor": [
42992
],
"ILockedWethSecondaryMarket": [
44868
],
"IPoolManager": [
43253
],
"IPoolManagerFactory": [
43739
],
"IPriceOracle": [
44972
],
"IPriceOracleCorrections": [
44985
],
"IStrategy": [
45094
],
"IUniswapV3Pool": [
804
],
"IUniswapV3PoolActions": [
914
],
"IUniswapV3PoolDerivedState": [
945
],
"IUniswapV3PoolEvents": [
1064
],
"IUniswapV3PoolImmutables": [
1104
],
"IUniswapV3PoolOwnerActions": [
1130
],
"IUniswapV3PoolState": [
1238
]
},
"nodeType": "SourceUnit",
"src": "42:5341:97",
"nodes": [
{
"id": 44729,
"nodeType": "PragmaDirective",
"src": "42:31:97",
"nodes": [],
"literals": [
"solidity",
">=",
"0.8",
".4",
"<",
"0.9",
".0"
]
},
{
"id": 44730,
"nodeType": "ImportDirective",
"src": "75:38:97",
"nodes": [],
"absolutePath": "solidity/interfaces/ILockManager.sol",
"file": "@interfaces/ILockManager.sol",
"nameLocation": "-1:-1:-1",
"scope": 44869,
"sourceUnit": 42936,
"symbolAliases": [],
"unitAlias": ""
},
{
"id": 44868,
"nodeType": "ContractDefinition",
"src": "229:5153:97",
"nodes": [
{
"id": 44737,
"nodeType": "ErrorDefinition",
"src": "507:78:97",
"nodes": [],
"documentation": {
"id": 44732,
"nodeType": "StructuredDocumentation",
"src": "443:61:97",
"text": "@notice Thrown when the pool manager is invalid"
},
"name": "LockedWethSecondaryMarket_InvalidPoolManager",
"nameLocation": "513:44:97",
"parameters": {
"id": 44736,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 44735,
"mutability": "mutable",
"name": "_poolManager",
"nameLocation": "571:12:97",
"nodeType": "VariableDeclaration",
"scope": 44737,
"src": "558:25:97",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IPoolManager_$43253",
"typeString": "contract IPoolManager"
},
"typeName": {
"id": 44734,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 44733,
"name": "IPoolManager",
"nodeType": "IdentifierPath",
"referencedDeclaration": 43253,
"src": "558:12:97"
},
"referencedDeclaration": 43253,
"src": "558:12:97",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IPoolManager_$43253",
"typeString": "contract IPoolManager"
}
},
"visibility": "internal"
}
],
"src": "557:27:97"
}
},
{
"id": 44743,
"nodeType": "ErrorDefinition",
"src": "653:78:97",
"nodes": [],
"documentation": {
"id": 44738,
"nodeType": "StructuredDocumentation",
"src": "589:61:97",
"text": "@notice Thrown when the lock manager is invalid"
},
"name": "LockedWethSecondaryMarket_InvalidLockManager",
"nameLocation": "659:44:97",
"parameters": {
"id": 44742,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 44741,
"mutability": "mutable",
"name": "_lockManager",
"nameLocation": "717:12:97",
"nodeType": "VariableDeclaration",
"scope": 44743,
"src": "704:25:97",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_ILockManager_$42935",
"typeString": "contract ILockManager"
},
"typeName": {
"id": 44740,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 44739,
"name": "ILockManager",
"nodeType": "IdentifierPath",
"referencedDeclaration": 42935,
"src": "704:12:97"
},
"referencedDeclaration": 42935,
"src": "704:12:97",
"typeDescriptions": {
"typeIdentifier": "t_contract$_ILockManager_$42935",
"typeString": "contract ILockManager"
}
},
"visibility": "internal"
}
],
"src": "703:27:97"
}
},
{
"id": 44746,
"nodeType": "ErrorDefinition",
"src": "796:45:97",
"nodes": [],
"documentation": {
"id": 44744,
"nodeType": "StructuredDocumentation",
"src": "735:58:97",
"text": "@notice Thrown when the order amount is zero"
},
"name": "LockedWethSecondaryMarket_ZeroAmount",
"nameLocation": "802:36:97",
"parameters": {
"id": 44745,
"nodeType": "ParameterList",
"parameters": [],
"src": "838:2:97"
}
},
{
"id": 44753,
"nodeType": "ErrorDefinition",
"src": "1030:91:97",
"nodes": [],
"documentation": {
"id": 44747,
"nodeType": "StructuredDocumentation",
"src": "845:182:97",
"text": "@notice Thrown when the discount value exceeds the max discount\n@param _discount The invalid discount value\n@param _maxDiscount The max discount value allowed"
},
"name": "LockedWethSecondaryMarket_MaxDiscountExceeded",
"nameLocation": "1036:45:97",
"parameters": {
"id": 44752,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 44749,
"mutability": "mutable",
"name": "_discount",
"nameLocation": "1089:9:97",
"nodeType": "VariableDeclaration",
"scope": 44753,
"src": "1082:16:97",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 44748,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "1082:6:97",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 44751,
"mutability": "mutable",
"name": "_maxDiscount",
"nameLocation": "1107:12:97",
"nodeType": "VariableDeclaration",
"scope": 44753,
"src": "1100:19:97",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 44750,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "1100:6:97",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
}
],
"src": "1081:39:97"
}
},
{
"id": 44758,
"nodeType": "ErrorDefinition",
"src": "1260:64:97",
"nodes": [],
"documentation": {
"id": 44754,
"nodeType": "StructuredDocumentation",
"src": "1125:132:97",
"text": "@notice Thrown when trying to delete an order and the caller is not the owner\n@param _orderId The id of the order"
},
"name": "LockedWethSecondaryMarket_NotOrderOwner",
"nameLocation": "1266:39:97",
"parameters": {
"id": 44757,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 44756,
"mutability": "mutable",
"name": "_orderId",
"nameLocation": "1314:8:97",
"nodeType": "VariableDeclaration",
"scope": 44758,
"src": "1306:16:97",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 44755,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1306:7:97",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "1305:18:97"
}
},
{
"id": 44763,
"nodeType": "ErrorDefinition",
"src": "1563:68:97",
"nodes": [],
"documentation": {
"id": 44759,
"nodeType": "StructuredDocumentation",
"src": "1328:232:97",
"text": "@notice Thrown when trying to buy a sell order whose amount is zero\n@dev The order could not be available because it was already sold or canceled\n@param _orderId The order's id used to call the buy function"
},
"name": "LockedWethSecondaryMarket_OrderNotAvailable",
"nameLocation": "1569:43:97",
"parameters": {
"id": 44762,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 44761,
"mutability": "mutable",
"name": "_orderId",
"nameLocation": "1621:8:97",
"nodeType": "VariableDeclaration",
"scope": 44763,
"src": "1613:16:97",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 44760,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1613:7:97",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "1612:18:97"
}
},
{
"id": 44769,
"nodeType": "EventDefinition",
"src": "1924:40:97",
"nodes": [],
"anonymous": false,
"documentation": {
"id": 44764,
"nodeType": "StructuredDocumentation",
"src": "1808:113:97",
"text": "@notice Emitted when a new LockedWeth sell order is posted\n@param _order The sell order posted"
},
"name": "SellOrderPosted",
"nameLocation": "1930:15:97",
"parameters": {
"id": 44768,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 44767,
"indexed": false,
"mutability": "mutable",
"name": "_order",
"nameLocation": "1956:6:97",
"nodeType": "VariableDeclaration",
"scope": 44769,
"src": "1946:16:97",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_struct$_SellOrder_$44867_memory_ptr",
"typeString": "struct ILockedWethSecondaryMarket.SellOrder"
},
"typeName": {
"id": 44766,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 44765,
"name": "SellOrder",
"nodeType": "IdentifierPath",
"referencedDeclaration": 44867,
"src": "1946:9:97"
},
"referencedDeclaration": 44867,
"src": "1946:9:97",
"typeDescriptions": {
"typeIdentifier": "t_struct$_SellOrder_$44867_storage_ptr",
"typeString": "struct ILockedWethSecondaryMarket.SellOrder"
}
},
"visibility": "internal"
}
],
"src": "1945:18:97"
}
},
{
"id": 44777,
"nodeType": "EventDefinition",
"src": "2135:56:97",
"nodes": [],
"anonymous": false,
"documentation": {
"id": 44770,
"nodeType": "StructuredDocumentation",
"src": "1968:164:97",
"text": "@notice Emitted when a sell order is bought\n@param _order The order bought\n@param _buyer The address of the account that purchased the order"
},
"name": "SellOrderBought",
"nameLocation": "2141:15:97",
"parameters": {
"id": 44776,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 44773,
"indexed": false,
"mutability": "mutable",
"name": "_order",
"nameLocation": "2167:6:97",
"nodeType": "VariableDeclaration",
"scope": 44777,
"src": "2157:16:97",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_struct$_SellOrder_$44867_memory_ptr",
"typeString": "struct ILockedWethSecondaryMarket.SellOrder"
},
"typeName": {
"id": 44772,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 44771,
"name": "SellOrder",
"nodeType": "IdentifierPath",
"referencedDeclaration": 44867,
"src": "2157:9:97"
},
"referencedDeclaration": 44867,
"src": "2157:9:97",
"typeDescriptions": {
"typeIdentifier": "t_struct$_SellOrder_$44867_storage_ptr",
"typeString": "struct ILockedWethSecondaryMarket.SellOrder"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 44775,
"indexed": false,
"mutability": "mutable",
"name": "_buyer",
"nameLocation": "2183:6:97",
"nodeType": "VariableDeclaration",
"scope": 44777,
"src": "2175:14:97",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 44774,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2175:7:97",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "2156:34:97"
}
},
{
"id": 44783,
"nodeType": "EventDefinition",
"src": "2295:43:97",
"nodes": [],
"anonymous": false,
"documentation": {
"id": 44778,
"nodeType": "StructuredDocumentation",
"src": "2195:97:97",
"text": "@notice Emitted when a sell order is canceled\n@param _order The order canceled"
},
"name": "SellOrderCancelled",
"nameLocation": "2301:18:97",
"parameters": {
"id": 44782,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 44781,
"indexed": false,
"mutability": "mutable",
"name": "_order",
"nameLocation": "2330:6:97",
"nodeType": "VariableDeclaration",
"scope": 44783,
"src": "2320:16:97",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_struct$_SellOrder_$44867_memory_ptr",
"typeString": "struct ILockedWethSecondaryMarket.SellOrder"
},
"typeName": {
"id": 44780,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 44779,
"name": "SellOrder",
"nodeType": "IdentifierPath",
"referencedDeclaration": 44867,
"src": "2320:9:97"
},
"referencedDeclaration": 44867,
"src": "2320:9:97",
"typeDescriptions": {
"typeIdentifier": "t_struct$_SellOrder_$44867_storage_ptr",
"typeString": "struct ILockedWethSecondaryMarket.SellOrder"
}
},
"visibility": "internal"
}
],
"src": "2319:18:97"
}
},
{
"id": 44790,
"nodeType": "FunctionDefinition",
"src": "2599:53:97",
"nodes": [],
"documentation": {
"id": 44784,
"nodeType": "StructuredDocumentation",
"src": "2516:80:97",
"text": "@notice Returns the WETH contract\n@return _weth The WETH token"
},
"functionSelector": "ad5c4648",
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "WETH",
"nameLocation": "2608:4:97",
"parameters": {
"id": 44785,
"nodeType": "ParameterList",
"parameters": [],
"src": "2612:2:97"
},
"returnParameters": {
"id": 44789,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 44788,
"mutability": "mutable",
"name": "_weth",
"nameLocation": "2645:5:97",
"nodeType": "VariableDeclaration",
"scope": 44790,
"src": "2638:12:97",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20_$112",
"typeString": "contract IERC20"
},
"typeName": {
"id": 44787,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 44786,
"name": "IERC20",
"nodeType": "IdentifierPath",
"referencedDeclaration": 112,
"src": "2638:6:97"
},
"referencedDeclaration": 112,
"src": "2638:6:97",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IERC20_$112",
"typeString": "contract IERC20"
}
},
"visibility": "internal"
}
],
"src": "2637:14:97"
},
"scope": 44868,
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"id": 44797,
"nodeType": "FunctionDefinition",
"src": "2779:96:97",
"nodes": [],
"documentation": {
"id": 44791,
"nodeType": "StructuredDocumentation",
"src": "2656:120:97",
"text": "@notice Returns the pool manager factory contract\n@return _poolManagerFactory The pool manager factory"
},
"functionSelector": "daa6f534",
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "POOL_MANAGER_FACTORY",
"nameLocation": "2788:20:97",
"parameters": {
"id": 44792,
"nodeType": "ParameterList",
"parameters": [],
"src": "2808:2:97"
},
"returnParameters": {
"id": 44796,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 44795,
"mutability": "mutable",
"name": "_poolManagerFactory",
"nameLocation": "2854:19:97",
"nodeType": "VariableDeclaration",
"scope": 44797,
"src": "2834:39:97",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IPoolManagerFactory_$43739",
"typeString": "contract IPoolManagerFactory"
},
"typeName": {
"id": 44794,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 44793,
"name": "IPoolManagerFactory",
"nodeType": "IdentifierPath",
"referencedDeclaration": 43739,
"src": "2834:19:97"
},
"referencedDeclaration": 43739,
"src": "2834:19:97",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IPoolManagerFactory_$43739",
"typeString": "contract IPoolManagerFactory"
}
},
"visibility": "internal"
}
],
"src": "2833:41:97"
},
"scope": 44868,
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"id": 44814,
"nodeType": "FunctionDefinition",
"src": "2958:204:97",
"nodes": [],
"documentation": {
"id": 44798,
"nodeType": "StructuredDocumentation",
"src": "2879:76:97",
"text": "@notice Returns a sell order\n@param _orderId The order id"
},
"functionSelector": "4a8393f3",
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "sellOrders",
"nameLocation": "2967:10:97",
"parameters": {
"id": 44801,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 44800,
"mutability": "mutable",
"name": "_orderId",
"nameLocation": "2986:8:97",
"nodeType": "VariableDeclaration",
"scope": 44814,
"src": "2978:16:97",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 44799,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2978:7:97",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "2977:18:97"
},
"returnParameters": {
"id": 44813,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 44804,
"mutability": "mutable",
"name": "_lockedWethToken",
"nameLocation": "3051:16:97",
"nodeType": "VariableDeclaration",
"scope": 44814,
"src": "3038:29:97",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_ILockManager_$42935",
"typeString": "contract ILockManager"
},
"typeName": {
"id": 44803,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 44802,
"name": "ILockManager",
"nodeType": "IdentifierPath",
"referencedDeclaration": 42935,
"src": "3038:12:97"
},
"referencedDeclaration": 42935,
"src": "3038:12:97",
"typeDescriptions": {
"typeIdentifier": "t_contract$_ILockManager_$42935",
"typeString": "contract ILockManager"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 44806,
"mutability": "mutable",
"name": "_id",
"nameLocation": "3083:3:97",
"nodeType": "VariableDeclaration",
"scope": 44814,
"src": "3075:11:97",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 44805,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3075:7:97",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 44808,
"mutability": "mutable",
"name": "_amount",
"nameLocation": "3102:7:97",
"nodeType": "VariableDeclaration",
"scope": 44814,
"src": "3094:15:97",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 44807,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3094:7:97",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 44810,
"mutability": "mutable",
"name": "_owner",
"nameLocation": "3125:6:97",
"nodeType": "VariableDeclaration",
"scope": 44814,
"src": "3117:14:97",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 44809,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3117:7:97",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 44812,
"mutability": "mutable",
"name": "_discount",
"nameLocation": "3146:9:97",
"nodeType": "VariableDeclaration",
"scope": 44814,
"src": "3139:16:97",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 44811,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "3139:6:97",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
}
],
"src": "3030:131:97"
},
"scope": 44868,
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"id": 44820,
"nodeType": "FunctionDefinition",
"src": "3271:76:97",
"nodes": [],
"documentation": {
"id": 44815,
"nodeType": "StructuredDocumentation",
"src": "3166:102:97",
"text": "@notice Returns the sell orders count\n@return _sellOrdersCount The sell orders count"
},
"functionSelector": "2ad4530a",
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "sellOrdersCount",
"nameLocation": "3280:15:97",
"parameters": {
"id": 44816,
"nodeType": "ParameterList",
"parameters": [],
"src": "3295:2:97"
},
"returnParameters": {
"id": 44819,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 44818,
"mutability": "mutable",
"name": "_sellOrdersCount",
"nameLocation": "3329:16:97",
"nodeType": "VariableDeclaration",
"scope": 44820,
"src": "3321:24:97",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 44817,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3321:7:97",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "3320:26:97"
},
"scope": 44868,
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"id": 44831,
"nodeType": "FunctionDefinition",
"src": "3918:110:97",
"nodes": [],
"documentation": {
"id": 44821,
"nodeType": "StructuredDocumentation",
"src": "3521:394:97",
"text": "@notice Posts a LockedWeth sell limit order\n@dev The amount is represented in WETH tokens\nThe LockedWeth tokens remain in the poster account\nThe discount value must be less than the discount precision\n@param _lockedWethToken The locked WETH\n@param _amount The amount of LockedWeth tokens to be sold\n@param _discount The discount value"
},
"functionSelector": "0a9a1022",
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "postOrder",
"nameLocation": "3927:9:97",
"parameters": {
"id": 44829,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 44824,
"mutability": "mutable",
"name": "_lockedWethToken",
"nameLocation": "3955:16:97",
"nodeType": "VariableDeclaration",
"scope": 44831,
"src": "3942:29:97",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_ILockManager_$42935",
"typeString": "contract ILockManager"
},
"typeName": {
"id": 44823,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 44822,
"name": "ILockManager",
"nodeType": "IdentifierPath",
"referencedDeclaration": 42935,
"src": "3942:12:97"
},
"referencedDeclaration": 42935,
"src": "3942:12:97",
"typeDescriptions": {
"typeIdentifier": "t_contract$_ILockManager_$42935",
"typeString": "contract ILockManager"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 44826,
"mutability": "mutable",
"name": "_amount",
"nameLocation": "3985:7:97",
"nodeType": "VariableDeclaration",
"scope": 44831,
"src": "3977:15:97",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 44825,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3977:7:97",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 44828,
"mutability": "mutable",
"name": "_discount",
"nameLocation": "4005:9:97",
"nodeType": "VariableDeclaration",
"scope": 44831,
"src": "3998:16:97",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 44827,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "3998:6:97",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
}
],
"src": "3936:82:97"
},
"returnParameters": {
"id": 44830,
"nodeType": "ParameterList",
"parameters": [],
"src": "4027:0:97"
},
"scope": 44868,
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"id": 44837,
"nodeType": "FunctionDefinition",
"src": "4221:45:97",
"nodes": [],
"documentation": {
"id": 44832,
"nodeType": "StructuredDocumentation",
"src": "4032:186:97",
"text": "@notice Buys a sell order\n@dev The sell order is bought with WETH tokens and cannot be purchased partially\n@param _orderId The id of the sell order to be bought"
},
"functionSelector": "22f85eaa",
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "buyOrder",
"nameLocation": "4230:8:97",
"parameters": {
"id": 44835,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 44834,
"mutability": "mutable",
"name": "_orderId",
"nameLocation": "4247:8:97",
"nodeType": "VariableDeclaration",
"scope": 44837,
"src": "4239:16:97",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 44833,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "4239:7:97",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "4238:18:97"
},
"returnParameters": {
"id": 44836,
"nodeType": "ParameterList",
"parameters": [],
"src": "4265:0:97"
},
"scope": 44868,
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"id": 44843,
"nodeType": "FunctionDefinition",
"src": "4418:48:97",
"nodes": [],
"documentation": {
"id": 44838,
"nodeType": "StructuredDocumentation",
"src": "4270:145:97",
"text": "@notice Cancels a sell order\n@dev The caller must be the order owner\n@param _orderId The id of the order to be canceled"
},
"functionSelector": "514fcac7",
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "cancelOrder",
"nameLocation": "4427:11:97",
"parameters": {
"id": 44841,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 44840,
"mutability": "mutable",
"name": "_orderId",
"nameLocation": "4447:8:97",
"nodeType": "VariableDeclaration",
"scope": 44843,
"src": "4439:16:97",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 44839,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "4439:7:97",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "4438:18:97"
},
"returnParameters": {
"id": 44842,
"nodeType": "ParameterList",
"parameters": [],
"src": "4465:0:97"
},
"scope": 44868,
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"id": 44855,
"nodeType": "FunctionDefinition",
"src": "4769:110:97",
"nodes": [],
"documentation": {
"id": 44844,
"nodeType": "StructuredDocumentation",
"src": "4470:296:97",
"text": "@notice Returns pagination of the orders posted\n@dev Minimum _startFrom is 1; ids start from 1\n@param _startFrom The index from where to start the pagination\n@param _amount The maximum amount of orders to retrieve\n@return _sellOrders The paginated orders posted"
},
"functionSelector": "fff3c5b4",
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getSellOrders",
"nameLocation": "4778:13:97",
"parameters": {
"id": 44849,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 44846,
"mutability": "mutable",
"name": "_startFrom",
"nameLocation": "4800:10:97",
"nodeType": "VariableDeclaration",
"scope": 44855,
"src": "4792:18:97",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 44845,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "4792:7:97",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 44848,
"mutability": "mutable",
"name": "_amount",
"nameLocation": "4820:7:97",
"nodeType": "VariableDeclaration",
"scope": 44855,
"src": "4812:15:97",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 44847,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "4812:7:97",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "4791:37:97"
},
"returnParameters": {
"id": 44854,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 44853,
"mutability": "mutable",
"name": "_sellOrders",
"nameLocation": "4866:11:97",
"nodeType": "VariableDeclaration",
"scope": 44855,
"src": "4847:30:97",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_struct$_SellOrder_$44867_memory_ptr_$dyn_memory_ptr",
"typeString": "struct ILockedWethSecondaryMarket.SellOrder[]"
},
"typeName": {
"baseType": {
"id": 44851,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 44850,
"name": "SellOrder",
"nodeType": "IdentifierPath",
"referencedDeclaration": 44867,
"src": "4847:9:97"
},
"referencedDeclaration": 44867,
"src": "4847:9:97",
"typeDescriptions": {
"typeIdentifier": "t_struct$_SellOrder_$44867_storage_ptr",
"typeString": "struct ILockedWethSecondaryMarket.SellOrder"
}
},
"id": 44852,
"nodeType": "ArrayTypeName",
"src": "4847:11:97",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_struct$_SellOrder_$44867_storage_$dyn_storage_ptr",
"typeString": "struct ILockedWethSecondaryMarket.SellOrder[]"
}
},
"visibility": "internal"
}
],
"src": "4846:32:97"
},
"scope": 44868,
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"id": 44867,
"nodeType": "StructDefinition",
"src": "5248:132:97",
"nodes": [],
"canonicalName": "ILockedWethSecondaryMarket.SellOrder",
"members": [
{
"constant": false,
"id": 44858,
"mutability": "mutable",
"name": "lockedWethToken",
"nameLocation": "5284:15:97",
"nodeType": "VariableDeclaration",
"scope": 44867,
"src": "5271:28:97",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_ILockManager_$42935",
"typeString": "contract ILockManager"
},
"typeName": {
"id": 44857,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 44856,
"name": "ILockManager",
"nodeType": "IdentifierPath",
"referencedDeclaration": 42935,
"src": "5271:12:97"
},
"referencedDeclaration": 42935,
"src": "5271:12:97",
"typeDescriptions": {
"typeIdentifier": "t_contract$_ILockManager_$42935",
"typeString": "contract ILockManager"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 44860,
"mutability": "mutable",
"name": "id",
"nameLocation": "5313:2:97",
"nodeType": "VariableDeclaration",
"scope": 44867,
"src": "5305:10:97",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 44859,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "5305:7:97",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 44862,
"mutability": "mutable",
"name": "amount",
"nameLocation": "5329:6:97",
"nodeType": "VariableDeclaration",
"scope": 44867,
"src": "5321:14:97",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 44861,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "5321:7:97",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 44864,
"mutability": "mutable",
"name": "owner",
"nameLocation": "5349:5:97",
"nodeType": "VariableDeclaration",
"scope": 44867,
"src": "5341:13:97",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 44863,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "5341:7:97",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 44866,
"mutability": "mutable",
"name": "discount",
"nameLocation": "5367:8:97",
"nodeType": "VariableDeclaration",
"scope": 44867,
"src": "5360:15:97",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 44865,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "5360:6:97",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
}
],
"name": "SellOrder",
"nameLocation": "5255:9:97",
"scope": 44868,
"visibility": "public"
}
],
"abstract": false,
"baseContracts": [],
"canonicalName": "ILockedWethSecondaryMarket",
"contractDependencies": [],
"contractKind": "interface",
"documentation": {
"id": 44731,
"nodeType": "StructuredDocumentation",
"src": "115:113:97",
"text": "@title LockedWethSecondaryMarket contract\n@notice This contract manages LockedWeth tokens sell orders"
},
"fullyImplemented": false,
"linearizedBaseContracts": [
44868
],
"name": "ILockedWethSecondaryMarket",
"nameLocation": "239:26:97",
"scope": 44869,
"usedErrors": [
44737,
44743,
44746,
44753,
44758,
44763
]
}
],
"license": "AGPL-3.0-only"
},
"id": 97
}