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

Incorporate SlotConfig and FeeConfig in MockChain #10

Closed
VictorCMiraldo opened this issue Oct 20, 2021 · 3 comments
Closed

Incorporate SlotConfig and FeeConfig in MockChain #10

VictorCMiraldo opened this issue Oct 20, 2021 · 3 comments
Assignees

Comments

@VictorCMiraldo
Copy link
Contributor

The Plutus EmulatorTrace monad has configuration for transaction fees and for slots. We should have control over those configurations in MockChain too to be able to run tests with different fees and slot configs.

https://alpha.marlowe.iohkdev.io/doc/haddock/plutus-contract/html/Plutus-Trace-Emulator.html#t:EmulatorConfig

@GuillaumeGen GuillaumeGen self-assigned this Oct 26, 2021
@VictorCMiraldo
Copy link
Contributor Author

As of #45, we already implemented SlotConfig; implementing FeeConfig should be easy by placing it within MockChainEnv

@VictorCMiraldo
Copy link
Contributor Author

We should incorporate the fee calculation that is used in the actual node for accuracy: https://github.com/input-output-hk/cardano-ledger/blob/master/eras/alonzo/impl/src/Cardano/Ledger/Alonzo/Tx.hs#L311

@VictorCMiraldo
Copy link
Contributor Author

This is obsolete after #93

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

No branches or pull requests

2 participants