Skip to content

Commit 13eda07

Browse files
authored
Merge pull request #115 from mlabs-haskell/gergely/vasil-update-apps
Vasil compliance update
2 parents b4e4d22 + 37449d3 commit 13eda07

File tree

11 files changed

+80
-84
lines changed

11 files changed

+80
-84
lines changed

cluster-data/alonzo-genesis.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,4 +360,4 @@ costModels:
360360
verifyEd25519Signature-memory-arguments: 10
361361
verifySchnorrSecp256k1Signature-cpu-arguments-intercept: 38887044
362362
verifySchnorrSecp256k1Signature-cpu-arguments-slope: 32947
363-
verifySchnorrSecp256k1Signature-memory-arguments: 10
363+
verifySchnorrSecp256k1Signature-memory-arguments: 10

cluster-data/node.config

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ MaxConcurrencyBulkSync: 1
2121
# The maximum number of used peers when fetching newly forged blocks.
2222
MaxConcurrencyDeadline: 2
2323

24-
2524
# _ _ _ _ ____
2625
# | | | |_ __ __| | __ _| |_ ___ | _ \ __ _ _ __ __ _ _ __ ___ ___
2726
# | | | | '_ \ / _` |/ _` | __/ _ \ | |_) / _` | '__/ _` | '_ ` _ \/ __|
@@ -61,32 +60,32 @@ defaultBackends:
6160
# - stdout
6261

6362
# Tracing options cargo-culted from cardano-node/configuration/byron-mainnet/configuration.yaml
64-
TraceBlockFetchClient: True
65-
TraceBlockFetchDecisions: True
66-
TraceBlockFetchProtocol: True
67-
TraceBlockFetchProtocolSerialised: True
68-
TraceBlockFetchServer: True
63+
TraceBlockFetchClient: False
64+
TraceBlockFetchDecisions: False
65+
TraceBlockFetchProtocol: False
66+
TraceBlockFetchProtocolSerialised: False
67+
TraceBlockFetchServer: False
6968
TraceChainDb: True
70-
TraceChainSyncClient: True
71-
TraceChainSyncBlockServer: True
72-
TraceChainSyncHeaderServer: True
73-
TraceChainSyncProtocol: True
69+
TraceChainSyncClient: False
70+
TraceChainSyncBlockServer: False
71+
TraceChainSyncHeaderServer: False
72+
TraceChainSyncProtocol: False
7473
TraceDNSResolver: True
7574
TraceDNSSubscription: True
7675
TraceErrorPolicy: True
7776
TraceLocalErrorPolicy: True
7877
TraceForge: True
7978
TraceHandshake: False
8079
TraceIpSubscription: True
81-
TraceLocalChainSyncProtocol: True
80+
TraceLocalChainSyncProtocol: False
8281
TraceLocalHandshake: False
83-
TraceLocalTxSubmissionProtocol: True
84-
TraceLocalTxSubmissionServer: True
82+
TraceLocalTxSubmissionProtocol: False
83+
TraceLocalTxSubmissionServer: False
8584
TraceMempool: True
86-
TraceMux: True
87-
TraceTxInbound: True
88-
TraceTxOutbound: True
89-
TraceTxSubmissionProtocol: True
85+
TraceMux: False
86+
TraceTxInbound: False
87+
TraceTxOutbound: False
88+
TraceTxSubmissionProtocol: False
9089

9190
# more options which can be passed as key-value pairs:
9291
options:

flake.lock

Lines changed: 42 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
flake = false;
1212
};
1313
bot-plutus-interface.url =
14-
"github:mlabs-haskell/bot-plutus-interface?rev=142f1195e06906c18577fa05da5a6f981913a538";
14+
"github:mlabs-haskell/bot-plutus-interface?rev=c5d2624440c7320a22269f0c085d4eefc889bc2f";
1515
};
1616

1717
outputs =

plutip-server/Api/Handlers.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ startClusterHandler
8787
addSomeWallet (fromInteger . unLovelace <$> lovelaceAmounts)
8888
waitSeconds 2 -- wait for transactions to submit
8989
pure (env, wallets)
90-
getNodeSocketFile (runningNode -> RunningNode conn _ _) = nodeSocketFile conn
90+
getNodeSocketFile (runningNode -> RunningNode conn _ _ _) = nodeSocketFile conn
9191
getNodeConfigFile =
9292
-- assumption is that node.config lies in the same directory as node.socket
9393
flip replaceFileName "node.config" . getNodeSocketFile

src/Test/Plutip/Contract.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ withContractAs walletIdx toContract = do
338338
execValues <- liftIO $ runContract cEnv ownWallet valuesAtWallet
339339

340340
case outcome execValues of
341-
Left _ -> fail "Failed to get values"
341+
Left e -> fail $ "Failed to get values. Error: " ++ show e
342342
Right values -> return $ execRes {outcome = (,values) <$> outcome execRes}
343343
where
344344
separateWallets :: forall b. Int -> NonEmpty b -> (b, [b])

src/Test/Plutip/Tools/Address.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ walletToLedger wAddr =
4545
ledgerToCardanoMainnet ::
4646
Address.Address ->
4747
Either Ledger.ToCardanoError (CAPI.AddressInEra CAPI.BabbageEra)
48-
ledgerToCardanoMainnet = Ledger.toCardanoAddressBabbage CAPI.Mainnet
48+
ledgerToCardanoMainnet = Ledger.toCardanoAddressInEra CAPI.Mainnet
4949

5050
ledgerToCardanoMainnet' :: Address.Address -> Either Ledger.ToCardanoError Text
5151
ledgerToCardanoMainnet' addr =
52-
CAPI.serialiseAddress <$> Ledger.toCardanoAddressBabbage CAPI.Mainnet addr
52+
CAPI.serialiseAddress <$> Ledger.toCardanoAddressInEra CAPI.Mainnet addr
5353

5454
-- | Get `String` representation of address on mainnet
5555
-- mkMainnetAddress :: BpiWallet -> String

test/Spec/Integration.hs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -174,20 +174,21 @@ test =
174174
(withContract $ const lockThenSpend)
175175
[ shouldSucceed
176176
, budgetsFitUnder
177-
(scriptLimit 426019962 1082502)
178-
(policyLimit 428879716 1098524)
177+
(scriptLimit 406250690 1016102)
178+
(policyLimit 405210181 1019024)
179179
, assertOverallBudget
180-
"Assert CPU == 1156006922 and MEM == 2860068"
181-
(== 1156006922)
182-
(== 2860068)
183-
, overallBudgetFits 1156006922 2860068
180+
"Assert CPU == 1106851699 and MEM == 2694968"
181+
(== 1106851699)
182+
(== 2694968)
183+
, overallBudgetFits 1106851699 2694968
184184
]
185185
, -- regression tests for time <-> slot conversions
186186
assertExecution
187187
"Fails because outside validity interval"
188188
(initAda [100])
189189
(withContract $ const failingTimeContract)
190-
[shouldFail]
190+
[shouldFail] -- FIXME: add check that "OutsideValidityIntervalUTxO" is in error message
191+
-- [shouldSucceed]
191192
, assertExecution
192193
"Passes validation with exact time range checks"
193194
(initAda [100])

test/Spec/TestContract/AlwaysFail.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ spendFromScript = do
5252

5353
lkps =
5454
Hask.mconcat
55-
[ Constraints.otherScript validator
55+
[ Constraints.plutusV1OtherScript validator
5656
, Constraints.unspentOutputs (Map.fromList utxos)
5757
]
5858
tx <- submitTxConstraintsWith @AlwaysFail lkps txc

test/Spec/TestContract/LockSpendMint.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ spendFromScript = do
7575
<> Constraints.mustMintValueWithRedeemer Scripts.unitRedeemer token
7676
lookups1 =
7777
Constraints.unspentOutputs (Map.fromList utxos1)
78-
<> Constraints.otherScript validator
79-
<> Constraints.mintingPolicy mintingPolicy
78+
<> Constraints.plutusV1OtherScript validator
79+
<> Constraints.plutusV1MintingPolicy mintingPolicy
8080

8181
let txc2 =
8282
Constraints.mustSpendScriptOutput oref2 Scripts.unitRedeemer
@@ -85,7 +85,7 @@ spendFromScript = do
8585
(adaValueOf 200)
8686
lookups2 =
8787
Constraints.unspentOutputs (Map.fromList utxos2)
88-
<> Constraints.otherScript (validator2 2)
88+
<> Constraints.plutusV1OtherScript (validator2 2)
8989

9090
tx <-
9191
submitTxConstraintsWith @TestLockSpend

0 commit comments

Comments
 (0)