File tree Expand file tree Collapse file tree 5 files changed +26
-32
lines changed Expand file tree Collapse file tree 5 files changed +26
-32
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ networks:
9
9
services :
10
10
11
11
cardano-node :
12
- image : inputoutput/cardano-node:${CARDANO_NODE_VERSION:-1.35.0 }
12
+ image : inputoutput/cardano-node:${CARDANO_NODE_VERSION:-1.35.2 }
13
13
entrypoint : bash
14
14
environment :
15
15
NETWORK : " ${NETWORK:-local-alonzo}"
@@ -32,7 +32,7 @@ services:
32
32
max-file : " 10"
33
33
34
34
cardano-pool :
35
- image : inputoutput/cardano-node:${CARDANO_NODE_VERSION:-1.35.0 }
35
+ image : inputoutput/cardano-node:${CARDANO_NODE_VERSION:-1.35.2 }
36
36
entrypoint : bash
37
37
environment :
38
38
NETWORK : " ${NETWORK:-local-alonzo}"
@@ -52,7 +52,7 @@ services:
52
52
max-file : " 10"
53
53
54
54
ogmios :
55
- image : cardanosolutions/ogmios:v5.5.0
55
+ image : cardanosolutions/ogmios:v5.5.2
56
56
environment :
57
57
NETWORK : " ${NETWORK:-local-alonzo}"
58
58
Original file line number Diff line number Diff line change @@ -10,27 +10,27 @@ poetry install
10
10
# #########
11
11
# Alonzo #
12
12
# #########
13
- #
14
- # # Cleanup containers and volumes in case there is any running
15
- # docker-compose down --volumes --remove-orphans
16
- #
17
- # # Run alonzo integration tests
18
- # ./bootstrap.sh local-alonzo
19
- #
20
- # # Launch containers
21
- # docker-compose up -d
22
- #
23
- # export PAYMENT_KEY="$ROOT"/configs/local-alonzo/shelley/utxo-keys/utxo1.skey
24
- # export EXTENDED_PAYMENT_KEY="$ROOT"/keys/extended.skey
25
- # export POOL_ID=$(cat "$ROOT"/keys/pool/pool.id)
26
- #
27
- # # Wait for stake pool to start producing blocks
28
- # sleep 20
29
- #
30
- # poetry run pytest -s -vv -n 4 "$ROOT"/test -m "not (post_alonzo)"
31
- #
32
- # # Cleanup
33
- # docker-compose down --volumes --remove-orphans
13
+
14
+ # Cleanup containers and volumes in case there is any running
15
+ docker-compose down --volumes --remove-orphans
16
+
17
+ # Run alonzo integration tests
18
+ ./bootstrap.sh local-alonzo
19
+
20
+ # Launch containers
21
+ docker-compose up -d
22
+
23
+ export PAYMENT_KEY=" $ROOT " /configs/local-alonzo/shelley/utxo-keys/utxo1.skey
24
+ export EXTENDED_PAYMENT_KEY=" $ROOT " /keys/extended.skey
25
+ export POOL_ID=$( cat " $ROOT " /keys/pool/pool.id)
26
+
27
+ # Wait for stake pool to start producing blocks
28
+ sleep 20
29
+
30
+ poetry run pytest -s -vv -n 4 " $ROOT " /test -m " not (post_alonzo)"
31
+
32
+ # Cleanup
33
+ docker-compose down --volumes --remove-orphans
34
34
35
35
# ########
36
36
# Vasil #
Original file line number Diff line number Diff line change 1
1
import argparse
2
- import json
3
2
import os
4
3
import tempfile
5
4
import time
Original file line number Diff line number Diff line change @@ -432,7 +432,8 @@ def _calc_change(
432
432
if not change .multi_asset :
433
433
if change .coin < min_lovelace_pre_alonzo (change , self .context ):
434
434
raise InsufficientUTxOBalanceException (
435
- f"Not enough ADA left for change: { change .coin } but needs { min_lovelace_pre_alonzo (change , self .context )} "
435
+ f"Not enough ADA left for change: { change .coin } but needs "
436
+ f"{ min_lovelace_pre_alonzo (change , self .context )} "
436
437
)
437
438
lovelace_change = change .coin
438
439
change_output_arr .append (TransactionOutput (address , lovelace_change ))
Original file line number Diff line number Diff line change 8
8
from nacl .encoding import RawEncoder
9
9
from nacl .hash import blake2b
10
10
11
- from pycardano .address import Address
12
11
from pycardano .backend .base import ChainContext
13
12
from pycardano .hash import (
14
13
SCRIPT_DATA_HASH_SIZE ,
15
14
SCRIPT_HASH_SIZE ,
16
- VERIFICATION_KEY_HASH_SIZE ,
17
15
ScriptDataHash ,
18
- VerificationKeyHash ,
19
16
)
20
17
from pycardano .plutus import (
21
18
COST_MODELS ,
22
19
CostModels ,
23
20
Datum ,
24
- NativeScript ,
25
- PlutusV1Script ,
26
- PlutusV2Script ,
27
21
Redeemer ,
28
22
)
29
23
from pycardano .serialization import default_encoder
You can’t perform that action at this time.
0 commit comments