Packages

c

io.horizen.account.state

AccountStateView

class AccountStateView extends StateDbAccountStateView with MsgProcessorMetadataStorageReader with StateView[AccountTransaction[Proposition, Proof[Proposition]]] with SparkzLogging

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AccountStateView
  2. StateView
  3. BaseStateReader
  4. MsgProcessorMetadataStorageReader
  5. StateDbAccountStateView
  6. SparkzLogging
  7. StrictLogging
  8. AutoCloseable
  9. BaseAccountStateView
  10. AccountStateReader
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AccountStateView(metadataStorageView: AccountStateMetadataStorageView, stateDb: StateDB, messageProcessors: Seq[MessageProcessor])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def accountExists(address: Address): Boolean
  5. def addAccount(address: Address, code: Array[Byte]): Unit
  6. def addBalance(address: Address, amount: BigInteger): Unit
    Definition Classes
    StateDbAccountStateViewBaseAccountStateView
    Annotations
    @throws( classOf[ExecutionFailedException] )
  7. def addLog(log: EthereumConsensusDataLog): Unit
  8. def addTopQualityCertificates(refData: MainchainBlockReferenceData, blockId: ModifierId): Unit
  9. def applyMainchainBlockReferenceData(refData: MainchainBlockReferenceData, ftToSmartContractForkActive: Boolean = false): Unit
    Definition Classes
    StateDbAccountStateView
  10. def applyMessage(msg: Message, blockGasPool: GasPool, blockContext: BlockContext, metadata: MsgProcessorMetadataStorageReader): Array[Byte]
    Definition Classes
    StateDbAccountStateView
    Annotations
    @throws( classOf[InvalidMessageException] ) @throws( classOf[ExecutionFailedException] )
  11. def applyTransaction(tx: AccountTransaction[Proposition, Proof[Proposition]], txIndex: Int, blockGasPool: GasPool, blockContext: BlockContext, metadata: MsgProcessorMetadataStorageReader): Try[EthereumConsensusDataReceipt]

    Possible outcomes:

    Possible outcomes:

    • tx applied succesfully => Receipt with status success
    • tx execution failed => Receipt with status failed
      • if any ExecutionFailedException was thrown, including but not limited to:
      • OutOfGasException (not intrinsic gas, see below!)
      • EvmException (EVM reverted) / native contract exception
    • tx could not be applied => throws an exception (this will lead to an invalid block)
      • any of the preChecks fail
      • not enough gas for intrinsic gas
      • block gas limit reached
    Definition Classes
    StateDbAccountStateView
  12. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  13. lazy val certificateKeysProvider: CertificateKeysProvider
    Definition Classes
    StateDbAccountStateView
  14. def certifiersKeys(withdrawalEpoch: Int): Option[CertifiersKeys]
  15. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  16. def close(): Unit
    Definition Classes
    StateDbAccountStateView → AutoCloseable
  17. def commit(version: VersionTag): Unit
    Definition Classes
    AccountStateViewStateView
  18. def disableWriteProtection(): Unit

    Disable write protection.

    Disable write protection.

    Definition Classes
    StateDbAccountStateView
  19. def dump(dumpFile: String): Unit
    Definition Classes
    StateDbAccountStateView
  20. def enableWriteProtection(): Unit

    Prevent write access to account storage, balance, nonce and code.

    Prevent write access to account storage, balance, nonce and code. While write protection is enabled invalid access will throw a WriteProtectionException.

    Definition Classes
    StateDbAccountStateView
  21. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  23. def finalizeChanges(): Unit
    Definition Classes
    StateDbAccountStateView
  24. lazy val forgerStakesProvider: ForgerStakesProvider
    Definition Classes
    StateDbAccountStateView
  25. def forgerStakesV2IsActive: Boolean
  26. lazy val forgerStakesV2Provider: ForgerStakesV2Provider
    Definition Classes
    StateDbAccountStateView
  27. def getAccountStateRoot: Array[Byte]
    Definition Classes
    AccountStateViewBaseStateReader
  28. def getAccountStorage(address: Address, key: Array[Byte]): Array[Byte]
  29. final def getAccountStorageBytes(address: Address, key: Array[Byte]): Array[Byte]
  30. def getAllowedForgerList: Seq[Int]
  31. def getBalance(address: Address): BigInteger
  32. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  33. def getCode(address: Address): Array[Byte]
  34. def getCodeHash(address: Address): Array[Byte]
  35. def getConsensusEpochNumber: Option[ConsensusEpochNumber]
    Definition Classes
    AccountStateViewBaseStateReader
  36. def getConsensusEpochNumberAsInt: Int
  37. def getFeePaymentsInfo(withdrawalEpoch: Int, consensusEpochNumber: ConsensusEpochNumber, distributionCap: BigInteger, blockToAppendFeeInfo: Option[AccountBlockFeeInfo] = None): (Seq[AccountPayment], BigInteger)
    Definition Classes
    AccountStateViewBaseStateReader
  38. def getForgerBlockCounters: Map[ForgerIdentifier, Long]
  39. def getForgerInfo(forger: ForgerPublicKeys): Option[ForgerInfo]
  40. def getForgerRewards(forgerPublicKeys: ForgerPublicKeys, consensusEpochStart: Int, maxNumOfEpochs: Int): Seq[BigInteger]
  41. def getForgerStakeData(stakeId: String, isForkV1_3Active: Boolean): Option[ForgerStakeData]
  42. def getGasTrackedView(gas: GasPool): BaseAccountStateView
  43. def getIntermediateRoot: Array[Byte]
  44. def getListOfForgersStakes(isForkV1_3Active: Boolean, isForkV1_4Active: Boolean): Seq[AccountForgingStakeInfo]
  45. def getListOfMcAddrOwnerships(scAddressOpt: Option[String]): Seq[McAddrOwnershipData]
  46. def getListOfOwnerScAddresses(): Seq[OwnerScAddress]
  47. def getLogs(txHash: Array[Byte]): Array[EthereumConsensusDataLog]
  48. def getMcForgerPoolRewards(consensusEpochNumber: ConsensusEpochNumber, distributionCap: BigInteger): Map[ForgerIdentifier, BigInteger]
  49. def getNativeSmartContractAddressList(): Array[Address]
  50. def getNextBaseFee: BigInteger
    Definition Classes
    AccountStateViewBaseStateReader
  51. def getNonce(address: Address): BigInteger
  52. def getOrderedForgingStakesInfoSeq(stateEpochNumber: Int): Seq[ForgingStakeInfo]
    Definition Classes
    StateDbAccountStateView
  53. def getPagedForgersStakesByDelegator(delegator: Address, startPos: Int, pageSize: Int): PagedStakesByDelegatorResponse
  54. def getPagedForgersStakesByForger(forger: ForgerPublicKeys, startPos: Int, pageSize: Int): PagedStakesByForgerResponse
  55. def getPagedListOfForgersStakes(startPos: Int, pageSize: Int): (Int, Seq[AccountForgingStakeInfo])
  56. def getProof(address: Address, keys: Array[Array[Byte]], stateRoot: Hash): ProofAccountResult
    Definition Classes
    StateDbAccountStateView
  57. def getRefund: BigInteger
    Definition Classes
    StateDbAccountStateView
  58. def getStateDbHandle: ResourceHandle
  59. def getTopQualityCertificate(referencedWithdrawalEpoch: Int): Option[WithdrawalEpochCertificate]
    Definition Classes
    AccountStateViewBaseStateReader
  60. def getTransactionReceipt(txHash: Array[Byte]): Option[EthereumReceipt]
    Definition Classes
    AccountStateViewBaseStateReader
  61. def getWithdrawalEpochInfo: WithdrawalEpochInfo
    Definition Classes
    AccountStateViewBaseStateReader
  62. def getWithdrawalRequests(withdrawalEpoch: Int): Seq[WithdrawalRequest]
  63. def hasCeased: Boolean
    Definition Classes
    AccountStateViewBaseStateReader
  64. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  65. def increaseNonce(address: Address): Unit
  66. def isEoaAccount(address: Address): Boolean
  67. def isForgerStakeAvailable(isForkV1_3Active: Boolean): Boolean
  68. def isForgerStakeV1SmartContractDisabled(isForkV1_4Active: Boolean): Boolean
  69. def isForgingOpen: Boolean
  70. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  71. def isSmartContractAccount(address: Address): Boolean
  72. def keyRotationProof(withdrawalEpoch: Int, indexOfSigner: Int, keyType: Int): Option[KeyRotationProof]
  73. lazy val listOfNativeSmartContractAddresses: Array[Address]
    Definition Classes
    StateDbAccountStateView
  74. def log: Logger
    Attributes
    protected
    Definition Classes
    SparkzLogging
    Annotations
    @inline()
  75. val logger: Logger
    Attributes
    protected
    Definition Classes
    StrictLogging
  76. lazy val mcAddrOwnershipProvider: McAddrOwnershipsProvider
    Definition Classes
    StateDbAccountStateView
  77. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  78. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  79. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  80. def ownershipDataExist(ownershipId: Array[Byte]): Boolean
  81. var readOnly: Boolean
    Definition Classes
    StateDbAccountStateView
  82. final def removeAccountStorage(address: Address, key: Array[Byte]): Unit
  83. final def removeAccountStorageBytes(address: Address, key: Array[Byte]): Unit
  84. def revertToSnapshot(revisionId: Int): Unit
    Definition Classes
    StateDbAccountStateView
  85. def setCeased(): Unit
    Definition Classes
    AccountStateViewStateView
  86. def setupAccessList(msg: Message, forgerAddress: Address, rules: ForkRules): Unit
    Definition Classes
    StateDbAccountStateView
  87. def setupTxContext(txHash: Array[Byte], idx: Integer): Unit
    Definition Classes
    StateDbAccountStateView
  88. def snapshot: Int
    Definition Classes
    StateDbAccountStateView
  89. def subBalance(address: Address, amount: BigInteger): Unit
    Definition Classes
    StateDbAccountStateViewBaseAccountStateView
    Annotations
    @throws( classOf[ExecutionFailedException] )
  90. def subtractForgerPoolBalanceAndResetBlockCounters(consensusEpochNumber: ConsensusEpochNumber, poolBalanceDistributed: BigInteger): Unit
  91. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  92. def toString(): String
    Definition Classes
    AnyRef → Any
  93. def updateAccountStorage(address: Address, key: Array[Byte], value: Array[Byte]): Unit
  94. final def updateAccountStorageBytes(address: Address, key: Array[Byte], value: Array[Byte]): Unit
  95. def updateConsensusEpochNumber(consensusEpochNum: ConsensusEpochNumber): Unit
    Definition Classes
    AccountStateViewStateView
  96. def updateFeePaymentInfo(info: AccountBlockFeeInfo): Unit
    Definition Classes
    AccountStateViewStateView
  97. def updateForgerBlockCounter(forgerKey: ForgerIdentifier, consensusEpochNumber: ConsensusEpochNumber): Unit
  98. def updateNextBaseFee(baseFee: BigInteger): Unit
    Definition Classes
    AccountStateViewStateView
  99. def updateTopQualityCertificate(cert: WithdrawalEpochCertificate, blockId: ModifierId): Unit
    Definition Classes
    AccountStateViewStateView
  100. def updateTransactionReceipts(receipts: Seq[EthereumReceipt]): Unit
    Definition Classes
    AccountStateViewStateView
  101. def updateWithdrawalEpochInfo(withdrawalEpochInfo: WithdrawalEpochInfo): Unit
    Definition Classes
    AccountStateViewStateView
  102. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  103. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  104. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  105. lazy val withdrawalReqProvider: WithdrawalRequestProvider
    Definition Classes
    StateDbAccountStateView

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from BaseStateReader

Inherited from StateDbAccountStateView

Inherited from SparkzLogging

Inherited from StrictLogging

Inherited from AutoCloseable

Inherited from BaseAccountStateView

Inherited from AccountStateReader

Inherited from AnyRef

Inherited from Any

Ungrouped