pub use access_control_enumerable::*;
/// This module was auto-generated with ethers-rs Abigen.
/// More information at: <https://github.com/gakonst/ethers-rs>
#[allow(
clippy::enum_variant_names,
clippy::too_many_arguments,
clippy::upper_case_acronyms,
clippy::type_complexity,
dead_code,
non_camel_case_types,
)]
pub mod access_control_enumerable {
#[rustfmt::skip]
const __ABI: &str = "[{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\",\"components\":[],\"indexed\":true},{\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\",\"components\":[],\"indexed\":true},{\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\",\"components\":[],\"indexed\":true}],\"type\":\"event\",\"name\":\"RoleAdminChanged\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\",\"components\":[],\"indexed\":true}],\"type\":\"event\",\"name\":\"RoleGranted\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\",\"components\":[],\"indexed\":true}],\"type\":\"event\",\"name\":\"RoleRevoked\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"getRoleMember\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"getRoleMemberCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"grantRole\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"renounceRole\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"revokeRole\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\",\"components\":[]}]}]";
///The parsed JSON ABI of the contract.
pub static ACCESSCONTROLENUMERABLE_ABI: ::ethers_contract::Lazy<
::ethers_core::abi::Abi,
> = ::ethers_contract::Lazy::new(|| {
::ethers_core::utils::__serde_json::from_str(__ABI).expect("ABI is always valid")
});
pub struct AccessControlEnumerable<M>(::ethers_contract::Contract<M>);
impl<M> ::core::clone::Clone for AccessControlEnumerable<M> {
fn clone(&self) -> Self {
Self(::core::clone::Clone::clone(&self.0))
}
}
impl<M> ::core::ops::Deref for AccessControlEnumerable<M> {
type Target = ::ethers_contract::Contract<M>;
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl<M> ::core::ops::DerefMut for AccessControlEnumerable<M> {
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.0
}
}
impl<M> ::core::fmt::Debug for AccessControlEnumerable<M> {
fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
f.debug_tuple(stringify!(AccessControlEnumerable))
.field(&self.address())
.finish()
}
}
impl<M: ::ethers_providers::Middleware> AccessControlEnumerable<M> {
/// Creates a new contract instance with the specified `ethers` client at
/// `address`. The contract derefs to a `ethers::Contract` object.
pub fn new<T: Into<::ethers_core::types::Address>>(
address: T,
client: ::std::sync::Arc<M>,
) -> Self {
Self(
::ethers_contract::Contract::new(
address.into(),
ACCESSCONTROLENUMERABLE_ABI.clone(),
client,
),
)
}
///Calls the contract's `DEFAULT_ADMIN_ROLE` (0xa217fddf) function
pub fn default_admin_role(
&self,
) -> ::ethers_contract::builders::ContractCall<M, [u8; 32]> {
self.0
.method_hash([162, 23, 253, 223], ())
.expect("method not found (this should never happen)")
}
///Calls the contract's `getRoleAdmin` (0x248a9ca3) function
pub fn get_role_admin(
&self,
role: [u8; 32],
) -> ::ethers_contract::builders::ContractCall<M, [u8; 32]> {
self.0
.method_hash([36, 138, 156, 163], role)
.expect("method not found (this should never happen)")
}
///Calls the contract's `getRoleMember` (0x9010d07c) function
pub fn get_role_member(
&self,
role: [u8; 32],
index: ::ethers_core::types::U256,
) -> ::ethers_contract::builders::ContractCall<
M,
::ethers_core::types::Address,
> {
self.0
.method_hash([144, 16, 208, 124], (role, index))
.expect("method not found (this should never happen)")
}
///Calls the contract's `getRoleMemberCount` (0xca15c873) function
pub fn get_role_member_count(
&self,
role: [u8; 32],
) -> ::ethers_contract::builders::ContractCall<M, ::ethers_core::types::U256> {
self.0
.method_hash([202, 21, 200, 115], role)
.expect("method not found (this should never happen)")
}
///Calls the contract's `grantRole` (0x2f2ff15d) function
pub fn grant_role(
&self,
role: [u8; 32],
account: ::ethers_core::types::Address,
) -> ::ethers_contract::builders::ContractCall<M, ()> {
self.0
.method_hash([47, 47, 241, 93], (role, account))
.expect("method not found (this should never happen)")
}
///Calls the contract's `hasRole` (0x91d14854) function
pub fn has_role(
&self,
role: [u8; 32],
account: ::ethers_core::types::Address,
) -> ::ethers_contract::builders::ContractCall<M, bool> {
self.0
.method_hash([145, 209, 72, 84], (role, account))
.expect("method not found (this should never happen)")
}
///Calls the contract's `renounceRole` (0x36568abe) function
pub fn renounce_role(
&self,
role: [u8; 32],
account: ::ethers_core::types::Address,
) -> ::ethers_contract::builders::ContractCall<M, ()> {
self.0
.method_hash([54, 86, 138, 190], (role, account))
.expect("method not found (this should never happen)")
}
///Calls the contract's `revokeRole` (0xd547741f) function
pub fn revoke_role(
&self,
role: [u8; 32],
account: ::ethers_core::types::Address,
) -> ::ethers_contract::builders::ContractCall<M, ()> {
self.0
.method_hash([213, 71, 116, 31], (role, account))
.expect("method not found (this should never happen)")
}
///Calls the contract's `supportsInterface` (0x01ffc9a7) function
pub fn supports_interface(
&self,
interface_id: [u8; 4],
) -> ::ethers_contract::builders::ContractCall<M, bool> {
self.0
.method_hash([1, 255, 201, 167], interface_id)
.expect("method not found (this should never happen)")
}
///Gets the contract's `RoleAdminChanged` event
pub fn role_admin_changed_filter(
&self,
) -> ::ethers_contract::builders::Event<
::std::sync::Arc<M>,
M,
RoleAdminChangedFilter,
> {
self.0.event()
}
///Gets the contract's `RoleGranted` event
pub fn role_granted_filter(
&self,
) -> ::ethers_contract::builders::Event<
::std::sync::Arc<M>,
M,
RoleGrantedFilter,
> {
self.0.event()
}
///Gets the contract's `RoleRevoked` event
pub fn role_revoked_filter(
&self,
) -> ::ethers_contract::builders::Event<
::std::sync::Arc<M>,
M,
RoleRevokedFilter,
> {
self.0.event()
}
/// Returns an `Event` builder for all the events of this contract.
pub fn events(
&self,
) -> ::ethers_contract::builders::Event<
::std::sync::Arc<M>,
M,
AccessControlEnumerableEvents,
> {
self.0.event_with_filter(::core::default::Default::default())
}
}
impl<M: ::ethers_providers::Middleware> From<::ethers_contract::Contract<M>>
for AccessControlEnumerable<M> {
fn from(contract: ::ethers_contract::Contract<M>) -> Self {
Self::new(contract.address(), contract.client())
}
}
#[derive(
Clone,
::ethers_contract::EthEvent,
::ethers_contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash
)]
#[ethevent(
name = "RoleAdminChanged",
abi = "RoleAdminChanged(bytes32,bytes32,bytes32)"
)]
pub struct RoleAdminChangedFilter {
#[ethevent(indexed)]
pub role: [u8; 32],
#[ethevent(indexed)]
pub previous_admin_role: [u8; 32],
#[ethevent(indexed)]
pub new_admin_role: [u8; 32],
}
#[derive(
Clone,
::ethers_contract::EthEvent,
::ethers_contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash
)]
#[ethevent(name = "RoleGranted", abi = "RoleGranted(bytes32,address,address)")]
pub struct RoleGrantedFilter {
#[ethevent(indexed)]
pub role: [u8; 32],
#[ethevent(indexed)]
pub account: ::ethers_core::types::Address,
#[ethevent(indexed)]
pub sender: ::ethers_core::types::Address,
}
#[derive(
Clone,
::ethers_contract::EthEvent,
::ethers_contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash
)]
#[ethevent(name = "RoleRevoked", abi = "RoleRevoked(bytes32,address,address)")]
pub struct RoleRevokedFilter {
#[ethevent(indexed)]
pub role: [u8; 32],
#[ethevent(indexed)]
pub account: ::ethers_core::types::Address,
#[ethevent(indexed)]
pub sender: ::ethers_core::types::Address,
}
///Container type for all of the contract's events
#[derive(Clone, ::ethers_contract::EthAbiType, Debug, PartialEq, Eq, Hash)]
pub enum AccessControlEnumerableEvents {
RoleAdminChangedFilter(RoleAdminChangedFilter),
RoleGrantedFilter(RoleGrantedFilter),
RoleRevokedFilter(RoleRevokedFilter),
}
impl ::ethers_contract::EthLogDecode for AccessControlEnumerableEvents {
fn decode_log(
log: &::ethers_core::abi::RawLog,
) -> ::core::result::Result<Self, ::ethers_core::abi::Error> {
if let Ok(decoded) = RoleAdminChangedFilter::decode_log(log) {
return Ok(
AccessControlEnumerableEvents::RoleAdminChangedFilter(decoded),
);
}
if let Ok(decoded) = RoleGrantedFilter::decode_log(log) {
return Ok(AccessControlEnumerableEvents::RoleGrantedFilter(decoded));
}
if let Ok(decoded) = RoleRevokedFilter::decode_log(log) {
return Ok(AccessControlEnumerableEvents::RoleRevokedFilter(decoded));
}
Err(::ethers_core::abi::Error::InvalidData)
}
}
impl ::core::fmt::Display for AccessControlEnumerableEvents {
fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
match self {
Self::RoleAdminChangedFilter(element) => {
::core::fmt::Display::fmt(element, f)
}
Self::RoleGrantedFilter(element) => ::core::fmt::Display::fmt(element, f),
Self::RoleRevokedFilter(element) => ::core::fmt::Display::fmt(element, f),
}
}
}
impl ::core::convert::From<RoleAdminChangedFilter>
for AccessControlEnumerableEvents {
fn from(value: RoleAdminChangedFilter) -> Self {
Self::RoleAdminChangedFilter(value)
}
}
impl ::core::convert::From<RoleGrantedFilter> for AccessControlEnumerableEvents {
fn from(value: RoleGrantedFilter) -> Self {
Self::RoleGrantedFilter(value)
}
}
impl ::core::convert::From<RoleRevokedFilter> for AccessControlEnumerableEvents {
fn from(value: RoleRevokedFilter) -> Self {
Self::RoleRevokedFilter(value)
}
}
///Container type for all input parameters for the `DEFAULT_ADMIN_ROLE` function with signature `DEFAULT_ADMIN_ROLE()` and selector `0xa217fddf`
#[derive(
Clone,
::ethers_contract::EthCall,
::ethers_contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash
)]
#[ethcall(name = "DEFAULT_ADMIN_ROLE", abi = "DEFAULT_ADMIN_ROLE()")]
pub struct DefaultAdminRoleCall;
///Container type for all input parameters for the `getRoleAdmin` function with signature `getRoleAdmin(bytes32)` and selector `0x248a9ca3`
#[derive(
Clone,
::ethers_contract::EthCall,
::ethers_contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash
)]
#[ethcall(name = "getRoleAdmin", abi = "getRoleAdmin(bytes32)")]
pub struct GetRoleAdminCall {
pub role: [u8; 32],
}
///Container type for all input parameters for the `getRoleMember` function with signature `getRoleMember(bytes32,uint256)` and selector `0x9010d07c`
#[derive(
Clone,
::ethers_contract::EthCall,
::ethers_contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash
)]
#[ethcall(name = "getRoleMember", abi = "getRoleMember(bytes32,uint256)")]
pub struct GetRoleMemberCall {
pub role: [u8; 32],
pub index: ::ethers_core::types::U256,
}
///Container type for all input parameters for the `getRoleMemberCount` function with signature `getRoleMemberCount(bytes32)` and selector `0xca15c873`
#[derive(
Clone,
::ethers_contract::EthCall,
::ethers_contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash
)]
#[ethcall(name = "getRoleMemberCount", abi = "getRoleMemberCount(bytes32)")]
pub struct GetRoleMemberCountCall {
pub role: [u8; 32],
}
///Container type for all input parameters for the `grantRole` function with signature `grantRole(bytes32,address)` and selector `0x2f2ff15d`
#[derive(
Clone,
::ethers_contract::EthCall,
::ethers_contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash
)]
#[ethcall(name = "grantRole", abi = "grantRole(bytes32,address)")]
pub struct GrantRoleCall {
pub role: [u8; 32],
pub account: ::ethers_core::types::Address,
}
///Container type for all input parameters for the `hasRole` function with signature `hasRole(bytes32,address)` and selector `0x91d14854`
#[derive(
Clone,
::ethers_contract::EthCall,
::ethers_contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash
)]
#[ethcall(name = "hasRole", abi = "hasRole(bytes32,address)")]
pub struct HasRoleCall {
pub role: [u8; 32],
pub account: ::ethers_core::types::Address,
}
///Container type for all input parameters for the `renounceRole` function with signature `renounceRole(bytes32,address)` and selector `0x36568abe`
#[derive(
Clone,
::ethers_contract::EthCall,
::ethers_contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash
)]
#[ethcall(name = "renounceRole", abi = "renounceRole(bytes32,address)")]
pub struct RenounceRoleCall {
pub role: [u8; 32],
pub account: ::ethers_core::types::Address,
}
///Container type for all input parameters for the `revokeRole` function with signature `revokeRole(bytes32,address)` and selector `0xd547741f`
#[derive(
Clone,
::ethers_contract::EthCall,
::ethers_contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash
)]
#[ethcall(name = "revokeRole", abi = "revokeRole(bytes32,address)")]
pub struct RevokeRoleCall {
pub role: [u8; 32],
pub account: ::ethers_core::types::Address,
}
///Container type for all input parameters for the `supportsInterface` function with signature `supportsInterface(bytes4)` and selector `0x01ffc9a7`
#[derive(
Clone,
::ethers_contract::EthCall,
::ethers_contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash
)]
#[ethcall(name = "supportsInterface", abi = "supportsInterface(bytes4)")]
pub struct SupportsInterfaceCall {
pub interface_id: [u8; 4],
}
///Container type for all of the contract's call
#[derive(Clone, ::ethers_contract::EthAbiType, Debug, PartialEq, Eq, Hash)]
pub enum AccessControlEnumerableCalls {
DefaultAdminRole(DefaultAdminRoleCall),
GetRoleAdmin(GetRoleAdminCall),
GetRoleMember(GetRoleMemberCall),
GetRoleMemberCount(GetRoleMemberCountCall),
GrantRole(GrantRoleCall),
HasRole(HasRoleCall),
RenounceRole(RenounceRoleCall),
RevokeRole(RevokeRoleCall),
SupportsInterface(SupportsInterfaceCall),
}
impl ::ethers_core::abi::AbiDecode for AccessControlEnumerableCalls {
fn decode(
data: impl AsRef<[u8]>,
) -> ::core::result::Result<Self, ::ethers_core::abi::AbiError> {
let data = data.as_ref();
if let Ok(decoded)
= <DefaultAdminRoleCall as ::ethers_core::abi::AbiDecode>::decode(data) {
return Ok(Self::DefaultAdminRole(decoded));
}
if let Ok(decoded)
= <GetRoleAdminCall as ::ethers_core::abi::AbiDecode>::decode(data) {
return Ok(Self::GetRoleAdmin(decoded));
}
if let Ok(decoded)
= <GetRoleMemberCall as ::ethers_core::abi::AbiDecode>::decode(data) {
return Ok(Self::GetRoleMember(decoded));
}
if let Ok(decoded)
= <GetRoleMemberCountCall as ::ethers_core::abi::AbiDecode>::decode(
data,
) {
return Ok(Self::GetRoleMemberCount(decoded));
}
if let Ok(decoded)
= <GrantRoleCall as ::ethers_core::abi::AbiDecode>::decode(data) {
return Ok(Self::GrantRole(decoded));
}
if let Ok(decoded)
= <HasRoleCall as ::ethers_core::abi::AbiDecode>::decode(data) {
return Ok(Self::HasRole(decoded));
}
if let Ok(decoded)
= <RenounceRoleCall as ::ethers_core::abi::AbiDecode>::decode(data) {
return Ok(Self::RenounceRole(decoded));
}
if let Ok(decoded)
= <RevokeRoleCall as ::ethers_core::abi::AbiDecode>::decode(data) {
return Ok(Self::RevokeRole(decoded));
}
if let Ok(decoded)
= <SupportsInterfaceCall as ::ethers_core::abi::AbiDecode>::decode(
data,
) {
return Ok(Self::SupportsInterface(decoded));
}
Err(::ethers_core::abi::Error::InvalidData.into())
}
}
impl ::ethers_core::abi::AbiEncode for AccessControlEnumerableCalls {
fn encode(self) -> Vec<u8> {
match self {
Self::DefaultAdminRole(element) => {
::ethers_core::abi::AbiEncode::encode(element)
}
Self::GetRoleAdmin(element) => {
::ethers_core::abi::AbiEncode::encode(element)
}
Self::GetRoleMember(element) => {
::ethers_core::abi::AbiEncode::encode(element)
}
Self::GetRoleMemberCount(element) => {
::ethers_core::abi::AbiEncode::encode(element)
}
Self::GrantRole(element) => {
::ethers_core::abi::AbiEncode::encode(element)
}
Self::HasRole(element) => ::ethers_core::abi::AbiEncode::encode(element),
Self::RenounceRole(element) => {
::ethers_core::abi::AbiEncode::encode(element)
}
Self::RevokeRole(element) => {
::ethers_core::abi::AbiEncode::encode(element)
}
Self::SupportsInterface(element) => {
::ethers_core::abi::AbiEncode::encode(element)
}
}
}
}
impl ::core::fmt::Display for AccessControlEnumerableCalls {
fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
match self {
Self::DefaultAdminRole(element) => ::core::fmt::Display::fmt(element, f),
Self::GetRoleAdmin(element) => ::core::fmt::Display::fmt(element, f),
Self::GetRoleMember(element) => ::core::fmt::Display::fmt(element, f),
Self::GetRoleMemberCount(element) => {
::core::fmt::Display::fmt(element, f)
}
Self::GrantRole(element) => ::core::fmt::Display::fmt(element, f),
Self::HasRole(element) => ::core::fmt::Display::fmt(element, f),
Self::RenounceRole(element) => ::core::fmt::Display::fmt(element, f),
Self::RevokeRole(element) => ::core::fmt::Display::fmt(element, f),
Self::SupportsInterface(element) => ::core::fmt::Display::fmt(element, f),
}
}
}
impl ::core::convert::From<DefaultAdminRoleCall> for AccessControlEnumerableCalls {
fn from(value: DefaultAdminRoleCall) -> Self {
Self::DefaultAdminRole(value)
}
}
impl ::core::convert::From<GetRoleAdminCall> for AccessControlEnumerableCalls {
fn from(value: GetRoleAdminCall) -> Self {
Self::GetRoleAdmin(value)
}
}
impl ::core::convert::From<GetRoleMemberCall> for AccessControlEnumerableCalls {
fn from(value: GetRoleMemberCall) -> Self {
Self::GetRoleMember(value)
}
}
impl ::core::convert::From<GetRoleMemberCountCall> for AccessControlEnumerableCalls {
fn from(value: GetRoleMemberCountCall) -> Self {
Self::GetRoleMemberCount(value)
}
}
impl ::core::convert::From<GrantRoleCall> for AccessControlEnumerableCalls {
fn from(value: GrantRoleCall) -> Self {
Self::GrantRole(value)
}
}
impl ::core::convert::From<HasRoleCall> for AccessControlEnumerableCalls {
fn from(value: HasRoleCall) -> Self {
Self::HasRole(value)
}
}
impl ::core::convert::From<RenounceRoleCall> for AccessControlEnumerableCalls {
fn from(value: RenounceRoleCall) -> Self {
Self::RenounceRole(value)
}
}
impl ::core::convert::From<RevokeRoleCall> for AccessControlEnumerableCalls {
fn from(value: RevokeRoleCall) -> Self {
Self::RevokeRole(value)
}
}
impl ::core::convert::From<SupportsInterfaceCall> for AccessControlEnumerableCalls {
fn from(value: SupportsInterfaceCall) -> Self {
Self::SupportsInterface(value)
}
}
///Container type for all return fields from the `DEFAULT_ADMIN_ROLE` function with signature `DEFAULT_ADMIN_ROLE()` and selector `0xa217fddf`
#[derive(
Clone,
::ethers_contract::EthAbiType,
::ethers_contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash
)]
pub struct DefaultAdminRoleReturn(pub [u8; 32]);
///Container type for all return fields from the `getRoleAdmin` function with signature `getRoleAdmin(bytes32)` and selector `0x248a9ca3`
#[derive(
Clone,
::ethers_contract::EthAbiType,
::ethers_contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash
)]
pub struct GetRoleAdminReturn(pub [u8; 32]);
///Container type for all return fields from the `getRoleMember` function with signature `getRoleMember(bytes32,uint256)` and selector `0x9010d07c`
#[derive(
Clone,
::ethers_contract::EthAbiType,
::ethers_contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash
)]
pub struct GetRoleMemberReturn(pub ::ethers_core::types::Address);
///Container type for all return fields from the `getRoleMemberCount` function with signature `getRoleMemberCount(bytes32)` and selector `0xca15c873`
#[derive(
Clone,
::ethers_contract::EthAbiType,
::ethers_contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash
)]
pub struct GetRoleMemberCountReturn(pub ::ethers_core::types::U256);
///Container type for all return fields from the `hasRole` function with signature `hasRole(bytes32,address)` and selector `0x91d14854`
#[derive(
Clone,
::ethers_contract::EthAbiType,
::ethers_contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash
)]
pub struct HasRoleReturn(pub bool);
///Container type for all return fields from the `supportsInterface` function with signature `supportsInterface(bytes4)` and selector `0x01ffc9a7`
#[derive(
Clone,
::ethers_contract::EthAbiType,
::ethers_contract::EthAbiCodec,
Default,
Debug,
PartialEq,
Eq,
Hash
)]
pub struct SupportsInterfaceReturn(pub bool);
}