class SidechainStateStorage extends SparkzLogging with SidechainStorageInfo with SidechainTypes
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- SidechainStateStorage
- SidechainTypes
- SidechainStorageInfo
- SparkzLogging
- StrictLogging
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new SidechainStateStorage(storage: Storage, sidechainBoxesCompanion: SidechainBoxesCompanion, params: NetworkParams)
Type Members
-
type
SCAT = AccountTransaction[SCP, SCPR]
- Definition Classes
- SidechainTypes
-
type
SCB = Box[SCP]
- Definition Classes
- SidechainTypes
-
type
SCBD = BoxData[SCP, SCB]
- Definition Classes
- SidechainTypes
-
type
SCBT = BoxTransaction[SCP, SCB]
- Definition Classes
- SidechainTypes
-
type
SCP = Proposition
- Definition Classes
- SidechainTypes
-
type
SCPR = Proof[SCP]
- Definition Classes
- SidechainTypes
-
type
SCS = Secret
- Definition Classes
- SidechainTypes
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
implicit
def
ethereumTxToScat(t: EthereumTransaction): SCAT
- Definition Classes
- SidechainTypes
-
implicit
def
forgerBoxListToScbtList(bl: List[ForgerBox]): List[SCB]
- Definition Classes
- SidechainTypes
-
implicit
def
forgerBoxToScb(b: ForgerBox): SCB
- Definition Classes
- SidechainTypes
- def getBox(boxId: Array[Byte]): Option[Box[Proposition]]
- def getCertifiersKeys(withdrawalEpoch: Int): Option[CertifiersKeys]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def getConsensusEpochNumber: Option[ConsensusEpochNumber]
- def getFeePayments(withdrawalEpochNumber: Int): Seq[BlockFeeInfo]
- def getForgerList: Option[ForgerList]
- def getIterator: StorageIterator
- def getKeyRotationProof(withdrawalEpochNumber: Int, indexOfSigner: Int, keyType: Int): Option[KeyRotationProof]
- def getLastCertificateReferencedEpoch(): Option[Int]
- def getLastCertificateSidechainBlockId(): Option[ModifierId]
-
def
getStorageName: String
- Definition Classes
- SidechainStorageInfo
- def getTopQualityCertificate(referencedWithdrawalEpoch: Int): Option[WithdrawalEpochCertificate]
- def getUtxoMerkleTreeRoot(withdrawalEpoch: Int): Option[Array[Byte]]
- def getWithdrawalEpochCounter(epoch: Int): Int
- def getWithdrawalEpochInfo: Option[WithdrawalEpochInfo]
- def getWithdrawalRequests(withdrawalEpoch: Int): Seq[WithdrawalRequestBox]
- def hasCeased: Boolean
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def isEmpty: Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
lastVersionId: Option[ByteArrayWrapper]
- Definition Classes
- SidechainStateStorage → SidechainStorageInfo
-
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
restoreBackup(backupStorageBoxIterator: BoxIterator, lastVersion: Array[Byte]): Unit
This function restores the unspent boxes that come from a ceased sidechain by saving them into the SidechainStateStorage
This function restores the unspent boxes that come from a ceased sidechain by saving them into the SidechainStateStorage
- backupStorageBoxIterator
: storage containing the boxes saved from the ceased sidechain
- lastVersion
: lastVersion
- def rollback(version: ByteArrayWrapper): Try[SidechainStateStorage]
- def rollbackVersions(maxNumberOfVersions: Int): List[ByteArrayWrapper]
- def rollbackVersions(): Seq[ByteArrayWrapper]
-
implicit
def
scbToForgerBox(b: SCB): ForgerBox
- Definition Classes
- SidechainTypes
-
implicit
def
scbToWithdrawalRequestBox(b: SCB): WithdrawalRequestBox
- Definition Classes
- SidechainTypes
-
implicit
def
sidechainTxListToScbtList(tl: List[SidechainTransaction[Proposition, Box[Proposition]]]): List[SCBT]
- Definition Classes
- SidechainTypes
-
implicit
def
sidechainTxToScbt(t: SidechainTransaction[Proposition, Box[Proposition]]): SCBT
- Definition Classes
- SidechainTypes
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def update(version: ByteArrayWrapper, withdrawalEpochInfo: WithdrawalEpochInfo, boxUpdateList: Set[Box[Proposition]], boxIdsRemoveSet: Set[ByteArrayWrapper], withdrawalRequestAppendSeq: Seq[WithdrawalRequestBox], consensusEpoch: ConsensusEpochNumber, topQualityCertificateOpt: Option[WithdrawalEpochCertificate], blockFeeInfo: BlockFeeInfo, utxoMerkleTreeRootOpt: Option[Array[Byte]], scHasCeased: Boolean, forgerListIndexes: Array[Int], forgerListSize: Int, keyRotationProofs: Seq[KeyRotationProof] = Seq.empty[KeyRotationProof], certifiersKeysOption: Option[CertifiersKeys] = None): Try[SidechainStateStorage]
-
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( ... )
-
implicit
def
withdrawalRequestBoxToScb(b: WithdrawalRequestBox): SCB
- Definition Classes
- SidechainTypes
-
implicit
def
zenBoxJavaListToScbtJavaList(bl: List[ZenBox]): List[SCB]
- Definition Classes
- SidechainTypes
-
implicit
def
zenBoxListToScbtList(bl: List[ZenBox]): List[SCB]
- Definition Classes
- SidechainTypes
-
implicit
def
zenBoxSetToScbSet(bs: Set[ZenBox]): Set[SCB]
- Definition Classes
- SidechainTypes
-
implicit
def
zenBoxToScb(b: ZenBox): SCB
- Definition Classes
- SidechainTypes
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated