{"abi":[{"type":"function","name":"calculateAddresses","inputs":[{"name":"authorityOwner","type":"address","internalType":"address"},{"name":"epochLength","type":"uint256","internalType":"uint256"},{"name":"appOwner","type":"address","internalType":"address"},{"name":"templateHash","type":"bytes32","internalType":"bytes32"},{"name":"dataAvailability","type":"bytes","internalType":"bytes"},{"name":"salt","type":"bytes32","internalType":"bytes32"}],"outputs":[{"name":"","type":"address","internalType":"address"},{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"deployContracts","inputs":[{"name":"authorityOwner","type":"address","internalType":"address"},{"name":"epochLength","type":"uint256","internalType":"uint256"},{"name":"appOwner","type":"address","internalType":"address"},{"name":"templateHash","type":"bytes32","internalType":"bytes32"},{"name":"dataAvailability","type":"bytes","internalType":"bytes"},{"name":"salt","type":"bytes32","internalType":"bytes32"}],"outputs":[{"name":"","type":"address","internalType":"contract IApplication"},{"name":"","type":"address","internalType":"contract IAuthority"}],"stateMutability":"nonpayable"},{"type":"function","name":"getApplicationFactory","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IApplicationFactory"}],"stateMutability":"view"},{"type":"function","name":"getAuthorityFactory","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IAuthorityFactory"}],"stateMutability":"view"}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"calculateAddresses(address,uint256,address,bytes32,bytes,bytes32)":"938f7adc","deployContracts(address,uint256,address,bytes32,bytes,bytes32)":"50567b3a","getApplicationFactory()":"e63d50ff","getAuthorityFactory()":"75689f83"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"authorityOwner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"epochLength\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"appOwner\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"templateHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"dataAvailability\",\"type\":\"bytes\"},{\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\"}],\"name\":\"calculateAddresses\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"authorityOwner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"epochLength\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"appOwner\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"templateHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"dataAvailability\",\"type\":\"bytes\"},{\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\"}],\"name\":\"deployContracts\",\"outputs\":[{\"internalType\":\"contract IApplication\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"contract IAuthority\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getApplicationFactory\",\"outputs\":[{\"internalType\":\"contract IApplicationFactory\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAuthorityFactory\",\"outputs\":[{\"internalType\":\"contract IAuthorityFactory\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"calculateAddresses(address,uint256,address,bytes32,bytes,bytes32)\":{\"params\":{\"appOwner\":\"The initial application owner\",\"authorityOwner\":\"The initial authority owner\",\"epochLength\":\"The epoch length\",\"salt\":\"The salt used to deterministically generate the addresses\",\"templateHash\":\"The initial machine state hash\"},\"returns\":{\"_0\":\"The application address\",\"_1\":\"The authority address\"}},\"deployContracts(address,uint256,address,bytes32,bytes,bytes32)\":{\"details\":\"Reverts if the authority owner address is zero.Reverts if the application owner address is zero.Reverts if the epoch length is zero.\",\"params\":{\"appOwner\":\"The initial application owner\",\"authorityOwner\":\"The initial authority owner\",\"epochLength\":\"The epoch length\",\"salt\":\"The salt used to deterministically generate the addresses\",\"templateHash\":\"The initial machine state hash\"},\"returns\":{\"_0\":\"The application contract\",\"_1\":\"The authority contract\"}},\"getApplicationFactory()\":{\"returns\":{\"_0\":\"The application factory\"}},\"getAuthorityFactory()\":{\"returns\":{\"_0\":\"The authority factory\"}}},\"title\":\"Self-hosted Application Factory interface\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"calculateAddresses(address,uint256,address,bytes32,bytes,bytes32)\":{\"notice\":\"Calculate the addresses of the application and authority contracts to be deployed deterministically.\"},\"deployContracts(address,uint256,address,bytes32,bytes,bytes32)\":{\"notice\":\"Deploy new application and authority contracts deterministically.\"},\"getApplicationFactory()\":{\"notice\":\"Get the factory used to deploy `IApplication` contracts\"},\"getAuthorityFactory()\":{\"notice\":\"Get the factory used to deploy `IAuthority` contracts\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/dapp/ISelfHostedApplicationFactory.sol\":\"ISelfHostedApplicationFactory\"},\"evmVersion\":\"prague\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\":@openzeppelin-contracts-5.2.0/=dependencies/@openzeppelin-contracts-5.2.0/\",\":forge-std-1.9.6/=dependencies/forge-std-1.9.6/\"],\"viaIR\":true},\"sources\":{\"dependencies/@openzeppelin-contracts-5.2.0/utils/introspection/IERC165.sol\":{\"keccak256\":\"0x79796192ec90263f21b464d5bc90b777a525971d3de8232be80d9c4f9fb353b8\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f6fda447a62815e8064f47eff0dd1cf58d9207ad69b5d32280f8d7ed1d1e4621\",\"dweb:/ipfs/QmfDRc7pxfaXB2Dh9np5Uf29Na3pQ7tafRS684wd3GLjVL\"]},\"src/access/IOwnable.sol\":{\"keccak256\":\"0x826f366603fe6fd715bd912d40e9b4e851c110aea5895522523d800015532f6d\",\"license\":\"Apache-2.0 (see LICENSE)\",\"urls\":[\"bzz-raw://bb115a4a30824bf77e10b63727cea83e7e1e9bf4c3079ed65e3e7c0eaa290272\",\"dweb:/ipfs/QmYpjBNmELeX1NKdPjXcqnssz65pgYpX2g6ahKXisr9aWM\"]},\"src/common/OutputValidityProof.sol\":{\"keccak256\":\"0x3bd009e3b744e160f92a84624f8c325b5a6abc8f4e8e02e4a1b8a6de73779c1c\",\"license\":\"Apache-2.0 (see LICENSE)\",\"urls\":[\"bzz-raw://73da0a877327888a637d739a49ec807a48b65fff96b9c20472b6a8a926d46ff7\",\"dweb:/ipfs/QmaHmqdhJX4RpR3xK15hhuMdVFc47GtvcUkny9ffyzD5K6\"]},\"src/consensus/IConsensus.sol\":{\"keccak256\":\"0x26491d6a13136dfed5c07b4553c86f8ec3ec2e0de803085620523db9c4f94dd3\",\"license\":\"Apache-2.0 (see LICENSE)\",\"urls\":[\"bzz-raw://6a0efccda9973ca9da9b8a1fa18fba0df9a457a3b46c6d101ee06f6da43eb468\",\"dweb:/ipfs/QmehZJHU6fEmGuA2QkthA9Mka38phw4q4ioX34rqXKp9Pi\"]},\"src/consensus/IOutputsMerkleRootValidator.sol\":{\"keccak256\":\"0x133dfa71847fd6478489e983d53b08b22f5f578634c2103e96a11cd128e81d68\",\"license\":\"Apache-2.0 (see LICENSE)\",\"urls\":[\"bzz-raw://eb43c0a4aa7cd21753a3b92820da37ef58cf29aa4ef5c18a6f2face3e6e94e25\",\"dweb:/ipfs/QmezZmVZV1cfygDYPC8XheVVxaSZt92xQNdEpnRV6Xdh3M\"]},\"src/consensus/authority/IAuthority.sol\":{\"keccak256\":\"0x6b63b7eb9c7deac1184052e58a2fba6e45bc630f1a38225d35cafbd0d5b98b04\",\"license\":\"Apache-2.0 (see LICENSE)\",\"urls\":[\"bzz-raw://a5775335d8d7fbb9d8470259af3fe924fdfc14c35c36f4d860fb3f70f8b9ef3b\",\"dweb:/ipfs/QmdpkdekUhZF1mEeKwkLWw3gDt6M8zTeS148rJ4vhUs8Eb\"]},\"src/consensus/authority/IAuthorityFactory.sol\":{\"keccak256\":\"0xd4cd49c11fc103e07a3a47de2fb0b41b3b7ef99d0da345c3cf3d23fd4e7891f5\",\"license\":\"Apache-2.0 (see LICENSE)\",\"urls\":[\"bzz-raw://7299f0af4917ab188dce0158701aad3051ace781db93907b3fb593dbbb069329\",\"dweb:/ipfs/Qmf7zLU5YdyUQaVZxxQXapVsJZqLdMxUeysMUc8JoMygfK\"]},\"src/dapp/IApplication.sol\":{\"keccak256\":\"0x2f8e32fd984129fa6e95ff57a6eae42f84a5613643289af75b68f9fedda26e86\",\"license\":\"Apache-2.0 (see LICENSE)\",\"urls\":[\"bzz-raw://7b334fc95577418cdbb323118b6078cec1289075b8b72fb794828150fbc681e5\",\"dweb:/ipfs/QmNpyKbFyNdmpPXfzfH4bPj4we1A3Q1qKxGpY18rJpgx3Y\"]},\"src/dapp/IApplicationFactory.sol\":{\"keccak256\":\"0x4fce0e0577b43d9269f1b4f481b9f763096266075143d8bb83719a1358f04ce2\",\"license\":\"Apache-2.0 (see LICENSE)\",\"urls\":[\"bzz-raw://d14f5a4221fb227761fa43c4348e6c93a4d9b8491e0f2d02c8944de108a48290\",\"dweb:/ipfs/QmbxidJZ4UKxCePMqkuLKFcinRcMcDkSgFJMPwsgDFDM9j\"]},\"src/dapp/ISelfHostedApplicationFactory.sol\":{\"keccak256\":\"0xfa527eb6b5d2734bb094b459540624153bbef9fd877785974b984e590bb81205\",\"license\":\"Apache-2.0\",\"urls\":[\"bzz-raw://d81efd30c01a3e691c082d003993b4898895bf9d3b1a6ad6fb1f999fb9f66ecd\",\"dweb:/ipfs/Qmf7JzobaH58o5YidbrnoACCeJSQMZckrgmfKANKWqn7mc\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.30+commit.73712a01"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"address","name":"authorityOwner","type":"address"},{"internalType":"uint256","name":"epochLength","type":"uint256"},{"internalType":"address","name":"appOwner","type":"address"},{"internalType":"bytes32","name":"templateHash","type":"bytes32"},{"internalType":"bytes","name":"dataAvailability","type":"bytes"},{"internalType":"bytes32","name":"salt","type":"bytes32"}],"stateMutability":"view","type":"function","name":"calculateAddresses","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}]},{"inputs":[{"internalType":"address","name":"authorityOwner","type":"address"},{"internalType":"uint256","name":"epochLength","type":"uint256"},{"internalType":"address","name":"appOwner","type":"address"},{"internalType":"bytes32","name":"templateHash","type":"bytes32"},{"internalType":"bytes","name":"dataAvailability","type":"bytes"},{"internalType":"bytes32","name":"salt","type":"bytes32"}],"stateMutability":"nonpayable","type":"function","name":"deployContracts","outputs":[{"internalType":"contract IApplication","name":"","type":"address"},{"internalType":"contract IAuthority","name":"","type":"address"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getApplicationFactory","outputs":[{"internalType":"contract IApplicationFactory","name":"","type":"address"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getAuthorityFactory","outputs":[{"internalType":"contract IAuthorityFactory","name":"","type":"address"}]}],"devdoc":{"kind":"dev","methods":{"calculateAddresses(address,uint256,address,bytes32,bytes,bytes32)":{"params":{"appOwner":"The initial application owner","authorityOwner":"The initial authority owner","epochLength":"The epoch length","salt":"The salt used to deterministically generate the addresses","templateHash":"The initial machine state hash"},"returns":{"_0":"The application address","_1":"The authority address"}},"deployContracts(address,uint256,address,bytes32,bytes,bytes32)":{"details":"Reverts if the authority owner address is zero.Reverts if the application owner address is zero.Reverts if the epoch length is zero.","params":{"appOwner":"The initial application owner","authorityOwner":"The initial authority owner","epochLength":"The epoch length","salt":"The salt used to deterministically generate the addresses","templateHash":"The initial machine state hash"},"returns":{"_0":"The application contract","_1":"The authority contract"}},"getApplicationFactory()":{"returns":{"_0":"The application factory"}},"getAuthorityFactory()":{"returns":{"_0":"The authority factory"}}},"version":1},"userdoc":{"kind":"user","methods":{"calculateAddresses(address,uint256,address,bytes32,bytes,bytes32)":{"notice":"Calculate the addresses of the application and authority contracts to be deployed deterministically."},"deployContracts(address,uint256,address,bytes32,bytes,bytes32)":{"notice":"Deploy new application and authority contracts deterministically."},"getApplicationFactory()":{"notice":"Get the factory used to deploy `IApplication` contracts"},"getAuthorityFactory()":{"notice":"Get the factory used to deploy `IAuthority` contracts"}},"version":1}},"settings":{"remappings":["@openzeppelin-contracts-5.2.0/=dependencies/@openzeppelin-contracts-5.2.0/","forge-std-1.9.6/=dependencies/forge-std-1.9.6/"],"optimizer":{"enabled":true,"runs":200},"metadata":{"bytecodeHash":"ipfs"},"compilationTarget":{"src/dapp/ISelfHostedApplicationFactory.sol":"ISelfHostedApplicationFactory"},"evmVersion":"prague","libraries":{},"viaIR":true},"sources":{"dependencies/@openzeppelin-contracts-5.2.0/utils/introspection/IERC165.sol":{"keccak256":"0x79796192ec90263f21b464d5bc90b777a525971d3de8232be80d9c4f9fb353b8","urls":["bzz-raw://f6fda447a62815e8064f47eff0dd1cf58d9207ad69b5d32280f8d7ed1d1e4621","dweb:/ipfs/QmfDRc7pxfaXB2Dh9np5Uf29Na3pQ7tafRS684wd3GLjVL"],"license":"MIT"},"src/access/IOwnable.sol":{"keccak256":"0x826f366603fe6fd715bd912d40e9b4e851c110aea5895522523d800015532f6d","urls":["bzz-raw://bb115a4a30824bf77e10b63727cea83e7e1e9bf4c3079ed65e3e7c0eaa290272","dweb:/ipfs/QmYpjBNmELeX1NKdPjXcqnssz65pgYpX2g6ahKXisr9aWM"],"license":"Apache-2.0 (see LICENSE)"},"src/common/OutputValidityProof.sol":{"keccak256":"0x3bd009e3b744e160f92a84624f8c325b5a6abc8f4e8e02e4a1b8a6de73779c1c","urls":["bzz-raw://73da0a877327888a637d739a49ec807a48b65fff96b9c20472b6a8a926d46ff7","dweb:/ipfs/QmaHmqdhJX4RpR3xK15hhuMdVFc47GtvcUkny9ffyzD5K6"],"license":"Apache-2.0 (see LICENSE)"},"src/consensus/IConsensus.sol":{"keccak256":"0x26491d6a13136dfed5c07b4553c86f8ec3ec2e0de803085620523db9c4f94dd3","urls":["bzz-raw://6a0efccda9973ca9da9b8a1fa18fba0df9a457a3b46c6d101ee06f6da43eb468","dweb:/ipfs/QmehZJHU6fEmGuA2QkthA9Mka38phw4q4ioX34rqXKp9Pi"],"license":"Apache-2.0 (see LICENSE)"},"src/consensus/IOutputsMerkleRootValidator.sol":{"keccak256":"0x133dfa71847fd6478489e983d53b08b22f5f578634c2103e96a11cd128e81d68","urls":["bzz-raw://eb43c0a4aa7cd21753a3b92820da37ef58cf29aa4ef5c18a6f2face3e6e94e25","dweb:/ipfs/QmezZmVZV1cfygDYPC8XheVVxaSZt92xQNdEpnRV6Xdh3M"],"license":"Apache-2.0 (see LICENSE)"},"src/consensus/authority/IAuthority.sol":{"keccak256":"0x6b63b7eb9c7deac1184052e58a2fba6e45bc630f1a38225d35cafbd0d5b98b04","urls":["bzz-raw://a5775335d8d7fbb9d8470259af3fe924fdfc14c35c36f4d860fb3f70f8b9ef3b","dweb:/ipfs/QmdpkdekUhZF1mEeKwkLWw3gDt6M8zTeS148rJ4vhUs8Eb"],"license":"Apache-2.0 (see LICENSE)"},"src/consensus/authority/IAuthorityFactory.sol":{"keccak256":"0xd4cd49c11fc103e07a3a47de2fb0b41b3b7ef99d0da345c3cf3d23fd4e7891f5","urls":["bzz-raw://7299f0af4917ab188dce0158701aad3051ace781db93907b3fb593dbbb069329","dweb:/ipfs/Qmf7zLU5YdyUQaVZxxQXapVsJZqLdMxUeysMUc8JoMygfK"],"license":"Apache-2.0 (see LICENSE)"},"src/dapp/IApplication.sol":{"keccak256":"0x2f8e32fd984129fa6e95ff57a6eae42f84a5613643289af75b68f9fedda26e86","urls":["bzz-raw://7b334fc95577418cdbb323118b6078cec1289075b8b72fb794828150fbc681e5","dweb:/ipfs/QmNpyKbFyNdmpPXfzfH4bPj4we1A3Q1qKxGpY18rJpgx3Y"],"license":"Apache-2.0 (see LICENSE)"},"src/dapp/IApplicationFactory.sol":{"keccak256":"0x4fce0e0577b43d9269f1b4f481b9f763096266075143d8bb83719a1358f04ce2","urls":["bzz-raw://d14f5a4221fb227761fa43c4348e6c93a4d9b8491e0f2d02c8944de108a48290","dweb:/ipfs/QmbxidJZ4UKxCePMqkuLKFcinRcMcDkSgFJMPwsgDFDM9j"],"license":"Apache-2.0 (see LICENSE)"},"src/dapp/ISelfHostedApplicationFactory.sol":{"keccak256":"0xfa527eb6b5d2734bb094b459540624153bbef9fd877785974b984e590bb81205","urls":["bzz-raw://d81efd30c01a3e691c082d003993b4898895bf9d3b1a6ad6fb1f999fb9f66ecd","dweb:/ipfs/Qmf7JzobaH58o5YidbrnoACCeJSQMZckrgmfKANKWqn7mc"],"license":"Apache-2.0"}},"version":1},"id":41}