Skip to content

Conversation

@franciscojoray
Copy link
Collaborator

@franciscojoray franciscojoray commented Aug 1, 2025

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 with deno 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 with deno run --allow-env --allow-net --allow-read consume_pellets.ts deploy_tx_hash, where deploy_tx_hash is 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 with deno 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.

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.

2 participants