object ForgerStakeV2MsgProcessor extends NativeSmartContractWithFork with ForgerStakesV2Provider
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ForgerStakeV2MsgProcessor
- ForgerStakesV2Provider
- NativeSmartContractWithFork
- NativeSmartContractMsgProcessor
- SparkzLogging
- StrictLogging
- MessageProcessor
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
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
- val ActivateCmd: String
- val DelegateCmd: String
- val GetCurrentConsensusEpochCmd: String
- val GetForgerCmd: String
- val GetPagedForgersCmd: String
- val GetPagedForgersStakesByDelegatorCmd: String
- val GetPagedForgersStakesByForgerCmd: String
- val MAX_REWARD_SHARE: Int
- val MIN_REGISTER_FORGER_STAKED_AMOUNT_IN_WEI: BigInteger
- val NUM_OF_EPOCHS_AFTER_FORK_ACTIVATION_FOR_UPDATE_FORGER: Int
- val RegisterForgerCmd: String
- val RewardsReceivedCmd: String
- val StakeStartCmd: String
- val StakeTotalCmd: String
- val UpdateForgerCmd: String
- val WithdrawCmd: String
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
canProcess(invocation: Invocation, view: BaseAccountStateView, consensusEpochNumber: Int): Boolean
- Definition Classes
- NativeSmartContractWithFork → NativeSmartContractMsgProcessor → MessageProcessor
- def checkForgerStakesV2IsActive(view: BaseAccountStateView): 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
- ForgerStakeV2MsgProcessor → NativeSmartContractMsgProcessor
-
val
contractCode: Array[Byte]
- Definition Classes
- ForgerStakeV2MsgProcessor → NativeSmartContractMsgProcessor
-
lazy val
contractCodeHash: Array[Byte]
- Definition Classes
- NativeSmartContractMsgProcessor
-
def
customTracing(): Boolean
- Definition Classes
- NativeSmartContractMsgProcessor → MessageProcessor
- def doActivateCmd(invocation: Invocation, view: BaseAccountStateView, context: ExecutionContext): Array[Byte]
- def doDelegateCmd(invocation: Invocation, view: BaseAccountStateView, context: ExecutionContext): Array[Byte]
- def doGetCurrentConsensusEpochCmd(invocation: Invocation, view: BaseAccountStateView, context: ExecutionContext): Array[Byte]
- def doGetForgerCmd(invocation: Invocation, view: BaseAccountStateView): Array[Byte]
- def doGetPagedForgersCmd(invocation: Invocation, view: BaseAccountStateView): Array[Byte]
- def doPagedForgersStakesByDelegatorCmd(invocation: Invocation, view: BaseAccountStateView): Array[Byte]
- def doPagedForgersStakesByForgerCmd(invocation: Invocation, view: BaseAccountStateView): Array[Byte]
- def doRegisterForger(invocation: Invocation, gasView: BaseAccountStateView, context: ExecutionContext): Array[Byte]
- def doRewardsReceivedCmd(invocation: Invocation, view: BaseAccountStateView, metadata: MsgProcessorMetadataStorageReader, currentEpoch: Int): Array[Byte]
-
def
doSpecificInit(view: BaseAccountStateView, consensusEpochNumber: Int): Unit
- Attributes
- protected
- Definition Classes
- NativeSmartContractWithFork
- def doStakeStartCmd(invocation: Invocation, view: BaseAccountStateView): Array[Byte]
- def doStakeTotalCmd(invocation: Invocation, view: BaseAccountStateView, currentEpoch: Int): Array[Byte]
- def doUpdateForger(invocation: Invocation, gasView: BaseAccountStateView, context: ExecutionContext): Array[Byte]
- def doWithdrawCmd(invocation: Invocation, view: BaseAccountStateView, context: ExecutionContext): Array[Byte]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
getEthereumConsensusDataLog(event: Any): EthereumConsensusDataLog
- Definition Classes
- NativeSmartContractMsgProcessor
- def getHashedMessageToSign(blockSignPubKeyStr: String, vrfPublicKeyStr: String, rewardShare: Int, rewardAddress: String): Array[Byte]
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
init(view: BaseAccountStateView, consensusEpochNumber: Int): Unit
- Definition Classes
- NativeSmartContractWithFork → NativeSmartContractMsgProcessor → MessageProcessor
-
def
initDone(view: BaseAccountStateView): Boolean
- Definition Classes
- NativeSmartContractWithFork
-
def
isForkActive(consensusEpochNumber: Int): Boolean
- Definition Classes
- ForgerStakeV2MsgProcessor → NativeSmartContractWithFork
-
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
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
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
- ForgerStakeV2MsgProcessor → MessageProcessor
- 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
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def verifySignatures(msgToSign: Array[Byte], blockSignPubKey: PublicKey25519Proposition, vrfPubKey: VrfPublicKey, sign25519: Signature25519, signVrf: VrfProof): Unit
-
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