pub struct ContractObj<A>where
    A: VMApi,
{ /* private fields */ }

Trait Implementations§

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.
Gateway to the functionality related to sending transactions from the current contract.
Low-level functionality related to sending transactions from the current contract. Read more
Gateway blockchain info related to the current transaction and to accounts.
Stateless crypto functions provided by the Arwen VM.
Component that provides contract developers access to highly optimized manual serialization and deserialization.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

The module can’t protect its storage from the main SC, so it’s the developers responsibility to not modify parameters manually

Not stored under “proposals”, as that would require deserializing the whole struct

Used to deposit tokens for “payable” actions. Funds will be returned if the proposal is defeated. To keep the logic simple, all tokens have to be deposited at once
Propose a list of actions. A maximum of MAX_GOVERNANCE_PROPOSAL_ACTIONS can be proposed at a time. Read more
Vote on a proposal by depositing any amount of governance tokens These tokens will be locked until the proposal is executed or cancelled.
Queue a proposal for execution. This can be done only if the proposal has reached the quorum. A proposal is considered successful and ready for queing if total_votes - total_downvotes >= quorum
Execute a previously queued proposal. This will clear the proposal and unlock the governance tokens. Said tokens can then be withdrawn and used to vote/downvote other proposals.
Cancel a proposed action. This can be done: Read more
specific votes/downvotes are not cleared, as they’re used for reclaim tokens logic and cleared one by one

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.