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

Added an example Allegra to Mary script #2169

Merged
merged 12 commits into from
Dec 5, 2020

Conversation

JaredCorduan
Copy link
Contributor

I've added a script in scripts/shelley-allegra/ which continues the example by providing the transition from Allegra to Mary.

The directory named "shelley-allegra" probably doesn't make sense anymore. Shall I rename it to bryon-to-mary?

Copy link
Contributor

@kantp kantp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, Jared, looks good!

@dcoutts dcoutts force-pushed the jc/allegra-to-mary-example-script branch from 36c50f7 to fd0fb90 Compare December 4, 2020 10:20
JaredCorduan and others added 6 commits December 4, 2020 14:39
There is now a script in scripts/shelley-allegra/ which continues the
example by providing the transition from Allegra to Mary.
In particular shelley-allegra -> byron-to-mary
since it in fact now starts in Byron and can transition all the way
through to Mary.

Also rename byron-shelley -> byron-to-shelley for consistency
@dcoutts dcoutts force-pushed the jc/allegra-to-mary-example-script branch from fd0fb90 to 78498b7 Compare December 4, 2020 14:56
dcoutts and others added 6 commits December 4, 2020 15:54
To get the txid of a transaction that was created in the format used by
the byron sub-commands (which is sadly different from the Shelley
sub-commands).

This is really useful to be able to spend from the Byron UTxO, since we
need to know the txids to spend, and getting them from a utxo query is
rather fragile.
That is, extend the cardano-cli transaction txid command with a flag to
specify a tx file, as an alternative to the existing --tx-body-file flag
which expects a txbody.

This lets us get a txid from either a tx body or tx, which is handy.
This is also then symmetric with the byron transaction txid command.
The default Byron genesis setup has 2 BFT nodes, and for historical
reasons the Byonr genesis command creates the same number of initial
UTxO entries as BFT nodes ("rich men" in legacy terminology).

Previously the script only got one of these UTxOs into a Byron and then
Shelley address, so only one was easily spendable.

It is useful to have both because that way we can delegate all the stake
to the stake pool, and have it make more blocks. Also a second utxo
makes it easier to play around with half the funds for experimenting
with Allegra or Mary era transactions without breaking the delegation to
the stake pool for the other half.

This replaces the fragile method of getting the txids from the utxo
query with a more robust method using the new byron txid command to get
the txid of the actual txs.
to use the `cardano-cli transaction txid` endpoint, instead of grep and awk
@dcoutts
Copy link
Contributor

dcoutts commented Dec 4, 2020

bors merge

iohk-bors bot added a commit that referenced this pull request Dec 4, 2020
2169: Added an example Allegra to Mary script r=dcoutts a=JaredCorduan

I've added a script in `scripts/shelley-allegra/` which continues the example by providing the transition from Allegra to Mary.

The directory named "shelley-allegra" probably doesn't make sense anymore. Shall I rename it to `bryon-to-mary`?

Co-authored-by: Jared Corduan <jaredcorduan@gmail.com>
Co-authored-by: Duncan Coutts <duncan@well-typed.com>
Co-authored-by: Philipp Kant <philipp.kant@iohk.io>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Dec 5, 2020

Build failed:

@dcoutts
Copy link
Contributor

dcoutts commented Dec 5, 2020

bors merge

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Dec 5, 2020

@iohk-bors iohk-bors bot merged commit 6136a51 into master Dec 5, 2020
@iohk-bors iohk-bors bot deleted the jc/allegra-to-mary-example-script branch December 5, 2020 03:18
iohk-bors bot added a commit that referenced this pull request Dec 18, 2020
1882: remove non-nix installs in nix installation instructions r=Jimbo4350 a=disassembler



2177: Add scripts that mint and burn multi assets in Mary. r=Jimbo4350 a=kantp

This is for testing creation and destruction of multi assets in the Mary era.

It should be merged after #2169 and #2176, since it relies on both of them.

Co-authored-by: Samuel Leathers <samuel.leathers@iohk.io>
Co-authored-by: Philipp Kant <philipp.kant@iohk.io>
iohk-bors bot added a commit that referenced this pull request Dec 18, 2020
2177: Add scripts that mint and burn multi assets in Mary. r=Jimbo4350 a=kantp

This is for testing creation and destruction of multi assets in the Mary era.

It should be merged after #2169 and #2176, since it relies on both of them.

Co-authored-by: Philipp Kant <philipp.kant@iohk.io>
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