Skip to content

Commit 3efe88c

Browse files
authored
Merge pull request #42 from input-output-hk/next-2025-02-27
Node 10.3.1 and Cli 10.7.0.0 pre-release
2 parents 194dda8 + b74f5a3 commit 3efe88c

File tree

75 files changed

+6563
-396
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+6563
-396
lines changed

Justfile

Lines changed: 40 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -928,14 +928,13 @@ start-demo:
928928
export USE_ENCRYPTION=true
929929
export USE_DECRYPTION=true
930930
export USE_NODE_CONFIG_BP=false
931-
export USE_CREATE_TESTNET_DATA=false
932931
export DEBUG=true
933932

934933
export SECURITY_PARAM=8
935934
export SLOT_LENGTH=100
936935
export START_TIME=$(date --utc +"%Y-%m-%dT%H:%M:%SZ" --date " now + 30 seconds")
937936

938-
if [ "$USE_CREATE_TESTNET_DATA" = true ]; then
937+
if [ "${USE_CREATE_TESTNET_DATA:-false}" = true ]; then
939938
ERA_CMD="conway" \
940939
nix run .#job-gen-custom-node-config-data
941940
else
@@ -968,8 +967,8 @@ start-demo:
968967
sleep 30
969968
echo
970969

971-
if [ "$USE_CREATE_TESTNET_DATA" = false ]; then
972-
echo "Moving genesis utxo..."
970+
if [ "${USE_CREATE_TESTNET_DATA:-false}" = false ]; then
971+
echo "Moving genesis utxo in epoch 0..."
973972
BYRON_SIGNING_KEY="$KEY_DIR"/utxo-keys/shelley.000.skey \
974973
ERA_CMD="alonzo" \
975974
nix run .#job-move-genesis-utxo
@@ -978,7 +977,7 @@ start-demo:
978977
echo
979978
fi
980979

981-
echo "Registering stake pools..."
980+
echo "Registering stake pools in epoch 0..."
982981
POOL_RELAY=demo.local \
983982
POOL_RELAY_PORT=3001 \
984983
ERA_CMD="alonzo" \
@@ -987,38 +986,49 @@ start-demo:
987986
sleep 10
988987
echo
989988

990-
echo "Delegating rewards stake key..."
989+
WAIT_FOR_TIP() {
990+
TYPE="$1"
991+
TARGET="$2"
992+
EPOCH="$1"
993+
994+
while true; do
995+
[ "$(jq -re ".$TYPE" <<< "$(just query-tip demo)")" = "$TARGET" ] && break;
996+
sleep 2
997+
done
998+
}
999+
1000+
echo "Delegating rewards stake key in epoch 0..."
9911001
ERA_CMD="alonzo" \
9921002
nix run .#job-delegate-rewards-stake-key
993-
echo "Sleeping 100 seconds until $(date -d @$(($(date +%s) + 100)))"
994-
sleep 100
1003+
echo "Sleeping until epoch 1"
1004+
WAIT_FOR_TIP "epoch" "1"
9951005
echo
9961006

997-
echo "Forking to babbage..."
1007+
echo "Forking to babbage in epoch 1..."
9981008
just query-tip demo
9991009
MAJOR_VERSION=7 \
10001010
ERA_CMD="alonzo" \
10011011
nix run .#job-update-proposal-hard-fork
1002-
echo "Sleeping 160 seconds until $(date -d @$(($(date +%s) + 160)))"
1003-
sleep 160
1012+
echo "Sleeping until babbage"
1013+
WAIT_FOR_TIP "era" "Babbage"
10041014
echo
10051015

1006-
echo "Forking to babbage (intra-era)..."
1016+
echo "Forking to babbage (intra-era) in epoch 2..."
10071017
just query-tip demo
10081018
MAJOR_VERSION=8 \
10091019
ERA_CMD="babbage" \
10101020
nix run .#job-update-proposal-hard-fork
1011-
echo "Sleeping 160 seconds until $(date -d @$(($(date +%s) + 160)))"
1012-
sleep 160
1021+
echo "Sleeping until epoch 3"
1022+
WAIT_FOR_TIP "epoch" "3"
10131023
echo
10141024

1015-
echo "Forking to conway..."
1025+
echo "Forking to conway in epoch 3..."
10161026
just query-tip demo
10171027
MAJOR_VERSION=9 \
10181028
ERA_CMD="babbage" \
10191029
nix run .#job-update-proposal-hard-fork
1020-
echo "Sleeping 160 seconds until $(date -d @$(($(date +%s) + 160)))"
1021-
sleep 160
1030+
echo "Sleeping until epoch conway"
1031+
WAIT_FOR_TIP "era" "Conway"
10221032
echo
10231033

10241034
just query-tip demo
@@ -1118,8 +1128,19 @@ start-demo-ng:
11181128
sleep 10
11191129
echo
11201130

1121-
echo "Sleeping 160 seconds for the bootstrap pool to retire, until $(date -d @$(($(date +%s) + 160)))"
1122-
sleep 160
1131+
WAIT_FOR_TIP() {
1132+
TYPE="$1"
1133+
TARGET="$2"
1134+
EPOCH="$1"
1135+
1136+
while true; do
1137+
[ "$(jq -re ".$TYPE" <<< "$(just query-tip demo)")" = "$TARGET" ] && break;
1138+
sleep 2
1139+
done
1140+
}
1141+
1142+
echo "Sleeping until epoch 1 when the bootstrap pool retires"
1143+
WAIT_FOR_TIP "epoch" "1"
11231144
echo
11241145

11251146
just query-tip demo

NOTICE

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 2023 Input Output Global Inc (IOG)
1+
Copyright 2023-2025 Input Output Global Inc (IOG)
22

33
Licensed under the Apache License, Version 2.0 (the "License");
44
you may not use this file except in compliance with the License.
@@ -11,3 +11,20 @@ distributed under the License is distributed on an "AS IS" BASIS,
1111
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
See the License for the specific language governing permissions and
1313
limitations under the License.
14+
15+
Attribution Notice:
16+
17+
This project includes materials from the upstream cardano-parts repository:
18+
https://github.com/input-output-hk/cardano-parts
19+
20+
Attribution for cardano-parts files are maintained in the cardano-parts
21+
repository NOTICE file. No per-file attribution is required unless explicitly
22+
noted.
23+
24+
Files from the cardano-parts repository have been included under the same
25+
license terms and may have been modified.
26+
27+
The set of incorporated files may change over time. For details, refer to the
28+
commit history or repository documentation.
29+
30+
No endorsement by the original authors is implied.

docs/environments-pre/preprod

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 196 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,196 @@
1+
{
2+
"lovelacePerUTxOWord": 34482,
3+
"executionPrices": {
4+
"prSteps":
5+
{
6+
"numerator" : 721,
7+
"denominator" : 10000000
8+
},
9+
"prMem":
10+
{
11+
"numerator" : 577,
12+
"denominator" : 10000
13+
}
14+
},
15+
"maxTxExUnits": {
16+
"exUnitsMem": 10000000,
17+
"exUnitsSteps": 10000000000
18+
},
19+
"maxBlockExUnits": {
20+
"exUnitsMem": 50000000,
21+
"exUnitsSteps": 40000000000
22+
},
23+
"maxValueSize": 5000,
24+
"collateralPercentage": 150,
25+
"maxCollateralInputs": 3,
26+
"costModels": {
27+
"PlutusV1": {
28+
"sha2_256-memory-arguments": 4,
29+
"equalsString-cpu-arguments-constant": 1000,
30+
"cekDelayCost-exBudgetMemory": 100,
31+
"lessThanEqualsByteString-cpu-arguments-intercept": 103599,
32+
"divideInteger-memory-arguments-minimum": 1,
33+
"appendByteString-cpu-arguments-slope": 621,
34+
"blake2b-cpu-arguments-slope": 29175,
35+
"iData-cpu-arguments": 150000,
36+
"encodeUtf8-cpu-arguments-slope": 1000,
37+
"unBData-cpu-arguments": 150000,
38+
"multiplyInteger-cpu-arguments-intercept": 61516,
39+
"cekConstCost-exBudgetMemory": 100,
40+
"nullList-cpu-arguments": 150000,
41+
"equalsString-cpu-arguments-intercept": 150000,
42+
"trace-cpu-arguments": 150000,
43+
"mkNilData-memory-arguments": 32,
44+
"lengthOfByteString-cpu-arguments": 150000,
45+
"cekBuiltinCost-exBudgetCPU": 29773,
46+
"bData-cpu-arguments": 150000,
47+
"subtractInteger-cpu-arguments-slope": 0,
48+
"unIData-cpu-arguments": 150000,
49+
"consByteString-memory-arguments-intercept": 0,
50+
"divideInteger-memory-arguments-slope": 1,
51+
"divideInteger-cpu-arguments-model-arguments-slope": 118,
52+
"listData-cpu-arguments": 150000,
53+
"headList-cpu-arguments": 150000,
54+
"chooseData-memory-arguments": 32,
55+
"equalsInteger-cpu-arguments-intercept": 136542,
56+
"sha3_256-cpu-arguments-slope": 82363,
57+
"sliceByteString-cpu-arguments-slope": 5000,
58+
"unMapData-cpu-arguments": 150000,
59+
"lessThanInteger-cpu-arguments-intercept": 179690,
60+
"mkCons-cpu-arguments": 150000,
61+
"appendString-memory-arguments-intercept": 0,
62+
"modInteger-cpu-arguments-model-arguments-slope": 118,
63+
"ifThenElse-cpu-arguments": 1,
64+
"mkNilPairData-cpu-arguments": 150000,
65+
"lessThanEqualsInteger-cpu-arguments-intercept": 145276,
66+
"addInteger-memory-arguments-slope": 1,
67+
"chooseList-memory-arguments": 32,
68+
"constrData-memory-arguments": 32,
69+
"decodeUtf8-cpu-arguments-intercept": 150000,
70+
"equalsData-memory-arguments": 1,
71+
"subtractInteger-memory-arguments-slope": 1,
72+
"appendByteString-memory-arguments-intercept": 0,
73+
"lengthOfByteString-memory-arguments": 4,
74+
"headList-memory-arguments": 32,
75+
"listData-memory-arguments": 32,
76+
"consByteString-cpu-arguments-intercept": 150000,
77+
"unIData-memory-arguments": 32,
78+
"remainderInteger-memory-arguments-minimum": 1,
79+
"bData-memory-arguments": 32,
80+
"lessThanByteString-cpu-arguments-slope": 248,
81+
"encodeUtf8-memory-arguments-intercept": 0,
82+
"cekStartupCost-exBudgetCPU": 100,
83+
"multiplyInteger-memory-arguments-intercept": 0,
84+
"unListData-memory-arguments": 32,
85+
"remainderInteger-cpu-arguments-model-arguments-slope": 118,
86+
"cekVarCost-exBudgetCPU": 29773,
87+
"remainderInteger-memory-arguments-slope": 1,
88+
"cekForceCost-exBudgetCPU": 29773,
89+
"sha2_256-cpu-arguments-slope": 29175,
90+
"equalsInteger-memory-arguments": 1,
91+
"indexByteString-memory-arguments": 1,
92+
"addInteger-memory-arguments-intercept": 1,
93+
"chooseUnit-cpu-arguments": 150000,
94+
"sndPair-cpu-arguments": 150000,
95+
"cekLamCost-exBudgetCPU": 29773,
96+
"fstPair-cpu-arguments": 150000,
97+
"quotientInteger-memory-arguments-minimum": 1,
98+
"decodeUtf8-cpu-arguments-slope": 1000,
99+
"lessThanInteger-memory-arguments": 1,
100+
"lessThanEqualsInteger-cpu-arguments-slope": 1366,
101+
"fstPair-memory-arguments": 32,
102+
"modInteger-memory-arguments-intercept": 0,
103+
"unConstrData-cpu-arguments": 150000,
104+
"lessThanEqualsInteger-memory-arguments": 1,
105+
"chooseUnit-memory-arguments": 32,
106+
"sndPair-memory-arguments": 32,
107+
"addInteger-cpu-arguments-intercept": 197209,
108+
"decodeUtf8-memory-arguments-slope": 8,
109+
"equalsData-cpu-arguments-intercept": 150000,
110+
"mapData-cpu-arguments": 150000,
111+
"mkPairData-cpu-arguments": 150000,
112+
"quotientInteger-cpu-arguments-constant": 148000,
113+
"consByteString-memory-arguments-slope": 1,
114+
"cekVarCost-exBudgetMemory": 100,
115+
"indexByteString-cpu-arguments": 150000,
116+
"unListData-cpu-arguments": 150000,
117+
"equalsInteger-cpu-arguments-slope": 1326,
118+
"cekStartupCost-exBudgetMemory": 100,
119+
"subtractInteger-cpu-arguments-intercept": 197209,
120+
"divideInteger-cpu-arguments-model-arguments-intercept": 425507,
121+
"divideInteger-memory-arguments-intercept": 0,
122+
"cekForceCost-exBudgetMemory": 100,
123+
"blake2b-cpu-arguments-intercept": 2477736,
124+
"remainderInteger-cpu-arguments-constant": 148000,
125+
"tailList-cpu-arguments": 150000,
126+
"encodeUtf8-cpu-arguments-intercept": 150000,
127+
"equalsString-cpu-arguments-slope": 1000,
128+
"lessThanByteString-memory-arguments": 1,
129+
"multiplyInteger-cpu-arguments-slope": 11218,
130+
"appendByteString-cpu-arguments-intercept": 396231,
131+
"lessThanEqualsByteString-cpu-arguments-slope": 248,
132+
"modInteger-memory-arguments-slope": 1,
133+
"addInteger-cpu-arguments-slope": 0,
134+
"equalsData-cpu-arguments-slope": 10000,
135+
"decodeUtf8-memory-arguments-intercept": 0,
136+
"chooseList-cpu-arguments": 150000,
137+
"constrData-cpu-arguments": 150000,
138+
"equalsByteString-memory-arguments": 1,
139+
"cekApplyCost-exBudgetCPU": 29773,
140+
"quotientInteger-memory-arguments-slope": 1,
141+
"verifySignature-cpu-arguments-intercept": 3345831,
142+
"unMapData-memory-arguments": 32,
143+
"mkCons-memory-arguments": 32,
144+
"sliceByteString-memory-arguments-slope": 1,
145+
"sha3_256-memory-arguments": 4,
146+
"ifThenElse-memory-arguments": 1,
147+
"mkNilPairData-memory-arguments": 32,
148+
"equalsByteString-cpu-arguments-slope": 247,
149+
"appendString-cpu-arguments-intercept": 150000,
150+
"quotientInteger-cpu-arguments-model-arguments-slope": 118,
151+
"cekApplyCost-exBudgetMemory": 100,
152+
"equalsString-memory-arguments": 1,
153+
"multiplyInteger-memory-arguments-slope": 1,
154+
"cekBuiltinCost-exBudgetMemory": 100,
155+
"remainderInteger-memory-arguments-intercept": 0,
156+
"sha2_256-cpu-arguments-intercept": 2477736,
157+
"remainderInteger-cpu-arguments-model-arguments-intercept": 425507,
158+
"lessThanEqualsByteString-memory-arguments": 1,
159+
"tailList-memory-arguments": 32,
160+
"mkNilData-cpu-arguments": 150000,
161+
"chooseData-cpu-arguments": 150000,
162+
"unBData-memory-arguments": 32,
163+
"blake2b-memory-arguments": 4,
164+
"iData-memory-arguments": 32,
165+
"nullList-memory-arguments": 32,
166+
"cekDelayCost-exBudgetCPU": 29773,
167+
"subtractInteger-memory-arguments-intercept": 1,
168+
"lessThanByteString-cpu-arguments-intercept": 103599,
169+
"consByteString-cpu-arguments-slope": 1000,
170+
"appendByteString-memory-arguments-slope": 1,
171+
"trace-memory-arguments": 32,
172+
"divideInteger-cpu-arguments-constant": 148000,
173+
"cekConstCost-exBudgetCPU": 29773,
174+
"encodeUtf8-memory-arguments-slope": 8,
175+
"quotientInteger-cpu-arguments-model-arguments-intercept": 425507,
176+
"mapData-memory-arguments": 32,
177+
"appendString-cpu-arguments-slope": 1000,
178+
"modInteger-cpu-arguments-constant": 148000,
179+
"verifySignature-cpu-arguments-slope": 1,
180+
"unConstrData-memory-arguments": 32,
181+
"quotientInteger-memory-arguments-intercept": 0,
182+
"equalsByteString-cpu-arguments-constant": 150000,
183+
"sliceByteString-memory-arguments-intercept": 0,
184+
"mkPairData-memory-arguments": 32,
185+
"equalsByteString-cpu-arguments-intercept": 112536,
186+
"appendString-memory-arguments-slope": 1,
187+
"lessThanInteger-cpu-arguments-slope": 497,
188+
"modInteger-cpu-arguments-model-arguments-intercept": 425507,
189+
"modInteger-memory-arguments-minimum": 1,
190+
"sha3_256-cpu-arguments-intercept": 0,
191+
"verifySignature-memory-arguments": 1,
192+
"cekLamCost-exBudgetMemory": 100,
193+
"sliceByteString-cpu-arguments-intercept": 150000
194+
}
195+
}
196+
}

0 commit comments

Comments
 (0)