Uses of Class
convex.core.State
Packages that use State
Package
Description
Fundamental Convex classes used for the decentralised network
Package used to create genesis states for new Convex networks
Core CVM implementation
-
Uses of State in convex.core
Fields in convex.core declared as StateMethods in convex.core that return StateModifier and TypeMethodDescriptionState.addActor()
Adds a new Actor Account.State.applyScheduledTransactions()
State.applyTimeUpdate
(long newTimestamp) Updates the State based on passage of time.static State
State.create
(AVector<AccountStatus> accounts, Index<AccountKey, PeerStatus> peers, AVector<ACell> globals, Index<ABlob, AVector<ACell>> schedule) Create a StateBeliefMerge.getConsensusState()
Gets the Consensus State for this mergePeer.getConsensusState()
Gets the current consensus state for this PeerPeer.getGenesisState()
Gets the genesis State of this PeerBlockResult.getState()
Get the State resulting from this Block.ResultContext.getState()
State.putAccount
(Address address, AccountStatus accountStatus) Returns this state after updating the given accountstatic State
Reads a State from an encoding.State.scheduleOp
(long time, Address address, AOp<?> op) Schedules an operation with the given timestamp and Op in this statestatic State
State.updateMemoryPool
(long cvx, long mem) State.updateRefs
(IRefFunction func) State.withAccounts
(AVector<AccountStatus> newAccounts) Updates the Accounts in this StateState.withBalance
(Address address, long newBalance) State.withGlobalFees
(CVMLong newFees) Update Global FeesState.withPeer
(AccountKey peerKey, PeerStatus updatedPeer) Updates the specified peer statusState.withPeers
(Index<AccountKey, PeerStatus> newPeers) Updates the Peers in this StateState.withTimestamp
(long timestamp) Updates the State with a new timestampMethods in convex.core that return types with arguments of type StateModifier and TypeMethodDescriptionState.statesAsOfRange
(AVector<State> states, CVMLong timestamp, long interval, int count) Methods in convex.core with parameters of type StateModifier and TypeMethodDescriptionstatic BeliefMerge
Create a Belief Merge contextstatic BlockResult
Create a BlockResultstatic BlockResult
Create a BlockResultstatic Peer
Creates a Peerstatic Peer
Create a Peer instance from a remotely acquired Beliefstatic Peer
Peer.createGenesisPeer
(AKeyPair keyPair, State genesisState) Creates a new Peer instance at server startup using the provided configuration.static BlockResult
BlockResult.createInvalidBlock
(State state, Block block, AString message) Creates a BlockResult for an invalid Block (i.e.boolean
Tests if this State is equal to anotherstatic ResultContext
static ResultContext
Method parameters in convex.core with type arguments of type State -
Uses of State in convex.core.init
Methods in convex.core.init that return StateModifier and TypeMethodDescriptionstatic State
Init.createBaseState
(List<AccountKey> genesisKeys) Creates the base genesis state (before deployment of standard libraries and actors)static State
Init.createState
(List<AccountKey> genesisKeys) -
Uses of State in convex.core.lang
Methods in convex.core.lang that return StateMethods in convex.core.lang with parameters of type StateModifier and TypeMethodDescriptionContext.completeTransaction
(State initialState, ResultContext rc) Performs key actions at the end of a transaction: Refunds juice Accumulates used juice fees in globals Increments sequence numberstatic Context.ChainState
Context.ChainState.create
(State state, Address origin, Address caller, Address address, long offer, ACell scope) static Context
Context.createFake
(State state) Creates an execution context with a default actor address.static Context
Context.createFake
(State state, Address origin) Creates a "fake" execution context for the given address.static Context
Context.createInitial
(State state, Address origin, long juiceLimit) Creates an initial execution context with the specified actor as origin, and reserving the appropriate amount of juice.Context.ChainState.withStateOffer
(State newState, long newOffer)