@cardano-sdk/e2e 0.36.0 → 0.36.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.
- package/.env.example +5 -0
- package/CHANGELOG.md +10 -0
- package/dist/cjs/factories.d.ts.map +1 -1
- package/dist/cjs/factories.js +10 -5
- package/dist/cjs/factories.js.map +1 -1
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/cjs/util/createMockKeyAgent.d.ts.map +1 -1
- package/dist/cjs/util/createMockKeyAgent.js +3 -1
- package/dist/cjs/util/createMockKeyAgent.js.map +1 -1
- package/dist/cjs/util/util.d.ts +2 -2
- package/dist/cjs/util/util.d.ts.map +1 -1
- package/dist/cjs/util/util.js +5 -4
- package/dist/cjs/util/util.js.map +1 -1
- package/dist/esm/factories.d.ts.map +1 -1
- package/dist/esm/factories.js +11 -6
- package/dist/esm/factories.js.map +1 -1
- package/dist/esm/index.d.ts +6 -6
- package/dist/esm/index.js +6 -6
- package/dist/esm/scripts/mnemonic.js +1 -1
- package/dist/esm/tools/multi-delegation-data-gen/index.js +2 -2
- package/dist/esm/tools/multi-delegation-data-gen/utils/index.d.ts +4 -4
- package/dist/esm/tools/multi-delegation-data-gen/utils/index.js +4 -4
- package/dist/esm/tools/multi-delegation-data-gen/utils/utils.d.ts +2 -2
- package/dist/esm/tools/multi-delegation-data-gen/utils/utils.js +4 -4
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/util/createMockKeyAgent.d.ts.map +1 -1
- package/dist/esm/util/createMockKeyAgent.js +4 -2
- package/dist/esm/util/createMockKeyAgent.js.map +1 -1
- package/dist/esm/util/handle-util.js +1 -1
- package/dist/esm/util/index.d.ts +4 -4
- package/dist/esm/util/index.js +4 -4
- package/dist/esm/util/util.d.ts +3 -3
- package/dist/esm/util/util.d.ts.map +1 -1
- package/dist/esm/util/util.js +7 -6
- package/dist/esm/util/util.js.map +1 -1
- package/docker-compose.yml +1 -0
- package/local-network/Dockerfile +7 -9
- package/local-network/scripts/clean.sh +1 -3
- package/local-network/scripts/install.sh +4 -4
- package/local-network/scripts/make-babbage.sh +36 -6
- package/local-network/scripts/mint-handles.sh +2 -4
- package/local-network/scripts/mint-tokens.sh +1 -2
- package/local-network/scripts/plutus-transaction.sh +5 -12
- package/local-network/scripts/pools/update-node-utils.sh +1 -2
- package/local-network/scripts/reference-input-transaction.sh +10 -23
- package/local-network/scripts/setup-new-delegator-keys.sh +184 -0
- package/local-network/scripts/setup-wallets.sh +2 -2
- package/local-network/scripts/start.sh +11 -0
- package/local-network/templates/babbage/alonzo-babbage-test-genesis.json +154 -154
- package/local-network/templates/babbage/byron-configuration.yaml +1 -0
- package/local-network/templates/babbage/conway-babbage-test-genesis.json +38 -0
- package/local-network/templates/babbage/node-config.json +12 -22
- package/local-network/templates/babbage/submit-api-config.json +9 -21
- package/package.json +25 -26
- package/src/factories.ts +16 -6
- package/src/util/createMockKeyAgent.ts +4 -2
- package/src/util/util.ts +7 -4
- package/test/local-network/register-pool.test.ts +3 -2
- package/test/projection/offline-fork.test.ts +2 -1
- package/test/wallet_epoch_0/PersonalWallet/conwayTransactions.test.ts +470 -0
- package/test/wallet_epoch_0/PersonalWallet/multisignature.test.ts +5 -3
- package/test/wallet_epoch_0/PersonalWallet/phase2validation.test.ts +4 -1
- package/test/wallet_epoch_0/PersonalWallet/plutusTest.test.ts +2 -1
- package/test/wallet_epoch_0/SharedWallet/utils.ts +7 -1
- package/test/wallet_epoch_3/PersonalWallet/delegationDistribution.test.ts +9 -8
- package/test/web-extension/webpack.config.base.js +2 -1
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
# mkfiles.sh
|
|
4
|
+
# This scripts uses set -x to show in terminal the commands executed by the script. Remove or comment set -x to disable this behavior
|
|
5
|
+
# The "exec 2>" below this comment helps the user to differenciate between the commands and its outputs by changing the color
|
|
6
|
+
# of the set -x output (the commands).
|
|
7
|
+
|
|
8
|
+
exec 2> >(while IFS= read -r line; do echo -e "\e[34m${line}\e[0m" >&2; done)
|
|
9
|
+
|
|
10
|
+
# Unofficial bash strict mode.
|
|
11
|
+
# See: http://redsymbol.net/articles/unofficial-bash-strict-mode/
|
|
12
|
+
set -x
|
|
13
|
+
set -euo pipefail
|
|
14
|
+
|
|
15
|
+
here="$(cd "$(dirname "$0")" >/dev/null 2>&1 && pwd)"
|
|
16
|
+
root="$(cd "$here/.." && pwd)"
|
|
17
|
+
cd "$root"
|
|
18
|
+
|
|
19
|
+
export PATH=$PWD/bin:$PATH
|
|
20
|
+
|
|
21
|
+
source ./scripts/nodes-configuration.sh
|
|
22
|
+
|
|
23
|
+
UNAME=$(uname -s) SED=
|
|
24
|
+
case $UNAME in
|
|
25
|
+
Darwin ) SED="gsed";;
|
|
26
|
+
Linux ) SED="sed";;
|
|
27
|
+
esac
|
|
28
|
+
|
|
29
|
+
sprocket() {
|
|
30
|
+
if [ "$UNAME" == "Windows_NT" ]; then
|
|
31
|
+
# Named pipes names on Windows must have the structure: "\\.\pipe\PipeName"
|
|
32
|
+
# See https://docs.microsoft.com/en-us/windows/win32/ipc/pipe-names
|
|
33
|
+
echo -n '\\.\pipe\'
|
|
34
|
+
echo "$1" | sed 's|/|\\|g'
|
|
35
|
+
else
|
|
36
|
+
echo "$1"
|
|
37
|
+
fi
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
getAddressBalance() {
|
|
41
|
+
cardano-cli query utxo \
|
|
42
|
+
--address "$1" \
|
|
43
|
+
--testnet-magic 888 >fullUtxo.out
|
|
44
|
+
|
|
45
|
+
tail -n +3 fullUtxo.out | sort -k3 -nr >balance.out
|
|
46
|
+
|
|
47
|
+
total_balance=0
|
|
48
|
+
while read -r utxo; do
|
|
49
|
+
utxo_balance=$(awk '{ print $3 }' <<<"${utxo}")
|
|
50
|
+
total_balance=$(("$total_balance" + "$utxo_balance"))
|
|
51
|
+
done <balance.out
|
|
52
|
+
|
|
53
|
+
echo ${total_balance}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
NETWORK_MAGIC=888
|
|
57
|
+
UTXO_DIR=network-files/utxo-keys
|
|
58
|
+
TRANSACTIONS_DIR=network-files/transactions
|
|
59
|
+
DELEGATORS_DIR=network-files/stake-delegator-keys
|
|
60
|
+
|
|
61
|
+
AMOUNT_PER_DELEGATOR='500000000000' # 500K ADA
|
|
62
|
+
|
|
63
|
+
mkdir -p "$TRANSACTIONS_DIR"
|
|
64
|
+
mkdir -p "$DELEGATORS_DIR"
|
|
65
|
+
|
|
66
|
+
while [ ! -S "$CARDANO_NODE_SOCKET_PATH" ]; do
|
|
67
|
+
echo "setup-new-delegator-keys.sh: CARDANO_NODE_SOCKET_PATH: $CARDANO_NODE_SOCKET_PATH file doesn't exist, waiting..."
|
|
68
|
+
sleep 2
|
|
69
|
+
done
|
|
70
|
+
|
|
71
|
+
# ----------------------
|
|
72
|
+
|
|
73
|
+
# GENERATE NEW PAYMENT KEYS
|
|
74
|
+
|
|
75
|
+
for NODE_ID in ${SP_NODES_ID}; do
|
|
76
|
+
cardano-cli conway address key-gen \
|
|
77
|
+
--verification-key-file "${DELEGATORS_DIR}/payment${NODE_ID}.vkey" \
|
|
78
|
+
--signing-key-file "${DELEGATORS_DIR}/payment${NODE_ID}.skey"
|
|
79
|
+
done
|
|
80
|
+
|
|
81
|
+
# GENERATE NEW STAKE
|
|
82
|
+
|
|
83
|
+
for NODE_ID in ${SP_NODES_ID}; do
|
|
84
|
+
cardano-cli conway stake-address key-gen \
|
|
85
|
+
--verification-key-file "${DELEGATORS_DIR}/staking${NODE_ID}.vkey" \
|
|
86
|
+
--signing-key-file "${DELEGATORS_DIR}/staking${NODE_ID}.skey"
|
|
87
|
+
done
|
|
88
|
+
|
|
89
|
+
# BUILD ADDRESSES FOR OUR NEW KEYS
|
|
90
|
+
|
|
91
|
+
for NODE_ID in ${SP_NODES_ID}; do
|
|
92
|
+
cardano-cli conway address build \
|
|
93
|
+
--testnet-magic $NETWORK_MAGIC \
|
|
94
|
+
--payment-verification-key-file "${DELEGATORS_DIR}/payment${NODE_ID}.vkey" \
|
|
95
|
+
--stake-verification-key-file "${DELEGATORS_DIR}/staking${NODE_ID}.vkey" \
|
|
96
|
+
--out-file "${DELEGATORS_DIR}/payment${NODE_ID}.addr"
|
|
97
|
+
done
|
|
98
|
+
|
|
99
|
+
# BUILD ADDRESSES FOR THE EXISTING KEYS, WE WILL NEED THEM FOR OUR FUTURE TRANSACTIONS
|
|
100
|
+
|
|
101
|
+
for NODE_ID in ${SP_NODES_ID}; do
|
|
102
|
+
cardano-cli conway address build \
|
|
103
|
+
--testnet-magic $NETWORK_MAGIC \
|
|
104
|
+
--payment-verification-key-file "${UTXO_DIR}/utxo${NODE_ID}.vkey" \
|
|
105
|
+
--out-file "${UTXO_DIR}/utxo${NODE_ID}.addr"
|
|
106
|
+
done
|
|
107
|
+
|
|
108
|
+
# FUND OUR NEWLY CREATED ADDRESSES
|
|
109
|
+
|
|
110
|
+
stakeAddr="$(cat "${UTXO_DIR}/utxo1.addr")"
|
|
111
|
+
currentBalance=$(getAddressBalance "$stakeAddr")
|
|
112
|
+
echo "Funding stake addresses with ${AMOUNT_PER_DELEGATOR}"
|
|
113
|
+
|
|
114
|
+
for NODE_ID in ${SP_NODES_ID}; do
|
|
115
|
+
cardano-cli conway transaction build \
|
|
116
|
+
--testnet-magic $NETWORK_MAGIC \
|
|
117
|
+
--tx-in "$(cardano-cli query utxo --address "$(cat "${UTXO_DIR}/utxo${NODE_ID}.addr")" --testnet-magic $NETWORK_MAGIC --out-file /dev/stdout | jq -r 'keys[0]')" \
|
|
118
|
+
--tx-out "$(cat ${DELEGATORS_DIR}/payment${NODE_ID}.addr)+${AMOUNT_PER_DELEGATOR}" \
|
|
119
|
+
--change-address "$(cat ${UTXO_DIR}/utxo${NODE_ID}.addr)" \
|
|
120
|
+
--out-file "${TRANSACTIONS_DIR}/tx${NODE_ID}.raw"
|
|
121
|
+
|
|
122
|
+
cardano-cli conway transaction sign --testnet-magic $NETWORK_MAGIC \
|
|
123
|
+
--tx-body-file "${TRANSACTIONS_DIR}/tx${NODE_ID}.raw" \
|
|
124
|
+
--signing-key-file "${UTXO_DIR}/utxo${NODE_ID}.skey" \
|
|
125
|
+
--out-file "${TRANSACTIONS_DIR}/tx${NODE_ID}.signed"
|
|
126
|
+
|
|
127
|
+
cardano-cli conway transaction submit \
|
|
128
|
+
--testnet-magic $NETWORK_MAGIC \
|
|
129
|
+
--tx-file "${TRANSACTIONS_DIR}/tx${NODE_ID}.signed"
|
|
130
|
+
done
|
|
131
|
+
|
|
132
|
+
updatedBalance=$(getAddressBalance "$stakeAddr")
|
|
133
|
+
|
|
134
|
+
while [ "$currentBalance" -eq "$updatedBalance" ]; do
|
|
135
|
+
updatedBalance=$(getAddressBalance "$stakeAddr")
|
|
136
|
+
sleep 1
|
|
137
|
+
done
|
|
138
|
+
|
|
139
|
+
sleep 10
|
|
140
|
+
|
|
141
|
+
# SHOW THE UTXO DISTRIBUTION
|
|
142
|
+
|
|
143
|
+
cardano-cli conway query utxo --whole-utxo --testnet-magic $NETWORK_MAGIC
|
|
144
|
+
|
|
145
|
+
# REGISTER STAKE ADDRESSES
|
|
146
|
+
|
|
147
|
+
echo "Registering $(cat "${DELEGATORS_DIR}/payment${NODE_ID}.addr")"
|
|
148
|
+
|
|
149
|
+
stakeAddr="$(cat "${DELEGATORS_DIR}/payment1.addr")"
|
|
150
|
+
currentBalance=$(getAddressBalance "$stakeAddr")
|
|
151
|
+
|
|
152
|
+
for NODE_ID in ${SP_NODES_ID}; do
|
|
153
|
+
cardano-cli conway stake-address registration-certificate \
|
|
154
|
+
--stake-verification-key-file "${DELEGATORS_DIR}/staking${NODE_ID}.vkey" \
|
|
155
|
+
--key-reg-deposit-amt 0 \
|
|
156
|
+
--out-file "${TRANSACTIONS_DIR}/staking${NODE_ID}reg.cert"
|
|
157
|
+
|
|
158
|
+
cardano-cli conway transaction build \
|
|
159
|
+
--testnet-magic $NETWORK_MAGIC \
|
|
160
|
+
--tx-in "$(cardano-cli query utxo --address "$(cat "${DELEGATORS_DIR}/payment${NODE_ID}.addr")" --testnet-magic $NETWORK_MAGIC --out-file /dev/stdout | jq -r 'keys[0]')" \
|
|
161
|
+
--change-address "$(cat ${DELEGATORS_DIR}/payment${NODE_ID}.addr)" \
|
|
162
|
+
--certificate-file "${TRANSACTIONS_DIR}/staking${NODE_ID}reg.cert" \
|
|
163
|
+
--witness-override 2 \
|
|
164
|
+
--out-file "${TRANSACTIONS_DIR}/reg-stake-tx${NODE_ID}.raw"
|
|
165
|
+
|
|
166
|
+
cardano-cli conway transaction sign --testnet-magic $NETWORK_MAGIC \
|
|
167
|
+
--tx-body-file "${TRANSACTIONS_DIR}/reg-stake-tx${NODE_ID}.raw" \
|
|
168
|
+
--signing-key-file "${DELEGATORS_DIR}/payment${NODE_ID}.skey" \
|
|
169
|
+
--signing-key-file "${DELEGATORS_DIR}/staking${NODE_ID}.skey" \
|
|
170
|
+
--out-file "${TRANSACTIONS_DIR}/reg-stake-tx${NODE_ID}.signed"
|
|
171
|
+
|
|
172
|
+
cardano-cli conway transaction submit \
|
|
173
|
+
--testnet-magic $NETWORK_MAGIC \
|
|
174
|
+
--tx-file "${TRANSACTIONS_DIR}/reg-stake-tx${NODE_ID}.signed"
|
|
175
|
+
done
|
|
176
|
+
|
|
177
|
+
updatedBalance=$(getAddressBalance "$stakeAddr")
|
|
178
|
+
|
|
179
|
+
while [ "$currentBalance" -eq "$updatedBalance" ]; do
|
|
180
|
+
updatedBalance=$(getAddressBalance "$stakeAddr")
|
|
181
|
+
sleep 1
|
|
182
|
+
done
|
|
183
|
+
|
|
184
|
+
sleep 10
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
|
|
3
3
|
# This funds a set of fixed addresses to be used during testing.
|
|
4
|
+
|
|
4
5
|
set -euo pipefail
|
|
5
6
|
|
|
6
7
|
source $(dirname $0)/common.sh
|
|
@@ -36,8 +37,7 @@ walletAddr5="addr_test1qr0c3frkem9cqn5f73dnvqpena27k2fgqew6wct9eaka03agfwkvzr0zy
|
|
|
36
37
|
# Spend the first UTxO
|
|
37
38
|
utxo=$(cardano-cli query utxo --address "$genesisAddr" --testnet-magic 888 | awk 'NR == 3 {printf("%s#%s", $1, $2)}')
|
|
38
39
|
|
|
39
|
-
cardano-cli transaction build \
|
|
40
|
-
--babbage-era \
|
|
40
|
+
cardano-cli conway transaction build \
|
|
41
41
|
--change-address "$genesisAddr" \
|
|
42
42
|
--tx-in "$utxo" \
|
|
43
43
|
--tx-out "$walletAddr1"+"$AMOUNT_PER_WALLET" \
|
|
@@ -8,8 +8,15 @@ here="$(cd "$(dirname "$0")" >/dev/null 2>&1 && pwd)"
|
|
|
8
8
|
root="$(cd "$here/.." && pwd)"
|
|
9
9
|
cd "$root"
|
|
10
10
|
|
|
11
|
+
waitForEpoch1() {
|
|
12
|
+
while [ `CARDANO_NODE_SOCKET_PATH=$PWD/network-files/node-sp1/node.sock cardano-cli query tip --testnet-magic 888 | jq -r .epoch` == "0" ] ; do
|
|
13
|
+
sleep 5
|
|
14
|
+
done
|
|
15
|
+
}
|
|
16
|
+
|
|
11
17
|
healthy() {
|
|
12
18
|
sleep 20
|
|
19
|
+
waitForEpoch1
|
|
13
20
|
touch ./network-files/run/healthy
|
|
14
21
|
}
|
|
15
22
|
|
|
@@ -26,6 +33,7 @@ trap 'kill 0' INT
|
|
|
26
33
|
echo "Run"
|
|
27
34
|
./scripts/make-babbage.sh
|
|
28
35
|
./network-files/run/all.sh &
|
|
36
|
+
CARDANO_NODE_SOCKET_PATH=$PWD/network-files/node-sp1/node.sock ./scripts/setup-new-delegator-keys.sh
|
|
29
37
|
healthy &
|
|
30
38
|
|
|
31
39
|
./scripts/update-stake-pools.sh.sh "$SP_NODES_ID"
|
|
@@ -36,6 +44,9 @@ CARDANO_NODE_SOCKET_PATH=$PWD/network-files/node-sp1/node.sock ./scripts/mint-to
|
|
|
36
44
|
CARDANO_NODE_SOCKET_PATH=$PWD/network-files/node-sp1/node.sock ./scripts/setup-wallets.sh
|
|
37
45
|
CARDANO_NODE_SOCKET_PATH=$PWD/network-files/node-sp1/node.sock ./scripts/mint-handles.sh
|
|
38
46
|
|
|
47
|
+
waitForEpoch1
|
|
48
|
+
sleep 50
|
|
49
|
+
|
|
39
50
|
touch ./network-files/run/done
|
|
40
51
|
|
|
41
52
|
wait
|
|
@@ -24,172 +24,172 @@
|
|
|
24
24
|
"maxCollateralInputs": 3,
|
|
25
25
|
"costModels": {
|
|
26
26
|
"PlutusV1": {
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"addInteger-memory-arguments-intercept": 1,
|
|
30
|
-
"addInteger-memory-arguments-slope": 1,
|
|
31
|
-
"appendByteString-cpu-arguments-intercept": 1000,
|
|
32
|
-
"appendByteString-cpu-arguments-slope": 571,
|
|
33
|
-
"appendByteString-memory-arguments-intercept": 0,
|
|
34
|
-
"appendByteString-memory-arguments-slope": 1,
|
|
35
|
-
"appendString-cpu-arguments-intercept": 1000,
|
|
36
|
-
"appendString-cpu-arguments-slope": 24177,
|
|
37
|
-
"appendString-memory-arguments-intercept": 4,
|
|
38
|
-
"appendString-memory-arguments-slope": 1,
|
|
39
|
-
"bData-cpu-arguments": 1000,
|
|
40
|
-
"bData-memory-arguments": 32,
|
|
41
|
-
"blake2b_256-cpu-arguments-intercept": 117366,
|
|
42
|
-
"blake2b_256-cpu-arguments-slope": 10475,
|
|
43
|
-
"blake2b_256-memory-arguments": 4,
|
|
44
|
-
"cekApplyCost-exBudgetCPU": 23000,
|
|
45
|
-
"cekApplyCost-exBudgetMemory": 100,
|
|
46
|
-
"cekBuiltinCost-exBudgetCPU": 23000,
|
|
47
|
-
"cekBuiltinCost-exBudgetMemory": 100,
|
|
48
|
-
"cekConstCost-exBudgetCPU": 23000,
|
|
49
|
-
"cekConstCost-exBudgetMemory": 100,
|
|
50
|
-
"cekDelayCost-exBudgetCPU": 23000,
|
|
27
|
+
"sha2_256-memory-arguments": 4,
|
|
28
|
+
"equalsString-cpu-arguments-constant": 1000,
|
|
51
29
|
"cekDelayCost-exBudgetMemory": 100,
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
30
|
+
"lessThanEqualsByteString-cpu-arguments-intercept": 103599,
|
|
31
|
+
"divideInteger-memory-arguments-minimum": 1,
|
|
32
|
+
"appendByteString-cpu-arguments-slope": 621,
|
|
33
|
+
"blake2b-cpu-arguments-slope": 29175,
|
|
34
|
+
"iData-cpu-arguments": 150000,
|
|
35
|
+
"encodeUtf8-cpu-arguments-slope": 1000,
|
|
36
|
+
"unBData-cpu-arguments": 150000,
|
|
37
|
+
"multiplyInteger-cpu-arguments-intercept": 61516,
|
|
38
|
+
"cekConstCost-exBudgetMemory": 100,
|
|
39
|
+
"nullList-cpu-arguments": 150000,
|
|
40
|
+
"equalsString-cpu-arguments-intercept": 150000,
|
|
41
|
+
"trace-cpu-arguments": 150000,
|
|
42
|
+
"mkNilData-memory-arguments": 32,
|
|
43
|
+
"lengthOfByteString-cpu-arguments": 150000,
|
|
44
|
+
"cekBuiltinCost-exBudgetCPU": 29773,
|
|
45
|
+
"bData-cpu-arguments": 150000,
|
|
46
|
+
"subtractInteger-cpu-arguments-slope": 0,
|
|
47
|
+
"unIData-cpu-arguments": 150000,
|
|
48
|
+
"consByteString-memory-arguments-intercept": 0,
|
|
49
|
+
"divideInteger-memory-arguments-slope": 1,
|
|
50
|
+
"divideInteger-cpu-arguments-model-arguments-slope": 118,
|
|
51
|
+
"listData-cpu-arguments": 150000,
|
|
52
|
+
"headList-cpu-arguments": 150000,
|
|
61
53
|
"chooseData-memory-arguments": 32,
|
|
62
|
-
"
|
|
54
|
+
"equalsInteger-cpu-arguments-intercept": 136542,
|
|
55
|
+
"sha3_256-cpu-arguments-slope": 82363,
|
|
56
|
+
"sliceByteString-cpu-arguments-slope": 5000,
|
|
57
|
+
"unMapData-cpu-arguments": 150000,
|
|
58
|
+
"lessThanInteger-cpu-arguments-intercept": 179690,
|
|
59
|
+
"mkCons-cpu-arguments": 150000,
|
|
60
|
+
"appendString-memory-arguments-intercept": 0,
|
|
61
|
+
"modInteger-cpu-arguments-model-arguments-slope": 118,
|
|
62
|
+
"ifThenElse-cpu-arguments": 1,
|
|
63
|
+
"mkNilPairData-cpu-arguments": 150000,
|
|
64
|
+
"lessThanEqualsInteger-cpu-arguments-intercept": 145276,
|
|
65
|
+
"addInteger-memory-arguments-slope": 1,
|
|
63
66
|
"chooseList-memory-arguments": 32,
|
|
64
|
-
"chooseUnit-cpu-arguments": 46417,
|
|
65
|
-
"chooseUnit-memory-arguments": 4,
|
|
66
|
-
"consByteString-cpu-arguments-intercept": 221973,
|
|
67
|
-
"consByteString-cpu-arguments-slope": 511,
|
|
68
|
-
"consByteString-memory-arguments-intercept": 0,
|
|
69
|
-
"consByteString-memory-arguments-slope": 1,
|
|
70
|
-
"constrData-cpu-arguments": 89141,
|
|
71
67
|
"constrData-memory-arguments": 32,
|
|
72
|
-
"decodeUtf8-cpu-arguments-intercept":
|
|
73
|
-
"decodeUtf8-cpu-arguments-slope": 14068,
|
|
74
|
-
"decodeUtf8-memory-arguments-intercept": 4,
|
|
75
|
-
"decodeUtf8-memory-arguments-slope": 2,
|
|
76
|
-
"divideInteger-cpu-arguments-constant": 196500,
|
|
77
|
-
"divideInteger-cpu-arguments-model-arguments-intercept": 453240,
|
|
78
|
-
"divideInteger-cpu-arguments-model-arguments-slope": 220,
|
|
79
|
-
"divideInteger-memory-arguments-intercept": 0,
|
|
80
|
-
"divideInteger-memory-arguments-minimum": 1,
|
|
81
|
-
"divideInteger-memory-arguments-slope": 1,
|
|
82
|
-
"encodeUtf8-cpu-arguments-intercept": 1000,
|
|
83
|
-
"encodeUtf8-cpu-arguments-slope": 28662,
|
|
84
|
-
"encodeUtf8-memory-arguments-intercept": 4,
|
|
85
|
-
"encodeUtf8-memory-arguments-slope": 2,
|
|
86
|
-
"equalsByteString-cpu-arguments-constant": 245000,
|
|
87
|
-
"equalsByteString-cpu-arguments-intercept": 216773,
|
|
88
|
-
"equalsByteString-cpu-arguments-slope": 62,
|
|
89
|
-
"equalsByteString-memory-arguments": 1,
|
|
90
|
-
"equalsData-cpu-arguments-intercept": 1060367,
|
|
91
|
-
"equalsData-cpu-arguments-slope": 12586,
|
|
68
|
+
"decodeUtf8-cpu-arguments-intercept": 150000,
|
|
92
69
|
"equalsData-memory-arguments": 1,
|
|
93
|
-
"
|
|
94
|
-
"
|
|
70
|
+
"subtractInteger-memory-arguments-slope": 1,
|
|
71
|
+
"appendByteString-memory-arguments-intercept": 0,
|
|
72
|
+
"lengthOfByteString-memory-arguments": 4,
|
|
73
|
+
"headList-memory-arguments": 32,
|
|
74
|
+
"listData-memory-arguments": 32,
|
|
75
|
+
"consByteString-cpu-arguments-intercept": 150000,
|
|
76
|
+
"unIData-memory-arguments": 32,
|
|
77
|
+
"remainderInteger-memory-arguments-minimum": 1,
|
|
78
|
+
"bData-memory-arguments": 32,
|
|
79
|
+
"lessThanByteString-cpu-arguments-slope": 248,
|
|
80
|
+
"encodeUtf8-memory-arguments-intercept": 0,
|
|
81
|
+
"cekStartupCost-exBudgetCPU": 100,
|
|
82
|
+
"multiplyInteger-memory-arguments-intercept": 0,
|
|
83
|
+
"unListData-memory-arguments": 32,
|
|
84
|
+
"remainderInteger-cpu-arguments-model-arguments-slope": 118,
|
|
85
|
+
"cekVarCost-exBudgetCPU": 29773,
|
|
86
|
+
"remainderInteger-memory-arguments-slope": 1,
|
|
87
|
+
"cekForceCost-exBudgetCPU": 29773,
|
|
88
|
+
"sha2_256-cpu-arguments-slope": 29175,
|
|
95
89
|
"equalsInteger-memory-arguments": 1,
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
90
|
+
"indexByteString-memory-arguments": 1,
|
|
91
|
+
"addInteger-memory-arguments-intercept": 1,
|
|
92
|
+
"chooseUnit-cpu-arguments": 150000,
|
|
93
|
+
"sndPair-cpu-arguments": 150000,
|
|
94
|
+
"cekLamCost-exBudgetCPU": 29773,
|
|
95
|
+
"fstPair-cpu-arguments": 150000,
|
|
96
|
+
"quotientInteger-memory-arguments-minimum": 1,
|
|
97
|
+
"decodeUtf8-cpu-arguments-slope": 1000,
|
|
98
|
+
"lessThanInteger-memory-arguments": 1,
|
|
99
|
+
"lessThanEqualsInteger-cpu-arguments-slope": 1366,
|
|
101
100
|
"fstPair-memory-arguments": 32,
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"iData-cpu-arguments": 1000,
|
|
105
|
-
"iData-memory-arguments": 32,
|
|
106
|
-
"ifThenElse-cpu-arguments": 80556,
|
|
107
|
-
"ifThenElse-memory-arguments": 1,
|
|
108
|
-
"indexByteString-cpu-arguments": 57667,
|
|
109
|
-
"indexByteString-memory-arguments": 4,
|
|
110
|
-
"lengthOfByteString-cpu-arguments": 1000,
|
|
111
|
-
"lengthOfByteString-memory-arguments": 10,
|
|
112
|
-
"lessThanByteString-cpu-arguments-intercept": 197145,
|
|
113
|
-
"lessThanByteString-cpu-arguments-slope": 156,
|
|
114
|
-
"lessThanByteString-memory-arguments": 1,
|
|
115
|
-
"lessThanEqualsByteString-cpu-arguments-intercept": 197145,
|
|
116
|
-
"lessThanEqualsByteString-cpu-arguments-slope": 156,
|
|
117
|
-
"lessThanEqualsByteString-memory-arguments": 1,
|
|
118
|
-
"lessThanEqualsInteger-cpu-arguments-intercept": 204924,
|
|
119
|
-
"lessThanEqualsInteger-cpu-arguments-slope": 473,
|
|
101
|
+
"modInteger-memory-arguments-intercept": 0,
|
|
102
|
+
"unConstrData-cpu-arguments": 150000,
|
|
120
103
|
"lessThanEqualsInteger-memory-arguments": 1,
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
-
"mapData-cpu-arguments":
|
|
127
|
-
"
|
|
128
|
-
"
|
|
104
|
+
"chooseUnit-memory-arguments": 32,
|
|
105
|
+
"sndPair-memory-arguments": 32,
|
|
106
|
+
"addInteger-cpu-arguments-intercept": 197209,
|
|
107
|
+
"decodeUtf8-memory-arguments-slope": 8,
|
|
108
|
+
"equalsData-cpu-arguments-intercept": 150000,
|
|
109
|
+
"mapData-cpu-arguments": 150000,
|
|
110
|
+
"mkPairData-cpu-arguments": 150000,
|
|
111
|
+
"quotientInteger-cpu-arguments-constant": 148000,
|
|
112
|
+
"consByteString-memory-arguments-slope": 1,
|
|
113
|
+
"cekVarCost-exBudgetMemory": 100,
|
|
114
|
+
"indexByteString-cpu-arguments": 150000,
|
|
115
|
+
"unListData-cpu-arguments": 150000,
|
|
116
|
+
"equalsInteger-cpu-arguments-slope": 1326,
|
|
117
|
+
"cekStartupCost-exBudgetMemory": 100,
|
|
118
|
+
"subtractInteger-cpu-arguments-intercept": 197209,
|
|
119
|
+
"divideInteger-cpu-arguments-model-arguments-intercept": 425507,
|
|
120
|
+
"divideInteger-memory-arguments-intercept": 0,
|
|
121
|
+
"cekForceCost-exBudgetMemory": 100,
|
|
122
|
+
"blake2b-cpu-arguments-intercept": 2477736,
|
|
123
|
+
"remainderInteger-cpu-arguments-constant": 148000,
|
|
124
|
+
"tailList-cpu-arguments": 150000,
|
|
125
|
+
"encodeUtf8-cpu-arguments-intercept": 150000,
|
|
126
|
+
"equalsString-cpu-arguments-slope": 1000,
|
|
127
|
+
"lessThanByteString-memory-arguments": 1,
|
|
128
|
+
"multiplyInteger-cpu-arguments-slope": 11218,
|
|
129
|
+
"appendByteString-cpu-arguments-intercept": 396231,
|
|
130
|
+
"lessThanEqualsByteString-cpu-arguments-slope": 248,
|
|
131
|
+
"modInteger-memory-arguments-slope": 1,
|
|
132
|
+
"addInteger-cpu-arguments-slope": 0,
|
|
133
|
+
"equalsData-cpu-arguments-slope": 10000,
|
|
134
|
+
"decodeUtf8-memory-arguments-intercept": 0,
|
|
135
|
+
"chooseList-cpu-arguments": 150000,
|
|
136
|
+
"constrData-cpu-arguments": 150000,
|
|
137
|
+
"equalsByteString-memory-arguments": 1,
|
|
138
|
+
"cekApplyCost-exBudgetCPU": 29773,
|
|
139
|
+
"quotientInteger-memory-arguments-slope": 1,
|
|
140
|
+
"verifySignature-cpu-arguments-intercept": 3345831,
|
|
141
|
+
"unMapData-memory-arguments": 32,
|
|
129
142
|
"mkCons-memory-arguments": 32,
|
|
130
|
-
"
|
|
131
|
-
"
|
|
132
|
-
"
|
|
143
|
+
"sliceByteString-memory-arguments-slope": 1,
|
|
144
|
+
"sha3_256-memory-arguments": 4,
|
|
145
|
+
"ifThenElse-memory-arguments": 1,
|
|
133
146
|
"mkNilPairData-memory-arguments": 32,
|
|
134
|
-
"
|
|
135
|
-
"
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
"modInteger-memory-arguments-intercept": 0,
|
|
140
|
-
"modInteger-memory-arguments-minimum": 1,
|
|
141
|
-
"modInteger-memory-arguments-slope": 1,
|
|
142
|
-
"multiplyInteger-cpu-arguments-intercept": 69522,
|
|
143
|
-
"multiplyInteger-cpu-arguments-slope": 11687,
|
|
144
|
-
"multiplyInteger-memory-arguments-intercept": 0,
|
|
147
|
+
"equalsByteString-cpu-arguments-slope": 247,
|
|
148
|
+
"appendString-cpu-arguments-intercept": 150000,
|
|
149
|
+
"quotientInteger-cpu-arguments-model-arguments-slope": 118,
|
|
150
|
+
"cekApplyCost-exBudgetMemory": 100,
|
|
151
|
+
"equalsString-memory-arguments": 1,
|
|
145
152
|
"multiplyInteger-memory-arguments-slope": 1,
|
|
146
|
-
"
|
|
147
|
-
"nullList-memory-arguments": 32,
|
|
148
|
-
"quotientInteger-cpu-arguments-constant": 196500,
|
|
149
|
-
"quotientInteger-cpu-arguments-model-arguments-intercept": 453240,
|
|
150
|
-
"quotientInteger-cpu-arguments-model-arguments-slope": 220,
|
|
151
|
-
"quotientInteger-memory-arguments-intercept": 0,
|
|
152
|
-
"quotientInteger-memory-arguments-minimum": 1,
|
|
153
|
-
"quotientInteger-memory-arguments-slope": 1,
|
|
154
|
-
"remainderInteger-cpu-arguments-constant": 196500,
|
|
155
|
-
"remainderInteger-cpu-arguments-model-arguments-intercept": 453240,
|
|
156
|
-
"remainderInteger-cpu-arguments-model-arguments-slope": 220,
|
|
153
|
+
"cekBuiltinCost-exBudgetMemory": 100,
|
|
157
154
|
"remainderInteger-memory-arguments-intercept": 0,
|
|
158
|
-
"
|
|
159
|
-
"remainderInteger-
|
|
160
|
-
"
|
|
161
|
-
"sha2_256-cpu-arguments-slope": 30482,
|
|
162
|
-
"sha2_256-memory-arguments": 4,
|
|
163
|
-
"sha3_256-cpu-arguments-intercept": 1927926,
|
|
164
|
-
"sha3_256-cpu-arguments-slope": 82523,
|
|
165
|
-
"sha3_256-memory-arguments": 4,
|
|
166
|
-
"sliceByteString-cpu-arguments-intercept": 265318,
|
|
167
|
-
"sliceByteString-cpu-arguments-slope": 0,
|
|
168
|
-
"sliceByteString-memory-arguments-intercept": 4,
|
|
169
|
-
"sliceByteString-memory-arguments-slope": 0,
|
|
170
|
-
"sndPair-cpu-arguments": 85931,
|
|
171
|
-
"sndPair-memory-arguments": 32,
|
|
172
|
-
"subtractInteger-cpu-arguments-intercept": 205665,
|
|
173
|
-
"subtractInteger-cpu-arguments-slope": 812,
|
|
174
|
-
"subtractInteger-memory-arguments-intercept": 1,
|
|
175
|
-
"subtractInteger-memory-arguments-slope": 1,
|
|
176
|
-
"tailList-cpu-arguments": 41182,
|
|
155
|
+
"sha2_256-cpu-arguments-intercept": 2477736,
|
|
156
|
+
"remainderInteger-cpu-arguments-model-arguments-intercept": 425507,
|
|
157
|
+
"lessThanEqualsByteString-memory-arguments": 1,
|
|
177
158
|
"tailList-memory-arguments": 32,
|
|
178
|
-
"
|
|
179
|
-
"
|
|
180
|
-
"unBData-cpu-arguments": 31220,
|
|
159
|
+
"mkNilData-cpu-arguments": 150000,
|
|
160
|
+
"chooseData-cpu-arguments": 150000,
|
|
181
161
|
"unBData-memory-arguments": 32,
|
|
182
|
-
"
|
|
162
|
+
"blake2b-memory-arguments": 4,
|
|
163
|
+
"iData-memory-arguments": 32,
|
|
164
|
+
"nullList-memory-arguments": 32,
|
|
165
|
+
"cekDelayCost-exBudgetCPU": 29773,
|
|
166
|
+
"subtractInteger-memory-arguments-intercept": 1,
|
|
167
|
+
"lessThanByteString-cpu-arguments-intercept": 103599,
|
|
168
|
+
"consByteString-cpu-arguments-slope": 1000,
|
|
169
|
+
"appendByteString-memory-arguments-slope": 1,
|
|
170
|
+
"trace-memory-arguments": 32,
|
|
171
|
+
"divideInteger-cpu-arguments-constant": 148000,
|
|
172
|
+
"cekConstCost-exBudgetCPU": 29773,
|
|
173
|
+
"encodeUtf8-memory-arguments-slope": 8,
|
|
174
|
+
"quotientInteger-cpu-arguments-model-arguments-intercept": 425507,
|
|
175
|
+
"mapData-memory-arguments": 32,
|
|
176
|
+
"appendString-cpu-arguments-slope": 1000,
|
|
177
|
+
"modInteger-cpu-arguments-constant": 148000,
|
|
178
|
+
"verifySignature-cpu-arguments-slope": 1,
|
|
183
179
|
"unConstrData-memory-arguments": 32,
|
|
184
|
-
"
|
|
185
|
-
"
|
|
186
|
-
"
|
|
187
|
-
"
|
|
188
|
-
"
|
|
189
|
-
"
|
|
190
|
-
"
|
|
191
|
-
"
|
|
192
|
-
"
|
|
180
|
+
"quotientInteger-memory-arguments-intercept": 0,
|
|
181
|
+
"equalsByteString-cpu-arguments-constant": 150000,
|
|
182
|
+
"sliceByteString-memory-arguments-intercept": 0,
|
|
183
|
+
"mkPairData-memory-arguments": 32,
|
|
184
|
+
"equalsByteString-cpu-arguments-intercept": 112536,
|
|
185
|
+
"appendString-memory-arguments-slope": 1,
|
|
186
|
+
"lessThanInteger-cpu-arguments-slope": 497,
|
|
187
|
+
"modInteger-cpu-arguments-model-arguments-intercept": 425507,
|
|
188
|
+
"modInteger-memory-arguments-minimum": 1,
|
|
189
|
+
"sha3_256-cpu-arguments-intercept": 0,
|
|
190
|
+
"verifySignature-memory-arguments": 1,
|
|
191
|
+
"cekLamCost-exBudgetMemory": 100,
|
|
192
|
+
"sliceByteString-cpu-arguments-intercept": 150000
|
|
193
193
|
},
|
|
194
194
|
"PlutusV2": {
|
|
195
195
|
"addInteger-cpu-arguments-intercept": 205665,
|
|
@@ -361,12 +361,12 @@
|
|
|
361
361
|
"unMapData-memory-arguments": 32,
|
|
362
362
|
"verifyEcdsaSecp256k1Signature-cpu-arguments": 35892428,
|
|
363
363
|
"verifyEcdsaSecp256k1Signature-memory-arguments": 10,
|
|
364
|
-
"verifyEd25519Signature-cpu-arguments-intercept":
|
|
365
|
-
"verifyEd25519Signature-cpu-arguments-slope":
|
|
364
|
+
"verifyEd25519Signature-cpu-arguments-intercept": 9462713,
|
|
365
|
+
"verifyEd25519Signature-cpu-arguments-slope": 1021,
|
|
366
366
|
"verifyEd25519Signature-memory-arguments": 10,
|
|
367
367
|
"verifySchnorrSecp256k1Signature-cpu-arguments-intercept": 38887044,
|
|
368
368
|
"verifySchnorrSecp256k1Signature-cpu-arguments-slope": 32947,
|
|
369
369
|
"verifySchnorrSecp256k1Signature-memory-arguments": 10
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
|
-
}
|
|
372
|
+
}
|
|
@@ -12,6 +12,7 @@ GenesisFile: genesis.json
|
|
|
12
12
|
ByronGenesisHash: '576a1b4687c7668b2f1d734fecaa7ca994b597f37177606d4942d339875009d6'
|
|
13
13
|
ShelleyGenesisHash: '4315428096763404ae322ce69eea7323c94dead3281cd306b5be7e80288626ce'
|
|
14
14
|
AlonzoGenesisHash: 'eaa32942a4f2b3028928cb47be679bb36fa128f6d7dddc04ae592d27f2818c16'
|
|
15
|
+
ConwayGenesisHash: 'eaa32942a4f2b3028928cb47be679bb36fa128f6d7dddc04ae592d27f2818c16'
|
|
15
16
|
|
|
16
17
|
##### Blockfetch Protocol
|
|
17
18
|
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"poolVotingThresholds": {
|
|
3
|
+
"committeeNormal": 0.51,
|
|
4
|
+
"committeeNoConfidence": 0.51,
|
|
5
|
+
"hardForkInitiation": 0.51,
|
|
6
|
+
"motionNoConfidence": 0.51,
|
|
7
|
+
"ppSecurityGroup": 0.51
|
|
8
|
+
},
|
|
9
|
+
"dRepVotingThresholds": {
|
|
10
|
+
"motionNoConfidence": 0.51,
|
|
11
|
+
"committeeNormal": 0.51,
|
|
12
|
+
"committeeNoConfidence": 0.51,
|
|
13
|
+
"updateToConstitution": 0.51,
|
|
14
|
+
"hardForkInitiation": 0.51,
|
|
15
|
+
"ppNetworkGroup": 0.51,
|
|
16
|
+
"ppEconomicGroup": 0.51,
|
|
17
|
+
"ppTechnicalGroup": 0.51,
|
|
18
|
+
"ppGovGroup": 0.51,
|
|
19
|
+
"treasuryWithdrawal": 0.51
|
|
20
|
+
},
|
|
21
|
+
"committeeMinSize": 0,
|
|
22
|
+
"committeeMaxTermLength": 200,
|
|
23
|
+
"govActionLifetime": 10,
|
|
24
|
+
"govActionDeposit": 1000000000,
|
|
25
|
+
"dRepDeposit": 2000000,
|
|
26
|
+
"dRepActivity": 20,
|
|
27
|
+
"constitution": {
|
|
28
|
+
"anchor": {
|
|
29
|
+
"url": "",
|
|
30
|
+
"dataHash": "0000000000000000000000000000000000000000000000000000000000000000"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"committee": {
|
|
34
|
+
"members": {
|
|
35
|
+
},
|
|
36
|
+
"quorum": 0
|
|
37
|
+
}
|
|
38
|
+
}
|