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 certificates to CLI interface in compatible transaction-sign #972

Draft
wants to merge 19 commits into
base: master
Choose a base branch
from

Conversation

carbolymer
Copy link
Contributor

Changelog

- description: |
    Add certificates to CLI interface in `compatible transaction-sign` 
# uncomment types applicable to the change:
  type:
   - feature        # introduces a new feature
  # - breaking       # the API has changed in a breaking way
   - compatible     # the API has changed but is non-breaking
  # - optimisation   # measurable performance improvements
  # - refactoring    # QoL changes
  # - bugfix         # fixes a defect
  # - test           # fixes/modifies tests
  # - maintenance    # not directly related to the code
  # - release        # related to a new release preparation
  # - documentation  # change in code docs, haddocks...

Context

na

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated. See Running tests for more details
  • Self-reviewed the diff

@carbolymer carbolymer force-pushed the mgalazyn/fix/add-certs-to-compatible-transaction-sign branch from 128b63e to 970a956 Compare November 21, 2024 12:38
Define the data definition CliMintScriptRequirements
This type makes it clearer that we require the policy id for transaction
construction when using a minting script
AnyScriptLanguage
Replace ScriptWitnessFiles WitCtxMint with CliMintScriptRequirements
AnyPlutusScriptVersion instead of AnyScriptLanguage
Refactor readScriptWitness and eliminate invalid states

Factor out fromSomeTypeSimpleScript and fromSomeTypePlutusScripts

fromSomeTypePlutusScripts should automatically be updated as soon as the
Enum AnyPlutusScriptVersion instance is updated in cardano-api
Add ScriptDecodeUnknownPlutusScriptVersion to ScriptDecodeError
- Cardano.CLI.Types.Errors.PlutusScriptDecodeError
- Cardano.CLI.Types.Errors.ScriptDataError
@carbolymer carbolymer force-pushed the mgalazyn/fix/add-certs-to-compatible-transaction-sign branch from 970a956 to 1ef3e12 Compare November 21, 2024 18:55
Jimbo4350 and others added 3 commits November 21, 2024 15:07
handle all minting scripts (simple and plutus) we no longer have to
accomodate for the PolicyId in the constructors
PlutusReferenceScriptWitnessFiles and SimpleReferenceScriptWitnessFiles

This is evidenced by the diff of this commit

The goal is to deprecate ScriptWitnessFiles and replace it with a
collection of types for the different script purposes. The first example
of this is MintScriptWitnessWithPolicyId era
from PReferenceScript and SReferenceScript constructors

Co-authored-by: Mateusz Gałażyn <[email protected]>
@carbolymer carbolymer force-pushed the mgalazyn/fix/add-certs-to-compatible-transaction-sign branch from 1ef3e12 to a2cd934 Compare November 22, 2024 21:47
@carbolymer carbolymer force-pushed the mgalazyn/fix/add-certs-to-compatible-transaction-sign branch from a2cd934 to 7965ce2 Compare November 22, 2024 21:58
@carbolymer carbolymer force-pushed the mgalazyn/fix/add-certs-to-compatible-transaction-sign branch from 1a8e2af to bd0fc1e Compare November 25, 2024 19:36
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.

3 participants