Documentation ¶
Index ¶
Constants ¶
View Source
const ( ETH2GWei = 1 * 1e9 MinDepositAmount = (1 << 0) * ETH2GWei MaxDepositAmount = (1 << 5) * ETH2GWei // DefaultValidatorKeysFolderName File/folder constants DefaultValidatorKeysFolderName = "validator_keys" )
View Source
const DepositCliVersion = "3.0.0"
Variables ¶
View Source
var ( ZeroBytes32 [32]byte // DomainDeposit Execution-spec constants taken from https://github.com/ethereum/consensus-specs/blob/dev/specs/phase0/beacon-chain.md DomainDeposit = [4]byte{0x03, 0x00, 0x00, 0x00} BlsWithdrawalPrefix = []byte{0x00} Eth1AddressWithdrawalPrefix = []byte{0x01} )
View Source
var MnemonicLanguagesName = map[MnemonicLanguage]string{ MnemonicLanguageChineseSimplified: "🇨🇳 Chinese (Simplified)", MnemonicLanguageChineseTraditional: "🇨🇳 Chinese (Traditional)", MnemonicLanguageCzech: "🇨🇿 Czech", MnemonicLanguageEnglish: "🇺🇸 English", MnemonicLanguageFrench: "🇫🇷 French", MnemonicLanguageItalian: "🇮🇹 Italian", MnemonicLanguageJapanese: "🇯🇵 Japanese", MnemonicLanguageKorean: "🇰🇷 Korean", MnemonicLanguageSpanish: "🇪🇸 Spanish", }
View Source
var NetworkNames = []NetworkName{ ChainMAINNET, ChainGOERLI, ChainPRATER, ChainSEPOLIA, ChainZHEJIANG, }
View Source
var WordListsMap = map[MnemonicLanguage]WordLists{ MnemonicLanguageChineseSimplified: wordlists.ChineseSimplified, MnemonicLanguageChineseTraditional: wordlists.ChineseTraditional, MnemonicLanguageCzech: wordlists.Czech, MnemonicLanguageEnglish: wordlists.English, MnemonicLanguageFrench: wordlists.French, MnemonicLanguageItalian: wordlists.Italian, MnemonicLanguageJapanese: wordlists.Japanese, MnemonicLanguageKorean: wordlists.Korean, MnemonicLanguageSpanish: wordlists.Spanish, }
Functions ¶
This section is empty.
Types ¶
type Chain ¶
type Chain struct { NetworkName NetworkName GenesisForkVersion [4]byte GenesisValidatorsRoot [32]byte }
func GetChain ¶
func GetChain(chain NetworkName) Chain
type MnemonicLanguage ¶
type MnemonicLanguage string
const ( MnemonicLanguageChineseSimplified MnemonicLanguage = "chinese_simplified" MnemonicLanguageChineseTraditional MnemonicLanguage = "chinese_traditional" MnemonicLanguageCzech MnemonicLanguage = "czech" MnemonicLanguageEnglish MnemonicLanguage = "english" MnemonicLanguageFrench MnemonicLanguage = "french" MnemonicLanguageItalian MnemonicLanguage = "italian" MnemonicLanguageJapanese MnemonicLanguage = "japanese" MnemonicLanguageKorean MnemonicLanguage = "korean" MnemonicLanguageSpanish MnemonicLanguage = "spanish" )
func (MnemonicLanguage) ToName ¶
func (l MnemonicLanguage) ToName() string
func (MnemonicLanguage) ToString ¶
func (l MnemonicLanguage) ToString() string
func (MnemonicLanguage) ToWordList ¶
func (l MnemonicLanguage) ToWordList() WordLists
type NetworkName ¶
type NetworkName string
const ( ChainMAINNET NetworkName = "mainnet" ChainGOERLI NetworkName = "goerli" ChainPRATER NetworkName = "prater" ChainSEPOLIA NetworkName = "sepolia" ChainZHEJIANG NetworkName = "zhejiang" )
func (NetworkName) ToString ¶
func (n NetworkName) ToString() string
Click to show internal directories.
Click to hide internal directories.