Struct niftygate_bindings::openzeppelin::contracts_upgradeable::governance::extensions::GovernorVotesUpgradeable
source · [−]pub struct GovernorVotesUpgradeable { /* private fields */ }
Expand description
Generated by ethcontract
Implementations
sourceimpl Contract
impl Contract
sourcepub fn raw_contract() -> &'static Contract
pub fn raw_contract() -> &'static Contract
Retrieves the raw contract instance used to generate the type safe API for this contract.
sourcepub fn at<F, B, T>(web3: &Web3<T>, address: Address) -> Self where
F: Future<Output = Result<Value, Error>> + Send + 'static,
B: Future<Output = Result<Vec<Result<Value, Error>>, Error>> + Send + 'static,
T: Transport<Out = F> + BatchTransport<Batch = B> + Send + Sync + 'static,
pub fn at<F, B, T>(web3: &Web3<T>, address: Address) -> Self where
F: Future<Output = Result<Value, Error>> + Send + 'static,
B: Future<Output = Result<Vec<Result<Value, Error>>, Error>> + Send + 'static,
T: Transport<Out = F> + BatchTransport<Batch = B> + Send + Sync + 'static,
Creates a new contract instance with the specified web3
provider at the given Address
.
Note that this does not verify that a contract with a matching
Abi
is actually deployed at the given address.
sourcepub fn with_deployment_info<F, B, T>(
web3: &Web3<T>,
address: Address,
deployment_information: Option<DeploymentInformation>
) -> Self where
F: Future<Output = Result<Value, Error>> + Send + 'static,
B: Future<Output = Result<Vec<Result<Value, Error>>, Error>> + Send + 'static,
T: Transport<Out = F> + BatchTransport<Batch = B> + Send + Sync + 'static,
pub fn with_deployment_info<F, B, T>(
web3: &Web3<T>,
address: Address,
deployment_information: Option<DeploymentInformation>
) -> Self where
F: Future<Output = Result<Value, Error>> + Send + 'static,
B: Future<Output = Result<Vec<Result<Value, Error>>, Error>> + Send + 'static,
T: Transport<Out = F> + BatchTransport<Batch = B> + Send + Sync + 'static,
Creates a new contract instance with the specified web3
provider with
the given Abi
at the given Address
and an optional transaction hash.
This hash is used to retrieve contract related information such as the
creation block (which is useful for fetching all historic events).
Note that this does not verify that a contract with a matching Abi
is
actually deployed at the given address nor that the transaction hash,
when provided, is actually for this contract deployment.
sourcepub fn deployment_information(&self) -> Option<DeploymentInformation>
pub fn deployment_information(&self) -> Option<DeploymentInformation>
Returns the deployment information of the contract
if it is known, None
otherwise.
sourcepub fn defaults(&self) -> &MethodDefaults
pub fn defaults(&self) -> &MethodDefaults
Returns a reference to the default method options used by this contract.
sourcepub fn defaults_mut(&mut self) -> &mut MethodDefaults
pub fn defaults_mut(&mut self) -> &mut MethodDefaults
Returns a mutable reference to the default method options used by this contract.
sourcepub fn raw_instance(&self) -> &DynInstance
pub fn raw_instance(&self) -> &DynInstance
Returns a reference to the raw runtime instance used by this contract.
sourceimpl Contract
impl Contract
sourcepub fn signatures() -> Signatures
pub fn signatures() -> Signatures
Returns an object that allows accessing typed method signatures.
sourceimpl Contract
impl Contract
sourcepub fn all_events(&self) -> DynAllEventsBuilder<Event>
pub fn all_events(&self) -> DynAllEventsBuilder<Event>
Returns a log stream with all events.
Methods from Deref<Target = Methods>
sourcepub fn counting_mode(&self) -> DynViewMethodBuilder<String>
pub fn counting_mode(&self) -> DynViewMethodBuilder<String>
Generated by ethcontract
sourcepub fn state(&self, proposal_id: U256) -> DynViewMethodBuilder<u8>
pub fn state(&self, proposal_id: U256) -> DynViewMethodBuilder<u8>
Generated by ethcontract
sourcepub fn quorum(&self, block_number: U256) -> DynViewMethodBuilder<U256>
pub fn quorum(&self, block_number: U256) -> DynViewMethodBuilder<U256>
Generated by ethcontract
sourcepub fn supports_interface(
&self,
interface_id: Bytes<[u8; 4]>
) -> DynViewMethodBuilder<bool>
pub fn supports_interface(
&self,
interface_id: Bytes<[u8; 4]>
) -> DynViewMethodBuilder<bool>
Generated by ethcontract
sourcepub fn cast_vote_with_reason(
&self,
proposal_id: U256,
support: u8,
reason: String
) -> DynMethodBuilder<U256>
pub fn cast_vote_with_reason(
&self,
proposal_id: U256,
support: u8,
reason: String
) -> DynMethodBuilder<U256>
Generated by ethcontract
sourcepub fn cast_vote_by_sig(
&self,
proposal_id: U256,
support: u8,
v: u8,
r: Bytes<[u8; 32]>,
s: Bytes<[u8; 32]>
) -> DynMethodBuilder<U256>
pub fn cast_vote_by_sig(
&self,
proposal_id: U256,
support: u8,
v: u8,
r: Bytes<[u8; 32]>,
s: Bytes<[u8; 32]>
) -> DynMethodBuilder<U256>
Generated by ethcontract
sourcepub fn has_voted(
&self,
proposal_id: U256,
account: Address
) -> DynViewMethodBuilder<bool>
pub fn has_voted(
&self,
proposal_id: U256,
account: Address
) -> DynViewMethodBuilder<bool>
Generated by ethcontract
sourcepub fn version(&self) -> DynViewMethodBuilder<String>
pub fn version(&self) -> DynViewMethodBuilder<String>
Generated by ethcontract
sourcepub fn execute(
&self,
targets: Vec<Address>,
values: Vec<U256>,
calldatas: Vec<Bytes<Vec<u8>>>,
description_hash: Bytes<[u8; 32]>
) -> DynMethodBuilder<U256>
pub fn execute(
&self,
targets: Vec<Address>,
values: Vec<U256>,
calldatas: Vec<Bytes<Vec<u8>>>,
description_hash: Bytes<[u8; 32]>
) -> DynMethodBuilder<U256>
Generated by ethcontract
sourcepub fn hash_proposal(
&self,
targets: Vec<Address>,
values: Vec<U256>,
calldatas: Vec<Bytes<Vec<u8>>>,
description_hash: Bytes<[u8; 32]>
) -> DynViewMethodBuilder<U256>
pub fn hash_proposal(
&self,
targets: Vec<Address>,
values: Vec<U256>,
calldatas: Vec<Bytes<Vec<u8>>>,
description_hash: Bytes<[u8; 32]>
) -> DynViewMethodBuilder<U256>
Generated by ethcontract
sourcepub fn name(&self) -> DynViewMethodBuilder<String>
pub fn name(&self) -> DynViewMethodBuilder<String>
Generated by ethcontract
sourcepub fn ballot_typehash(&self) -> DynViewMethodBuilder<Bytes<[u8; 32]>>
pub fn ballot_typehash(&self) -> DynViewMethodBuilder<Bytes<[u8; 32]>>
Generated by ethcontract
sourcepub fn propose(
&self,
targets: Vec<Address>,
values: Vec<U256>,
calldatas: Vec<Bytes<Vec<u8>>>,
description: String
) -> DynMethodBuilder<U256>
pub fn propose(
&self,
targets: Vec<Address>,
values: Vec<U256>,
calldatas: Vec<Bytes<Vec<u8>>>,
description: String
) -> DynMethodBuilder<U256>
Generated by ethcontract
sourcepub fn get_votes(
&self,
account: Address,
block_number: U256
) -> DynViewMethodBuilder<U256>
pub fn get_votes(
&self,
account: Address,
block_number: U256
) -> DynViewMethodBuilder<U256>
Generated by ethcontract
sourcepub fn cast_vote(
&self,
proposal_id: U256,
support: u8
) -> DynMethodBuilder<U256>
pub fn cast_vote(
&self,
proposal_id: U256,
support: u8
) -> DynMethodBuilder<U256>
Generated by ethcontract
sourcepub fn proposal_snapshot(&self, proposal_id: U256) -> DynViewMethodBuilder<U256>
pub fn proposal_snapshot(&self, proposal_id: U256) -> DynViewMethodBuilder<U256>
Generated by ethcontract
sourcepub fn token(&self) -> DynViewMethodBuilder<Address>
pub fn token(&self) -> DynViewMethodBuilder<Address>
Generated by ethcontract
sourcepub fn proposal_deadline(&self, proposal_id: U256) -> DynViewMethodBuilder<U256>
pub fn proposal_deadline(&self, proposal_id: U256) -> DynViewMethodBuilder<U256>
Generated by ethcontract
sourcepub fn voting_period(&self) -> DynViewMethodBuilder<U256>
pub fn voting_period(&self) -> DynViewMethodBuilder<U256>
Generated by ethcontract
sourcepub fn voting_delay(&self) -> DynViewMethodBuilder<U256>
pub fn voting_delay(&self) -> DynViewMethodBuilder<U256>
Generated by ethcontract
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Contract
impl Send for Contract
impl Sync for Contract
impl Unpin for Contract
impl !UnwindSafe for Contract
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more