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 function to load a contract from directory/file #241

Open
nielstron opened this issue May 14, 2023 · 0 comments
Open

Add function to load a contract from directory/file #241

nielstron opened this issue May 14, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@nielstron
Copy link
Contributor

nielstron commented May 14, 2023

A function that simply tries its best to load a contract and choosing the correct action based on being passed

  • a Plutus blueprint
  • a script.plutus json file
  • a script.cbor singly wrapped cbor hex
  • a script.addr script address
  • a script.policy_id policy id
  • a directory containing any of the above artifacts

Context

Avoids problems like #240

OpShin just creates a folder like the above

Same as OpShin/opshin#123, ideally no code duplication required.

@nielstron nielstron added the enhancement New feature or request label May 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant