Skip to content

Commit

Permalink
docs: proto on paymentHeader
Browse files Browse the repository at this point in the history
  • Loading branch information
hopeyen committed Jan 28, 2025
1 parent fd4444f commit a7893e2
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 12 deletions.
10 changes: 8 additions & 2 deletions api/docs/common_v2.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions api/docs/common_v2.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions api/docs/eigenda-protos.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions api/docs/eigenda-protos.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions api/grpc/common/v2/common_v2.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions api/proto/common/v2/common_v2.proto
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,14 @@ message PaymentHeader {
// The account ID of the disperser client. This account ID is an eth wallet address of the user,
// corresponding to the key used by the client to sign the BlobHeader.
string account_id = 1;
// The reservation period of the dispersal request.
// The reservation period of the dispersal request. The dispersal client's account will set this value to
// current timestamp divided by the on-chain configured reservation period interval. The disperser server validates
// this value to be the period they receive this request, or from the previous period.
uint32 reservation_period = 2;
// The cumulative payment of the dispersal request. This field will be parsed as a big integer.
// The cumulative payment of the dispersal request. This field will be parsed as a big integer, and must represent
// the total amount of tokens paid over all previous requests. The disperser server validates this value against the
// total on-chain deposit of the user's account, and the total amount of tokens paid over all previous requests. This
// is not incremental but cumulative so the requests can arrive out of order but still has clear declaration of the
// payment being used for the current request.
bytes cumulative_payment = 3;
}

0 comments on commit a7893e2

Please sign in to comment.