multiversx_sc_modules::governance::governance_events

Struct ContractObj

Source
pub struct ContractObj<A>(/* private fields */)
where
    A: VMApi;

Trait Implementations§

Source§

impl<A> CallableContract for ContractObj<A>
where A: VMApi + Send + Sync,

Source§

fn call(&self, fn_name: &str) -> bool

Source§

impl<A> ContractBase for ContractObj<A>
where A: VMApi,

Source§

type Api = A

Source§

fn call_value(&self) -> CallValueWrapper<Self::Api>

Gateway into the call value retrieval functionality. The payment annotations should normally be the ones to handle this, but the developer is also given direct access to the API.
Source§

fn send(&self) -> SendWrapper<Self::Api>

Gateway to the functionality related to sending transactions from the current contract.
Source§

fn tx(&self) -> Tx<TxScEnv<Self::Api>, (), (), (), (), (), ()>

Starts the declaration of a new transaction.
Source§

fn send_raw(&self) -> SendRawWrapper<Self::Api>

Low-level functionality related to sending transactions from the current contract. Read more
Source§

fn blockchain(&self) -> BlockchainWrapper<Self::Api>

Gateway blockchain info related to the current transaction and to accounts.
Source§

fn crypto(&self) -> CryptoWrapper<Self::Api>

Stateless crypto functions provided by the Arwen VM.
Source§

fn serializer(&self) -> ManagedSerializer<Self::Api>

Component that provides contract developers access to highly optimized manual serialization and deserialization.
Source§

fn error(&self) -> ErrorHelper<Self::Api>

Source§

fn storage_raw(&self) -> StorageRawWrapper<Self::Api>

Source§

impl<A> EndpointWrappers for ContractObj<A>
where A: VMApi,

Source§

fn call(&mut self, fn_name: &str) -> bool

Source§

fn callback_selector( &mut self, ___cb_closure___: &CallbackClosureForDeser<Self::Api>, ) -> CallbackSelectorResult

Source§

fn callback(&mut self)

Source§

impl<A> AutoImpl for ContractObj<A>
where A: VMApi,

Auto Trait Implementations§

§

impl<A> Freeze for ContractObj<A>

§

impl<A> RefUnwindSafe for ContractObj<A>
where A: RefUnwindSafe,

§

impl<A> Send for ContractObj<A>

§

impl<A> Sync for ContractObj<A>

§

impl<A> Unpin for ContractObj<A>
where A: Unpin,

§

impl<A> UnwindSafe for ContractObj<A>
where A: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<C> GovernanceEventsModule for C
where C: AutoImpl,

Source§

fn proposal_created_event( &self, proposal_id: usize, proposer: &ManagedAddress<<C as ContractBase>::Api>, start_block: u64, proposal: &GovernanceProposal<<C as ContractBase>::Api>, )

Source§

fn up_vote_cast_event( &self, up_voter: &ManagedAddress<<C as ContractBase>::Api>, proposal_id: usize, nr_votes: &BigUint<<C as ContractBase>::Api>, )

Source§

fn down_vote_cast_event( &self, down_voter: &ManagedAddress<<C as ContractBase>::Api>, proposal_id: usize, nr_downvotes: &BigUint<<C as ContractBase>::Api>, )

Source§

fn down_veto_vote_cast_event( &self, down_veto_voter: &ManagedAddress<<C as ContractBase>::Api>, proposal_id: usize, nr_downvotes: &BigUint<<C as ContractBase>::Api>, )

Source§

fn abstain_vote_cast_event( &self, abstain_voter: &ManagedAddress<<C as ContractBase>::Api>, proposal_id: usize, nr_downvotes: &BigUint<<C as ContractBase>::Api>, )

Source§

fn proposal_canceled_event(&self, proposal_id: usize)

Source§

fn proposal_queued_event(&self, proposal_id: usize, queued_block: u64)

Source§

fn proposal_executed_event(&self, proposal_id: usize)

Source§

fn user_deposit_event( &self, address: &ManagedAddress<<C as ContractBase>::Api>, proposal_id: usize, payment: &EsdtTokenPayment<<C as ContractBase>::Api>, )

Source§

fn user_claim_event( &self, address: &ManagedAddress<<C as ContractBase>::Api>, proposal_id: usize, payment: &EsdtTokenPayment<<C as ContractBase>::Api>, )

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.