ProtoBlockHeader_Proposed constructor
ProtoBlockHeader_Proposed({
- List<
int> ? parentHash, - Int64? height,
- Int64? timestamp,
- List<
int> ? txHash, - List<
int> ? proposerPubKey, - List<
int> ? root, - List<
int> ? identityRoot, - int? flags,
- List<
int> ? ipfsHash, - List<
int> ? offlineAddr, - List<
int> ? txBloom, - List<
int> ? blockSeed, - List<
int> ? feePerGas, - int? upgrade,
- List<
int> ? seedProof, - List<
int> ? receiptsCid,
Implementation
factory ProtoBlockHeader_Proposed({
$core.List<$core.int>? parentHash,
$fixnum.Int64? height,
$fixnum.Int64? timestamp,
$core.List<$core.int>? txHash,
$core.List<$core.int>? proposerPubKey,
$core.List<$core.int>? root,
$core.List<$core.int>? identityRoot,
$core.int? flags,
$core.List<$core.int>? ipfsHash,
$core.List<$core.int>? offlineAddr,
$core.List<$core.int>? txBloom,
$core.List<$core.int>? blockSeed,
$core.List<$core.int>? feePerGas,
$core.int? upgrade,
$core.List<$core.int>? seedProof,
$core.List<$core.int>? receiptsCid,
}) {
final _result = create();
if (parentHash != null) {
_result.parentHash = parentHash;
}
if (height != null) {
_result.height = height;
}
if (timestamp != null) {
_result.timestamp = timestamp;
}
if (txHash != null) {
_result.txHash = txHash;
}
if (proposerPubKey != null) {
_result.proposerPubKey = proposerPubKey;
}
if (root != null) {
_result.root = root;
}
if (identityRoot != null) {
_result.identityRoot = identityRoot;
}
if (flags != null) {
_result.flags = flags;
}
if (ipfsHash != null) {
_result.ipfsHash = ipfsHash;
}
if (offlineAddr != null) {
_result.offlineAddr = offlineAddr;
}
if (txBloom != null) {
_result.txBloom = txBloom;
}
if (blockSeed != null) {
_result.blockSeed = blockSeed;
}
if (feePerGas != null) {
_result.feePerGas = feePerGas;
}
if (upgrade != null) {
_result.upgrade = upgrade;
}
if (seedProof != null) {
_result.seedProof = seedProof;
}
if (receiptsCid != null) {
_result.receiptsCid = receiptsCid;
}
return _result;
}