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

Introduce Depth and Limit newtypes for Pact Service #1677

Merged
merged 5 commits into from
Jun 21, 2023

Conversation

ghost
Copy link

@ghost ghost commented Jun 12, 2023

This PR adds two newtypes (wrappers around Word64) to provide better semantics in the pact service:

  • Depth — sometimes the operation goes backwards and uses BlockHeight which is semantically ambiguous, Depth should help with it.
  • Limit — representation for a restriction value.

@ghost ghost force-pushed the local-rewind-depth-better-types branch 3 times, most recently from f7282d7 to fe9cb3e Compare June 14, 2023 09:28
@ghost ghost marked this pull request as ready for review June 14, 2023 10:18
@ghost ghost requested review from edmundnoble, larskuhtz, emilypi and chessai June 14, 2023 10:18
src/Chainweb/Pact/PactService/Checkpointer.hs Outdated Show resolved Hide resolved
src/Chainweb/Pact/Service/Types.hs Outdated Show resolved Hide resolved
@ghost ghost requested a review from emilypi June 15, 2023 10:32
src/Chainweb/Pact/Service/Types.hs Outdated Show resolved Hide resolved
src/Chainweb/Pact/Service/Types.hs Outdated Show resolved Hide resolved
src/Chainweb/Chainweb/Configuration.hs Outdated Show resolved Hide resolved
src/Chainweb/Chainweb/Configuration.hs Outdated Show resolved Hide resolved
tools/cwtool/TxSimulator.hs Outdated Show resolved Hide resolved
@ghost ghost force-pushed the local-rewind-depth-better-types branch from 481c820 to 3bc7fd0 Compare June 21, 2023 14:12
@ghost ghost force-pushed the local-rewind-depth-better-types branch from 3bc7fd0 to c859407 Compare June 21, 2023 14:22
@chessai chessai merged commit b8afd94 into master Jun 21, 2023
39 checks passed
@ghost ghost deleted the local-rewind-depth-better-types branch June 22, 2023 08:43
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.

4 participants