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 Address
static final Address
static final Address
static final Address
static final Address
static final Address
static final Address
static final Address
static final Address
static final Address
static final Address
static final Address
static final Address
static final Address
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Address
calcPeerAddress
(int userCount, int index) static Address
calcUserAddress
(int index) static State
createBaseState
(List<AccountKey> genesisKeys) Creates the base genesis state (before deployment of standard libraries and actors)static State
createState
(List<AccountKey> genesisKeys) static Address
static Address
getGenesisPeerAddress
(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
-