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 addForgerStake(view: BaseAccountStateView, stakeId: Array[Byte], blockSignProposition: PublicKey25519Proposition, vrfPublicKey: VrfPublicKey, ownerPublicKey: Address, stakedAmount: BigInteger): Unit
-
def
addScCreationForgerStake(msg: Message, view: BaseAccountStateView): Array[Byte]
- Definition Classes
- ForgerStakeMsgProcessor → ForgerStakesProvider
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
canProcess(msg: Message, view: BaseAccountStateView, consensusEpochNumber: Int): Boolean
- Definition Classes
- NativeSmartContractMsgProcessor → MessageProcessor
-
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 doAddNewStakeCmd(msg: Message, view: BaseAccountStateView, isGenesisScCreation: Boolean = false): Array[Byte]
- def doGetListOfForgersCmd(msg: Message, view: BaseAccountStateView): Array[Byte]
- def doOpenStakeForgerListCmd(msg: Message, view: BaseAccountStateView): Array[Byte]
- def doRemoveStakeCmd(msg: Message, view: BaseAccountStateView): Array[Byte]
- def doUncheckedGetListOfForgersStakesCmd(view: BaseAccountStateView): Array[Byte]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def existsStakeData(view: BaseAccountStateView, stakeId: Array[Byte]): Boolean
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
getEthereumConsensusDataLog(event: Any): EthereumConsensusDataLog
- Definition Classes
- NativeSmartContractMsgProcessor
-
def
getListOfForgersStakes(view: BaseAccountStateView): Seq[AccountForgingStakeInfo]
- Definition Classes
- ForgerStakeMsgProcessor → ForgerStakesProvider
- def getStakeId(msg: Message): Array[Byte]
-
def
init(view: BaseAccountStateView, consensusEpochNumber: Int): Unit
- Definition Classes
- ForgerStakeMsgProcessor → NativeSmartContractMsgProcessor → MessageProcessor
-
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(msg: Message, view: BaseAccountStateView, gas: GasPool, blockContext: BlockContext): Array[Byte]
Apply message to the given view.
Apply message to the given view. Possible results:
- applied as expected: return byte[]
- message valid and (partially) executed, but operation "failed": throw ExecutionFailedException
- message invalid and must not exist in a block: throw any other Exception
- msg
message to apply to the state
- view
state view
- gas
available gas for the execution
- blockContext
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 consideres as "invalid message"
-
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