test 'mint' purpose and script context creation.

Alongside a bunch of other stuff from the coverage list. In
  particular, the mint transaction contains:

  - reference inputs
  - multiple outputs, with assets, and type-0, type-1 and type-6
    addresses.
  - an output with a datum hash
  - an output with an inline script
  - carries an extra datum witness, preimage of the embedded hash
  - mint, with 2 policies purposely ordered wrongly, with 1 and 2
    assets purposely ordered wrong. One of the mint is actually a
    burn (i.e. negative quantity)
This commit is contained in:
KtorZ
2024-08-10 15:56:53 +02:00
parent eea8dc7d0a
commit 6b6bace8a5
9 changed files with 2467 additions and 38 deletions

View File

@@ -6,9 +6,9 @@
, 1:
[ { 0: h'6000000000000000000000000000000000000000000000000000000000'
, 1: 1000000
, 2: [1, 24(h'4463666F6F')]
, 2: [0, h'923918e403bf43c34b4ef6b48eb2ee04babed17320d8d1b9ff9ad086e86f44ec']
}
, { 0: h'6000000000000000000000000000000000000000000000000000000000'
, { 0: h'000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
, 1:
[ 1000000
, { h'{{ mint.mint_1.hash }}': { h'74756e61': 100000000000000 }
@@ -16,7 +16,7 @@
}
]
}
, { 0: h'6000000000000000000000000000000000000000000000000000000000'
, { 0: h'100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
, 1:
[ 1000000
, { h'{{ mint.mint_2.hash }}': { h'63617264616e6f': 1 }
@@ -49,6 +49,10 @@
]
, 17: 1
, 18:
[ [h'0000000000000000000000000000000000000000000000000000000000000000', 0]
]
},
{ 5:
@@ -56,6 +60,14 @@
, [1, 1, 42, [1000000, 100000000]]
]
, 4:
[ 121([])
]
, 7:
[ h'{{ mint.mint_1.cbor }}'
, h'{{ mint.mint_2.cbor }}'
]
},