-
Notifications
You must be signed in to change notification settings - Fork 7
Draft/lucid sdk #126
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
Open
franciscojoray
wants to merge
24
commits into
txpipe:main
Choose a base branch
from
francolq:draft/lucid-sdk
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Draft/lucid sdk #126
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds:
a script (
asteria/sdk/lucid/examples/deploy.ts) using Lucid v0.20.5 for deploying the reference script UTxOs and creating the Asteria and pellet UTxOs, reading the validators parameters from a json file (asteria/sdk/lucid/examples/deploy_params.json) and the pellets fuels, positions and optional prize tokens from a csv file (asteria/sdk/lucid/examples/pellets.csv). This script also mints the necessary amount of admin tokens: one for each pellet, another for Asteria and one for for the admin's wallet. The pellets are created in batches of 80 pellets each. This script can be run withdeno run --allow-env --allow-net --allow-read deploy.ts, inside the asteria/sdk/lucid/examples directory.a script for consuming all pellet UTxOs (
asteria/sdk/lucid/examples/consume_pellets.json). It can be run withdeno run --allow-env --allow-net --allow-read consume_pellets.ts deploy_tx_hash, wheredeploy_tx_hashis the hash of the deployment transaction. This script also burns the admin tokens in every pellet.a script for consuming the Asteria UTxO (
asteria/sdk/lucid/examples/consume_asteria.json). It can be run withdeno run --allow-env --allow-net --allow-read consume_asteria.ts deploy_tx_hash. This script also burns the admin tokens in the Asteria UTxO.a script for updating the amount of lovelace in the Asteria UTxO. It can be run with
deno run --allow-env --allow-net --allow-read add_lovelace_to_asteria.ts deploy_tx_hash lovelace_to_add.