Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add query param to GET and PUT for commitment interpretation type #37

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

teddyknox
Copy link
Collaborator

@teddyknox teddyknox commented Jun 10, 2024

  • Creates type system for commitments complete with literals, Marshal() and Unmarshal() functions, and more. Hopefully allows us to encode the various commitment types such that we cannot make mistakes when using this type system (only when designing it).
  • Uses this type system to define a "default" commitment type which is useful for allowing the caller to define any prefix bytes that should prepended after puts and L-trimmed before gets.
  • Unifies the eigenda and server packages to deal with a cyclic dependency between the two.

@teddyknox teddyknox force-pushed the add-cli-param-for-commitment-interpretation-type branch 2 times, most recently from 4f6412f to d50a6a8 Compare June 10, 2024 17:07
server/server.go Outdated Show resolved Hide resolved
commitments/op_commitment.go Outdated Show resolved Hide resolved
server/server.go Outdated Show resolved Hide resolved
commitments/da_service_op_commitment.go Outdated Show resolved Hide resolved
commitments/eigenda_commitment.go Outdated Show resolved Hide resolved
server/commitment_type.go Outdated Show resolved Hide resolved
server/commitment_type.go Outdated Show resolved Hide resolved
server/commitment_type.go Outdated Show resolved Hide resolved
@teddyknox teddyknox force-pushed the add-cli-param-for-commitment-interpretation-type branch 2 times, most recently from e350a62 to 2e91bb2 Compare June 10, 2024 18:41
@teddyknox teddyknox requested a review from epociask June 10, 2024 19:23
test/e2e_test.go Outdated Show resolved Hide resolved
server/memory_store.go Show resolved Hide resolved
@teddyknox teddyknox force-pushed the add-cli-param-for-commitment-interpretation-type branch 2 times, most recently from c88e1b4 to 42dd264 Compare June 14, 2024 01:14
@teddyknox teddyknox requested a review from epociask June 14, 2024 01:15
@teddyknox teddyknox force-pushed the add-cli-param-for-commitment-interpretation-type branch from 42dd264 to 3277de9 Compare June 14, 2024 01:16
Copy link
Collaborator

@epociask epociask left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a few comments - mostly knits

.gitignore Outdated Show resolved Hide resolved
client/client.go Outdated Show resolved Hide resolved
commitments/op_commitment.go Outdated Show resolved Hide resolved
commitments/op_commitment.go Outdated Show resolved Hide resolved
commitments/op_commitment.go Outdated Show resolved Hide resolved
e2e/setup.go Outdated Show resolved Hide resolved
server/domain_type.go Show resolved Hide resolved
verify/verify_test.go Outdated Show resolved Hide resolved
server/server.go Show resolved Hide resolved
server/memory_store_test.go Outdated Show resolved Hide resolved
@teddyknox teddyknox force-pushed the add-cli-param-for-commitment-interpretation-type branch from 9632b24 to e5f8c9e Compare June 21, 2024 00:34
@teddyknox teddyknox requested a review from epociask June 21, 2024 02:16
@teddyknox teddyknox force-pushed the add-cli-param-for-commitment-interpretation-type branch 5 times, most recently from ac4b909 to 71ad4b4 Compare June 26, 2024 14:27
@teddyknox teddyknox force-pushed the add-cli-param-for-commitment-interpretation-type branch from 71ad4b4 to 00c1401 Compare June 26, 2024 22:57
Copy link
Collaborator

@epociask epociask left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 💯 🚀 🚢

@teddyknox teddyknox merged commit 410d82c into main Jun 27, 2024
5 checks passed
@teddyknox teddyknox deleted the add-cli-param-for-commitment-interpretation-type branch June 27, 2024 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants