Skip to content

feat: bulk proof generation #407

Description

@solipsis

As a larger protocol, we need to construct and claim thousands of proofs per week. It would be great if the API and libraries had a method for generating multiple proofs at once

  // existing library
  res, err := client.GenerateClaimProof(context.Background(), &rewardsV1.GenerateClaimProofRequest{
    EarnerAddress: earnerAddress,
    Tokens:        tokens,
  })
// possible new method accepting an earners array instead of a single value
  res, err := client.GenerateClaimProofs(context.Background(), &rewardsV1.GenerateClaimProofRequest{
    Earners:  earners,
    Tokens:        tokens,
  })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions