@cardano-sdk/e2e 0.45.0 → 0.45.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,7 +27,6 @@ services:
27
27
  CARDANO_NODE_LOG_LEVEL: ${CARDANO_NODE_LOG_LEVEL:-Info}
28
28
  CARDANO_NODE_CHAINDB_LOG_LEVEL: ${CARDANO_NODE_CHAINDB_LOG_LEVEL:-Notice}
29
29
  NETWORK_SPEED: ${NETWORK_SPEED:-fast}
30
- PRE_CONWAY: ${PRE_CONWAY}
31
30
  ports:
32
31
  - 3001:3001
33
32
  volumes:
@@ -5,8 +5,8 @@ FROM ubuntu:${UBUNTU_VERSION} AS builder
5
5
  ENV DEBIAN_FRONTEND=nonintercative
6
6
 
7
7
  WORKDIR /build
8
- ARG CARDANO_NODE_BUILD_URL=https://github.com/IntersectMBO/cardano-node/releases/download/9.1.1/cardano-node-9.1.1-linux.tar.gz
9
- ARG CARDANO_NODE_BUILD_URL_ARM64=https://github.com/input-output-hk/ogmios-tracker/releases/download/0.1.0/cardano-node-9.1.0-aarch64-linux.tar.gz
8
+ ARG CARDANO_NODE_BUILD_URL=https://github.com/IntersectMBO/cardano-node/releases/download/10.1.2/cardano-node-10.1.2-linux.tar.gz
9
+ ARG CARDANO_NODE_BUILD_URL_ARM64=https://github.com/input-output-hk/ogmios-tracker/releases/download/0.1.0/cardano-node-10.1.2-aarch64-linux.tar.gz
10
10
 
11
11
  RUN set -x && \
12
12
  apt-get update -y && \
@@ -12,3 +12,5 @@ rm -rf ./network-files/node-sp*/*
12
12
  rm -rf ./sockets/*
13
13
  rm -rf ./config/*
14
14
  rm -rf ./logs/*
15
+ rm -rf /sdk-ipc/config
16
+ rm -rf /sdk-ipc/handle_policy_ids
@@ -153,24 +153,8 @@ echo "TestConwayHardForkAtEpoch: 0" >> "${ROOT}/configuration.yaml"
153
153
  echo "ExperimentalHardForksEnabled: True" >> "${ROOT}/configuration.yaml"
154
154
  echo "ExperimentalProtocolsEnabled: True" >> "${ROOT}/configuration.yaml"
155
155
 
156
- # TODO: Remove once mainnet is hardforked to conway-era and we don't need to run the e2e tests on pre-conway too.
157
- # If we want the network to start in Babbage era we need to configure it to hardfork to Conway very far in the future.
158
- # We also need to update the conway transaction cli commands to babbage cli commands.
159
- if [ -n "$PRE_CONWAY" ]; then
160
- echo "Updating scripts for pre-conway eras"
161
- # Start in Babbage era
162
- sed -i '/TestConwayHardForkAtEpoch/d' ./templates/babbage/node-config.json
163
- sed -i '/TestConwayHardForkAtEpoch/d' ${ROOT}/configuration.yaml
164
-
165
- # Convert all cardano-cli conway cmds to babbage
166
- find ./scripts/ -type f -name "*.sh" -exec sed -i 's/cardano-cli conway /cardano-cli babbage /g' {} +
167
-
168
- # Remove cardano-cli conway specific args
169
- sed -i '/--key-reg-deposit-amt/d' ./scripts/setup-new-delegator-keys.sh
170
- fi
171
-
172
156
  # Copy the cost mode
173
- cardano-cli genesis create-staked --genesis-dir "${ROOT}" \
157
+ cardano-cli latest genesis create-staked --genesis-dir "${ROOT}" \
174
158
  --testnet-magic "${NETWORK_MAGIC}" \
175
159
  --gen-pools ${NUM_SP_NODES} \
176
160
  --supply ${MAX_SUPPLY} \
@@ -308,9 +292,9 @@ sed_i -E "s/\"startTime\": [0-9]+/\"startTime\": ${timeUnix}/" ${ROOT}/genesis/b
308
292
  sed_i -E "s/\"systemStart\": \".*\"/\"systemStart\": \"${timeISO}\"/" ${ROOT}/genesis/shelley/genesis.json
309
293
 
310
294
  byronGenesisHash=$(cardano-cli byron genesis print-genesis-hash --genesis-json ${ROOT}/genesis/byron/genesis.json)
311
- shelleyGenesisHash=$(cardano-cli genesis hash --genesis ${ROOT}/genesis/shelley/genesis.json)
312
- alonzoGenesisHash=$(cardano-cli genesis hash --genesis ${ROOT}/genesis/shelley/genesis.alonzo.json)
313
- conwayGenesisHash=$(cardano-cli genesis hash --genesis ${ROOT}/genesis/shelley/genesis.conway.json)
295
+ shelleyGenesisHash=$(cardano-cli latest genesis hash --genesis ${ROOT}/genesis/shelley/genesis.json)
296
+ alonzoGenesisHash=$(cardano-cli latest genesis hash --genesis ${ROOT}/genesis/shelley/genesis.alonzo.json)
297
+ conwayGenesisHash=$(cardano-cli latest genesis hash --genesis ${ROOT}/genesis/shelley/genesis.conway.json)
314
298
 
315
299
  echo "Byron genesis hash: $byronGenesisHash"
316
300
  echo "Shelley genesis hash: $shelleyGenesisHash"
@@ -34,7 +34,7 @@ cat >network-files/utxo-keys/minting-policy.json <<EOL
34
34
  EOL
35
35
 
36
36
  # Generate the policy ID from the script file and save it
37
- policyid=$(cardano-cli transaction policyid --script-file network-files/utxo-keys/minting-policy.json)
37
+ policyid=$(cardano-cli latest transaction policyid --script-file network-files/utxo-keys/minting-policy.json)
38
38
 
39
39
  cat >network-files/utxo-keys/handles-metadata.json <<EOL
40
40
  { "721":
@@ -54,7 +54,7 @@ utxo=$(cardano-cli query utxo --address "$addr" --testnet-magic 888 | awk 'NR ==
54
54
 
55
55
  tokenList="1 ${policyid}.${handleHexes[0]}+1 ${policyid}.${handleHexes[1]}+2 ${policyid}.${handleHexes[2]}"
56
56
 
57
- cardano-cli conway transaction build \
57
+ cardano-cli latest transaction build \
58
58
  --change-address "$addr" \
59
59
  --tx-in "$utxo" \
60
60
  --tx-out "$destAddr"+10000000+"$tokenList" \
@@ -64,13 +64,13 @@ cardano-cli conway transaction build \
64
64
  --testnet-magic 888 \
65
65
  --out-file handle-tx.raw
66
66
 
67
- cardano-cli transaction sign \
67
+ cardano-cli latest transaction sign \
68
68
  --tx-body-file handle-tx.raw \
69
69
  --signing-key-file network-files/utxo-keys/payment.skey \
70
70
  --testnet-magic 888 \
71
71
  --out-file handle-tx.signed
72
72
 
73
- cardano-cli transaction submit --testnet-magic 888 --tx-file handle-tx.signed
73
+ cardano-cli latest transaction submit --testnet-magic 888 --tx-file handle-tx.signed
74
74
  wait_tx_complete $utxo
75
75
 
76
76
  # CIP-68 Handle
@@ -117,7 +117,7 @@ cat >network-files/utxo-keys/handles68-datum.json <<EOL
117
117
  EOL
118
118
  # (222)handle68 -> 283232322968616e646c653638
119
119
  handle68tokenList="1 ${policyid}.283232322968616e646c653638"
120
- cardano-cli conway transaction build \
120
+ cardano-cli latest transaction build \
121
121
  --change-address "$addr" \
122
122
  --tx-in "$utxo" \
123
123
  --tx-out "$destAddr"+10000000+"$handle68tokenList" \
@@ -127,11 +127,13 @@ cardano-cli conway transaction build \
127
127
  --testnet-magic 888 \
128
128
  --out-file handle68-tx.raw
129
129
 
130
- cardano-cli transaction sign \
130
+ cardano-cli latest transaction sign \
131
131
  --tx-body-file handle68-tx.raw \
132
132
  --signing-key-file network-files/utxo-keys/payment.skey \
133
133
  --testnet-magic 888 \
134
134
  --out-file handle68-tx.signed
135
135
 
136
- cardano-cli transaction submit --testnet-magic 888 --tx-file handle68-tx.signed
136
+ cardano-cli latest transaction submit --testnet-magic 888 --tx-file handle68-tx.signed
137
137
  wait_tx_complete $utxo
138
+
139
+ sync
@@ -33,7 +33,7 @@ cat >network-files/utxo-keys/minting-policy.json <<EOL
33
33
  }
34
34
  EOL
35
35
 
36
- currencySymbol=$(cardano-cli transaction policyid --script-file network-files/utxo-keys/minting-policy.json)
36
+ currencySymbol=$(cardano-cli latest transaction policyid --script-file network-files/utxo-keys/minting-policy.json)
37
37
  addr=$(cardano-cli address build --payment-verification-key-file network-files/utxo-keys/utxo1.vkey --testnet-magic 888)
38
38
  destAddr="addr_test1qr0c3frkem9cqn5f73dnvqpena27k2fgqew6wct9eaka03agfwkvzr0zyq7nqvcj24zehrshx63zzdxv24x3a4tcnfeq9zwmn7"
39
39
 
@@ -46,7 +46,7 @@ for i in "${!TOKENS[@]}"; do
46
46
  tokenList="${tokenList}+${AMOUNT} ${currencySymbol}.${TOKENS[i]}"
47
47
  done
48
48
 
49
- cardano-cli conway transaction build \
49
+ cardano-cli latest transaction build \
50
50
  --change-address "$addr" \
51
51
  --tx-in "$utxo" \
52
52
  --tx-out "$destAddr"+10000000+"$tokenList" \
@@ -55,11 +55,11 @@ cardano-cli conway transaction build \
55
55
  --testnet-magic 888 \
56
56
  --out-file tx.raw
57
57
 
58
- cardano-cli transaction sign \
58
+ cardano-cli latest transaction sign \
59
59
  --tx-body-file tx.raw \
60
60
  --signing-key-file network-files/utxo-keys/utxo1.skey \
61
61
  --testnet-magic 888 \
62
62
  --out-file tx.signed
63
63
 
64
- cardano-cli transaction submit --testnet-magic 888 --tx-file tx.signed
64
+ cardano-cli latest transaction submit --testnet-magic 888 --tx-file tx.signed
65
65
  wait_tx_complete $utxo
@@ -49,7 +49,7 @@ currentBalance=$(getAddressBalance "$ALWAYS_SUCCEED_ADDR")
49
49
 
50
50
  # LOCK FUNDS
51
51
 
52
- cardano-cli conway transaction build \
52
+ cardano-cli latest transaction build \
53
53
  --testnet-magic 888 \
54
54
  --change-address "$genesisAddr" \
55
55
  --tx-in "$utxo" \
@@ -57,13 +57,13 @@ cardano-cli conway transaction build \
57
57
  --tx-out-datum-hash "$SCRIPT_DATUM_HASH" \
58
58
  --out-file tx-script.build
59
59
 
60
- cardano-cli transaction sign \
60
+ cardano-cli latest transaction sign \
61
61
  --tx-body-file tx-script.build \
62
62
  --signing-key-file network-files/utxo-keys/utxo2.skey \
63
63
  --testnet-magic 888 \
64
64
  --out-file tx-script.signed
65
65
 
66
- cardano-cli transaction submit --testnet-magic 888 --tx-file tx-script.signed
66
+ cardano-cli latest transaction submit --testnet-magic 888 --tx-file tx-script.signed
67
67
 
68
68
  updatedBalance=$(getAddressBalance "$ALWAYS_SUCCEED_ADDR")
69
69
 
@@ -78,7 +78,7 @@ utxo=$(cardano-cli query utxo --address "$genesisAddr" --testnet-magic 888 | awk
78
78
  scriptUtxo=$(cardano-cli query utxo --address "$ALWAYS_SUCCEED_ADDR" --testnet-magic 888 | awk 'NR == 3 {printf("%s#%s", $1, $2)}')
79
79
  currentBalance=$(getAddressBalance "$ALWAYS_SUCCEED_ADDR")
80
80
 
81
- cardano-cli conway transaction build \
81
+ cardano-cli latest transaction build \
82
82
  --testnet-magic 888 \
83
83
  --tx-in "$scriptUtxo" \
84
84
  --tx-in-script-file scripts/contracts/alwayssucceeds.plutus \
@@ -88,13 +88,13 @@ cardano-cli conway transaction build \
88
88
  --change-address "$genesisAddr" \
89
89
  --out-file test-alonzo.tx
90
90
 
91
- cardano-cli transaction sign \
91
+ cardano-cli latest transaction sign \
92
92
  --tx-body-file test-alonzo.tx \
93
93
  --signing-key-file network-files/utxo-keys/utxo2.skey \
94
94
  --testnet-magic 888 \
95
95
  --out-file test-alonzo.signed
96
96
 
97
- cardano-cli transaction submit --testnet-magic 888 --tx-file test-alonzo.signed
97
+ cardano-cli latest transaction submit --testnet-magic 888 --tx-file test-alonzo.signed
98
98
 
99
99
  updatedBalance=$(getAddressBalance "$ALWAYS_SUCCEED_ADDR")
100
100