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 gas to post-reads, make module admin acquisition explicit. #208

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

jmcardon
Copy link
Member

PR checklist:

  • Test coverage for the proposed changes
  • PR description contains example output from repl interaction or a snippet from unit test output
  • (If Relevant) Documentation has been (manually) updated at https://docs.kadena.io/pact

Additionally, please justify why you should or should not do the following:

  • Benchmark regressions
  • Confirm replay/back compat (Ignore until core release)
  • (For Kadena engineers) Run integration-tests against a Chainweb built with this version of Pact (Ignore until core release)

@jmcardon jmcardon force-pushed the jose/gas-v3 branch 5 times, most recently from 081e059 to 6b811ab Compare September 3, 2024 15:53
@jmcardon jmcardon marked this pull request as ready for review September 3, 2024 15:54
pact/Pact/Core/IR/Eval/CEK.hs Outdated Show resolved Hide resolved
pact/Pact/Core/IR/Eval/CEK.hs Outdated Show resolved Hide resolved
-> BuiltinEnv e b i
-> CapToken FullyQualifiedName PactValue
-> CapToken QualifiedName PactValue
Copy link
Member

Choose a reason for hiding this comment

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

Why are we moving from FQN to QN, especially as we need fqn (see line 1686).?

Copy link
Member Author

Choose a reason for hiding this comment

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

Great question, it's because this is particularly so the API is easier to use. This is generally called by chainweb to call something like evaluating something within(some_module.GAS_PAYER args). We don't want our caller to have to deal with getting the fully qual name themselves

pact/Pact/Core/IR/Eval/CEK/Types.hs Outdated Show resolved Hide resolved
@@ -94,7 +94,7 @@ sysOnlyEnv e
let newPactdb =
PactDb
{ _pdbPurity = PSysOnly
, _pdbRead = read'
, _pdbRead = \dom k -> read' dom k
Copy link
Member

Choose a reason for hiding this comment

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

This change seems unnecessary

pact/Pact/Core/IR/Eval/Direct/Evaluator.hs Show resolved Hide resolved
@jmcardon jmcardon merged commit a3dd6b5 into master Sep 3, 2024
12 checks passed
@jmcardon jmcardon deleted the jose/gas-v3 branch September 3, 2024 23:02
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