/**
Generated by the following Solidity interface...
```solidity
interface QuorumFactory {
event QuorumCreated(address quorum);
function calculateQuorumAddress(address[] memory validators, uint256 epochLength, bytes32 salt) external view returns (address);
function newQuorum(address[] memory validators, uint256 epochLength, bytes32 salt) external returns (address);
function newQuorum(address[] memory validators, uint256 epochLength) external returns (address);
}
```
...which was generated by the following JSON ABI:
```json
[
{
"type": "function",
"name": "calculateQuorumAddress",
"inputs": [
{
"name": "validators",
"type": "address[]",
"internalType": "address[]"
},
{
"name": "epochLength",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "salt",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "newQuorum",
"inputs": [
{
"name": "validators",
"type": "address[]",
"internalType": "address[]"
},
{
"name": "epochLength",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "salt",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IQuorum"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "newQuorum",
"inputs": [
{
"name": "validators",
"type": "address[]",
"internalType": "address[]"
},
{
"name": "epochLength",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IQuorum"
}
],
"stateMutability": "nonpayable"
},
{
"type": "event",
"name": "QuorumCreated",
"inputs": [
{
"name": "quorum",
"type": "address",
"indexed": false,
"internalType": "contract IQuorum"
}
],
"anonymous": false
}
]
```*/
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style,
clippy::empty_structs_with_brackets
)]
pub mod QuorumFactory {
use super::*;
use alloy::sol_types as alloy_sol_types;
/// The creation / init bytecode of the contract.
///
/// ```text
///0x60808060405234601557610c8d908161001a8239f35b5f80fdfe6080806040526004361015610012575f80fd5b5f3560e01c9081632f74f862146101c957508063ca8f271c1461010b5763d4af3bc81461003d575f80fd5b346101075760403660031901126101075760043567ffffffffffffffff81116101075761006e90369060040161024c565b906040519161092f908184019084821067ffffffffffffffff8311176100f35784936100a2936103298639602435926102b4565b03905ff080156100e85760209060018060a01b03167f446698b70271bce331e53210572bd37ac8c590b6cdca2e6763e6448243cba80282604051838152a1604051908152f35b6040513d5f823e3d90fd5b634e487b7160e01b5f52604160045260245ffd5b5f80fd5b34610107576020600b61019a6101203661027d565b939091928661092f916101696040519661013c84860189610306565b84885283880194610329863961015b60405197889286840195866102b4565b03601f198101875286610306565b60405194859383850197518091895e840190838201905f8252519283915e01015f815203601f198101835282610306565b51902090604051916040830152838201523081520160ff8153605590206040516001600160a01b039091168152f35b34610107576101d73661027d565b9392919061092f918285019385851067ffffffffffffffff8611176100f35785946102069461032987396102b4565b03905ff580156100e85760209060018060a01b03167f446698b70271bce331e53210572bd37ac8c590b6cdca2e6763e6448243cba80282604051838152a1604051908152f35b9181601f840112156101075782359167ffffffffffffffff8311610107576020808501948460051b01011161010757565b6060600319820112610107576004359067ffffffffffffffff8211610107576102a89160040161024c565b90916024359060443590565b6040808252810183905293929160608501905f905b8082106102db57505060209150930152565b909183356001600160a01b0381169190829003610107579081526020938401930191600101906102c9565b90601f8019910116810190811067ffffffffffffffff8211176100f35760405256fe60c0604052346101ba5761092f80380380610019816101d2565b9283398101906040818303126101ba5780516001600160401b0381116101ba57810182601f820112156101ba578051926001600160401b0384116101be578360051b9160208061006a8186016101d2565b8097815201938201019182116101ba57602001915b81831061019a578460208501518015610155576080525f905f5b81518110156101225760018060a01b0360208260051b8401015116805f52600360205260405f2054156100d0575b50600101610099565b92905f19821461010e57600180920193805f5260036020528460405f2055845f52600460205260405f2090838060a01b0319825416179055906100c7565b634e487b7160e01b5f52601160045260245ffd5b8260a05260405161073790816101f8823960805181818161014801526101d0015260a05181818161034401526105b90152f35b60405162461bcd60e51b815260206004820152601d60248201527f65706f6368206c656e677468206d757374206e6f74206265207a65726f0000006044820152606490fd5b82516001600160a01b03811681036101ba5781526020928301920161007f565b5f80fd5b634e487b7160e01b5f52604160045260245ffd5b6040519190601f01601f191682016001600160401b038111838210176101be5760405256fe6080806040526004361015610012575f80fd5b5f3560e01c90816301ffc9a714610646575080630a6f1fe81461060e5780631c45396a146105dc5780631e526e45146105a2578063446ccbf01461055e5780634b53459c146104fe5780634b84231c146104885780636470af00146101ac5780637051bfd51461016b578063cfe8a73b14610131578063d574f4d714610114578063e5cc8664146100cc5763ee5e0faa146100ab575f80fd5b346100c8575f3660031901126100c8576020600254604051908152f35b5f80fd5b346100c85760403660031901126100c8576001600160a01b036100ed6106b3565b165f525f60205260405f206024355f52602052602060ff60405f2054166040519015158152f35b346100c8575f3660031901126100c8576020600154604051908152f35b346100c8575f3660031901126100c85760206040517f00000000000000000000000000000000000000000000000000000000000000008152f35b346100c857610179366106c9565b9160018060a01b03165f52600660205260405f20905f5260205260405f20905f52602052602060405f2054604051908152f35b346100c8576101ba366106c9565b335f52600360205260405f2054928315610443577f0000000000000000000000000000000000000000000000000000000000000000801561042f575f1981018181116103d757818506036104195750438310156104025760018060a01b031692835f52600660205260405f20835f5260205260405f20825f5260205260405f2090845f52600560205260405f20845f5260205260405f206001830190610277838360019160ff918160081c5f52602052161b60405f205416151590565b1561027e57005b600181016102a3848260019160ff918160081c5f52602052161b60405f205416151590565b6103eb579061030e846103359594938a6040518b81528a60208201527ff4ff953641f10e17dd93c0bc51334cb1f711fdcb4e37992021a5973f7a958f0960403392a36102f06002546106f3565b6002558160081c5f52602052600160ff60405f2092161b8154179055565b61031881546106f3565b90558160081c5f52602052600160ff60405f2092161b8154179055565b61033f81546106f3565b8091557f000000000000000000000000000000000000000000000000000000000000000060011c60010190816001116103d7571461037957005b7f0f2cd00a405c0d1a66050307b6722c4788db6ed57aa3589a5c38da535cc3ce6391604091845f525f602052825f20815f52602052825f20600160ff1982541617905582519182526020820152a26103d26001546106f3565b600155005b634e487b7160e01b5f52601160045260245ffd5b8688637e94264560e01b5f5260045260245260445ffd5b8263d804a6a160e01b5f526004524360245260445ffd5b8363c92a0d6960e01b5f5260045260245260445ffd5b634e487b7160e01b5f52601260045260245ffd5b60405162461bcd60e51b815260206004820152601f60248201527f51756f72756d3a2063616c6c6572206973206e6f742076616c696461746f72006044820152606490fd5b346100c85760803660031901126100c8576001600160a01b036104a96106b3565b165f52600660205260405f206024355f5260205260405f206044355f5260205260206104f4606435600160405f200160019160ff918160081c5f52602052161b60405f205416151590565b6040519015158152f35b346100c85760603660031901126100c8576001600160a01b0361051f6106b3565b165f52600560205260405f206024355f5260205260206104f4604435600160405f200160019160ff918160081c5f52602052161b60405f205416151590565b346100c85760403660031901126100c8576001600160a01b0361057f6106b3565b165f52600560205260405f206024355f52602052602060405f2054604051908152f35b346100c8575f3660031901126100c85760206040517f00000000000000000000000000000000000000000000000000000000000000008152f35b346100c85760203660031901126100c8576004355f526004602052602060018060a01b0360405f205416604051908152f35b346100c85760203660031901126100c8576001600160a01b0361062f6106b3565b165f526003602052602060405f2054604051908152f35b346100c85760203660031901126100c8576004359063ffffffff60e01b82168092036100c857602091631e492d3160e11b8114908115610688575b5015158152f35b63485979a360e11b8114915081156106a2575b5083610681565b6301ffc9a760e01b1490508361069b565b600435906001600160a01b03821682036100c857565b60609060031901126100c8576004356001600160a01b03811681036100c857906024359060443590565b5f1981146103d7576001019056fea264697066735822122052abc5dd27fcc600285a47c6d62715d285b536f9402181559d3da36521ba611d64736f6c634300081e0033a2646970667358221220299a71046938646d2a95fc9002749639df82b216268c06721a1b73db8e6f543b64736f6c634300081e0033
/// ```
#[rustfmt::skip]
#[allow(clippy::all)]
pub static BYTECODE: alloy_sol_types::private::Bytes = alloy_sol_types::private::Bytes::from_static(
b"`\x80\x80`@R4`\x15Wa\x0C\x8D\x90\x81a\0\x1A\x829\xF3[_\x80\xFD\xFE`\x80\x80`@R`\x046\x10\x15a\0\x12W_\x80\xFD[_5`\xE0\x1C\x90\x81c/t\xF8b\x14a\x01\xC9WP\x80c\xCA\x8F'\x1C\x14a\x01\x0BWc\xD4\xAF;\xC8\x14a\0=W_\x80\xFD[4a\x01\x07W`@6`\x03\x19\x01\x12a\x01\x07W`\x045g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x11a\x01\x07Wa\0n\x906\x90`\x04\x01a\x02LV[\x90`@Q\x91a\t/\x90\x81\x84\x01\x90\x84\x82\x10g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x83\x11\x17a\0\xF3W\x84\x93a\0\xA2\x93a\x03)\x869`$5\x92a\x02\xB4V[\x03\x90_\xF0\x80\x15a\0\xE8W` \x90`\x01\x80`\xA0\x1B\x03\x16\x7FDf\x98\xB7\x02q\xBC\xE31\xE52\x10W+\xD3z\xC8\xC5\x90\xB6\xCD\xCA.gc\xE6D\x82C\xCB\xA8\x02\x82`@Q\x83\x81R\xA1`@Q\x90\x81R\xF3[`@Q=_\x82>=\x90\xFD[cNH{q`\xE0\x1B_R`A`\x04R`$_\xFD[_\x80\xFD[4a\x01\x07W` `\x0Ba\x01\x9Aa\x01 6a\x02}V[\x93\x90\x91\x92\x86a\t/\x91a\x01i`@Q\x96a\x01<\x84\x86\x01\x89a\x03\x06V[\x84\x88R\x83\x88\x01\x94a\x03)\x869a\x01[`@Q\x97\x88\x92\x86\x84\x01\x95\x86a\x02\xB4V[\x03`\x1F\x19\x81\x01\x87R\x86a\x03\x06V[`@Q\x94\x85\x93\x83\x85\x01\x97Q\x80\x91\x89^\x84\x01\x90\x83\x82\x01\x90_\x82RQ\x92\x83\x91^\x01\x01_\x81R\x03`\x1F\x19\x81\x01\x83R\x82a\x03\x06V[Q\x90 \x90`@Q\x91`@\x83\x01R\x83\x82\x01R0\x81R\x01`\xFF\x81S`U\x90 `@Q`\x01`\x01`\xA0\x1B\x03\x90\x91\x16\x81R\xF3[4a\x01\x07Wa\x01\xD76a\x02}V[\x93\x92\x91\x90a\t/\x91\x82\x85\x01\x93\x85\x85\x10g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x86\x11\x17a\0\xF3W\x85\x94a\x02\x06\x94a\x03)\x879a\x02\xB4V[\x03\x90_\xF5\x80\x15a\0\xE8W` \x90`\x01\x80`\xA0\x1B\x03\x16\x7FDf\x98\xB7\x02q\xBC\xE31\xE52\x10W+\xD3z\xC8\xC5\x90\xB6\xCD\xCA.gc\xE6D\x82C\xCB\xA8\x02\x82`@Q\x83\x81R\xA1`@Q\x90\x81R\xF3[\x91\x81`\x1F\x84\x01\x12\x15a\x01\x07W\x825\x91g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x83\x11a\x01\x07W` \x80\x85\x01\x94\x84`\x05\x1B\x01\x01\x11a\x01\x07WV[```\x03\x19\x82\x01\x12a\x01\x07W`\x045\x90g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x82\x11a\x01\x07Wa\x02\xA8\x91`\x04\x01a\x02LV[\x90\x91`$5\x90`D5\x90V[`@\x80\x82R\x81\x01\x83\x90R\x93\x92\x91``\x85\x01\x90_\x90[\x80\x82\x10a\x02\xDBWPP` \x91P\x93\x01RV[\x90\x91\x835`\x01`\x01`\xA0\x1B\x03\x81\x16\x91\x90\x82\x90\x03a\x01\x07W\x90\x81R` \x93\x84\x01\x93\x01\x91`\x01\x01\x90a\x02\xC9V[\x90`\x1F\x80\x19\x91\x01\x16\x81\x01\x90\x81\x10g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x82\x11\x17a\0\xF3W`@RV\xFE`\xC0`@R4a\x01\xBAWa\t/\x808\x03\x80a\0\x19\x81a\x01\xD2V[\x92\x839\x81\x01\x90`@\x81\x83\x03\x12a\x01\xBAW\x80Q`\x01`\x01`@\x1B\x03\x81\x11a\x01\xBAW\x81\x01\x82`\x1F\x82\x01\x12\x15a\x01\xBAW\x80Q\x92`\x01`\x01`@\x1B\x03\x84\x11a\x01\xBEW\x83`\x05\x1B\x91` \x80a\0j\x81\x86\x01a\x01\xD2V[\x80\x97\x81R\x01\x93\x82\x01\x01\x91\x82\x11a\x01\xBAW` \x01\x91[\x81\x83\x10a\x01\x9AW\x84` \x85\x01Q\x80\x15a\x01UW`\x80R_\x90_[\x81Q\x81\x10\x15a\x01\"W`\x01\x80`\xA0\x1B\x03` \x82`\x05\x1B\x84\x01\x01Q\x16\x80_R`\x03` R`@_ T\x15a\0\xD0W[P`\x01\x01a\0\x99V[\x92\x90_\x19\x82\x14a\x01\x0EW`\x01\x80\x92\x01\x93\x80_R`\x03` R\x84`@_ U\x84_R`\x04` R`@_ \x90\x83\x80`\xA0\x1B\x03\x19\x82T\x16\x17\x90U\x90a\0\xC7V[cNH{q`\xE0\x1B_R`\x11`\x04R`$_\xFD[\x82`\xA0R`@Qa\x077\x90\x81a\x01\xF8\x829`\x80Q\x81\x81\x81a\x01H\x01Ra\x01\xD0\x01R`\xA0Q\x81\x81\x81a\x03D\x01Ra\x05\xB9\x01R\xF3[`@QbF\x1B\xCD`\xE5\x1B\x81R` `\x04\x82\x01R`\x1D`$\x82\x01R\x7Fepoch length must not be zero\0\0\0`D\x82\x01R`d\x90\xFD[\x82Q`\x01`\x01`\xA0\x1B\x03\x81\x16\x81\x03a\x01\xBAW\x81R` \x92\x83\x01\x92\x01a\0\x7FV[_\x80\xFD[cNH{q`\xE0\x1B_R`A`\x04R`$_\xFD[`@Q\x91\x90`\x1F\x01`\x1F\x19\x16\x82\x01`\x01`\x01`@\x1B\x03\x81\x11\x83\x82\x10\x17a\x01\xBEW`@RV\xFE`\x80\x80`@R`\x046\x10\x15a\0\x12W_\x80\xFD[_5`\xE0\x1C\x90\x81c\x01\xFF\xC9\xA7\x14a\x06FWP\x80c\no\x1F\xE8\x14a\x06\x0EW\x80c\x1CE9j\x14a\x05\xDCW\x80c\x1ERnE\x14a\x05\xA2W\x80cDl\xCB\xF0\x14a\x05^W\x80cKSE\x9C\x14a\x04\xFEW\x80cK\x84#\x1C\x14a\x04\x88W\x80cdp\xAF\0\x14a\x01\xACW\x80cpQ\xBF\xD5\x14a\x01kW\x80c\xCF\xE8\xA7;\x14a\x011W\x80c\xD5t\xF4\xD7\x14a\x01\x14W\x80c\xE5\xCC\x86d\x14a\0\xCCWc\xEE^\x0F\xAA\x14a\0\xABW_\x80\xFD[4a\0\xC8W_6`\x03\x19\x01\x12a\0\xC8W` `\x02T`@Q\x90\x81R\xF3[_\x80\xFD[4a\0\xC8W`@6`\x03\x19\x01\x12a\0\xC8W`\x01`\x01`\xA0\x1B\x03a\0\xEDa\x06\xB3V[\x16_R_` R`@_ `$5_R` R` `\xFF`@_ T\x16`@Q\x90\x15\x15\x81R\xF3[4a\0\xC8W_6`\x03\x19\x01\x12a\0\xC8W` `\x01T`@Q\x90\x81R\xF3[4a\0\xC8W_6`\x03\x19\x01\x12a\0\xC8W` `@Q\x7F\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x81R\xF3[4a\0\xC8Wa\x01y6a\x06\xC9V[\x91`\x01\x80`\xA0\x1B\x03\x16_R`\x06` R`@_ \x90_R` R`@_ \x90_R` R` `@_ T`@Q\x90\x81R\xF3[4a\0\xC8Wa\x01\xBA6a\x06\xC9V[3_R`\x03` R`@_ T\x92\x83\x15a\x04CW\x7F\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x80\x15a\x04/W_\x19\x81\x01\x81\x81\x11a\x03\xD7W\x81\x85\x06\x03a\x04\x19WPC\x83\x10\x15a\x04\x02W`\x01\x80`\xA0\x1B\x03\x16\x92\x83_R`\x06` R`@_ \x83_R` R`@_ \x82_R` R`@_ \x90\x84_R`\x05` R`@_ \x84_R` R`@_ `\x01\x83\x01\x90a\x02w\x83\x83`\x01\x91`\xFF\x91\x81`\x08\x1C_R` R\x16\x1B`@_ T\x16\x15\x15\x90V[\x15a\x02~W\0[`\x01\x81\x01a\x02\xA3\x84\x82`\x01\x91`\xFF\x91\x81`\x08\x1C_R` R\x16\x1B`@_ T\x16\x15\x15\x90V[a\x03\xEBW\x90a\x03\x0E\x84a\x035\x95\x94\x93\x8A`@Q\x8B\x81R\x8A` \x82\x01R\x7F\xF4\xFF\x956A\xF1\x0E\x17\xDD\x93\xC0\xBCQ3L\xB1\xF7\x11\xFD\xCBN7\x99 !\xA5\x97?z\x95\x8F\t`@3\x92\xA3a\x02\xF0`\x02Ta\x06\xF3V[`\x02U\x81`\x08\x1C_R` R`\x01`\xFF`@_ \x92\x16\x1B\x81T\x17\x90UV[a\x03\x18\x81Ta\x06\xF3V[\x90U\x81`\x08\x1C_R` R`\x01`\xFF`@_ \x92\x16\x1B\x81T\x17\x90UV[a\x03?\x81Ta\x06\xF3V[\x80\x91U\x7F\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0`\x01\x1C`\x01\x01\x90\x81`\x01\x11a\x03\xD7W\x14a\x03yW\0[\x7F\x0F,\xD0\n@\\\r\x1Af\x05\x03\x07\xB6r,G\x88\xDBn\xD5z\xA3X\x9A\\8\xDAS\\\xC3\xCEc\x91`@\x91\x84_R_` R\x82_ \x81_R` R\x82_ `\x01`\xFF\x19\x82T\x16\x17\x90U\x82Q\x91\x82R` \x82\x01R\xA2a\x03\xD2`\x01Ta\x06\xF3V[`\x01U\0[cNH{q`\xE0\x1B_R`\x11`\x04R`$_\xFD[\x86\x88c~\x94&E`\xE0\x1B_R`\x04R`$R`D_\xFD[\x82c\xD8\x04\xA6\xA1`\xE0\x1B_R`\x04RC`$R`D_\xFD[\x83c\xC9*\ri`\xE0\x1B_R`\x04R`$R`D_\xFD[cNH{q`\xE0\x1B_R`\x12`\x04R`$_\xFD[`@QbF\x1B\xCD`\xE5\x1B\x81R` `\x04\x82\x01R`\x1F`$\x82\x01R\x7FQuorum: caller is not validator\0`D\x82\x01R`d\x90\xFD[4a\0\xC8W`\x806`\x03\x19\x01\x12a\0\xC8W`\x01`\x01`\xA0\x1B\x03a\x04\xA9a\x06\xB3V[\x16_R`\x06` R`@_ `$5_R` R`@_ `D5_R` R` a\x04\xF4`d5`\x01`@_ \x01`\x01\x91`\xFF\x91\x81`\x08\x1C_R` R\x16\x1B`@_ T\x16\x15\x15\x90V[`@Q\x90\x15\x15\x81R\xF3[4a\0\xC8W``6`\x03\x19\x01\x12a\0\xC8W`\x01`\x01`\xA0\x1B\x03a\x05\x1Fa\x06\xB3V[\x16_R`\x05` R`@_ `$5_R` R` a\x04\xF4`D5`\x01`@_ \x01`\x01\x91`\xFF\x91\x81`\x08\x1C_R` R\x16\x1B`@_ T\x16\x15\x15\x90V[4a\0\xC8W`@6`\x03\x19\x01\x12a\0\xC8W`\x01`\x01`\xA0\x1B\x03a\x05\x7Fa\x06\xB3V[\x16_R`\x05` R`@_ `$5_R` R` `@_ T`@Q\x90\x81R\xF3[4a\0\xC8W_6`\x03\x19\x01\x12a\0\xC8W` `@Q\x7F\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x81R\xF3[4a\0\xC8W` 6`\x03\x19\x01\x12a\0\xC8W`\x045_R`\x04` R` `\x01\x80`\xA0\x1B\x03`@_ T\x16`@Q\x90\x81R\xF3[4a\0\xC8W` 6`\x03\x19\x01\x12a\0\xC8W`\x01`\x01`\xA0\x1B\x03a\x06/a\x06\xB3V[\x16_R`\x03` R` `@_ T`@Q\x90\x81R\xF3[4a\0\xC8W` 6`\x03\x19\x01\x12a\0\xC8W`\x045\x90c\xFF\xFF\xFF\xFF`\xE0\x1B\x82\x16\x80\x92\x03a\0\xC8W` \x91c\x1EI-1`\xE1\x1B\x81\x14\x90\x81\x15a\x06\x88W[P\x15\x15\x81R\xF3[cHYy\xA3`\xE1\x1B\x81\x14\x91P\x81\x15a\x06\xA2W[P\x83a\x06\x81V[c\x01\xFF\xC9\xA7`\xE0\x1B\x14\x90P\x83a\x06\x9BV[`\x045\x90`\x01`\x01`\xA0\x1B\x03\x82\x16\x82\x03a\0\xC8WV[``\x90`\x03\x19\x01\x12a\0\xC8W`\x045`\x01`\x01`\xA0\x1B\x03\x81\x16\x81\x03a\0\xC8W\x90`$5\x90`D5\x90V[_\x19\x81\x14a\x03\xD7W`\x01\x01\x90V\xFE\xA2dipfsX\"\x12 R\xAB\xC5\xDD'\xFC\xC6\0(ZG\xC6\xD6'\x15\xD2\x85\xB56\xF9@!\x81U\x9D=\xA3e!\xBAa\x1DdsolcC\0\x08\x1E\x003\xA2dipfsX\"\x12 )\x9Aq\x04i8dm*\x95\xFC\x90\x02t\x969\xDF\x82\xB2\x16&\x8C\x06r\x1A\x1Bs\xDB\x8EoT;dsolcC\0\x08\x1E\x003",
);
/// The runtime bytecode of the contract, as deployed on the network.
///
/// ```text
///0x6080806040526004361015610012575f80fd5b5f3560e01c9081632f74f862146101c957508063ca8f271c1461010b5763d4af3bc81461003d575f80fd5b346101075760403660031901126101075760043567ffffffffffffffff81116101075761006e90369060040161024c565b906040519161092f908184019084821067ffffffffffffffff8311176100f35784936100a2936103298639602435926102b4565b03905ff080156100e85760209060018060a01b03167f446698b70271bce331e53210572bd37ac8c590b6cdca2e6763e6448243cba80282604051838152a1604051908152f35b6040513d5f823e3d90fd5b634e487b7160e01b5f52604160045260245ffd5b5f80fd5b34610107576020600b61019a6101203661027d565b939091928661092f916101696040519661013c84860189610306565b84885283880194610329863961015b60405197889286840195866102b4565b03601f198101875286610306565b60405194859383850197518091895e840190838201905f8252519283915e01015f815203601f198101835282610306565b51902090604051916040830152838201523081520160ff8153605590206040516001600160a01b039091168152f35b34610107576101d73661027d565b9392919061092f918285019385851067ffffffffffffffff8611176100f35785946102069461032987396102b4565b03905ff580156100e85760209060018060a01b03167f446698b70271bce331e53210572bd37ac8c590b6cdca2e6763e6448243cba80282604051838152a1604051908152f35b9181601f840112156101075782359167ffffffffffffffff8311610107576020808501948460051b01011161010757565b6060600319820112610107576004359067ffffffffffffffff8211610107576102a89160040161024c565b90916024359060443590565b6040808252810183905293929160608501905f905b8082106102db57505060209150930152565b909183356001600160a01b0381169190829003610107579081526020938401930191600101906102c9565b90601f8019910116810190811067ffffffffffffffff8211176100f35760405256fe60c0604052346101ba5761092f80380380610019816101d2565b9283398101906040818303126101ba5780516001600160401b0381116101ba57810182601f820112156101ba578051926001600160401b0384116101be578360051b9160208061006a8186016101d2565b8097815201938201019182116101ba57602001915b81831061019a578460208501518015610155576080525f905f5b81518110156101225760018060a01b0360208260051b8401015116805f52600360205260405f2054156100d0575b50600101610099565b92905f19821461010e57600180920193805f5260036020528460405f2055845f52600460205260405f2090838060a01b0319825416179055906100c7565b634e487b7160e01b5f52601160045260245ffd5b8260a05260405161073790816101f8823960805181818161014801526101d0015260a05181818161034401526105b90152f35b60405162461bcd60e51b815260206004820152601d60248201527f65706f6368206c656e677468206d757374206e6f74206265207a65726f0000006044820152606490fd5b82516001600160a01b03811681036101ba5781526020928301920161007f565b5f80fd5b634e487b7160e01b5f52604160045260245ffd5b6040519190601f01601f191682016001600160401b038111838210176101be5760405256fe6080806040526004361015610012575f80fd5b5f3560e01c90816301ffc9a714610646575080630a6f1fe81461060e5780631c45396a146105dc5780631e526e45146105a2578063446ccbf01461055e5780634b53459c146104fe5780634b84231c146104885780636470af00146101ac5780637051bfd51461016b578063cfe8a73b14610131578063d574f4d714610114578063e5cc8664146100cc5763ee5e0faa146100ab575f80fd5b346100c8575f3660031901126100c8576020600254604051908152f35b5f80fd5b346100c85760403660031901126100c8576001600160a01b036100ed6106b3565b165f525f60205260405f206024355f52602052602060ff60405f2054166040519015158152f35b346100c8575f3660031901126100c8576020600154604051908152f35b346100c8575f3660031901126100c85760206040517f00000000000000000000000000000000000000000000000000000000000000008152f35b346100c857610179366106c9565b9160018060a01b03165f52600660205260405f20905f5260205260405f20905f52602052602060405f2054604051908152f35b346100c8576101ba366106c9565b335f52600360205260405f2054928315610443577f0000000000000000000000000000000000000000000000000000000000000000801561042f575f1981018181116103d757818506036104195750438310156104025760018060a01b031692835f52600660205260405f20835f5260205260405f20825f5260205260405f2090845f52600560205260405f20845f5260205260405f206001830190610277838360019160ff918160081c5f52602052161b60405f205416151590565b1561027e57005b600181016102a3848260019160ff918160081c5f52602052161b60405f205416151590565b6103eb579061030e846103359594938a6040518b81528a60208201527ff4ff953641f10e17dd93c0bc51334cb1f711fdcb4e37992021a5973f7a958f0960403392a36102f06002546106f3565b6002558160081c5f52602052600160ff60405f2092161b8154179055565b61031881546106f3565b90558160081c5f52602052600160ff60405f2092161b8154179055565b61033f81546106f3565b8091557f000000000000000000000000000000000000000000000000000000000000000060011c60010190816001116103d7571461037957005b7f0f2cd00a405c0d1a66050307b6722c4788db6ed57aa3589a5c38da535cc3ce6391604091845f525f602052825f20815f52602052825f20600160ff1982541617905582519182526020820152a26103d26001546106f3565b600155005b634e487b7160e01b5f52601160045260245ffd5b8688637e94264560e01b5f5260045260245260445ffd5b8263d804a6a160e01b5f526004524360245260445ffd5b8363c92a0d6960e01b5f5260045260245260445ffd5b634e487b7160e01b5f52601260045260245ffd5b60405162461bcd60e51b815260206004820152601f60248201527f51756f72756d3a2063616c6c6572206973206e6f742076616c696461746f72006044820152606490fd5b346100c85760803660031901126100c8576001600160a01b036104a96106b3565b165f52600660205260405f206024355f5260205260405f206044355f5260205260206104f4606435600160405f200160019160ff918160081c5f52602052161b60405f205416151590565b6040519015158152f35b346100c85760603660031901126100c8576001600160a01b0361051f6106b3565b165f52600560205260405f206024355f5260205260206104f4604435600160405f200160019160ff918160081c5f52602052161b60405f205416151590565b346100c85760403660031901126100c8576001600160a01b0361057f6106b3565b165f52600560205260405f206024355f52602052602060405f2054604051908152f35b346100c8575f3660031901126100c85760206040517f00000000000000000000000000000000000000000000000000000000000000008152f35b346100c85760203660031901126100c8576004355f526004602052602060018060a01b0360405f205416604051908152f35b346100c85760203660031901126100c8576001600160a01b0361062f6106b3565b165f526003602052602060405f2054604051908152f35b346100c85760203660031901126100c8576004359063ffffffff60e01b82168092036100c857602091631e492d3160e11b8114908115610688575b5015158152f35b63485979a360e11b8114915081156106a2575b5083610681565b6301ffc9a760e01b1490508361069b565b600435906001600160a01b03821682036100c857565b60609060031901126100c8576004356001600160a01b03811681036100c857906024359060443590565b5f1981146103d7576001019056fea264697066735822122052abc5dd27fcc600285a47c6d62715d285b536f9402181559d3da36521ba611d64736f6c634300081e0033a2646970667358221220299a71046938646d2a95fc9002749639df82b216268c06721a1b73db8e6f543b64736f6c634300081e0033
/// ```
#[rustfmt::skip]
#[allow(clippy::all)]
pub static DEPLOYED_BYTECODE: alloy_sol_types::private::Bytes = alloy_sol_types::private::Bytes::from_static(
b"`\x80\x80`@R`\x046\x10\x15a\0\x12W_\x80\xFD[_5`\xE0\x1C\x90\x81c/t\xF8b\x14a\x01\xC9WP\x80c\xCA\x8F'\x1C\x14a\x01\x0BWc\xD4\xAF;\xC8\x14a\0=W_\x80\xFD[4a\x01\x07W`@6`\x03\x19\x01\x12a\x01\x07W`\x045g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x11a\x01\x07Wa\0n\x906\x90`\x04\x01a\x02LV[\x90`@Q\x91a\t/\x90\x81\x84\x01\x90\x84\x82\x10g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x83\x11\x17a\0\xF3W\x84\x93a\0\xA2\x93a\x03)\x869`$5\x92a\x02\xB4V[\x03\x90_\xF0\x80\x15a\0\xE8W` \x90`\x01\x80`\xA0\x1B\x03\x16\x7FDf\x98\xB7\x02q\xBC\xE31\xE52\x10W+\xD3z\xC8\xC5\x90\xB6\xCD\xCA.gc\xE6D\x82C\xCB\xA8\x02\x82`@Q\x83\x81R\xA1`@Q\x90\x81R\xF3[`@Q=_\x82>=\x90\xFD[cNH{q`\xE0\x1B_R`A`\x04R`$_\xFD[_\x80\xFD[4a\x01\x07W` `\x0Ba\x01\x9Aa\x01 6a\x02}V[\x93\x90\x91\x92\x86a\t/\x91a\x01i`@Q\x96a\x01<\x84\x86\x01\x89a\x03\x06V[\x84\x88R\x83\x88\x01\x94a\x03)\x869a\x01[`@Q\x97\x88\x92\x86\x84\x01\x95\x86a\x02\xB4V[\x03`\x1F\x19\x81\x01\x87R\x86a\x03\x06V[`@Q\x94\x85\x93\x83\x85\x01\x97Q\x80\x91\x89^\x84\x01\x90\x83\x82\x01\x90_\x82RQ\x92\x83\x91^\x01\x01_\x81R\x03`\x1F\x19\x81\x01\x83R\x82a\x03\x06V[Q\x90 \x90`@Q\x91`@\x83\x01R\x83\x82\x01R0\x81R\x01`\xFF\x81S`U\x90 `@Q`\x01`\x01`\xA0\x1B\x03\x90\x91\x16\x81R\xF3[4a\x01\x07Wa\x01\xD76a\x02}V[\x93\x92\x91\x90a\t/\x91\x82\x85\x01\x93\x85\x85\x10g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x86\x11\x17a\0\xF3W\x85\x94a\x02\x06\x94a\x03)\x879a\x02\xB4V[\x03\x90_\xF5\x80\x15a\0\xE8W` \x90`\x01\x80`\xA0\x1B\x03\x16\x7FDf\x98\xB7\x02q\xBC\xE31\xE52\x10W+\xD3z\xC8\xC5\x90\xB6\xCD\xCA.gc\xE6D\x82C\xCB\xA8\x02\x82`@Q\x83\x81R\xA1`@Q\x90\x81R\xF3[\x91\x81`\x1F\x84\x01\x12\x15a\x01\x07W\x825\x91g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x83\x11a\x01\x07W` \x80\x85\x01\x94\x84`\x05\x1B\x01\x01\x11a\x01\x07WV[```\x03\x19\x82\x01\x12a\x01\x07W`\x045\x90g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x82\x11a\x01\x07Wa\x02\xA8\x91`\x04\x01a\x02LV[\x90\x91`$5\x90`D5\x90V[`@\x80\x82R\x81\x01\x83\x90R\x93\x92\x91``\x85\x01\x90_\x90[\x80\x82\x10a\x02\xDBWPP` \x91P\x93\x01RV[\x90\x91\x835`\x01`\x01`\xA0\x1B\x03\x81\x16\x91\x90\x82\x90\x03a\x01\x07W\x90\x81R` \x93\x84\x01\x93\x01\x91`\x01\x01\x90a\x02\xC9V[\x90`\x1F\x80\x19\x91\x01\x16\x81\x01\x90\x81\x10g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x82\x11\x17a\0\xF3W`@RV\xFE`\xC0`@R4a\x01\xBAWa\t/\x808\x03\x80a\0\x19\x81a\x01\xD2V[\x92\x839\x81\x01\x90`@\x81\x83\x03\x12a\x01\xBAW\x80Q`\x01`\x01`@\x1B\x03\x81\x11a\x01\xBAW\x81\x01\x82`\x1F\x82\x01\x12\x15a\x01\xBAW\x80Q\x92`\x01`\x01`@\x1B\x03\x84\x11a\x01\xBEW\x83`\x05\x1B\x91` \x80a\0j\x81\x86\x01a\x01\xD2V[\x80\x97\x81R\x01\x93\x82\x01\x01\x91\x82\x11a\x01\xBAW` \x01\x91[\x81\x83\x10a\x01\x9AW\x84` \x85\x01Q\x80\x15a\x01UW`\x80R_\x90_[\x81Q\x81\x10\x15a\x01\"W`\x01\x80`\xA0\x1B\x03` \x82`\x05\x1B\x84\x01\x01Q\x16\x80_R`\x03` R`@_ T\x15a\0\xD0W[P`\x01\x01a\0\x99V[\x92\x90_\x19\x82\x14a\x01\x0EW`\x01\x80\x92\x01\x93\x80_R`\x03` R\x84`@_ U\x84_R`\x04` R`@_ \x90\x83\x80`\xA0\x1B\x03\x19\x82T\x16\x17\x90U\x90a\0\xC7V[cNH{q`\xE0\x1B_R`\x11`\x04R`$_\xFD[\x82`\xA0R`@Qa\x077\x90\x81a\x01\xF8\x829`\x80Q\x81\x81\x81a\x01H\x01Ra\x01\xD0\x01R`\xA0Q\x81\x81\x81a\x03D\x01Ra\x05\xB9\x01R\xF3[`@QbF\x1B\xCD`\xE5\x1B\x81R` `\x04\x82\x01R`\x1D`$\x82\x01R\x7Fepoch length must not be zero\0\0\0`D\x82\x01R`d\x90\xFD[\x82Q`\x01`\x01`\xA0\x1B\x03\x81\x16\x81\x03a\x01\xBAW\x81R` \x92\x83\x01\x92\x01a\0\x7FV[_\x80\xFD[cNH{q`\xE0\x1B_R`A`\x04R`$_\xFD[`@Q\x91\x90`\x1F\x01`\x1F\x19\x16\x82\x01`\x01`\x01`@\x1B\x03\x81\x11\x83\x82\x10\x17a\x01\xBEW`@RV\xFE`\x80\x80`@R`\x046\x10\x15a\0\x12W_\x80\xFD[_5`\xE0\x1C\x90\x81c\x01\xFF\xC9\xA7\x14a\x06FWP\x80c\no\x1F\xE8\x14a\x06\x0EW\x80c\x1CE9j\x14a\x05\xDCW\x80c\x1ERnE\x14a\x05\xA2W\x80cDl\xCB\xF0\x14a\x05^W\x80cKSE\x9C\x14a\x04\xFEW\x80cK\x84#\x1C\x14a\x04\x88W\x80cdp\xAF\0\x14a\x01\xACW\x80cpQ\xBF\xD5\x14a\x01kW\x80c\xCF\xE8\xA7;\x14a\x011W\x80c\xD5t\xF4\xD7\x14a\x01\x14W\x80c\xE5\xCC\x86d\x14a\0\xCCWc\xEE^\x0F\xAA\x14a\0\xABW_\x80\xFD[4a\0\xC8W_6`\x03\x19\x01\x12a\0\xC8W` `\x02T`@Q\x90\x81R\xF3[_\x80\xFD[4a\0\xC8W`@6`\x03\x19\x01\x12a\0\xC8W`\x01`\x01`\xA0\x1B\x03a\0\xEDa\x06\xB3V[\x16_R_` R`@_ `$5_R` R` `\xFF`@_ T\x16`@Q\x90\x15\x15\x81R\xF3[4a\0\xC8W_6`\x03\x19\x01\x12a\0\xC8W` `\x01T`@Q\x90\x81R\xF3[4a\0\xC8W_6`\x03\x19\x01\x12a\0\xC8W` `@Q\x7F\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x81R\xF3[4a\0\xC8Wa\x01y6a\x06\xC9V[\x91`\x01\x80`\xA0\x1B\x03\x16_R`\x06` R`@_ \x90_R` R`@_ \x90_R` R` `@_ T`@Q\x90\x81R\xF3[4a\0\xC8Wa\x01\xBA6a\x06\xC9V[3_R`\x03` R`@_ T\x92\x83\x15a\x04CW\x7F\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x80\x15a\x04/W_\x19\x81\x01\x81\x81\x11a\x03\xD7W\x81\x85\x06\x03a\x04\x19WPC\x83\x10\x15a\x04\x02W`\x01\x80`\xA0\x1B\x03\x16\x92\x83_R`\x06` R`@_ \x83_R` R`@_ \x82_R` R`@_ \x90\x84_R`\x05` R`@_ \x84_R` R`@_ `\x01\x83\x01\x90a\x02w\x83\x83`\x01\x91`\xFF\x91\x81`\x08\x1C_R` R\x16\x1B`@_ T\x16\x15\x15\x90V[\x15a\x02~W\0[`\x01\x81\x01a\x02\xA3\x84\x82`\x01\x91`\xFF\x91\x81`\x08\x1C_R` R\x16\x1B`@_ T\x16\x15\x15\x90V[a\x03\xEBW\x90a\x03\x0E\x84a\x035\x95\x94\x93\x8A`@Q\x8B\x81R\x8A` \x82\x01R\x7F\xF4\xFF\x956A\xF1\x0E\x17\xDD\x93\xC0\xBCQ3L\xB1\xF7\x11\xFD\xCBN7\x99 !\xA5\x97?z\x95\x8F\t`@3\x92\xA3a\x02\xF0`\x02Ta\x06\xF3V[`\x02U\x81`\x08\x1C_R` R`\x01`\xFF`@_ \x92\x16\x1B\x81T\x17\x90UV[a\x03\x18\x81Ta\x06\xF3V[\x90U\x81`\x08\x1C_R` R`\x01`\xFF`@_ \x92\x16\x1B\x81T\x17\x90UV[a\x03?\x81Ta\x06\xF3V[\x80\x91U\x7F\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0`\x01\x1C`\x01\x01\x90\x81`\x01\x11a\x03\xD7W\x14a\x03yW\0[\x7F\x0F,\xD0\n@\\\r\x1Af\x05\x03\x07\xB6r,G\x88\xDBn\xD5z\xA3X\x9A\\8\xDAS\\\xC3\xCEc\x91`@\x91\x84_R_` R\x82_ \x81_R` R\x82_ `\x01`\xFF\x19\x82T\x16\x17\x90U\x82Q\x91\x82R` \x82\x01R\xA2a\x03\xD2`\x01Ta\x06\xF3V[`\x01U\0[cNH{q`\xE0\x1B_R`\x11`\x04R`$_\xFD[\x86\x88c~\x94&E`\xE0\x1B_R`\x04R`$R`D_\xFD[\x82c\xD8\x04\xA6\xA1`\xE0\x1B_R`\x04RC`$R`D_\xFD[\x83c\xC9*\ri`\xE0\x1B_R`\x04R`$R`D_\xFD[cNH{q`\xE0\x1B_R`\x12`\x04R`$_\xFD[`@QbF\x1B\xCD`\xE5\x1B\x81R` `\x04\x82\x01R`\x1F`$\x82\x01R\x7FQuorum: caller is not validator\0`D\x82\x01R`d\x90\xFD[4a\0\xC8W`\x806`\x03\x19\x01\x12a\0\xC8W`\x01`\x01`\xA0\x1B\x03a\x04\xA9a\x06\xB3V[\x16_R`\x06` R`@_ `$5_R` R`@_ `D5_R` R` a\x04\xF4`d5`\x01`@_ \x01`\x01\x91`\xFF\x91\x81`\x08\x1C_R` R\x16\x1B`@_ T\x16\x15\x15\x90V[`@Q\x90\x15\x15\x81R\xF3[4a\0\xC8W``6`\x03\x19\x01\x12a\0\xC8W`\x01`\x01`\xA0\x1B\x03a\x05\x1Fa\x06\xB3V[\x16_R`\x05` R`@_ `$5_R` R` a\x04\xF4`D5`\x01`@_ \x01`\x01\x91`\xFF\x91\x81`\x08\x1C_R` R\x16\x1B`@_ T\x16\x15\x15\x90V[4a\0\xC8W`@6`\x03\x19\x01\x12a\0\xC8W`\x01`\x01`\xA0\x1B\x03a\x05\x7Fa\x06\xB3V[\x16_R`\x05` R`@_ `$5_R` R` `@_ T`@Q\x90\x81R\xF3[4a\0\xC8W_6`\x03\x19\x01\x12a\0\xC8W` `@Q\x7F\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x81R\xF3[4a\0\xC8W` 6`\x03\x19\x01\x12a\0\xC8W`\x045_R`\x04` R` `\x01\x80`\xA0\x1B\x03`@_ T\x16`@Q\x90\x81R\xF3[4a\0\xC8W` 6`\x03\x19\x01\x12a\0\xC8W`\x01`\x01`\xA0\x1B\x03a\x06/a\x06\xB3V[\x16_R`\x03` R` `@_ T`@Q\x90\x81R\xF3[4a\0\xC8W` 6`\x03\x19\x01\x12a\0\xC8W`\x045\x90c\xFF\xFF\xFF\xFF`\xE0\x1B\x82\x16\x80\x92\x03a\0\xC8W` \x91c\x1EI-1`\xE1\x1B\x81\x14\x90\x81\x15a\x06\x88W[P\x15\x15\x81R\xF3[cHYy\xA3`\xE1\x1B\x81\x14\x91P\x81\x15a\x06\xA2W[P\x83a\x06\x81V[c\x01\xFF\xC9\xA7`\xE0\x1B\x14\x90P\x83a\x06\x9BV[`\x045\x90`\x01`\x01`\xA0\x1B\x03\x82\x16\x82\x03a\0\xC8WV[``\x90`\x03\x19\x01\x12a\0\xC8W`\x045`\x01`\x01`\xA0\x1B\x03\x81\x16\x81\x03a\0\xC8W\x90`$5\x90`D5\x90V[_\x19\x81\x14a\x03\xD7W`\x01\x01\x90V\xFE\xA2dipfsX\"\x12 R\xAB\xC5\xDD'\xFC\xC6\0(ZG\xC6\xD6'\x15\xD2\x85\xB56\xF9@!\x81U\x9D=\xA3e!\xBAa\x1DdsolcC\0\x08\x1E\x003\xA2dipfsX\"\x12 )\x9Aq\x04i8dm*\x95\xFC\x90\x02t\x969\xDF\x82\xB2\x16&\x8C\x06r\x1A\x1Bs\xDB\x8EoT;dsolcC\0\x08\x1E\x003",
);
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
/**Event with signature `QuorumCreated(address)` and selector `0x446698b70271bce331e53210572bd37ac8c590b6cdca2e6763e6448243cba802`.
```solidity
event QuorumCreated(address quorum);
```*/
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
#[derive(Clone)]
pub struct QuorumCreated {
#[allow(missing_docs)]
pub quorum: alloy::sol_types::private::Address,
}
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
const _: () = {
use alloy::sol_types as alloy_sol_types;
#[automatically_derived]
impl alloy_sol_types::SolEvent for QuorumCreated {
type DataTuple<'a> = (alloy::sol_types::sol_data::Address,);
type DataToken<'a> = <Self::DataTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type TopicList = (alloy_sol_types::sol_data::FixedBytes<32>,);
const SIGNATURE: &'static str = "QuorumCreated(address)";
const SIGNATURE_HASH: alloy_sol_types::private::B256 = alloy_sol_types::private::B256::new([
68u8, 102u8, 152u8, 183u8, 2u8, 113u8, 188u8, 227u8, 49u8, 229u8, 50u8,
16u8, 87u8, 43u8, 211u8, 122u8, 200u8, 197u8, 144u8, 182u8, 205u8, 202u8,
46u8, 103u8, 99u8, 230u8, 68u8, 130u8, 67u8, 203u8, 168u8, 2u8,
]);
const ANONYMOUS: bool = false;
#[allow(unused_variables)]
#[inline]
fn new(
topics: <Self::TopicList as alloy_sol_types::SolType>::RustType,
data: <Self::DataTuple<'_> as alloy_sol_types::SolType>::RustType,
) -> Self {
Self { quorum: data.0 }
}
#[inline]
fn check_signature(
topics: &<Self::TopicList as alloy_sol_types::SolType>::RustType,
) -> alloy_sol_types::Result<()> {
if topics.0 != Self::SIGNATURE_HASH {
return Err(
alloy_sol_types::Error::invalid_event_signature_hash(
Self::SIGNATURE,
topics.0,
Self::SIGNATURE_HASH,
),
);
}
Ok(())
}
#[inline]
fn tokenize_body(&self) -> Self::DataToken<'_> {
(
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.quorum,
),
)
}
#[inline]
fn topics(&self) -> <Self::TopicList as alloy_sol_types::SolType>::RustType {
(Self::SIGNATURE_HASH.into(),)
}
#[inline]
fn encode_topics_raw(
&self,
out: &mut [alloy_sol_types::abi::token::WordToken],
) -> alloy_sol_types::Result<()> {
if out.len() < <Self::TopicList as alloy_sol_types::TopicList>::COUNT {
return Err(alloy_sol_types::Error::Overrun);
}
out[0usize] = alloy_sol_types::abi::token::WordToken(
Self::SIGNATURE_HASH,
);
Ok(())
}
}
#[automatically_derived]
impl alloy_sol_types::private::IntoLogData for QuorumCreated {
fn to_log_data(&self) -> alloy_sol_types::private::LogData {
From::from(self)
}
fn into_log_data(self) -> alloy_sol_types::private::LogData {
From::from(&self)
}
}
#[automatically_derived]
impl From<&QuorumCreated> for alloy_sol_types::private::LogData {
#[inline]
fn from(this: &QuorumCreated) -> alloy_sol_types::private::LogData {
alloy_sol_types::SolEvent::encode_log_data(this)
}
}
};
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
/**Function with signature `calculateQuorumAddress(address[],uint256,bytes32)` and selector `0xca8f271c`.
```solidity
function calculateQuorumAddress(address[] memory validators, uint256 epochLength, bytes32 salt) external view returns (address);
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct calculateQuorumAddressCall {
#[allow(missing_docs)]
pub validators: alloy::sol_types::private::Vec<
alloy::sol_types::private::Address,
>,
#[allow(missing_docs)]
pub epochLength: alloy::sol_types::private::primitives::aliases::U256,
#[allow(missing_docs)]
pub salt: alloy::sol_types::private::FixedBytes<32>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
///Container type for the return parameters of the [`calculateQuorumAddress(address[],uint256,bytes32)`](calculateQuorumAddressCall) function.
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct calculateQuorumAddressReturn {
#[allow(missing_docs)]
pub _0: alloy::sol_types::private::Address,
}
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
const _: () = {
use alloy::sol_types as alloy_sol_types;
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (
alloy::sol_types::sol_data::Array<alloy::sol_types::sol_data::Address>,
alloy::sol_types::sol_data::Uint<256>,
alloy::sol_types::sol_data::FixedBytes<32>,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
alloy::sol_types::private::Vec<alloy::sol_types::private::Address>,
alloy::sol_types::private::primitives::aliases::U256,
alloy::sol_types::private::FixedBytes<32>,
);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<calculateQuorumAddressCall>
for UnderlyingRustTuple<'_> {
fn from(value: calculateQuorumAddressCall) -> Self {
(value.validators, value.epochLength, value.salt)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for calculateQuorumAddressCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
validators: tuple.0,
epochLength: tuple.1,
salt: tuple.2,
}
}
}
}
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (alloy::sol_types::sol_data::Address,);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (alloy::sol_types::private::Address,);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<calculateQuorumAddressReturn>
for UnderlyingRustTuple<'_> {
fn from(value: calculateQuorumAddressReturn) -> Self {
(value._0,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for calculateQuorumAddressReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { _0: tuple.0 }
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for calculateQuorumAddressCall {
type Parameters<'a> = (
alloy::sol_types::sol_data::Array<alloy::sol_types::sol_data::Address>,
alloy::sol_types::sol_data::Uint<256>,
alloy::sol_types::sol_data::FixedBytes<32>,
);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = alloy::sol_types::private::Address;
type ReturnTuple<'a> = (alloy::sol_types::sol_data::Address,);
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "calculateQuorumAddress(address[],uint256,bytes32)";
const SELECTOR: [u8; 4] = [202u8, 143u8, 39u8, 28u8];
#[inline]
fn new<'a>(
tuple: <Self::Parameters<'a> as alloy_sol_types::SolType>::RustType,
) -> Self {
tuple.into()
}
#[inline]
fn tokenize(&self) -> Self::Token<'_> {
(
<alloy::sol_types::sol_data::Array<
alloy::sol_types::sol_data::Address,
> as alloy_sol_types::SolType>::tokenize(&self.validators),
<alloy::sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::tokenize(&self.epochLength),
<alloy::sol_types::sol_data::FixedBytes<
32,
> as alloy_sol_types::SolType>::tokenize(&self.salt),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
(
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
ret,
),
)
}
#[inline]
fn abi_decode_returns(data: &[u8]) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence(data)
.map(|r| {
let r: calculateQuorumAddressReturn = r.into();
r._0
})
}
#[inline]
fn abi_decode_returns_validate(
data: &[u8],
) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence_validate(data)
.map(|r| {
let r: calculateQuorumAddressReturn = r.into();
r._0
})
}
}
};
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
/**Function with signature `newQuorum(address[],uint256,bytes32)` and selector `0x2f74f862`.
```solidity
function newQuorum(address[] memory validators, uint256 epochLength, bytes32 salt) external returns (address);
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct newQuorum_0Call {
#[allow(missing_docs)]
pub validators: alloy::sol_types::private::Vec<
alloy::sol_types::private::Address,
>,
#[allow(missing_docs)]
pub epochLength: alloy::sol_types::private::primitives::aliases::U256,
#[allow(missing_docs)]
pub salt: alloy::sol_types::private::FixedBytes<32>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
///Container type for the return parameters of the [`newQuorum(address[],uint256,bytes32)`](newQuorum_0Call) function.
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct newQuorum_0Return {
#[allow(missing_docs)]
pub _0: alloy::sol_types::private::Address,
}
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
const _: () = {
use alloy::sol_types as alloy_sol_types;
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (
alloy::sol_types::sol_data::Array<alloy::sol_types::sol_data::Address>,
alloy::sol_types::sol_data::Uint<256>,
alloy::sol_types::sol_data::FixedBytes<32>,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
alloy::sol_types::private::Vec<alloy::sol_types::private::Address>,
alloy::sol_types::private::primitives::aliases::U256,
alloy::sol_types::private::FixedBytes<32>,
);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<newQuorum_0Call> for UnderlyingRustTuple<'_> {
fn from(value: newQuorum_0Call) -> Self {
(value.validators, value.epochLength, value.salt)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for newQuorum_0Call {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
validators: tuple.0,
epochLength: tuple.1,
salt: tuple.2,
}
}
}
}
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (alloy::sol_types::sol_data::Address,);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (alloy::sol_types::private::Address,);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<newQuorum_0Return> for UnderlyingRustTuple<'_> {
fn from(value: newQuorum_0Return) -> Self {
(value._0,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for newQuorum_0Return {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { _0: tuple.0 }
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for newQuorum_0Call {
type Parameters<'a> = (
alloy::sol_types::sol_data::Array<alloy::sol_types::sol_data::Address>,
alloy::sol_types::sol_data::Uint<256>,
alloy::sol_types::sol_data::FixedBytes<32>,
);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = alloy::sol_types::private::Address;
type ReturnTuple<'a> = (alloy::sol_types::sol_data::Address,);
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "newQuorum(address[],uint256,bytes32)";
const SELECTOR: [u8; 4] = [47u8, 116u8, 248u8, 98u8];
#[inline]
fn new<'a>(
tuple: <Self::Parameters<'a> as alloy_sol_types::SolType>::RustType,
) -> Self {
tuple.into()
}
#[inline]
fn tokenize(&self) -> Self::Token<'_> {
(
<alloy::sol_types::sol_data::Array<
alloy::sol_types::sol_data::Address,
> as alloy_sol_types::SolType>::tokenize(&self.validators),
<alloy::sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::tokenize(&self.epochLength),
<alloy::sol_types::sol_data::FixedBytes<
32,
> as alloy_sol_types::SolType>::tokenize(&self.salt),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
(
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
ret,
),
)
}
#[inline]
fn abi_decode_returns(data: &[u8]) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence(data)
.map(|r| {
let r: newQuorum_0Return = r.into();
r._0
})
}
#[inline]
fn abi_decode_returns_validate(
data: &[u8],
) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence_validate(data)
.map(|r| {
let r: newQuorum_0Return = r.into();
r._0
})
}
}
};
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
/**Function with signature `newQuorum(address[],uint256)` and selector `0xd4af3bc8`.
```solidity
function newQuorum(address[] memory validators, uint256 epochLength) external returns (address);
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct newQuorum_1Call {
#[allow(missing_docs)]
pub validators: alloy::sol_types::private::Vec<
alloy::sol_types::private::Address,
>,
#[allow(missing_docs)]
pub epochLength: alloy::sol_types::private::primitives::aliases::U256,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
///Container type for the return parameters of the [`newQuorum(address[],uint256)`](newQuorum_1Call) function.
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct newQuorum_1Return {
#[allow(missing_docs)]
pub _0: alloy::sol_types::private::Address,
}
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
const _: () = {
use alloy::sol_types as alloy_sol_types;
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (
alloy::sol_types::sol_data::Array<alloy::sol_types::sol_data::Address>,
alloy::sol_types::sol_data::Uint<256>,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (
alloy::sol_types::private::Vec<alloy::sol_types::private::Address>,
alloy::sol_types::private::primitives::aliases::U256,
);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<newQuorum_1Call> for UnderlyingRustTuple<'_> {
fn from(value: newQuorum_1Call) -> Self {
(value.validators, value.epochLength)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for newQuorum_1Call {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
validators: tuple.0,
epochLength: tuple.1,
}
}
}
}
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (alloy::sol_types::sol_data::Address,);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (alloy::sol_types::private::Address,);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<newQuorum_1Return> for UnderlyingRustTuple<'_> {
fn from(value: newQuorum_1Return) -> Self {
(value._0,)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>> for newQuorum_1Return {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self { _0: tuple.0 }
}
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for newQuorum_1Call {
type Parameters<'a> = (
alloy::sol_types::sol_data::Array<alloy::sol_types::sol_data::Address>,
alloy::sol_types::sol_data::Uint<256>,
);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = alloy::sol_types::private::Address;
type ReturnTuple<'a> = (alloy::sol_types::sol_data::Address,);
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "newQuorum(address[],uint256)";
const SELECTOR: [u8; 4] = [212u8, 175u8, 59u8, 200u8];
#[inline]
fn new<'a>(
tuple: <Self::Parameters<'a> as alloy_sol_types::SolType>::RustType,
) -> Self {
tuple.into()
}
#[inline]
fn tokenize(&self) -> Self::Token<'_> {
(
<alloy::sol_types::sol_data::Array<
alloy::sol_types::sol_data::Address,
> as alloy_sol_types::SolType>::tokenize(&self.validators),
<alloy::sol_types::sol_data::Uint<
256,
> as alloy_sol_types::SolType>::tokenize(&self.epochLength),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
(
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
ret,
),
)
}
#[inline]
fn abi_decode_returns(data: &[u8]) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence(data)
.map(|r| {
let r: newQuorum_1Return = r.into();
r._0
})
}
#[inline]
fn abi_decode_returns_validate(
data: &[u8],
) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence_validate(data)
.map(|r| {
let r: newQuorum_1Return = r.into();
r._0
})
}
}
};
///Container for all the [`QuorumFactory`](self) function calls.
#[derive(Clone)]
#[derive(serde::Serialize, serde::Deserialize)]
#[derive()]
pub enum QuorumFactoryCalls {
#[allow(missing_docs)]
calculateQuorumAddress(calculateQuorumAddressCall),
#[allow(missing_docs)]
newQuorum_0(newQuorum_0Call),
#[allow(missing_docs)]
newQuorum_1(newQuorum_1Call),
}
impl QuorumFactoryCalls {
/// All the selectors of this enum.
///
/// Note that the selectors might not be in the same order as the variants.
/// No guarantees are made about the order of the selectors.
///
/// Prefer using `SolInterface` methods instead.
pub const SELECTORS: &'static [[u8; 4usize]] = &[
[47u8, 116u8, 248u8, 98u8],
[202u8, 143u8, 39u8, 28u8],
[212u8, 175u8, 59u8, 200u8],
];
/// The names of the variants in the same order as `SELECTORS`.
pub const VARIANT_NAMES: &'static [&'static str] = &[
::core::stringify!(newQuorum_0),
::core::stringify!(calculateQuorumAddress),
::core::stringify!(newQuorum_1),
];
/// The signatures in the same order as `SELECTORS`.
pub const SIGNATURES: &'static [&'static str] = &[
<newQuorum_0Call as alloy_sol_types::SolCall>::SIGNATURE,
<calculateQuorumAddressCall as alloy_sol_types::SolCall>::SIGNATURE,
<newQuorum_1Call as alloy_sol_types::SolCall>::SIGNATURE,
];
/// Returns the signature for the given selector, if known.
#[inline]
pub fn signature_by_selector(
selector: [u8; 4usize],
) -> ::core::option::Option<&'static str> {
match Self::SELECTORS.binary_search(&selector) {
::core::result::Result::Ok(idx) => {
::core::option::Option::Some(Self::SIGNATURES[idx])
}
::core::result::Result::Err(_) => ::core::option::Option::None,
}
}
/// Returns the enum variant name for the given selector, if known.
#[inline]
pub fn name_by_selector(
selector: [u8; 4usize],
) -> ::core::option::Option<&'static str> {
let sig = Self::signature_by_selector(selector)?;
sig.split_once('(').map(|(name, _)| name)
}
}
#[automatically_derived]
impl alloy_sol_types::SolInterface for QuorumFactoryCalls {
const NAME: &'static str = "QuorumFactoryCalls";
const MIN_DATA_LENGTH: usize = 96usize;
const COUNT: usize = 3usize;
#[inline]
fn selector(&self) -> [u8; 4] {
match self {
Self::calculateQuorumAddress(_) => {
<calculateQuorumAddressCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::newQuorum_0(_) => {
<newQuorum_0Call as alloy_sol_types::SolCall>::SELECTOR
}
Self::newQuorum_1(_) => {
<newQuorum_1Call as alloy_sol_types::SolCall>::SELECTOR
}
}
}
#[inline]
fn selector_at(i: usize) -> ::core::option::Option<[u8; 4]> {
Self::SELECTORS.get(i).copied()
}
#[inline]
fn valid_selector(selector: [u8; 4]) -> bool {
Self::SELECTORS.binary_search(&selector).is_ok()
}
#[inline]
#[allow(non_snake_case)]
fn abi_decode_raw(
selector: [u8; 4],
data: &[u8],
) -> alloy_sol_types::Result<Self> {
static DECODE_SHIMS: &[fn(
&[u8],
) -> alloy_sol_types::Result<QuorumFactoryCalls>] = &[
{
fn newQuorum_0(
data: &[u8],
) -> alloy_sol_types::Result<QuorumFactoryCalls> {
<newQuorum_0Call as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(QuorumFactoryCalls::newQuorum_0)
}
newQuorum_0
},
{
fn calculateQuorumAddress(
data: &[u8],
) -> alloy_sol_types::Result<QuorumFactoryCalls> {
<calculateQuorumAddressCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(QuorumFactoryCalls::calculateQuorumAddress)
}
calculateQuorumAddress
},
{
fn newQuorum_1(
data: &[u8],
) -> alloy_sol_types::Result<QuorumFactoryCalls> {
<newQuorum_1Call as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(QuorumFactoryCalls::newQuorum_1)
}
newQuorum_1
},
];
let Ok(idx) = Self::SELECTORS.binary_search(&selector) else {
return Err(
alloy_sol_types::Error::unknown_selector(
<Self as alloy_sol_types::SolInterface>::NAME,
selector,
),
);
};
DECODE_SHIMS[idx](data)
}
#[inline]
#[allow(non_snake_case)]
fn abi_decode_raw_validate(
selector: [u8; 4],
data: &[u8],
) -> alloy_sol_types::Result<Self> {
static DECODE_VALIDATE_SHIMS: &[fn(
&[u8],
) -> alloy_sol_types::Result<QuorumFactoryCalls>] = &[
{
fn newQuorum_0(
data: &[u8],
) -> alloy_sol_types::Result<QuorumFactoryCalls> {
<newQuorum_0Call as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(QuorumFactoryCalls::newQuorum_0)
}
newQuorum_0
},
{
fn calculateQuorumAddress(
data: &[u8],
) -> alloy_sol_types::Result<QuorumFactoryCalls> {
<calculateQuorumAddressCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(QuorumFactoryCalls::calculateQuorumAddress)
}
calculateQuorumAddress
},
{
fn newQuorum_1(
data: &[u8],
) -> alloy_sol_types::Result<QuorumFactoryCalls> {
<newQuorum_1Call as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(QuorumFactoryCalls::newQuorum_1)
}
newQuorum_1
},
];
let Ok(idx) = Self::SELECTORS.binary_search(&selector) else {
return Err(
alloy_sol_types::Error::unknown_selector(
<Self as alloy_sol_types::SolInterface>::NAME,
selector,
),
);
};
DECODE_VALIDATE_SHIMS[idx](data)
}
#[inline]
fn abi_encoded_size(&self) -> usize {
match self {
Self::calculateQuorumAddress(inner) => {
<calculateQuorumAddressCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::newQuorum_0(inner) => {
<newQuorum_0Call as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
Self::newQuorum_1(inner) => {
<newQuorum_1Call as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
}
}
#[inline]
fn abi_encode_raw(&self, out: &mut alloy_sol_types::private::Vec<u8>) {
match self {
Self::calculateQuorumAddress(inner) => {
<calculateQuorumAddressCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::newQuorum_0(inner) => {
<newQuorum_0Call as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
Self::newQuorum_1(inner) => {
<newQuorum_1Call as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
}
}
}
///Container for all the [`QuorumFactory`](self) events.
#[derive(Clone)]
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Debug, PartialEq, Eq, Hash)]
pub enum QuorumFactoryEvents {
#[allow(missing_docs)]
QuorumCreated(QuorumCreated),
}
impl QuorumFactoryEvents {
/// All the selectors of this enum.
///
/// Note that the selectors might not be in the same order as the variants.
/// No guarantees are made about the order of the selectors.
///
/// Prefer using `SolInterface` methods instead.
pub const SELECTORS: &'static [[u8; 32usize]] = &[
[
68u8, 102u8, 152u8, 183u8, 2u8, 113u8, 188u8, 227u8, 49u8, 229u8, 50u8,
16u8, 87u8, 43u8, 211u8, 122u8, 200u8, 197u8, 144u8, 182u8, 205u8, 202u8,
46u8, 103u8, 99u8, 230u8, 68u8, 130u8, 67u8, 203u8, 168u8, 2u8,
],
];
/// The names of the variants in the same order as `SELECTORS`.
pub const VARIANT_NAMES: &'static [&'static str] = &[
::core::stringify!(QuorumCreated),
];
/// The signatures in the same order as `SELECTORS`.
pub const SIGNATURES: &'static [&'static str] = &[
<QuorumCreated as alloy_sol_types::SolEvent>::SIGNATURE,
];
/// Returns the signature for the given selector, if known.
#[inline]
pub fn signature_by_selector(
selector: [u8; 32usize],
) -> ::core::option::Option<&'static str> {
match Self::SELECTORS.binary_search(&selector) {
::core::result::Result::Ok(idx) => {
::core::option::Option::Some(Self::SIGNATURES[idx])
}
::core::result::Result::Err(_) => ::core::option::Option::None,
}
}
/// Returns the enum variant name for the given selector, if known.
#[inline]
pub fn name_by_selector(
selector: [u8; 32usize],
) -> ::core::option::Option<&'static str> {
let sig = Self::signature_by_selector(selector)?;
sig.split_once('(').map(|(name, _)| name)
}
}
#[automatically_derived]
impl alloy_sol_types::SolEventInterface for QuorumFactoryEvents {
const NAME: &'static str = "QuorumFactoryEvents";
const COUNT: usize = 1usize;
fn decode_raw_log(
topics: &[alloy_sol_types::Word],
data: &[u8],
) -> alloy_sol_types::Result<Self> {
match topics.first().copied() {
Some(<QuorumCreated as alloy_sol_types::SolEvent>::SIGNATURE_HASH) => {
<QuorumCreated as alloy_sol_types::SolEvent>::decode_raw_log(
topics,
data,
)
.map(Self::QuorumCreated)
}
_ => {
alloy_sol_types::private::Err(alloy_sol_types::Error::InvalidLog {
name: <Self as alloy_sol_types::SolEventInterface>::NAME,
log: alloy_sol_types::private::Box::new(
alloy_sol_types::private::LogData::new_unchecked(
topics.to_vec(),
data.to_vec().into(),
),
),
})
}
}
}
}
#[automatically_derived]
impl alloy_sol_types::private::IntoLogData for QuorumFactoryEvents {
fn to_log_data(&self) -> alloy_sol_types::private::LogData {
match self {
Self::QuorumCreated(inner) => {
alloy_sol_types::private::IntoLogData::to_log_data(inner)
}
}
}
fn into_log_data(self) -> alloy_sol_types::private::LogData {
match self {
Self::QuorumCreated(inner) => {
alloy_sol_types::private::IntoLogData::into_log_data(inner)
}
}
}
}
use alloy::contract as alloy_contract;
/**Creates a new wrapper around an on-chain [`QuorumFactory`](self) contract instance.
See the [wrapper's documentation](`QuorumFactoryInstance`) for more details.*/
#[inline]
pub const fn new<
P: alloy_contract::private::Provider<N>,
N: alloy_contract::private::Network,
>(
address: alloy_sol_types::private::Address,
__provider: P,
) -> QuorumFactoryInstance<P, N> {
QuorumFactoryInstance::<P, N>::new(address, __provider)
}
/**Deploys this contract using the given `provider` and constructor arguments, if any.
Returns a new instance of the contract, if the deployment was successful.
For more fine-grained control over the deployment process, use [`deploy_builder`] instead.*/
#[inline]
pub fn deploy<
P: alloy_contract::private::Provider<N>,
N: alloy_contract::private::Network,
>(
__provider: P,
) -> impl ::core::future::Future<
Output = alloy_contract::Result<QuorumFactoryInstance<P, N>>,
> {
QuorumFactoryInstance::<P, N>::deploy(__provider)
}
/**Creates a `RawCallBuilder` for deploying this contract using the given `provider`
and constructor arguments, if any.
This is a simple wrapper around creating a `RawCallBuilder` with the data set to
the bytecode concatenated with the constructor's ABI-encoded arguments.*/
#[inline]
pub fn deploy_builder<
P: alloy_contract::private::Provider<N>,
N: alloy_contract::private::Network,
>(__provider: P) -> alloy_contract::RawCallBuilder<P, N> {
QuorumFactoryInstance::<P, N>::deploy_builder(__provider)
}
/**A [`QuorumFactory`](self) instance.
Contains type-safe methods for interacting with an on-chain instance of the
[`QuorumFactory`](self) contract located at a given `address`, using a given
provider `P`.
If the contract bytecode is available (see the [`sol!`](alloy_sol_types::sol!)
documentation on how to provide it), the `deploy` and `deploy_builder` methods can
be used to deploy a new instance of the contract.
See the [module-level documentation](self) for all the available methods.*/
#[derive(Clone)]
pub struct QuorumFactoryInstance<P, N = alloy_contract::private::Ethereum> {
address: alloy_sol_types::private::Address,
provider: P,
_network: ::core::marker::PhantomData<N>,
}
#[automatically_derived]
impl<P, N> ::core::fmt::Debug for QuorumFactoryInstance<P, N> {
#[inline]
fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
f.debug_tuple("QuorumFactoryInstance").field(&self.address).finish()
}
}
/// Instantiation and getters/setters.
impl<
P: alloy_contract::private::Provider<N>,
N: alloy_contract::private::Network,
> QuorumFactoryInstance<P, N> {
/**Creates a new wrapper around an on-chain [`QuorumFactory`](self) contract instance.
See the [wrapper's documentation](`QuorumFactoryInstance`) for more details.*/
#[inline]
pub const fn new(
address: alloy_sol_types::private::Address,
__provider: P,
) -> Self {
Self {
address,
provider: __provider,
_network: ::core::marker::PhantomData,
}
}
/**Deploys this contract using the given `provider` and constructor arguments, if any.
Returns a new instance of the contract, if the deployment was successful.
For more fine-grained control over the deployment process, use [`deploy_builder`] instead.*/
#[inline]
pub async fn deploy(
__provider: P,
) -> alloy_contract::Result<QuorumFactoryInstance<P, N>> {
let call_builder = Self::deploy_builder(__provider);
let contract_address = call_builder.deploy().await?;
Ok(Self::new(contract_address, call_builder.provider))
}
/**Creates a `RawCallBuilder` for deploying this contract using the given `provider`
and constructor arguments, if any.
This is a simple wrapper around creating a `RawCallBuilder` with the data set to
the bytecode concatenated with the constructor's ABI-encoded arguments.*/
#[inline]
pub fn deploy_builder(__provider: P) -> alloy_contract::RawCallBuilder<P, N> {
alloy_contract::RawCallBuilder::new_raw_deploy(
__provider,
::core::clone::Clone::clone(&BYTECODE),
)
}
/// Returns a reference to the address.
#[inline]
pub const fn address(&self) -> &alloy_sol_types::private::Address {
&self.address
}
/// Sets the address.
#[inline]
pub fn set_address(&mut self, address: alloy_sol_types::private::Address) {
self.address = address;
}
/// Sets the address and returns `self`.
pub fn at(mut self, address: alloy_sol_types::private::Address) -> Self {
self.set_address(address);
self
}
/// Returns a reference to the provider.
#[inline]
pub const fn provider(&self) -> &P {
&self.provider
}
}
impl<P: ::core::clone::Clone, N> QuorumFactoryInstance<&P, N> {
/// Clones the provider and returns a new instance with the cloned provider.
#[inline]
pub fn with_cloned_provider(self) -> QuorumFactoryInstance<P, N> {
QuorumFactoryInstance {
address: self.address,
provider: ::core::clone::Clone::clone(&self.provider),
_network: ::core::marker::PhantomData,
}
}
}
/// Function calls.
impl<
P: alloy_contract::private::Provider<N>,
N: alloy_contract::private::Network,
> QuorumFactoryInstance<P, N> {
/// Creates a new call builder using this contract instance's provider and address.
///
/// Note that the call can be any function call, not just those defined in this
/// contract. Prefer using the other methods for building type-safe contract calls.
pub fn call_builder<C: alloy_sol_types::SolCall>(
&self,
call: &C,
) -> alloy_contract::SolCallBuilder<&P, C, N> {
alloy_contract::SolCallBuilder::new_sol(&self.provider, &self.address, call)
}
///Creates a new call builder for the [`calculateQuorumAddress`] function.
pub fn calculateQuorumAddress(
&self,
validators: alloy::sol_types::private::Vec<
alloy::sol_types::private::Address,
>,
epochLength: alloy::sol_types::private::primitives::aliases::U256,
salt: alloy::sol_types::private::FixedBytes<32>,
) -> alloy_contract::SolCallBuilder<&P, calculateQuorumAddressCall, N> {
self.call_builder(
&calculateQuorumAddressCall {
validators,
epochLength,
salt,
},
)
}
///Creates a new call builder for the [`newQuorum_0`] function.
pub fn newQuorum_0(
&self,
validators: alloy::sol_types::private::Vec<
alloy::sol_types::private::Address,
>,
epochLength: alloy::sol_types::private::primitives::aliases::U256,
salt: alloy::sol_types::private::FixedBytes<32>,
) -> alloy_contract::SolCallBuilder<&P, newQuorum_0Call, N> {
self.call_builder(
&newQuorum_0Call {
validators,
epochLength,
salt,
},
)
}
///Creates a new call builder for the [`newQuorum_1`] function.
pub fn newQuorum_1(
&self,
validators: alloy::sol_types::private::Vec<
alloy::sol_types::private::Address,
>,
epochLength: alloy::sol_types::private::primitives::aliases::U256,
) -> alloy_contract::SolCallBuilder<&P, newQuorum_1Call, N> {
self.call_builder(
&newQuorum_1Call {
validators,
epochLength,
},
)
}
}
/// Event filters.
impl<
P: alloy_contract::private::Provider<N>,
N: alloy_contract::private::Network,
> QuorumFactoryInstance<P, N> {
/// Creates a new event filter using this contract instance's provider and address.
///
/// Note that the type can be any event, not just those defined in this contract.
/// Prefer using the other methods for building type-safe event filters.
pub fn event_filter<E: alloy_sol_types::SolEvent>(
&self,
) -> alloy_contract::Event<&P, E, N> {
alloy_contract::Event::new_sol(&self.provider, &self.address)
}
///Creates a new event filter for the [`QuorumCreated`] event.
pub fn QuorumCreated_filter(
&self,
) -> alloy_contract::Event<&P, QuorumCreated, N> {
self.event_filter::<QuorumCreated>()
}
}
}