pub struct ReferralsModuleInstance<P, N = Ethereum> { /* private fields */ }Expand description
A ReferralsModule instance.
Contains type-safe methods for interacting with an on-chain instance of the
ReferralsModule contract located at a given address, using a given
provider P.
If the contract bytecode is available (see the 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 for all the available methods.
Implementations§
Source§impl<P: Provider<N>, N: Network> ReferralsModuleInstance<P, N>
Instantiation and getters/setters.
impl<P: Provider<N>, N: Network> ReferralsModuleInstance<P, N>
Instantiation and getters/setters.
Sourcepub const fn new(address: Address, __provider: P) -> Self
pub const fn new(address: Address, __provider: P) -> Self
Creates a new wrapper around an on-chain ReferralsModule contract instance.
See the wrapper’s documentation for more details.
Sourcepub fn set_address(&mut self, address: Address)
pub fn set_address(&mut self, address: Address)
Sets the address.
Source§impl<P: Clone, N> ReferralsModuleInstance<&P, N>
impl<P: Clone, N> ReferralsModuleInstance<&P, N>
Sourcepub fn with_cloned_provider(self) -> ReferralsModuleInstance<P, N>
pub fn with_cloned_provider(self) -> ReferralsModuleInstance<P, N>
Clones the provider and returns a new instance with the cloned provider.
Source§impl<P: Provider<N>, N: Network> ReferralsModuleInstance<P, N>
Function calls.
impl<P: Provider<N>, N: Network> ReferralsModuleInstance<P, N>
Function calls.
Sourcepub fn call_builder<C: SolCall>(&self, call: &C) -> SolCallBuilder<&P, C, N>
pub fn call_builder<C: SolCall>(&self, call: &C) -> SolCallBuilder<&P, C, 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.
Sourcepub fn AFFILIATE_GROUP_REGISTRY(
&self,
) -> SolCallBuilder<&P, AFFILIATE_GROUP_REGISTRYCall, N>
pub fn AFFILIATE_GROUP_REGISTRY( &self, ) -> SolCallBuilder<&P, AFFILIATE_GROUP_REGISTRYCall, N>
Creates a new call builder for the [AFFILIATE_GROUP_REGISTRY] function.
Sourcepub fn DOMAIN_SEPARATOR(&self) -> SolCallBuilder<&P, DOMAIN_SEPARATORCall, N>
pub fn DOMAIN_SEPARATOR(&self) -> SolCallBuilder<&P, DOMAIN_SEPARATORCall, N>
Creates a new call builder for the [DOMAIN_SEPARATOR] function.
Sourcepub fn GENERIC_CALL_PROXY(
&self,
) -> SolCallBuilder<&P, GENERIC_CALL_PROXYCall, N>
pub fn GENERIC_CALL_PROXY( &self, ) -> SolCallBuilder<&P, GENERIC_CALL_PROXYCall, N>
Creates a new call builder for the [GENERIC_CALL_PROXY] function.
Sourcepub fn HUB(&self) -> SolCallBuilder<&P, HUBCall, N>
pub fn HUB(&self) -> SolCallBuilder<&P, HUBCall, N>
Creates a new call builder for the [HUB] function.
Sourcepub fn INVITATION_MODULE(&self) -> SolCallBuilder<&P, INVITATION_MODULECall, N>
pub fn INVITATION_MODULE(&self) -> SolCallBuilder<&P, INVITATION_MODULECall, N>
Creates a new call builder for the [INVITATION_MODULE] function.
Sourcepub fn NAME_REGISTRY(&self) -> SolCallBuilder<&P, NAME_REGISTRYCall, N>
pub fn NAME_REGISTRY(&self) -> SolCallBuilder<&P, NAME_REGISTRYCall, N>
Creates a new call builder for the [NAME_REGISTRY] function.
Sourcepub fn SAFE_4337_MODULE(&self) -> SolCallBuilder<&P, SAFE_4337_MODULECall, N>
pub fn SAFE_4337_MODULE(&self) -> SolCallBuilder<&P, SAFE_4337_MODULECall, N>
Creates a new call builder for the [SAFE_4337_MODULE] function.
Sourcepub fn SAFE_MODULE_SETUP(&self) -> SolCallBuilder<&P, SAFE_MODULE_SETUPCall, N>
pub fn SAFE_MODULE_SETUP(&self) -> SolCallBuilder<&P, SAFE_MODULE_SETUPCall, N>
Creates a new call builder for the [SAFE_MODULE_SETUP] function.
Sourcepub fn SAFE_PROXY_FACTORY(
&self,
) -> SolCallBuilder<&P, SAFE_PROXY_FACTORYCall, N>
pub fn SAFE_PROXY_FACTORY( &self, ) -> SolCallBuilder<&P, SAFE_PROXY_FACTORYCall, N>
Creates a new call builder for the [SAFE_PROXY_FACTORY] function.
Sourcepub fn SAFE_SINGLETON(&self) -> SolCallBuilder<&P, SAFE_SINGLETONCall, N>
pub fn SAFE_SINGLETON(&self) -> SolCallBuilder<&P, SAFE_SINGLETONCall, N>
Creates a new call builder for the [SAFE_SINGLETON] function.
Sourcepub fn SAFE_WEB_AUTHN_SHARED_SIGNER(
&self,
) -> SolCallBuilder<&P, SAFE_WEB_AUTHN_SHARED_SIGNERCall, N>
pub fn SAFE_WEB_AUTHN_SHARED_SIGNER( &self, ) -> SolCallBuilder<&P, SAFE_WEB_AUTHN_SHARED_SIGNERCall, N>
Creates a new call builder for the [SAFE_WEB_AUTHN_SHARED_SIGNER] function.
Sourcepub fn WELCOME_BONUS(&self) -> SolCallBuilder<&P, WELCOME_BONUSCall, N>
pub fn WELCOME_BONUS(&self) -> SolCallBuilder<&P, WELCOME_BONUSCall, N>
Creates a new call builder for the [WELCOME_BONUS] function.
Sourcepub fn accounts(&self, signer: Address) -> SolCallBuilder<&P, accountsCall, N>
pub fn accounts(&self, signer: Address) -> SolCallBuilder<&P, accountsCall, N>
Creates a new call builder for the [accounts] function.
Sourcepub fn claimAccount_0(
&self,
x: U256,
y: U256,
verifier: Address,
signature: Bytes,
) -> SolCallBuilder<&P, claimAccount_0Call, N>
pub fn claimAccount_0( &self, x: U256, y: U256, verifier: Address, signature: Bytes, ) -> SolCallBuilder<&P, claimAccount_0Call, N>
Creates a new call builder for the [claimAccount_0] function.
Sourcepub fn claimAccount_1(
&self,
x: U256,
y: U256,
verifier: Address,
signature: Bytes,
metadataDigest: FixedBytes<32>,
) -> SolCallBuilder<&P, claimAccount_1Call, N>
pub fn claimAccount_1( &self, x: U256, y: U256, verifier: Address, signature: Bytes, metadataDigest: FixedBytes<32>, ) -> SolCallBuilder<&P, claimAccount_1Call, N>
Creates a new call builder for the [claimAccount_1] function.
Sourcepub fn claimAccount_2(
&self,
x: U256,
y: U256,
verifier: Address,
signature: Bytes,
affiliateGroup: Address,
) -> SolCallBuilder<&P, claimAccount_2Call, N>
pub fn claimAccount_2( &self, x: U256, y: U256, verifier: Address, signature: Bytes, affiliateGroup: Address, ) -> SolCallBuilder<&P, claimAccount_2Call, N>
Creates a new call builder for the [claimAccount_2] function.
Sourcepub fn claimAccount_3(
&self,
x: U256,
y: U256,
verifier: Address,
signature: Bytes,
metadataDigest: FixedBytes<32>,
affiliateGroup: Address,
) -> SolCallBuilder<&P, claimAccount_3Call, N>
pub fn claimAccount_3( &self, x: U256, y: U256, verifier: Address, signature: Bytes, metadataDigest: FixedBytes<32>, affiliateGroup: Address, ) -> SolCallBuilder<&P, claimAccount_3Call, N>
Creates a new call builder for the [claimAccount_3] function.
Sourcepub fn computeAddress(
&self,
signer: Address,
) -> SolCallBuilder<&P, computeAddressCall, N>
pub fn computeAddress( &self, signer: Address, ) -> SolCallBuilder<&P, computeAddressCall, N>
Creates a new call builder for the [computeAddress] function.
Sourcepub fn createAccount(
&self,
signer: Address,
) -> SolCallBuilder<&P, createAccountCall, N>
pub fn createAccount( &self, signer: Address, ) -> SolCallBuilder<&P, createAccountCall, N>
Creates a new call builder for the [createAccount] function.
Sourcepub fn createAccounts(
&self,
signers: Vec<Address>,
) -> SolCallBuilder<&P, createAccountsCall, N>
pub fn createAccounts( &self, signers: Vec<Address>, ) -> SolCallBuilder<&P, createAccountsCall, N>
Creates a new call builder for the [createAccounts] function.
Sourcepub fn encodePasskeyData(
&self,
x: U256,
y: U256,
verifier: Address,
) -> SolCallBuilder<&P, encodePasskeyDataCall, N>
pub fn encodePasskeyData( &self, x: U256, y: U256, verifier: Address, ) -> SolCallBuilder<&P, encodePasskeyDataCall, N>
Creates a new call builder for the [encodePasskeyData] function.
Sourcepub fn getPasskeyHash(
&self,
x: U256,
y: U256,
verifier: Address,
) -> SolCallBuilder<&P, getPasskeyHashCall, N>
pub fn getPasskeyHash( &self, x: U256, y: U256, verifier: Address, ) -> SolCallBuilder<&P, getPasskeyHashCall, N>
Creates a new call builder for the [getPasskeyHash] function.
Source§impl<P: Provider<N>, N: Network> ReferralsModuleInstance<P, N>
Event filters.
impl<P: Provider<N>, N: Network> ReferralsModuleInstance<P, N>
Event filters.
Sourcepub fn event_filter<E: SolEvent>(&self) -> Event<&P, E, N>
pub fn event_filter<E: SolEvent>(&self) -> Event<&P, E, 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.
Sourcepub fn AccountClaimed_filter(&self) -> Event<&P, AccountClaimed, N>
pub fn AccountClaimed_filter(&self) -> Event<&P, AccountClaimed, N>
Creates a new event filter for the AccountClaimed event.
Sourcepub fn AccountCreated_filter(&self) -> Event<&P, AccountCreated, N>
pub fn AccountCreated_filter(&self) -> Event<&P, AccountCreated, N>
Creates a new event filter for the AccountCreated event.
Trait Implementations§
Auto Trait Implementations§
impl<P, N> Freeze for ReferralsModuleInstance<P, N>
impl<P, N> RefUnwindSafe for ReferralsModuleInstance<P, N>
impl<P, N> Send for ReferralsModuleInstance<P, N>
impl<P, N> Sync for ReferralsModuleInstance<P, N>
impl<P, N> Unpin for ReferralsModuleInstance<P, N>
impl<P, N> UnsafeUnpin for ReferralsModuleInstance<P, N>
impl<P, N> UnwindSafe for ReferralsModuleInstance<P, N>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more