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
Convex utility classes and miscellaneous functionality
-
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.static State
State.create
(AVector<AccountStatus> accounts, BlobMap<AccountKey, PeerStatus> peers, AVector<ACell> globals, BlobMap<ABlob, AVector<ACell>> schedule) Create a StateMergeContext.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.State.putAccount
(Address address, AccountStatus accountStatus) Returns this state after updating the given accountstatic State
static State
State.read
(ByteBuffer bb) Reads a State from a ByteBuffer encoding.State.scheduleOp
(long time, Address address, AOp<?> op) Schedules an operation with the given timestamp and Op in this stateState.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
(BlobMap<AccountKey, PeerStatus> newPeers) Updates the Peers in this StateState.withTimestamp
(long timestamp) Updates the State with a new timestampMethods in convex.core with parameters of type StateModifier and TypeMethodDescriptionstatic BlockResult
Create a BlockResultstatic BlockResult
Create a BlockResultstatic MergeContext
Create a MergeContextstatic 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.boolean
Tests if this State is equal to another -
Uses of State in convex.core.init
Methods in convex.core.init that return StateModifier and TypeMethodDescriptionstatic State
Init.createBaseState
(List<AccountKey> genesisKeys) static State
Init.createState
(List<AccountKey> genesisKeys) static State
Init.createStaticLibraries
(State s, Address trustAddress, Address registryAddress) Methods in convex.core.init with parameters of type StateModifier and TypeMethodDescriptionstatic State
Init.createStaticLibraries
(State s, Address trustAddress, Address registryAddress) -
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, long initialJuice) Performs key actions at the end of a transaction: Refunds juice Accumulates used juice fees in globals Increments sequence numberContext.createFake
(State state) Creates an execution context with a default actor address.Context.createFake
(State state, Address origin) Creates a "fake" execution context for the given address.Context.createInitial
(State state, Address origin, long juice) Creates an initial execution context with the specified actor as origin, and reserving the appropriate amount of juice. -
Uses of State in convex.core.util
Methods in convex.core.util that return StateMethods in convex.core.util that return types with arguments of type StateModifier and TypeMethodDescriptionUtils.statesAsOfRange
(AVector<State> states, CVMLong timestamp, long interval, int count) Method parameters in convex.core.util with type arguments of type State