Package convex.core.init
Class Init
java.lang.Object
convex.core.init.Init
Static class for generating the initial Convex Genesis State
"The beginning is the most important part of the work." - Plato, The Republic
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Addressstatic final Addressstatic final Addressstatic final Addressstatic final Addressstatic final Addressstatic final Addressstatic final Addressstatic final Addressstatic final Addressstatic final Addressstatic final Addressstatic final Addressstatic final Address -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AddresscalcPeerAddress(int userCount, int index) static AddresscalcUserAddress(int index) static StatecreateBaseState(List<AccountKey> genesisKeys) Creates the base genesis state (before deployment of standard libraries and actors)static StatecreateState(List<AccountKey> genesisKeys) static Addressstatic AddressgetGenesisPeerAddress(int index)
-
Field Details
-
NULL_ADDRESS
-
INIT_ADDRESS
-
FOUNDATION_ADDRESS
-
RESERVE_ADDRESS
-
UNRELEASED_ADDRESS
-
DISTRIBUTION_ADDRESS
-
GOVERNANCE_ADDRESS
-
ADMIN_ADDRESS
-
CORE_ADDRESS
-
REGISTRY_ADDRESS
-
TRUST_ADDRESS
-
GENESIS_ADDRESS
-
GENESIS_PEER_ADDRESS
-
FIRST_USER_ADDRESS
-
-
Constructor Details
-
Init
public Init()
-
-
Method Details
-
createBaseState
Creates the base genesis state (before deployment of standard libraries and actors)- Parameters:
genesisKeys- Keys for genesis users and peers- Returns:
- Base genesis state
-
createState
-
calcPeerAddress
-
calcUserAddress
-
getGenesisAddress
-
getGenesisPeerAddress
-