Expand description
Conflux Internal Contracts: Implements Conflux’s builtin contracts.
Modules§
Structs§
- AllParams
Vote Count - Index
Status - Internal
Contract Exec - Internal
Contract Map - Internal
RefContext - 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. - Param
Vote Count - Resume
Traits§
- Interface
Trait - Internal
Contract Trait - Native implementation of an internal contract.
- Solidity
Event Trait - Native implementation of a solidity-interface function.
Functions§
- block_
hash_ slot - decode_
register_ info - epoch_
hash_ slot - get_
settled_ param_ vote_ count - If the vote counts are not initialized, all counts will be zero, and the parameters will be unchanged.
- get_
settled_ pos_ staking_ for_ votes - initialize_
internal_ contract_ accounts - is_
call_ create_ sig - is_
withdraw_ sig - make_
staking_ events - settle_
current_ votes - Move the next vote counts into settled and reset the counts.
set_pos_staking
is for compatibility with the Testnet. - storage_
point_ prop - suicide
- The Actual Implementation of
suicide
. The contract which has non zerocollateral_for_storage
cannot suicide, otherwise it will: