Skip to content

Put SidechainParams into the Env effect #59

@jstolarek

Description

@jstolarek

In the off-chain code SidechainParams are all over the place, being explicitly passed into most of the functions only to deserialize scripts somewhere at the bottom of the call stack. This needs to stop. We have the effects system to deal with such things. Importantly, input-output-hk/trustless-sidechain#832 introduces the Env effect, which stores a global read-only environment. This is where SidechainParams should go, and they should only be recovered from the environment when needed.


IOG Jira: https://input-output.atlassian.net/browse/ETCM-7873

Metadata

Metadata

Assignees

No one assigned

    Labels

    refactoringCode cleanups and improvements

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions