use of tech.pegasys.teku.api.schema.VoluntaryExit in project web3signer by ConsenSys.
the class Eth2RequestUtils method createVoluntaryExit.
private static Eth2SigningRequestBody createVoluntaryExit() {
final ForkInfo forkInfo = forkInfo();
final VoluntaryExit voluntaryExit = new VoluntaryExit(UInt64.valueOf(119), UInt64.ZERO);
final Bytes signingRoot = signingRootUtil.signingRootForSignVoluntaryExit(voluntaryExit.asInternalVoluntaryExit(), forkInfo.asInternalForkInfo());
return new Eth2SigningRequestBody(ArtifactType.VOLUNTARY_EXIT, signingRoot, forkInfo, null, null, null, null, null, voluntaryExit, null, null, null, null, null);
}
Aggregations