Module cfx_executor::internal_contract
source · Expand description
Conflux Internal Contracts: Implements Conflux’s builtin contracts.
Modules§
Structs§
- The internal contracts need to access the context parameter directly, e.g.,
foo(env, spec)
. Butfoo(context.env(), context.spec())
will incur lifetime issue. TheInternalRefContext
contains the parameters required by the internal contracts.
Traits§
- Native implementation of an internal contract.
- Native implementation of a solidity-interface function.
Functions§
- If the vote counts are not initialized, all counts will be zero, and the parameters will be unchanged.
- Move the next vote counts into settled and reset the counts.
set_pos_staking
is for compatibility with the Testnet. - The Actual Implementation of
suicide
. The contract which has non zerocollateral_for_storage
cannot suicide, otherwise it will: