cardano-rosetta
cardano-rosetta copied to clipboard
Update `check:construction` config file to introduce MA scenario
Description
We need to create a new transfer scenario where a MA transaction is spent. The following two scenarios should be implemented:
- Transferring a MA Token amount to another address
- Bundling two different tokens (in case
rosetta-cli
allows it)
Implementation details
- The workflow might get really complex if not handled properly.
- A pre-defined asset will be expected to be received and sent. This means, the
policyId
and the amount to be transferred needs to be defined before receiving as it will make way much easier to define the operations. - The policyId and everything specific could be defined as an environment variable.
You need the coin selection algorithm to be working well for this to happen. There are edge cases where you need to select inputs with specific tokens from different UTxOs, create outputs with these tokens removed in a consistent way, and fund the new/existing UTxOs using ada from one or more additional UTxOs (the minutxo calculation is dynamic, rather than static).