case class ForgerStakeMsgProcessor(params: NetworkParams) extends NativeSmartContractMsgProcessor with ForgerStakesProvider with Product with Serializable
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ForgerStakeMsgProcessor
- Serializable
- Serializable
- Product
- Equals
- ForgerStakesProvider
- NativeSmartContractMsgProcessor
- SparkzLogging
- StrictLogging
- MessageProcessor
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new ForgerStakeMsgProcessor(params: NetworkParams)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addScCreationForgerStake(view: BaseAccountStateView, owner: Address, value: BigInteger, data: AddNewStakeCmdInput): Array[Byte]
- Definition Classes
- ForgerStakeMsgProcessor → ForgerStakesProvider
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
canProcess(invocation: Invocation, view: BaseAccountStateView, consensusEpochNumber: Int): Boolean
- Definition Classes
- NativeSmartContractMsgProcessor → MessageProcessor
- def checkCurrentStorageVersion(view: BaseAccountStateView, requiredStorageVersion: ForgerStakeStorageVersion): Unit
-
def
checkInputDoesntContainParams(invocation: Invocation): Unit
- Definition Classes
- NativeSmartContractMsgProcessor
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
val
contractAddress: Address
- Definition Classes
- ForgerStakeMsgProcessor → NativeSmartContractMsgProcessor
-
val
contractCode: Array[Byte]
- Definition Classes
- ForgerStakeMsgProcessor → NativeSmartContractMsgProcessor
-
lazy val
contractCodeHash: Array[Byte]
- Definition Classes
- NativeSmartContractMsgProcessor
-
def
customTracing(): Boolean
- Definition Classes
- NativeSmartContractMsgProcessor → MessageProcessor
- def doAddNewStakeCmd(invocation: Invocation, view: BaseAccountStateView, msg: Message, isForkV1_3_Active: Boolean, isGenesisScCreation: Boolean = false): Array[Byte]
- def doDisableAndMigrate(invocation: Invocation, view: BaseAccountStateView): Array[Byte]
- def doGetListOfForgersCmd(invocation: Invocation, view: BaseAccountStateView, isForkV1_3Active: Boolean): Array[Byte]
- def doGetPagedForgersStakesOfUserCmd(invocation: Invocation, view: BaseAccountStateView): Array[Byte]
- def doGetPagedListOfForgersCmd(invocation: Invocation, view: BaseAccountStateView): Array[Byte]
- def doOpenStakeForgerListCmd(invocation: Invocation, view: BaseAccountStateView, msg: Message): Array[Byte]
- def doRemoveStakeCmd(invocation: Invocation, view: BaseAccountStateView, msg: Message, isForkV1_3Active: Boolean): Array[Byte]
- def doStakeOfCmd(invocation: Invocation, view: BaseAccountStateView): Array[Byte]
- def doUncheckedGetListOfForgersStakesCmd(view: BaseAccountStateView, isForkV1_3Active: Boolean): Array[Byte]
- def doUpgradeCmd(invocation: Invocation, view: BaseAccountStateView): Array[Byte]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
findStakeData(view: BaseAccountStateView, stakeId: Array[Byte], isForkV1_3Active: Boolean): Option[ForgerStakeData]
- Definition Classes
- ForgerStakeMsgProcessor → ForgerStakesProvider
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
getEthereumConsensusDataLog(event: Any): EthereumConsensusDataLog
- Definition Classes
- NativeSmartContractMsgProcessor
- def getForgerStakeStorageVersion(view: BaseAccountStateView, isForkV1_3Active: Boolean): ForgerStakeStorageVersion
-
def
getListOfForgersStakes(view: BaseAccountStateView, isForkV1_3Active: Boolean): Seq[AccountForgingStakeInfo]
- Definition Classes
- ForgerStakeMsgProcessor → ForgerStakesProvider
-
def
getPagedListOfForgersStakes(view: BaseAccountStateView, startPos: Int, pageSize: Int): (Int, Seq[AccountForgingStakeInfo])
- Definition Classes
- ForgerStakeMsgProcessor → ForgerStakesProvider
- def getStakeId(msg: Message): Array[Byte]
-
def
init(view: BaseAccountStateView, consensusEpochNumber: Int): Unit
- Definition Classes
- ForgerStakeMsgProcessor → NativeSmartContractMsgProcessor → MessageProcessor
-
def
isForgerStakeV1SmartContractDisabled(view: BaseAccountStateView, isForkV1_4Active: Boolean): Boolean
- Definition Classes
- ForgerStakeMsgProcessor → ForgerStakesProvider
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
log: Logger
- Attributes
- protected
- Definition Classes
- SparkzLogging
- Annotations
- @inline()
-
val
logger: Logger
- Attributes
- protected
- Definition Classes
- StrictLogging
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val networkParams: NetworkParams
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val params: NetworkParams
-
def
process(invocation: Invocation, view: BaseAccountStateView, metadata: MsgProcessorMetadataStorageReader, context: ExecutionContext): Array[Byte]
Apply invocation to the given view.
Apply invocation to the given view. Possible results:
- applied as expected: return byte[]
- invocation valid and (partially) executed, but operation "failed": throw ExecutionFailedException
- invocation invalid and must not exist in a block: throw any other Exception
- invocation
invocation to execute
- view
state view
- metadata
metadata view. IMPORTANT: always refers to the tip, not the current view
- context
contextual information accessible during execution. It contains also the consensus epoch number
- returns
return data on successful execution
- Definition Classes
- ForgerStakeMsgProcessor → MessageProcessor
- Annotations
- @throws( classOf[ExecutionFailedException] )
- Exceptions thrown
ExecutionFailedExceptionrevert-and-consume-all-gas, also mark the message as "failed"ExecutionRevertedExceptionrevert-and-keep-gas-left, also mark the message as "failed"RuntimeExceptionany other exceptions are considered as "invalid message"
-
def
requireIsNotPayable(invocation: Invocation): Unit
- Definition Classes
- NativeSmartContractMsgProcessor
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated