Packages

c

io.horizen.account.state

StateDbAccountStateViewGasTracked

class StateDbAccountStateViewGasTracked extends StateDbAccountStateView

Extension to help with tracking gas consumption.

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

Instance Constructors

  1. new StateDbAccountStateViewGasTracked(stateDb: StateDB, messageProcessors: Seq[MessageProcessor], gas: GasPool)

    gas

    GasPool instance to deduct gas from

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
    StateDbAccountStateViewGasTrackedStateDbAccountStateViewBaseAccountStateView
    Annotations
    @throws( classOf[OutOfGasException] )
  7. def addLog(log: EthereumConsensusDataLog): Unit
    Definition Classes
    StateDbAccountStateViewGasTrackedStateDbAccountStateViewBaseAccountStateView
    Annotations
    @throws( classOf[OutOfGasException] )
  8. def applyMainchainBlockReferenceData(refData: MainchainBlockReferenceData): Unit
    Definition Classes
    StateDbAccountStateView
  9. def applyMessage(msg: Message, blockGasPool: GasPool, blockContext: BlockContext): Array[Byte]
    Definition Classes
    StateDbAccountStateView
    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
    Definition Classes
    StateDbAccountStateView
  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. lazy val certificateKeysProvider: CertificateKeysProvider
    Definition Classes
    StateDbAccountStateView
  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
    Definition Classes
    StateDbAccountStateView
  19. lazy val forgerStakesProvider: ForgerStakesProvider
    Definition Classes
    StateDbAccountStateView
  20. def getAccountStorage(address: Address, key: Array[Byte]): Array[Byte]
    Definition Classes
    StateDbAccountStateViewGasTrackedStateDbAccountStateViewAccountStateReader
    Annotations
    @throws( classOf[OutOfGasException] )
  21. final def getAccountStorageBytes(address: Address, key: Array[Byte]): Array[Byte]
  22. def getAllowedForgerList: Seq[Int]
  23. def getBalance(address: Address): BigInteger
    Definition Classes
    StateDbAccountStateViewGasTrackedStateDbAccountStateViewAccountStateReader
    Annotations
    @throws( classOf[OutOfGasException] )
  24. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  25. def getCode(address: Address): Array[Byte]
    Definition Classes
    StateDbAccountStateViewGasTrackedStateDbAccountStateViewAccountStateReader
    Annotations
    @throws( classOf[OutOfGasException] )
  26. def getCodeHash(address: Address): Array[Byte]
    Definition Classes
    StateDbAccountStateViewGasTrackedStateDbAccountStateViewAccountStateReader
    Annotations
    @throws( classOf[OutOfGasException] )
  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]
    Definition Classes
    StateDbAccountStateView
  36. def getProof(address: Address, keys: Array[Array[Byte]]): ProofAccountResult
    Definition Classes
    StateDbAccountStateView
  37. def getRefund: BigInteger
    Definition Classes
    StateDbAccountStateView
  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
    Definition Classes
    StateDbAccountStateViewGasTrackedStateDbAccountStateViewAccountStateReader
    Annotations
    @throws( classOf[OutOfGasException] )
  43. def isForgingOpen: Boolean
  44. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  45. def isSmartContractAccount(address: Address): Boolean
    Definition Classes
    StateDbAccountStateViewGasTrackedStateDbAccountStateViewAccountStateReader
    Annotations
    @throws( classOf[OutOfGasException] )
  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
    Definition Classes
    StateDbAccountStateView
  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
    Definition Classes
    StateDbAccountStateView
  57. def setupAccessList(msg: Message): Unit
    Definition Classes
    StateDbAccountStateView
  58. def setupTxContext(txHash: Array[Byte], idx: Integer): Unit
    Definition Classes
    StateDbAccountStateView
  59. def snapshot: Int
    Definition Classes
    StateDbAccountStateView
  60. def subBalance(address: Address, amount: BigInteger): Unit
    Definition Classes
    StateDbAccountStateViewGasTrackedStateDbAccountStateViewBaseAccountStateView
    Annotations
    @throws( classOf[OutOfGasException] )
  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
    Definition Classes
    StateDbAccountStateViewGasTrackedStateDbAccountStateViewBaseAccountStateView
    Annotations
    @throws( classOf[OutOfGasException] )
  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
    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 StateDbAccountStateView

Inherited from SparkzLogging

Inherited from StrictLogging

Inherited from AutoCloseable

Inherited from BaseAccountStateView

Inherited from AccountStateReader

Inherited from AnyRef

Inherited from Any

Ungrouped