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], readOnly: Boolean = false)

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, ftToSmartContractForkActive: Boolean = false): 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. def disableWriteProtection(): Unit

    Disable write protection.

  17. 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.

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