Versions in this module Expand all Collapse all v0 v0.0.2 Oct 31, 2023 Changes in this version + var ErrBLSKeyNotStaked = errors.New("bls key not staked") v0.0.1 Oct 30, 2023 Changes in this version + const DNSType + const DelegationType + var ErrAccountAlreadyExists = errors.New("account already exists") + var ErrAccountNotCreated = errors.New("account not created") + var ErrAddressIsSmartContract = errors.New("address is a smart contract") + var ErrChangeOwnerAddressFailed = errors.New("change owner address failed") + var ErrDelegationValueIsNotEnough = errors.New("delegation value is not enough") + var ErrDuplicateAddress = errors.New("duplicate address") + var ErrEmptyAddress = errors.New("empty address") + var ErrEmptyDelegationAddress = errors.New("empty delegation address") + var ErrEmptyOwnerAddress = errors.New("empty owner address") + var ErrEmptyPubKey = errors.New("empty public key") + var ErrEmptyReturnData = errors.New("empty return data") + var ErrEmptyVmType = errors.New("empty vm type") + var ErrEntireSupplyMismatch = errors.New("entire supply mismatch") + var ErrFilenameIsDirectory = errors.New("provided name is actually a directory") + var ErrGetVersionFromSC = errors.New("get version from contract returned an invalid response") + var ErrInvalidAddress = errors.New("invalid address") + var ErrInvalidBalance = errors.New("invalid balance") + var ErrInvalidBalanceString = errors.New("invalid balance string") + var ErrInvalidDelegationAddress = errors.New("invalid delegation address") + var ErrInvalidDelegationValue = errors.New("invalid delegation value") + var ErrInvalidDelegationValueString = errors.New("invalid delegation value string") + var ErrInvalidEntireSupply = errors.New("invalid entire supply") + var ErrInvalidInitialNodePrice = errors.New("invalid initial node price") + var ErrInvalidOwnerAddress = errors.New("invalid owner address") + var ErrInvalidPubKey = errors.New("invalid public key") + var ErrInvalidStakingBalance = errors.New("invalid staking balance") + var ErrInvalidStakingBalanceString = errors.New("invalid staking balance string") + var ErrInvalidSupply = errors.New("invalid supply") + var ErrInvalidSupplyString = errors.New("invalid supply string") + var ErrInvalidVmType = errors.New("invalid vm type") + var ErrNilAccountsParser = errors.New("nil accounts parser") + var ErrNilDelegationHandler = errors.New("nil delegation handler") + var ErrNilEntireSupply = errors.New("nil entire supply") + var ErrNilInitialNodePrice = errors.New("nil initial node price") + var ErrNilKeyGenerator = errors.New("nil key generator") + var ErrNilNodesListSplitter = errors.New("nil nodes list splitter") + var ErrNilNodesSetup = errors.New("nil nodes setup") + var ErrNilPubkeyConverter = errors.New("nil pubkey converter") + var ErrNilQueryService = errors.New("nil query service") + var ErrNilShardCoordinator = errors.New("nil shard coordinator") + var ErrNilSmartContractParser = errors.New("nil smart contract parser") + var ErrNilTrieStorageManager = errors.New("nil trie storage manager") + var ErrNilTxExecutionProcessor = errors.New("nil tx execution processor") + var ErrNodeNotStaked = errors.New("for the provided node, no one staked") + var ErrSignatureMismatch = errors.New("signature mismatch") + var ErrSmartContractWasNotDeployed = errors.New("smart contract was not deployed") + var ErrStakingValueIsNotEnough = errors.New("staking value is not enough") + var ErrSupplyMismatch = errors.New("supply value mismatch") + var ErrTooManyDNSContracts = errors.New("too many DNS contracts") + var ErrWhileVerifyingDelegation = errors.New("error occurred while verifying delegation SC") + var ErrWrongTypeAssertion = errors.New("wrong type assertion") + var InitialDNSAddress = bytes.Repeat([]byte{ ... }, 32) + type AccountsParser interface + GetInitialAccountsForDelegated func(addressBytes []byte) []InitialAccountHandler + GetTotalStakedForDelegationAddress func(delegationAddress string) *big.Int + InitialAccounts func() []InitialAccountHandler + InitialAccountsSplitOnAddressesShards func(shardCoordinator sharding.Coordinator) (map[uint32][]InitialAccountHandler, error) + IsInterfaceNil func() bool + type DelegationDataHandler interface + AddressBytes func() []byte + GetAddress func() string + GetValue func() *big.Int + IsInterfaceNil func() bool + type DelegationResult struct + NumTotalDelegated int + NumTotalStaked int + type DeployProcessor interface + Deploy func(sc InitialSmartContractHandler) error + IsInterfaceNil func() bool + type InitialAccountHandler interface + AddressBytes func() []byte + Clone func() InitialAccountHandler + GetAddress func() string + GetBalanceValue func() *big.Int + GetDelegationHandler func() DelegationDataHandler + GetStakingValue func() *big.Int + GetSupply func() *big.Int + IsInterfaceNil func() bool + type InitialNodesHandler interface + InitialNodesInfo func() (map[uint32][]sharding.GenesisNodeInfoHandler, ...) + IsInterfaceNil func() bool + MinNumberOfNodes func() uint32 + type InitialSmartContractHandler interface + AddAddress func(address string) + AddAddressBytes func(addressBytes []byte) + Addresses func() []string + AddressesBytes func() [][]byte + GetFilename func() string + GetInitParameters func() string + GetOwner func() string + GetType func() string + GetVersion func() string + GetVmType func() string + IsInterfaceNil func() bool + OwnerBytes func() []byte + VmTypeBytes func() []byte + type InitialSmartContractParser interface + GetDeployedSCAddresses func(scType string) (map[string]struct{}, error) + InitialSmartContracts func() []InitialSmartContractHandler + InitialSmartContractsSplitOnOwnersShards func(shardCoordinator sharding.Coordinator) (map[uint32][]InitialSmartContractHandler, error) + IsInterfaceNil func() bool + type NodesListSplitter interface + GetAllNodes func() []sharding.GenesisNodeInfoHandler + GetDelegatedNodes func(delegationScAddress []byte) []sharding.GenesisNodeInfoHandler + IsInterfaceNil func() bool + type TxExecutionProcessor interface + AddBalance func(senderBytes []byte, value *big.Int) error + AddNonce func(senderBytes []byte, nonce uint64) error + ExecuteTransaction func(nonce uint64, sndAddr []byte, rcvAddress []byte, value *big.Int, data []byte) error + GetAccount func(address []byte) (state.UserAccountHandler, bool) + GetNonce func(senderBytes []byte) (uint64, error) + IsInterfaceNil func() bool