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

Refactor witnesses indexing functions to have the indexing logic in one place #697

Merged

Fix review remarks

c18d177
Select commit
Loading
Failed to load commit list.
Merged

Refactor witnesses indexing functions to have the indexing logic in one place #697

Fix review remarks
c18d177
Select commit
Loading
Failed to load commit list.
Garnix CI / check cardano-api:test:cardano-api-test [x86_64-linux] succeeded Dec 31, 2024 in 6m 44s

Run results

Build succeeded

Details

Last 100 lines of logs:

    valid & rountrip text chunks:                                                         OK (0.15s)
        ✓ <interactive> passed 100 tests.
          Empty chunks   1% ▏··················· ✓  1%
          Single chunks 23% ████▌··············· ✓  5%
          Many chunks   76% ███████████████▏···· ✓ 25%
    valid & rountrip bytes chunks:                                                        OK (0.14s)
        ✓ <interactive> passed 100 tests.
          Empty chunks   9% █▊·················· ✓  1%
          Single chunks 43% ████████▌··········· ✓  5%
          Many chunks   48% █████████▌·········· ✓ 25%
  Test.Cardano.Api.Typed.Ord
    ord distributive TxId:                                                                OK
        ✓ <interactive> passed 100 tests.
    ord distributive TxIn:                                                                OK (0.01s)
        ✓ <interactive> passed 100 tests.
    ord distributive Address:                                                             OK (0.22s)
        ✓ <interactive> passed 100 tests.
    ord distributive StakeAddress:                                                        OK (0.13s)
        ✓ <interactive> passed 100 tests.
    ord distributive TxMetadata:                                                          OK (0.12s)
        ✓ <interactive> passed 100 tests.
    ord distributive ScriptData:                                                          OK (0.91s)
        ✓ <interactive> passed 100 tests.
  ProtocolParameter tests
    ToJSON instances produce the same
      ShelleyEra:                                                                         OK (0.37s)
          ✓ <interactive> passed 100 tests.
      AlonzoEra:                                                                          OK (0.77s)
          ✓ <interactive> passed 100 tests.
      BabbageEra:                                                                         OK (0.95s)
          ✓ <interactive> passed 100 tests.
    ProtocolParameters ToJSON can be read by PParams FromJSON
      ShelleyEra:                                                                         OK (0.25s)
          ✓ <interactive> passed 100 tests.
      AlonzoEra:                                                                          OK (0.45s)
          ✓ <interactive> passed 100 tests.
      BabbageEra:                                                                         OK (0.67s)
          ✓ <interactive> passed 100 tests.
    PParams roundtrip
      ShelleyEra:                                                                         OK (0.45s)
          ✓ <interactive> passed 100 tests.
      AlonzoEra:                                                                          OK (0.53s)
          ✓ <interactive> passed 100 tests.
      BabbageEra:                                                                         OK (0.79s)
          ✓ <interactive> passed 100 tests.
  Test.Cardano.Api.Typed.RawBytes
    roundtrip shelley address raw:                                                        OK (0.08s)
        ✓ <interactive> passed 100 tests.
    roundtrip byron address raw:                                                          OK (0.09s)
        ✓ <interactive> passed 100 tests.
    roundtrip stake address raw:                                                          OK (0.06s)
        ✓ <interactive> passed 100 tests.
    roundtrip script hash raw:                                                            OK (0.03s)
        ✓ <interactive> passed 100 tests.
    roundtrip verification ByronKey hash raw:                                             OK (0.09s)
        ✓ <interactive> passed 100 tests.
    roundtrip verification PaymentKey hash raw:                                           OK (0.12s)
        ✓ <interactive> passed 100 tests.
    roundtrip verification StakeKey hash raw:                                             OK (0.11s)
        ✓ <interactive> passed 100 tests.
    roundtrip verification StakePoolKey hash raw:                                         OK (0.11s)
        ✓ <interactive> passed 100 tests.
    roundtrip verification GenesisKey hash raw:                                           OK (0.11s)
        ✓ <interactive> passed 100 tests.
    roundtrip verification GenesisDelegateKey hash raw:                                   OK (0.13s)
        ✓ <interactive> passed 100 tests.
    roundtrip verification KesKey hash raw:                                               OK (0.86s)
        ✓ <interactive> passed 100 tests.
    roundtrip verification VrfKey hash raw:                                               OK (0.12s)
        ✓ <interactive> passed 100 tests.
    roundtrip verification GenesisUTxOKey hash raw:                                       OK (0.08s)
        ✓ <interactive> passed 100 tests.
  Test.Cardano.Api.Typed.TxBody
    makeTransactionBodyAutoBalance test correct fees when mutli-asset tx:                 OK (0.56s)
        ✓ <interactive> passed 1 test.
    makeTransactionBodyAutoBalance autobalances multi-asset collateral:                   OK (0.44s)
        ✓ <interactive> passed 1 test.
    calcReturnAndTotalCollateral constraints hold:                                        OK (33.69s)
        ✓ <interactive> passed 400 tests.
  Test.Cardano.Api.Typed.TxBody
    roundtrip txbodycontent txouts Babbage:                                               OK (4.10s)
        ✓ <interactive> passed 100 tests.
    roundtrip txbodycontent txouts Conway:                                                OK (18.57s)
        ✓ <interactive> passed 100 tests.
    roundtrip txbodycontent new conway fields:                                            OK (18.06s)
        ✓ <interactive> passed 100 tests.
  Test.Cardano.Api.Typed.Value
    roundtrip Value JSON:                                                                 OK (0.09s)
        ✓ <interactive> passed 100 tests.
    roundtrip Value flatten unflatten:                                                    OK (0.13s)
        ✓ <interactive> passed 100 tests.
    roundtrip Value unflatten flatten:                                                    OK (0.06s)
        ✓ <interactive> passed 100 tests.
    roundtrip AssetName JSON:                                                             OK (0.01s)
        ✓ <interactive> passed 100 tests.
    roundtrip AssetName JSONKey:                                                          OK (0.01s)
        ✓ <interactive> passed 100 tests.

All 169 tests passed (48.48s)
buildPhase completed in 49 seconds