Search in sources :

Example 1 with VoluntaryExit

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);
}
Also used : Bytes(org.apache.tuweni.bytes.Bytes) ForkInfo(tech.pegasys.web3signer.core.service.http.handlers.signing.eth2.ForkInfo) VoluntaryExit(tech.pegasys.teku.api.schema.VoluntaryExit) Eth2SigningRequestBody(tech.pegasys.web3signer.core.service.http.handlers.signing.eth2.Eth2SigningRequestBody)

Aggregations

Bytes (org.apache.tuweni.bytes.Bytes)1 VoluntaryExit (tech.pegasys.teku.api.schema.VoluntaryExit)1 Eth2SigningRequestBody (tech.pegasys.web3signer.core.service.http.handlers.signing.eth2.Eth2SigningRequestBody)1 ForkInfo (tech.pegasys.web3signer.core.service.http.handlers.signing.eth2.ForkInfo)1