Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8.0 bench #5027

Closed
wants to merge 38 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
bcca023
Add `cardano-tracer/cardano-tracer-test` to `.gitignore`
lehins Mar 23, 2023
768375b
Take all dependecies from Hackage or CHaP
erikd Mar 8, 2023
c69247a
Update bounds and dependencies
lehins Mar 8, 2023
2f729cd
cardano-api: Initial integration steps
lehins Feb 23, 2023
f900b6d
cardano-api:Continue with integration. Ran into a problem with Script…
lehins Feb 23, 2023
4973e51
Move all Ledger related JSON instances
lehins Mar 2, 2023
f37e30d
PParams are done
lehins Mar 2, 2023
183b1f5
Genesis and Certificates are done
lehins Mar 3, 2023
7c049e4
cabal.project: Update ledger
lehins Mar 9, 2023
bb7fe96
TxBody is building!
lehins Mar 6, 2023
d726f3b
Tx is building
lehins Mar 7, 2023
4ec8761
SerialiseLedgerCddl is done
lehins Mar 7, 2023
a59dd06
OperationalCertificates and LedgerEvents are done
lehins Mar 8, 2023
32cd1a4
Query is done. Starting on Query
lehins Mar 8, 2023
65ce340
LedgerState is done
lehins Mar 9, 2023
440b0ef
WIP fees
lehins Mar 9, 2023
be73fc0
cabal.project: update ledger
lehins Mar 9, 2023
d8a875f
Fees are building
lehins Mar 14, 2023
c468446
Fees are building
lehins Mar 14, 2023
37e62e3
api lib is building
lehins Mar 14, 2023
d16e8cf
Generators are building
lehins Mar 14, 2023
a541555
cardano-api builds
lehins Mar 14, 2023
a055cb8
cardano-api builds
lehins Mar 14, 2023
e7ea024
Brought back TxMetadata serialization
lehins Mar 15, 2023
9bab3e4
cardano-node:Fix Queries
lehins Mar 15, 2023
5ab4e16
Fix spelling `withdrawl` -> `withdrawal`
lehins Mar 15, 2023
0a3b4d3
Some progress on cardano-node
lehins Mar 16, 2023
58997af
cardano-node builds
lehins Mar 16, 2023
d1b4548
Fixed evaluateTransactionExecutionUnits and fixup evaluateTransaction…
lehins Mar 22, 2023
63955a6
Get cardano-node to build
lehins Mar 23, 2023
8db4c0d
Some work on cardano-cli
lehins Mar 23, 2023
00de306
Fixups
lehins Mar 23, 2023
1d8b9e3
Fix cardano-api and cardano-cli test suites and get rid of warnings
lehins Mar 23, 2023
30c04bb
cardano-client-demo builds
lehins Mar 23, 2023
7149b71
Fix building tx-generator
lehins Mar 23, 2023
cc87149
Remove redundant constraints
lehins Mar 23, 2023
ab4ea91
increase version to 8.0.0
disassembler Mar 23, 2023
f272577
cabal.project: update to latest ledger with few necessary bug fixes
lehins Mar 28, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,6 @@ logs
/testnet

.vscode/

# Test artifacts
cardano-tracer/cardano-tracer-test
2 changes: 1 addition & 1 deletion bench/cardano-topology/cardano-topology.cabal
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cabal-version: 3.0

name: cardano-topology
version: 1.36.0
version: 8.0.0
synopsis: A cardano topology generator
description: A cardano topology generator.
category: Cardano,
Expand Down
9 changes: 5 additions & 4 deletions bench/tx-generator/src/Cardano/Benchmarking/Script/Env.hs
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ import Prelude
import Cardano.Benchmarking.GeneratorTx
import qualified Cardano.Benchmarking.LogTypes as Tracer
import Cardano.Benchmarking.OuroborosImports (NetworkId, PaymentKey, ShelleyGenesis,
SigningKey, StandardShelley)
SigningKey)
import Cardano.Benchmarking.Script.Types
import Cardano.Benchmarking.Wallet
import Cardano.Ledger.Crypto (StandardCrypto)
import Cardano.Node.Protocol.Types (SomeConsensusProtocol)
import Ouroboros.Network.NodeToClient (IOManager)

Expand All @@ -69,7 +70,7 @@ import Cardano.TxGenerator.Types (TxGenError (..))

data Env = Env { protoParams :: Maybe ProtocolParameterMode
, benchTracers :: Maybe Tracer.BenchTracers
, envGenesis :: Maybe (ShelleyGenesis StandardShelley)
, envGenesis :: Maybe (ShelleyGenesis StandardCrypto)
, envProtocol :: Maybe SomeConsensusProtocol
, envNetworkId :: Maybe NetworkId
, envSocketPath :: Maybe FilePath
Expand Down Expand Up @@ -125,7 +126,7 @@ setProtoParamMode val = modifyEnv (\e -> e { protoParams = pure val })
setBenchTracers :: Tracer.BenchTracers -> ActionM ()
setBenchTracers val = modifyEnv (\e -> e { benchTracers = pure val })

setEnvGenesis :: ShelleyGenesis StandardShelley -> ActionM ()
setEnvGenesis :: ShelleyGenesis StandardCrypto -> ActionM ()
setEnvGenesis val = modifyEnv (\e -> e { envGenesis = pure val })

setEnvKeys :: String -> SigningKey PaymentKey -> ActionM ()
Expand Down Expand Up @@ -168,7 +169,7 @@ getProtoParamMode = getEnvVal protoParams "ProtocolParameterMode"
getBenchTracers :: ActionM Tracer.BenchTracers
getBenchTracers = getEnvVal benchTracers "BenchTracers"

getEnvGenesis :: ActionM (ShelleyGenesis StandardShelley)
getEnvGenesis :: ActionM (ShelleyGenesis StandardCrypto)
getEnvGenesis = getEnvVal envGenesis "Genesis"

getEnvKeys :: String -> ActionM (SigningKey PaymentKey)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,5 +176,4 @@ preExecutePlutusV2 protocolVersion_ (PlutusScript _ (PlutusScriptSerialised scri
-- However, we're bound to the type `Cardano.Api.ProtocolParameters.CostModel` which
-- might be changed from a key-value map to something providing stronger guarantees.
flattenCostModel :: CostModel -> [Integer]
flattenCostModel (CostModel cm)
= snd <$> Map.toAscList cm
flattenCostModel (CostModel cm) = cm
4 changes: 2 additions & 2 deletions bench/tx-generator/src/Cardano/TxGenerator/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ import GHC.Natural
import Cardano.Api

import Cardano.Api.Shelley (ProtocolParameters)
import Cardano.Ledger.Crypto (StandardCrypto)
import qualified Cardano.Ledger.Shelley.API as Ledger (ShelleyGenesis)
import Ouroboros.Consensus.Shelley.Eras (StandardShelley)
-- import Cardano.Node.Protocol.Types (SomeConsensusProtocol)

import Cardano.TxGenerator.Fund (Fund)

-- convenience alias for use trhougout the API
type ShelleyGenesis = Ledger.ShelleyGenesis StandardShelley
type ShelleyGenesis = Ledger.ShelleyGenesis StandardCrypto

-- some type aliases to keep compatibility with code in Cardano.Benchmarking
type NumberOfInputsPerTx = Int
Expand Down
1 change: 1 addition & 0 deletions bench/tx-generator/tx-generator.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ library
, cardano-git-rev
, cardano-ledger-alonzo
, cardano-ledger-byron
, cardano-ledger-core
, cardano-node
, cardano-prelude
, contra-tracer
Expand Down
115 changes: 94 additions & 21 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -37,41 +37,41 @@ packages:
trace-resources
trace-forward

extra-packages:
ouroboros-consensus-cardano-tools
-- extra-packages:
-- ouroboros-consensus-cardano-tools

package cardano-api
program-options
ghc-options: -Werror

package cardano-cli
package cardano-api
ghc-options: -Werror

package cardano-git-rev
ghc-options: -Werror
-- package cardano-cli
-- ghc-options: -Werror

package cardano-node
ghc-options: -Werror

package cardano-node-chairman
ghc-options: -Werror
-- package cardano-node-chairman
-- ghc-options: -Werror

package cardano-testnet
ghc-options: -Werror
-- package cardano-testnet
-- ghc-options: -Werror

package tx-generator
ghc-options: -Werror
-- package tx-generator
-- ghc-options: -Werror

package trace-dispatcher
ghc-options: -Werror
-- package trace-dispatcher
-- ghc-options: -Werror

package trace-resources
ghc-options: -Werror
-- package trace-resources
-- ghc-options: -Werror

package cardano-tracer
ghc-options: -Werror
-- package cardano-tracer
-- ghc-options: -Werror

package submit-api
ghc-options: -Werror
-- package submit-api
-- ghc-options: -Werror

package cryptonite
-- Using RDRAND instead of /dev/urandom as an entropy source for key
Expand All @@ -94,7 +94,7 @@ allow-newer:
-- ekg does not suport newer snap
, ekg:snap-server
, ekg:snap-core
-- cardano-node-capi depends on aeson > 2.1, even our patched ekg-json only
-- cardano-node-capi depends on aeson > 2.1, even our patched ekg-json only
-- supports between 2 and 2.1
, ekg-json:aeson
-- These are currently required for 9.2.
Expand All @@ -108,3 +108,76 @@ allow-newer:
-- IMPORTANT
-- Do NOT add more source-repository-package stanzas here unless they are strictly
-- temporary! Please read the section in CONTRIBUTING about updating dependencies.

-- And has the adjustments for the ledger refactor
source-repository-package
type: git
location: https://github.com/input-output-hk/ouroboros-network
tag: 7f6afd7ba652bd20d5aaf31a9450dddda7e2f0bd
--sha256: 0wlvgiiyqp14xd7d49h9709dg2dv7wk1b44kbdy596mg8g3v93nw
subdir:
monoidal-synchronisation
network-mux
ouroboros-consensus
ouroboros-consensus-byron
ouroboros-consensus-cardano
ouroboros-consensus-protocol
ouroboros-consensus-shelley
ouroboros-network
ouroboros-network-framework
ouroboros-network-testing
ouroboros-network-protocols
ouroboros-consensus-cardano-tools
ouroboros-consensus-diffusion

source-repository-package
type: git
location: https://github.com/input-output-hk/fs-sim
tag: 13a1cfa5a82740c5723fb0a279b3f32f98c8b494
--sha256: 1q783gsb0hh4i0slvfwp5nppi8h425pkvj0kqr2lpl06y7y2gq41
subdir:
fs-api
fs-sim

-- Waiting for proper Windows ghc-9.2 release.
source-repository-package
type: git
location: https://github.com/input-output-hk/snap-core
tag: b87b2ffa52bf58867a7239ebe74f61b1a2c762d2
--sha256: 0ndm57z5zpxd5n8s47kh8k1jfqf3b78qv7gkgrx9wwaajs9bf196

source-repository-package
type: git
location: https://github.com/input-output-hk/cardano-ledger
tag: 5fe9e9e02622cb1d7794b8dbd068a7bc7122aa74
--sha256: 08m4wxsdg5nn1ilvamdxss24ipkb5gkmqw2q2fsh6ng3sy0bfzy2
subdir:
eras/alonzo/impl
eras/alonzo/test-suite
eras/allegra/impl
eras/babbage/impl
eras/babbage/test-suite
eras/byron/chain/executable-spec
eras/byron/crypto
eras/byron/crypto/test
eras/byron/ledger/executable-spec
eras/byron/ledger/impl
eras/byron/ledger/impl/test
eras/conway/impl
eras/conway/test-suite
eras/mary/impl
eras/shelley-ma/impl
eras/shelley-ma/test-suite
eras/shelley/impl
eras/shelley/test-suite
libs/cardano-data
libs/cardano-ledger-api
libs/cardano-ledger-binary
libs/cardano-ledger-core
libs/cardano-ledger-pretty
libs/cardano-protocol-tpraos
libs/non-integral
libs/set-algebra
libs/small-steps
libs/small-steps-test
libs/vector-map
4 changes: 4 additions & 0 deletions cardano-api/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

### Features

- Changed type of `protocolParamTxFeeFixed`, `protocolParamTxFeePerByte` from `Natural` to
`Lovelace` and `protocolUpdateTxFeeFixed` and `protocolUpdateTxFeePerByte` from `Maybe
Natural` to `Maybe Lovelace`

- Append, not prepend change output when balancing a transaction ([PR 4343](https://github.com/input-output-hk/cardano-node/pull/4343))

- Expose convenience functions `executeQueryCardanoMode`, `determineEra`, `constructBalancedTx` and `queryStateForBalancedTx` ([PR 4446](https://github.com/input-output-hk/cardano-node/pull/4446))
Expand Down
69 changes: 35 additions & 34 deletions cardano-api/cardano-api.cabal
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cabal-version: 3.0

name: cardano-api
version: 1.36.0
version: 8.0.0
synopsis: The cardano api
description: The cardano api.
category: Cardano,
Expand Down Expand Up @@ -109,24 +109,28 @@ library
build-depends: aeson >= 1.5.6.0
, aeson-pretty >= 0.8.5
, attoparsec
, array
, base16-bytestring >= 1.0
, base58-bytestring
, bech32 >= 1.1.0
, bytestring
, cardano-binary
, cardano-crypto
, cardano-crypto-class ^>= 2.0
, cardano-crypto-wrapper ^>= 1.4
, cardano-data ^>= 0.1
, cardano-ledger-alonzo ^>= 0.1
, cardano-ledger-babbage ^>= 0.1
, cardano-ledger-conway
, cardano-ledger-byron ^>= 0.1
, cardano-ledger-core ^>= 0.1
, cardano-ledger-shelley-ma ^>= 0.1
, cardano-protocol-tpraos >= 0.1
, cardano-crypto-class ^>= 2.1
, cardano-crypto-wrapper ^>= 1.5
, cardano-data ^>= 1.0
, cardano-ledger-alonzo ^>= 1.1
, cardano-ledger-allegra ^>= 1.1
, cardano-ledger-api >= 1.1
, cardano-ledger-babbage ^>= 1.1
, cardano-ledger-binary ^>= 1.1
, cardano-ledger-byron ^>= 1.0
, cardano-ledger-conway ^>= 1.1
, cardano-ledger-core ^>= 1.1
, cardano-ledger-mary ^>= 1.1
, cardano-ledger-shelley ^>= 1.1
, cardano-protocol-tpraos >= 1.0.1
, cardano-slotting >= 0.1
, cardano-strict-containers ^>= 0.1
, cborg
, contra-tracer
, containers
Expand Down Expand Up @@ -160,19 +164,15 @@ library
, random
, scientific
, serialise
, small-steps ^>= 0.1
, cardano-ledger-shelley ^>= 0.1
, small-steps ^>= 0.1
, small-steps ^>= 1.0
, stm
, cardano-strict-containers ^>= 0.1
, text
, time
, transformers
, transformers-except ^>= 0.1.3
, typed-protocols ^>= 0.1
, unordered-containers >= 0.2.11
, vector
, vector-map ^>= 0.1
, yaml

library gen
Expand All @@ -193,14 +193,14 @@ library gen
, base16-bytestring
, bytestring
, cardano-api
, cardano-binary
, cardano-crypto-class ^>= 2.0
, cardano-crypto-test ^>= 1.4
, cardano-ledger-alonzo ^>= 0.1
, cardano-ledger-alonzo-test ^>= 0.1
, cardano-ledger-byron-test ^>= 1.4
, cardano-ledger-core ^>= 0.1
, cardano-ledger-shelley ^>= 0.1
, cardano-binary ^>= 1.6
, cardano-crypto-class ^>= 2.1
, cardano-crypto-test ^>= 1.5
, cardano-ledger-alonzo ^>= 1.1
, cardano-ledger-alonzo-test
, cardano-ledger-byron-test ^>= 1.5
, cardano-ledger-core ^>= 1.1
, cardano-ledger-shelley ^>= 1.1
, containers
, hedgehog
, text
Expand All @@ -215,23 +215,24 @@ test-suite cardano-api-test
, bytestring
, cardano-api
, cardano-api:gen
, cardano-data ^>= 0.1
, cardano-data ^>= 1.0
, cardano-crypto
, cardano-crypto-class ^>= 2.0
, cardano-crypto-test ^>= 1.4
, cardano-crypto-tests ^>= 2.0
, cardano-ledger-alonzo ^>= 0.1
, cardano-ledger-core ^>= 0.1
, cardano-crypto-class ^>= 2.1
, cardano-crypto-test ^>= 1.5
, cardano-crypto-tests ^>= 2.1
, cardano-ledger-api ^>= 1.1
, cardano-ledger-core:{cardano-ledger-core, testlib} ^>= 1.1
, cardano-ledger-shelley ^>= 1.1
, cardano-ledger-shelley-test ^>= 1.1
, cardano-slotting ^>= 0.1
, containers
, hedgehog
, hedgehog-extras ^>= 0.4
, hedgehog-quickcheck
, mtl
, ouroboros-consensus
, microlens
, ouroboros-consensus-shelley
, QuickCheck
, cardano-ledger-shelley ^>= 0.1
, cardano-ledger-shelley-test ^>= 0.1
, tasty
, tasty-hedgehog
, tasty-quickcheck
Expand Down
Loading