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

    Disable write protection.

    Disable write protection.

    Definition Classes
    StateDbAccountStateView
  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.

    Definition Classes
    StateDbAccountStateView
  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 getAccountStorage(address: Address, key: Array[Byte]): Array[Byte]
    Definition Classes
    StateDbAccountStateViewGasTrackedStateDbAccountStateViewAccountStateReader
    Annotations
    @throws( classOf[OutOfGasException] )
  23. final def getAccountStorageBytes(address: Address, key: Array[Byte]): Array[Byte]
  24. def getAllowedForgerList: Seq[Int]
  25. def getBalance(address: Address): BigInteger
    Definition Classes
    StateDbAccountStateViewGasTrackedStateDbAccountStateViewAccountStateReader
    Annotations
    @throws( classOf[OutOfGasException] )
  26. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  27. def getCode(address: Address): Array[Byte]
    Definition Classes
    StateDbAccountStateViewGasTrackedStateDbAccountStateViewAccountStateReader
    Annotations
    @throws( classOf[OutOfGasException] )
  28. def getCodeHash(address: Address): Array[Byte]
    Definition Classes
    StateDbAccountStateViewGasTrackedStateDbAccountStateViewAccountStateReader
    Annotations
    @throws( classOf[OutOfGasException] )
  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]
    Definition Classes
    StateDbAccountStateView
  39. def getProof(address: Address, keys: Array[Array[Byte]]): ProofAccountResult
    Definition Classes
    StateDbAccountStateView
  40. def getRefund: BigInteger
    Definition Classes
    StateDbAccountStateView
  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
    Definition Classes
    StateDbAccountStateViewGasTrackedStateDbAccountStateViewAccountStateReader
    Annotations
    @throws( classOf[OutOfGasException] )
  46. def isForgingOpen: Boolean
  47. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  48. def isSmartContractAccount(address: Address): Boolean
    Definition Classes
    StateDbAccountStateViewGasTrackedStateDbAccountStateViewAccountStateReader
    Annotations
    @throws( classOf[OutOfGasException] )
  49. def keyRotationProof(withdrawalEpoch: Int, indexOfSigner: Int, keyType: Int): Option[KeyRotationProof]
  50. lazy val listOfNativeSmartContractAddresses: Array[Address]
    Definition Classes
    StateDbAccountStateView
  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
    Definition Classes
    StateDbAccountStateView
  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
    Definition Classes
    StateDbAccountStateView
  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
    Definition Classes
    StateDbAccountStateView
  62. def setupAccessList(msg: Message): Unit
    Definition Classes
    StateDbAccountStateView
  63. def setupTxContext(txHash: Array[Byte], idx: Integer): Unit
    Definition Classes
    StateDbAccountStateView
  64. def snapshot: Int
    Definition Classes
    StateDbAccountStateView
  65. def subBalance(address: Address, amount: BigInteger): Unit
    Definition Classes
    StateDbAccountStateViewGasTrackedStateDbAccountStateViewBaseAccountStateView
    Annotations
    @throws( classOf[OutOfGasException] )
  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
    Definition Classes
    StateDbAccountStateViewGasTrackedStateDbAccountStateViewBaseAccountStateView
    Annotations
    @throws( classOf[OutOfGasException] )
  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
    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