Struct dao::modules::refs::ContractRefs
source · pub struct ContractRefs { /* private fields */ }
Expand description
A module that stores addresses to common voting_contracts that are used by most of the voting voting_contracts.
Implementations§
source§impl ContractRefs
impl ContractRefs
pub fn set_variable_repository(&mut self, variable_repository: Address)
pub fn set_reputation_token(&mut self, reputation_token: Address)
pub fn set_va_token(&mut self, va_token: Address)
pub fn set_kyc_token(&mut self, kyc_token: Address)
pub fn variable_repository_address(&self) -> Address
pub fn reputation_token_address(&self) -> Address
pub fn va_token_address(&self) -> Address
pub fn kyc_token_address(&self) -> Address
pub fn variable_repository(&self) -> VariableRepositoryContractRef
pub fn reputation_token(&self) -> ReputationContractRef
pub fn va_token(&self) -> VaNftContractRef
pub fn kyc_token(&self) -> KycNftContractRef
Trait Implementations§
source§impl Clone for ContractRefs
impl Clone for ContractRefs
source§fn clone(&self) -> ContractRefs
fn clone(&self) -> ContractRefs
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Node for ContractRefs
impl Node for ContractRefs
Auto Trait Implementations§
impl RefUnwindSafe for ContractRefs
impl Send for ContractRefs
impl Sync for ContractRefs
impl Unpin for ContractRefs
impl UnwindSafe for ContractRefs
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
Mutably borrows from an owned value. Read more