cardano-rosetta icon indicating copy to clipboard operation
cardano-rosetta copied to clipboard

Update `check:construction` config file to introduce MA scenario

Open AlanVerbner opened this issue 4 years ago • 1 comments

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

  1. The workflow might get really complex if not handled properly.
  2. 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.
  3. The policyId and everything specific could be defined as an environment variable.

AlanVerbner avatar Jan 11 '21 16:01 AlanVerbner

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).

kevinhammond avatar Jan 13 '21 12:01 kevinhammond