Packages

c

io.horizen.account.state

AccountStateView

class AccountStateView extends StateDbAccountStateView with StateView[AccountTransaction[Proposition, Proof[Proposition]]] 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, ftToSmartContractForkActive: Boolean = false): 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. def disableWriteProtection(): Unit

    Disable write protection.

    Disable write protection.

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