staticLayout static method

StructLayout staticLayout({
  1. required int maxDepth,
})

Implementation

static StructLayout staticLayout({required int maxDepth}) =>
    LayoutConst.struct([
      LayoutConst.array(SolanaLayoutUtils.publicKey(), maxDepth,
          property: "proof"),
      SolanaLayoutUtils.publicKey("leaf"),
      LayoutConst.u32(property: "index"),
      LayoutConst.u32(property: "padding"),
    ], property: "path");