staticLayout static method
StructLayout
staticLayout(
{ - required int maxBufferSize,
- required int maxDepth,
})
Implementation
static StructLayout staticLayout(
{required int maxBufferSize, required int maxDepth}) =>
LayoutConst.struct([
LayoutConst.u64(property: "sequenceNumber"),
LayoutConst.u64(property: "activeIndex"),
LayoutConst.u64(property: "bufferSize"),
LayoutConst.array(
ChangeLog.staticLayout(maxDepth: maxDepth), maxBufferSize,
property: "changeLogs"),
LayoutConst.wrap(Path.staticLayout(maxDepth: maxDepth),
property: "rightMostPath"),
], property: "concurrentMerkleTree");