Packages

c

io.horizen.account.state

StateDbAccountStateView

class StateDbAccountStateView extends BaseAccountStateView with AutoCloseable with SparkzLogging

Linear Supertypes
SparkzLogging, StrictLogging, AutoCloseable, BaseAccountStateView, AccountStateReader, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StateDbAccountStateView
  2. SparkzLogging
  3. StrictLogging
  4. AutoCloseable
  5. BaseAccountStateView
  6. AccountStateReader
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StateDbAccountStateView(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 applyMainchainBlockReferenceData(refData: MainchainBlockReferenceData): Unit
  9. def applyMessage(msg: Message, blockGasPool: GasPool, blockContext: BlockContext): Array[Byte]
    Annotations
    @throws( classOf[InvalidMessageException] ) @throws( classOf[ExecutionFailedException] )
  10. 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
  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. lazy val certificateKeysProvider: CertificateKeysProvider
  13. def certifiersKeys(withdrawalEpoch: Int): Option[CertifiersKeys]
  14. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  15. def close(): Unit
    Definition Classes
    StateDbAccountStateView → AutoCloseable
  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  18. def finalizeChanges(): Unit
  19. lazy val forgerStakesProvider: ForgerStakesProvider
  20. def getAccountStorage(address: Address, key: Array[Byte]): Array[Byte]
  21. final def getAccountStorageBytes(address: Address, key: Array[Byte]): Array[Byte]
  22. def getAllowedForgerList: Seq[Int]
  23. def getBalance(address: Address): BigInteger
  24. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  25. def getCode(address: Address): Array[Byte]
  26. def getCodeHash(address: Address): Array[Byte]
  27. def getForgerStakeData(stakeId: String): Option[ForgerStakeData]
  28. def getGasTrackedView(gas: GasPool): BaseAccountStateView
  29. def getIntermediateRoot: Array[Byte]
  30. def getListOfForgersStakes: Seq[AccountForgingStakeInfo]
  31. def getListOfMcAddrOwnerships(scAddressOpt: Option[String]): Seq[McAddrOwnershipData]
  32. def getListOfOwnerScAddresses(): Seq[OwnerScAddress]
  33. def getLogs(txHash: Array[Byte]): Array[EthereumConsensusDataLog]
  34. def getNonce(address: Address): BigInteger
  35. def getOrderedForgingStakesInfoSeq: Seq[ForgingStakeInfo]
  36. def getProof(address: Address, keys: Array[Array[Byte]]): ProofAccountResult
  37. def getRefund: BigInteger
  38. def getStateDbHandle: ResourceHandle
  39. def getWithdrawalRequests(withdrawalEpoch: Int): Seq[WithdrawalRequest]
  40. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  41. def increaseNonce(address: Address): Unit
  42. def isEoaAccount(address: Address): Boolean
  43. def isForgingOpen: Boolean
  44. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  45. def isSmartContractAccount(address: Address): Boolean
  46. def keyRotationProof(withdrawalEpoch: Int, indexOfSigner: Int, keyType: Int): Option[KeyRotationProof]
  47. def log: Logger
    Attributes
    protected
    Definition Classes
    SparkzLogging
    Annotations
    @inline()
  48. val logger: Logger
    Attributes
    protected
    Definition Classes
    StrictLogging
  49. lazy val mcAddrOwnershipProvider: McAddrOwnershipsProvider
  50. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  51. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  52. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  53. def ownershipDataExist(ownershipId: Array[Byte]): Boolean
  54. final def removeAccountStorage(address: Address, key: Array[Byte]): Unit
  55. final def removeAccountStorageBytes(address: Address, key: Array[Byte]): Unit
  56. def revertToSnapshot(revisionId: Int): Unit
  57. def setupAccessList(msg: Message): Unit
  58. def setupTxContext(txHash: Array[Byte], idx: Integer): Unit
  59. def snapshot: Int
  60. def subBalance(address: Address, amount: BigInteger): Unit
    Definition Classes
    StateDbAccountStateViewBaseAccountStateView
    Annotations
    @throws( classOf[ExecutionFailedException] )
  61. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  62. def toString(): String
    Definition Classes
    AnyRef → Any
  63. def updateAccountStorage(address: Address, key: Array[Byte], value: Array[Byte]): Unit
  64. final def updateAccountStorageBytes(address: Address, key: Array[Byte], value: Array[Byte]): Unit
  65. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  66. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  67. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  68. lazy val withdrawalReqProvider: WithdrawalRequestProvider

Deprecated Value Members

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

Inherited from SparkzLogging

Inherited from StrictLogging

Inherited from AutoCloseable

Inherited from BaseAccountStateView

Inherited from AccountStateReader

Inherited from AnyRef

Inherited from Any

Ungrouped