{"abi":[{"type":"function","name":"WHERE_REGISTRY","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"WHO_REGISTRY","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"increaseNonce","inputs":[{"name":"where","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"isOptedIn","inputs":[{"name":"who","type":"address","internalType":"address"},{"name":"where","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"isOptedInAt","inputs":[{"name":"who","type":"address","internalType":"address"},{"name":"where","type":"address","internalType":"address"},{"name":"timestamp","type":"uint48","internalType":"uint48"},{"name":"hint","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"nonces","inputs":[{"name":"who","type":"address","internalType":"address"},{"name":"where","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"optIn","inputs":[{"name":"where","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"optIn","inputs":[{"name":"who","type":"address","internalType":"address"},{"name":"where","type":"address","internalType":"address"},{"name":"deadline","type":"uint48","internalType":"uint48"},{"name":"signature","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"optOut","inputs":[{"name":"who","type":"address","internalType":"address"},{"name":"where","type":"address","internalType":"address"},{"name":"deadline","type":"uint48","internalType":"uint48"},{"name":"signature","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"optOut","inputs":[{"name":"where","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"event","name":"IncreaseNonce","inputs":[{"name":"who","type":"address","indexed":true,"internalType":"address"},{"name":"where","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"OptIn","inputs":[{"name":"who","type":"address","indexed":true,"internalType":"address"},{"name":"where","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"OptOut","inputs":[{"name":"who","type":"address","indexed":true,"internalType":"address"},{"name":"where","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"error","name":"AlreadyOptedIn","inputs":[]},{"type":"error","name":"ExpiredSignature","inputs":[]},{"type":"error","name":"InvalidSignature","inputs":[]},{"type":"error","name":"NotOptedIn","inputs":[]},{"type":"error","name":"NotWhereEntity","inputs":[]},{"type":"error","name":"NotWho","inputs":[]},{"type":"error","name":"OptOutCooldown","inputs":[]}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"WHERE_REGISTRY()":"6d0fae4a","WHO_REGISTRY()":"c4b5d62c","increaseNonce(address)":"8247a97c","isOptedIn(address,address)":"220d32d4","isOptedInAt(address,address,uint48,bytes)":"530e1d43","nonces(address,address)":"9333fbda","optIn(address)":"b1138ad1","optIn(address,address,uint48,bytes)":"ced44ba7","optOut(address)":"d4610483","optOut(address,address,uint48,bytes)":"93f79bc3"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.25+commit.b61c2a91\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"AlreadyOptedIn\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ExpiredSignature\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidSignature\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotOptedIn\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotWhereEntity\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotWho\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OptOutCooldown\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"who\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"where\",\"type\":\"address\"}],\"name\":\"IncreaseNonce\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"who\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"where\",\"type\":\"address\"}],\"name\":\"OptIn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"who\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"where\",\"type\":\"address\"}],\"name\":\"OptOut\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"WHERE_REGISTRY\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"WHO_REGISTRY\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"where\",\"type\":\"address\"}],\"name\":\"increaseNonce\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"who\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"where\",\"type\":\"address\"}],\"name\":\"isOptedIn\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"who\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"where\",\"type\":\"address\"},{\"internalType\":\"uint48\",\"name\":\"timestamp\",\"type\":\"uint48\"},{\"internalType\":\"bytes\",\"name\":\"hint\",\"type\":\"bytes\"}],\"name\":\"isOptedInAt\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"who\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"where\",\"type\":\"address\"}],\"name\":\"nonces\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"where\",\"type\":\"address\"}],\"name\":\"optIn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"who\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"where\",\"type\":\"address\"},{\"internalType\":\"uint48\",\"name\":\"deadline\",\"type\":\"uint48\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"optIn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"who\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"where\",\"type\":\"address\"},{\"internalType\":\"uint48\",\"name\":\"deadline\",\"type\":\"uint48\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"optOut\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"where\",\"type\":\"address\"}],\"name\":\"optOut\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"events\":{\"IncreaseNonce(address,address)\":{\"params\":{\"where\":\"address of the \\\"where\\\" entity\",\"who\":\"address of the \\\"who\\\"\"}},\"OptIn(address,address)\":{\"params\":{\"where\":\"address of the \\\"where\\\" entity\",\"who\":\"address of the \\\"who\\\"\"}},\"OptOut(address,address)\":{\"params\":{\"where\":\"address of the \\\"where\\\" entity\",\"who\":\"address of the \\\"who\\\"\"}}},\"kind\":\"dev\",\"methods\":{\"WHERE_REGISTRY()\":{\"returns\":{\"_0\":\"address of the \\\"where\\\" registry\"}},\"WHO_REGISTRY()\":{\"returns\":{\"_0\":\"address of the \\\"who\\\" registry\"}},\"increaseNonce(address)\":{\"details\":\"It can be used to invalidate a given signature.\",\"params\":{\"where\":\"address of the \\\"where\\\" entity\"}},\"isOptedIn(address,address)\":{\"params\":{\"where\":\"address of the \\\"where\\\" entity\",\"who\":\"address of the \\\"who\\\"\"},\"returns\":{\"_0\":\"if the \\\"who\\\" is opted-in\"}},\"isOptedInAt(address,address,uint48,bytes)\":{\"params\":{\"hint\":\"hint for the checkpoint index\",\"timestamp\":\"time point to get if the \\\"who\\\" is opted-in at\",\"where\":\"address of the \\\"where\\\" entity\",\"who\":\"address of the \\\"who\\\"\"},\"returns\":{\"_0\":\"if the \\\"who\\\" is opted-in at the given timestamp\"}},\"nonces(address,address)\":{\"params\":{\"where\":\"address of the \\\"where\\\" entity\",\"who\":\"address of the \\\"who\\\"\"},\"returns\":{\"_0\":\"nonce\"}},\"optIn(address)\":{\"params\":{\"where\":\"address of the \\\"where\\\" entity\"}},\"optIn(address,address,uint48,bytes)\":{\"params\":{\"deadline\":\"time point until the signature is valid (inclusively)\",\"signature\":\"signature of the \\\"who\\\"\",\"where\":\"address of the \\\"where\\\" entity\",\"who\":\"address of the \\\"who\\\"\"}},\"optOut(address)\":{\"params\":{\"where\":\"address of the \\\"where\\\" entity\"}},\"optOut(address,address,uint48,bytes)\":{\"params\":{\"deadline\":\"time point until the signature is valid (inclusively)\",\"signature\":\"signature of the \\\"who\\\"\",\"where\":\"address of the \\\"where\\\" entity\",\"who\":\"address of the \\\"who\\\"\"}}},\"version\":1},\"userdoc\":{\"events\":{\"IncreaseNonce(address,address)\":{\"notice\":\"Emitted when the nonce of a \\\"who\\\" to a \\\"where\\\" entity is increased.\"},\"OptIn(address,address)\":{\"notice\":\"Emitted when a \\\"who\\\" opts into a \\\"where\\\" entity.\"},\"OptOut(address,address)\":{\"notice\":\"Emitted when a \\\"who\\\" opts out from a \\\"where\\\" entity.\"}},\"kind\":\"user\",\"methods\":{\"WHERE_REGISTRY()\":{\"notice\":\"Get the address of the registry where to opt-in.\"},\"WHO_REGISTRY()\":{\"notice\":\"Get the \\\"who\\\" registry's address.\"},\"increaseNonce(address)\":{\"notice\":\"Increase the nonce of a given \\\"who\\\" to a particular \\\"where\\\" entity.\"},\"isOptedIn(address,address)\":{\"notice\":\"Check if a given \\\"who\\\" is opted-in to a particular \\\"where\\\" entity.\"},\"isOptedInAt(address,address,uint48,bytes)\":{\"notice\":\"Get if a given \\\"who\\\" is opted-in to a particular \\\"where\\\" entity at a given timestamp using a hint.\"},\"nonces(address,address)\":{\"notice\":\"Get the nonce of a given \\\"who\\\" to a particular \\\"where\\\" entity.\"},\"optIn(address)\":{\"notice\":\"Opt-in a calling \\\"who\\\" to a particular \\\"where\\\" entity.\"},\"optIn(address,address,uint48,bytes)\":{\"notice\":\"Opt-in a \\\"who\\\" to a particular \\\"where\\\" entity with a signature.\"},\"optOut(address)\":{\"notice\":\"Opt-out a calling \\\"who\\\" from a particular \\\"where\\\" entity.\"},\"optOut(address,address,uint48,bytes)\":{\"notice\":\"Opt-out a \\\"who\\\" from a particular \\\"where\\\" entity with a signature.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"lib/core/src/interfaces/service/IOptInService.sol\":\"IOptInService\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\":@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/\",\":@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/\",\":@symbioticfi/core/=lib/core/\",\":core/=lib/core/\",\":ds-test/=lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/\",\":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/\",\":forge-std/=lib/forge-std/src/\",\":openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/\",\":openzeppelin-contracts/=lib/openzeppelin-contracts/\"],\"viaIR\":true},\"sources\":{\"lib/core/src/interfaces/service/IOptInService.sol\":{\"keccak256\":\"0x76fb5460a6d87a5705433d4fbeff7253cd75b8bbd0c888b2088f16e86ace146a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://990322019b3d11465f7024bae77ccbf7e2fe5d6fa3c754584778f37d04fa1337\",\"dweb:/ipfs/QmaSNHzcqxTkUCG9a4nqVfLECHLdjdrwAnDi3yDC7tDL24\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.25+commit.b61c2a91"},"language":"Solidity","output":{"abi":[{"inputs":[],"type":"error","name":"AlreadyOptedIn"},{"inputs":[],"type":"error","name":"ExpiredSignature"},{"inputs":[],"type":"error","name":"InvalidSignature"},{"inputs":[],"type":"error","name":"NotOptedIn"},{"inputs":[],"type":"error","name":"NotWhereEntity"},{"inputs":[],"type":"error","name":"NotWho"},{"inputs":[],"type":"error","name":"OptOutCooldown"},{"inputs":[{"internalType":"address","name":"who","type":"address","indexed":true},{"internalType":"address","name":"where","type":"address","indexed":true}],"type":"event","name":"IncreaseNonce","anonymous":false},{"inputs":[{"internalType":"address","name":"who","type":"address","indexed":true},{"internalType":"address","name":"where","type":"address","indexed":true}],"type":"event","name":"OptIn","anonymous":false},{"inputs":[{"internalType":"address","name":"who","type":"address","indexed":true},{"internalType":"address","name":"where","type":"address","indexed":true}],"type":"event","name":"OptOut","anonymous":false},{"inputs":[],"stateMutability":"view","type":"function","name":"WHERE_REGISTRY","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"WHO_REGISTRY","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[{"internalType":"address","name":"where","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"increaseNonce"},{"inputs":[{"internalType":"address","name":"who","type":"address"},{"internalType":"address","name":"where","type":"address"}],"stateMutability":"view","type":"function","name":"isOptedIn","outputs":[{"internalType":"bool","name":"","type":"bool"}]},{"inputs":[{"internalType":"address","name":"who","type":"address"},{"internalType":"address","name":"where","type":"address"},{"internalType":"uint48","name":"timestamp","type":"uint48"},{"internalType":"bytes","name":"hint","type":"bytes"}],"stateMutability":"view","type":"function","name":"isOptedInAt","outputs":[{"internalType":"bool","name":"","type":"bool"}]},{"inputs":[{"internalType":"address","name":"who","type":"address"},{"internalType":"address","name":"where","type":"address"}],"stateMutability":"view","type":"function","name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}]},{"inputs":[{"internalType":"address","name":"where","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"optIn"},{"inputs":[{"internalType":"address","name":"who","type":"address"},{"internalType":"address","name":"where","type":"address"},{"internalType":"uint48","name":"deadline","type":"uint48"},{"internalType":"bytes","name":"signature","type":"bytes"}],"stateMutability":"nonpayable","type":"function","name":"optIn"},{"inputs":[{"internalType":"address","name":"who","type":"address"},{"internalType":"address","name":"where","type":"address"},{"internalType":"uint48","name":"deadline","type":"uint48"},{"internalType":"bytes","name":"signature","type":"bytes"}],"stateMutability":"nonpayable","type":"function","name":"optOut"},{"inputs":[{"internalType":"address","name":"where","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"optOut"}],"devdoc":{"kind":"dev","methods":{"WHERE_REGISTRY()":{"returns":{"_0":"address of the \"where\" registry"}},"WHO_REGISTRY()":{"returns":{"_0":"address of the \"who\" registry"}},"increaseNonce(address)":{"details":"It can be used to invalidate a given signature.","params":{"where":"address of the \"where\" entity"}},"isOptedIn(address,address)":{"params":{"where":"address of the \"where\" entity","who":"address of the \"who\""},"returns":{"_0":"if the \"who\" is opted-in"}},"isOptedInAt(address,address,uint48,bytes)":{"params":{"hint":"hint for the checkpoint index","timestamp":"time point to get if the \"who\" is opted-in at","where":"address of the \"where\" entity","who":"address of the \"who\""},"returns":{"_0":"if the \"who\" is opted-in at the given timestamp"}},"nonces(address,address)":{"params":{"where":"address of the \"where\" entity","who":"address of the \"who\""},"returns":{"_0":"nonce"}},"optIn(address)":{"params":{"where":"address of the \"where\" entity"}},"optIn(address,address,uint48,bytes)":{"params":{"deadline":"time point until the signature is valid (inclusively)","signature":"signature of the \"who\"","where":"address of the \"where\" entity","who":"address of the \"who\""}},"optOut(address)":{"params":{"where":"address of the \"where\" entity"}},"optOut(address,address,uint48,bytes)":{"params":{"deadline":"time point until the signature is valid (inclusively)","signature":"signature of the \"who\"","where":"address of the \"where\" entity","who":"address of the \"who\""}}},"version":1},"userdoc":{"kind":"user","methods":{"WHERE_REGISTRY()":{"notice":"Get the address of the registry where to opt-in."},"WHO_REGISTRY()":{"notice":"Get the \"who\" registry's address."},"increaseNonce(address)":{"notice":"Increase the nonce of a given \"who\" to a particular \"where\" entity."},"isOptedIn(address,address)":{"notice":"Check if a given \"who\" is opted-in to a particular \"where\" entity."},"isOptedInAt(address,address,uint48,bytes)":{"notice":"Get if a given \"who\" is opted-in to a particular \"where\" entity at a given timestamp using a hint."},"nonces(address,address)":{"notice":"Get the nonce of a given \"who\" to a particular \"where\" entity."},"optIn(address)":{"notice":"Opt-in a calling \"who\" to a particular \"where\" entity."},"optIn(address,address,uint48,bytes)":{"notice":"Opt-in a \"who\" to a particular \"where\" entity with a signature."},"optOut(address)":{"notice":"Opt-out a calling \"who\" from a particular \"where\" entity."},"optOut(address,address,uint48,bytes)":{"notice":"Opt-out a \"who\" from a particular \"where\" entity with a signature."}},"version":1}},"settings":{"remappings":["@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/","@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/","@symbioticfi/core/=lib/core/","core/=lib/core/","ds-test/=lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/","erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/","forge-std/=lib/forge-std/src/","openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/","openzeppelin-contracts/=lib/openzeppelin-contracts/"],"optimizer":{"enabled":true,"runs":200},"metadata":{"bytecodeHash":"ipfs"},"compilationTarget":{"lib/core/src/interfaces/service/IOptInService.sol":"IOptInService"},"evmVersion":"cancun","libraries":{},"viaIR":true},"sources":{"lib/core/src/interfaces/service/IOptInService.sol":{"keccak256":"0x76fb5460a6d87a5705433d4fbeff7253cd75b8bbd0c888b2088f16e86ace146a","urls":["bzz-raw://990322019b3d11465f7024bae77ccbf7e2fe5d6fa3c754584778f37d04fa1337","dweb:/ipfs/QmaSNHzcqxTkUCG9a4nqVfLECHLdjdrwAnDi3yDC7tDL24"],"license":"MIT"}},"version":1},"id":49}