Packages

c

io.horizen.account.state

AccountStateView

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

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AccountStateView
  2. StateView
  3. BaseStateReader
  4. StateDbAccountStateView
  5. SparkzLogging
  6. StrictLogging
  7. AutoCloseable
  8. BaseAccountStateView
  9. AccountStateReader
  10. AnyRef
  11. 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): Unit
    Definition Classes
    StateDbAccountStateView
  10. def applyMessage(msg: Message, blockGasPool: GasPool, blockContext: BlockContext): 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): 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. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  20. def finalizeChanges(): Unit
    Definition Classes
    StateDbAccountStateView
  21. lazy val forgerStakesProvider: ForgerStakesProvider
    Definition Classes
    StateDbAccountStateView
  22. def getAccountStateRoot: Array[Byte]
    Definition Classes
    AccountStateViewBaseStateReader
  23. def getAccountStorage(address: Address, key: Array[Byte]): Array[Byte]
  24. final def getAccountStorageBytes(address: Address, key: Array[Byte]): Array[Byte]
  25. def getAllowedForgerList: Seq[Int]
  26. def getBalance(address: Address): BigInteger
  27. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  28. def getCode(address: Address): Array[Byte]
  29. def getCodeHash(address: Address): Array[Byte]
  30. def getConsensusEpochNumber: Option[ConsensusEpochNumber]
    Definition Classes
    AccountStateViewBaseStateReader
  31. def getConsensusEpochNumberAsInt: Int
  32. def getFeePaymentsInfo(withdrawalEpoch: Int, blockToAppendFeeInfo: Option[AccountBlockFeeInfo] = None): Seq[AccountPayment]
    Definition Classes
    AccountStateViewBaseStateReader
  33. def getForgerStakeData(stakeId: String): Option[ForgerStakeData]
  34. def getGasTrackedView(gas: GasPool): BaseAccountStateView
  35. def getIntermediateRoot: Array[Byte]
  36. def getListOfForgersStakes: Seq[AccountForgingStakeInfo]
  37. def getListOfMcAddrOwnerships(scAddressOpt: Option[String]): Seq[McAddrOwnershipData]
  38. def getListOfOwnerScAddresses(): Seq[OwnerScAddress]
  39. def getLogs(txHash: Array[Byte]): Array[EthereumConsensusDataLog]
  40. def getNextBaseFee: BigInteger
    Definition Classes
    AccountStateViewBaseStateReader
  41. def getNonce(address: Address): BigInteger
  42. def getOrderedForgingStakesInfoSeq: Seq[ForgingStakeInfo]
    Definition Classes
    StateDbAccountStateView
  43. def getProof(address: Address, keys: Array[Array[Byte]]): ProofAccountResult
    Definition Classes
    StateDbAccountStateView
  44. def getRefund: BigInteger
    Definition Classes
    StateDbAccountStateView
  45. def getStateDbHandle: ResourceHandle
  46. def getTopQualityCertificate(referencedWithdrawalEpoch: Int): Option[WithdrawalEpochCertificate]
    Definition Classes
    AccountStateViewBaseStateReader
  47. def getTransactionReceipt(txHash: Array[Byte]): Option[EthereumReceipt]
    Definition Classes
    AccountStateViewBaseStateReader
  48. def getWithdrawalEpochInfo: WithdrawalEpochInfo
    Definition Classes
    AccountStateViewBaseStateReader
  49. def getWithdrawalRequests(withdrawalEpoch: Int): Seq[WithdrawalRequest]
  50. def hasCeased: Boolean
    Definition Classes
    AccountStateViewBaseStateReader
  51. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  52. def increaseNonce(address: Address): Unit
  53. def isEoaAccount(address: Address): Boolean
  54. def isForgingOpen: Boolean
  55. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  56. def isSmartContractAccount(address: Address): Boolean
  57. def keyRotationProof(withdrawalEpoch: Int, indexOfSigner: Int, keyType: Int): Option[KeyRotationProof]
  58. def log: Logger
    Attributes
    protected
    Definition Classes
    SparkzLogging
    Annotations
    @inline()
  59. val logger: Logger
    Attributes
    protected
    Definition Classes
    StrictLogging
  60. lazy val mcAddrOwnershipProvider: McAddrOwnershipsProvider
    Definition Classes
    StateDbAccountStateView
  61. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  62. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  63. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  64. def ownershipDataExist(ownershipId: Array[Byte]): Boolean
  65. final def removeAccountStorage(address: Address, key: Array[Byte]): Unit
  66. final def removeAccountStorageBytes(address: Address, key: Array[Byte]): Unit
  67. def revertToSnapshot(revisionId: Int): Unit
    Definition Classes
    StateDbAccountStateView
  68. def setCeased(): Unit
    Definition Classes
    AccountStateViewStateView
  69. def setupAccessList(msg: Message): Unit
    Definition Classes
    StateDbAccountStateView
  70. def setupTxContext(txHash: Array[Byte], idx: Integer): Unit
    Definition Classes
    StateDbAccountStateView
  71. def snapshot: Int
    Definition Classes
    StateDbAccountStateView
  72. def subBalance(address: Address, amount: BigInteger): Unit
    Definition Classes
    StateDbAccountStateViewBaseAccountStateView
    Annotations
    @throws( classOf[ExecutionFailedException] )
  73. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  74. def toString(): String
    Definition Classes
    AnyRef → Any
  75. def updateAccountStorage(address: Address, key: Array[Byte], value: Array[Byte]): Unit
  76. final def updateAccountStorageBytes(address: Address, key: Array[Byte], value: Array[Byte]): Unit
  77. def updateConsensusEpochNumber(consensusEpochNum: ConsensusEpochNumber): Unit
    Definition Classes
    AccountStateViewStateView
  78. def updateFeePaymentInfo(info: AccountBlockFeeInfo): Unit
    Definition Classes
    AccountStateViewStateView
  79. def updateNextBaseFee(baseFee: BigInteger): Unit
    Definition Classes
    AccountStateViewStateView
  80. def updateTopQualityCertificate(cert: WithdrawalEpochCertificate, blockId: ModifierId): Unit
    Definition Classes
    AccountStateViewStateView
  81. def updateTransactionReceipts(receipts: Seq[EthereumReceipt]): Unit
    Definition Classes
    AccountStateViewStateView
  82. def updateWithdrawalEpochInfo(withdrawalEpochInfo: WithdrawalEpochInfo): Unit
    Definition Classes
    AccountStateViewStateView
  83. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  84. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  85. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  86. 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