Block constructor

Block({
  1. Signature? signature,
  2. PublicKey? signerPublicKey,
  3. int? version,
  4. NetworkType? network,
  5. BlockType? type,
  6. Height? height,
  7. Timestamp? timestamp,
  8. Difficulty? difficulty,
  9. VrfProof? generationHashProof,
  10. Hash256? previousBlockHash,
  11. Hash256? transactionsHash,
  12. Hash256? receiptsHash,
  13. Hash256? stateHash,
  14. Address? beneficiaryAddress,
  15. BlockFeeMultiplier? feeMultiplier,
})

Implementation

Block({
Signature? signature,
PublicKey? signerPublicKey,
int? version,
NetworkType? network,
BlockType? type,
Height? height,
Timestamp? timestamp,
Difficulty? difficulty,
VrfProof? generationHashProof,
Hash256? previousBlockHash,
Hash256? transactionsHash,
Hash256? receiptsHash,
Hash256? stateHash,
Address? beneficiaryAddress,
BlockFeeMultiplier? feeMultiplier
}) {
	this.signature = signature ?? Signature();
	this.signerPublicKey = signerPublicKey ?? PublicKey();
	this.version = version ?? 0;
	this.network = network ?? NetworkType.MAINNET;
	this.type = type ?? BlockType.NEMESIS;
	this.height = height ?? Height();
	this.timestamp = timestamp ?? Timestamp();
	this.difficulty = difficulty ?? Difficulty();
	this.generationHashProof = generationHashProof ?? VrfProof();
	this.previousBlockHash = previousBlockHash ?? Hash256();
	this.transactionsHash = transactionsHash ?? Hash256();
	this.receiptsHash = receiptsHash ?? Hash256();
	this.stateHash = stateHash ?? Hash256();
	this.beneficiaryAddress = beneficiaryAddress ?? Address();
	this.feeMultiplier = feeMultiplier ?? BlockFeeMultiplier();
}