From 4a7c4063ea2bfef4ad81002b837e2fefe871194c Mon Sep 17 00:00:00 2001 From: Thomas Kammerlocher Date: Tue, 30 Jul 2024 17:23:41 +0200 Subject: [PATCH] Chore/bump node 9.1 db sync 13.3.0.0 (#564) * chore: added preprod configs and adjusted dockerfile * chore: added config files for preview and sanchonet * chore: added mainnet configs. Conway still missing. * chore: bumped node to 9.1.0 * chore: added conway files * chore: removed smoked test. This test is already covered through postman, so it's redundant * chore: updated Postman Collection --- .../smoke_test_cardano_rosetta/action.yml | 26 - .github/workflows/ci.yml | 5 - Dockerfile | 4 +- README.md | 26 +- .../mainnet/cardano-db-sync/config.json | 1 + .../network/mainnet/cardano-node/config.json | 6 +- .../mainnet/cardano-node/topology.json | 2 +- config/network/mainnet/genesis/conway.json | 305 ++++++++++- .../preprod/cardano-db-sync/config.json | 1 + .../network/preprod/cardano-node/config.json | 6 +- .../preprod/cardano-node/topology.json | 2 +- config/network/preprod/config.json | 108 ---- config/network/preprod/genesis/conway.json | 305 ++++++++++- .../preview/cardano-db-sync/config.json | 1 + .../network/preview/cardano-node/config.json | 6 +- .../preview/cardano-node/topology.json | 2 +- config/network/preview/genesis/conway.json | 297 ++++++++++- .../sanchonet/cardano-db-sync/config.json | 1 + .../sanchonet/cardano-node/config.json | 6 +- .../sanchonet/cardano-node/topology.json | 2 +- .../sanchonet/cardano-submit-api/config.json | 124 +---- .../cardano-submit-api/submit-api-config.json | 113 +++++ config/network/sanchonet/genesis/conway.json | 287 ++++++++++- ...osetta-TS-Mainnet.postman_environment.json | 4 +- .../rosetta-ts.postman_collection.json | 478 +++++++++++++++++- 25 files changed, 1753 insertions(+), 365 deletions(-) delete mode 100644 .github/actions/smoke_test_cardano_rosetta/action.yml delete mode 100644 config/network/preprod/config.json create mode 100644 config/network/sanchonet/cardano-submit-api/submit-api-config.json diff --git a/.github/actions/smoke_test_cardano_rosetta/action.yml b/.github/actions/smoke_test_cardano_rosetta/action.yml deleted file mode 100644 index fa790f21..00000000 --- a/.github/actions/smoke_test_cardano_rosetta/action.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Smoke Test Cardano Rosetta -description: Runs the image, waits, then performs a basic smoke test -inputs: - tag: - description: Docker tag - required: false - default: latest - network-identifier: - description: Supported Cardano network - required: false - default: mainnet - test-exe: - description: Smoke test executable - required: true -runs: - using: composite - steps: - - name: Run - run: docker run --rm -d -p 8080:8080 --name cardano-rosetta-smoke-test --shm-size=2g cardano-rosetta:${{ inputs.tag }} - shell: bash - - name: Test - run: | - sleep 10 - ${{ inputs.test-exe }} ${{ inputs.network-identifier }} - docker stop cardano-rosetta-smoke-test - shell: bash diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8f63b2c6..414ea375 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,11 +44,6 @@ jobs: with: build-context: ${{ github.workspace }}/cardano-rosetta tag: ${{ github.sha }} - - name: Smoke test Cardano Rosetta image - uses: ./cardano-rosetta/.github/actions/smoke_test_cardano_rosetta - with: - tag: ${{ github.sha }} - test-exe: ./cardano-rosetta/test/smoke_test.sh - name: Postman Tests uses: ./cardano-rosetta/.github/actions/postman_tests_cardano_rosetta with: diff --git a/Dockerfile b/Dockerfile index 1af411cd..7233f070 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,8 +8,8 @@ ARG IOHK_LIBSODIUM_GIT_REV=dbb48cce ARG SECP256K1_VERSION=v0.3.2 ARG BLST_VERSION=v0.3.11 -ARG NODE_VERSION=8.9.4 -ARG CARDANO_DB_SYNC_VERSION=13.2.0.2 +ARG NODE_VERSION=9.1.0 +ARG CARDANO_DB_SYNC_VERSION=13.3.0.0 RUN mkdir -p /app/src WORKDIR /app diff --git a/README.md b/README.md index 763fcc26..90aac1dc 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ DOCKER_BUILDKIT=1 \ docker build \ --build-arg BUILDKIT_INLINE_CACHE=1 \ --cache-from=cardanofoundation/cardano-rosetta:master \ - -t cardanofoundation/cardano-rosetta:2.2.5 \ + -t cardanofoundation/cardano-rosetta:2.3.0 \ . ``` @@ -37,7 +37,7 @@ docker build \ --build-arg BUILDKIT_INLINE_CACHE=1 \ --build-arg NETWORK=preprod \ --cache-from=cardanofoundation/cardano-rosetta:master \ - -t cardanofoundation/cardano-rosetta:2.2.5-preprod \ + -t cardanofoundation/cardano-rosetta:2.3.0-preprod \ . ``` @@ -52,7 +52,7 @@ docker build \ --build-arg BUILDKIT_INLINE_CACHE=1 \ --build-arg NETWORK=preview \ --cache-from=cardanofoundation/cardano-rosetta:master \ - -t cardanofoundation/cardano-rosetta:2.2.5-preview \ + -t cardanofoundation/cardano-rosetta:2.3.0-preview \ . ``` @@ -65,10 +65,10 @@ DOCKER_BUILDKIT=1 \ docker build \ --build-arg BUILDKIT_INLINE_CACHE=1 \ --build-arg NETWORK=sanchonet \ - --build-arg CARDANO_DB_SYNC_VERSION=13.2.0.2 \ - --build-arg DB_SYNC_TAG=sanch-3-0-0 + --build-arg CARDANO_DB_SYNC_VERSION=13.3.0.0 \ + --build-arg DB_SYNC_TAG=sanch-5-1-0 --cache-from=cardanofoundation/cardano-rosetta:master \ - -t cardanofoundation/cardano-rosetta:2.2.5-sanchonet \ + -t cardanofoundation/cardano-rosetta:2.3.0-sanchonet \ . ``` @@ -88,7 +88,7 @@ docker run \ -p 8080:8080 \ -v cardano-rosetta:/data \ --shm-size=2g \ - cardanofoundation/cardano-rosetta:2.2.5 + cardanofoundation/cardano-rosetta:2.3.0 @@ -101,7 +101,7 @@ docker run \ -p 8081:8080 \ -v cardano-rosetta-preprod:/data \ --shm-size=2g \ - cardanofoundation/cardano-rosetta:2.2.5-preprod + cardanofoundation/cardano-rosetta:2.3.0-preprod ``` @@ -115,7 +115,7 @@ docker run \ -p 8081:8080 \ -v cardano-rosetta-preview:/data \ --shm-size=2g \ - cardanofoundation/cardano-rosetta:2.2.5-preview + cardanofoundation/cardano-rosetta:2.3.0-preview ``` @@ -129,7 +129,7 @@ docker run \ -p 8081:8080 \ -v cardano-rosetta-preview:/data \ --shm-size=2g \ - cardanofoundation/cardano-rosetta:2.2.5-sanchonet + cardanofoundation/cardano-rosetta:2.3.0-sanchonet ``` @@ -184,8 +184,8 @@ docker build \ --build-arg BUILDKIT_INLINE_CACHE=1 \ --build-arg SNAPSHOT_URL=https://update-cardano-mainnet.iohk.io/cardano-db-sync/13/db-sync-snapshot-schema-13-block-7960123-x86_64.tgz \ --cache-from=cardanofoundation/cardano-rosetta:master \ - -t cardanofoundation/cardano-rosetta:2.2.5-apply-snapshot \ - https://github.com/cardanofoundation/cardano-rosetta.git#2.2.5 + -t cardanofoundation/cardano-rosetta:2.3.0-apply-snapshot \ + https://github.com/cardanofoundation/cardano-rosetta.git#2.3.0 ``` @@ -201,7 +201,7 @@ docker run \ -p 8080:8080 \ -v cardano-rosetta:/data \ --shm-size=2g \ - cardanofoundation/cardano-rosetta:2.2.5-apply-snapshot + cardanofoundation/cardano-rosetta:2.3.0-apply-snapshot ``` diff --git a/config/network/mainnet/cardano-db-sync/config.json b/config/network/mainnet/cardano-db-sync/config.json index 1c03894e..c1fa8dcb 100644 --- a/config/network/mainnet/cardano-db-sync/config.json +++ b/config/network/mainnet/cardano-db-sync/config.json @@ -1,4 +1,5 @@ { + "EnableFutureGenesis": true, "EnableLogMetrics": false, "EnableLogging": true, "NetworkName": "mainnet", diff --git a/config/network/mainnet/cardano-node/config.json b/config/network/mainnet/cardano-node/config.json index 2ddddeb6..463e08be 100644 --- a/config/network/mainnet/cardano-node/config.json +++ b/config/network/mainnet/cardano-node/config.json @@ -4,13 +4,13 @@ "ByronGenesisFile": "../genesis/byron.json", "ByronGenesisHash": "5f20df933584822601f9e3f8c024eb5eb252fe8cefb24d1317dc3d432e940ebb", "ConwayGenesisFile": "../genesis/conway.json", - "ConwayGenesisHash": "de609b281cb3d8ae91a9d63a00c87092975612d603aa54c0f1c6a781e33d6e1e", + "ConwayGenesisHash": "15a199f895e461ec0ffc6dd4e4028af28a492ab4e806d39cb674c88f7643ef62", "EnableP2P": true, "LastKnownBlockVersion-Alt": 0, "LastKnownBlockVersion-Major": 3, "LastKnownBlockVersion-Minor": 0, "MaxKnownMajorProtocolVersion": 2, - "MinNodeVersion": "8.9.2", + "MinNodeVersion": "8.12.0", "PeerSharing": true, "Protocol": "Cardano", "RequiresNetworkMagic": "RequiresNoMagic", @@ -18,7 +18,7 @@ "ShelleyGenesisHash": "1a3be38bcbb7911969283716ad7aa550250226b76a61fc51cc9a9a35d9276d81", "TargetNumberOfActivePeers": 20, "TargetNumberOfEstablishedPeers": 50, - "TargetNumberOfKnownPeers": 100, + "TargetNumberOfKnownPeers": 150, "TargetNumberOfRootPeers": 60, "TraceAcceptPolicy": true, "TraceBlockFetchClient": false, diff --git a/config/network/mainnet/cardano-node/topology.json b/config/network/mainnet/cardano-node/topology.json index 0a91fd22..586b8c17 100644 --- a/config/network/mainnet/cardano-node/topology.json +++ b/config/network/mainnet/cardano-node/topology.json @@ -27,5 +27,5 @@ "advertise": false } ], - "useLedgerAfterSlot": 116812831 + "useLedgerAfterSlot": 128908821 } diff --git a/config/network/mainnet/genesis/conway.json b/config/network/mainnet/genesis/conway.json index 5f1de84e..760995a3 100644 --- a/config/network/mainnet/genesis/conway.json +++ b/config/network/mainnet/genesis/conway.json @@ -7,32 +7,297 @@ "ppSecurityGroup": 0.51 }, "dRepVotingThresholds": { - "motionNoConfidence": 0.51, - "committeeNormal": 0.51, - "committeeNoConfidence": 0.51, - "updateToConstitution": 0.51, - "hardForkInitiation": 0.51, - "ppNetworkGroup": 0.51, - "ppEconomicGroup": 0.51, - "ppTechnicalGroup": 0.51, - "ppGovGroup": 0.51, - "treasuryWithdrawal": 0.51 + "motionNoConfidence": 0.67, + "committeeNormal": 0.67, + "committeeNoConfidence": 0.6, + "updateToConstitution": 0.75, + "hardForkInitiation": 0.6, + "ppNetworkGroup": 0.67, + "ppEconomicGroup": 0.67, + "ppTechnicalGroup": 0.67, + "ppGovGroup": 0.75, + "treasuryWithdrawal": 0.67 }, - "committeeMinSize": 0, - "committeeMaxTermLength": 200, - "govActionLifetime": 10, - "govActionDeposit": 1000000000, - "dRepDeposit": 2000000, + "committeeMinSize": 7, + "committeeMaxTermLength": 146, + "govActionLifetime": 6, + "govActionDeposit": 100000000000, + "dRepDeposit": 500000000, "dRepActivity": 20, + "minFeeRefScriptCostPerByte": 15, + "plutusV3CostModel": [ + 100788, + 420, + 1, + 1, + 1000, + 173, + 0, + 1, + 1000, + 59957, + 4, + 1, + 11183, + 32, + 201305, + 8356, + 4, + 16000, + 100, + 16000, + 100, + 16000, + 100, + 16000, + 100, + 16000, + 100, + 16000, + 100, + 100, + 100, + 16000, + 100, + 94375, + 32, + 132994, + 32, + 61462, + 4, + 72010, + 178, + 0, + 1, + 22151, + 32, + 91189, + 769, + 4, + 2, + 85848, + 123203, + 7305, + -900, + 1716, + 549, + 57, + 85848, + 0, + 1, + 1, + 1000, + 42921, + 4, + 2, + 24548, + 29498, + 38, + 1, + 898148, + 27279, + 1, + 51775, + 558, + 1, + 39184, + 1000, + 60594, + 1, + 141895, + 32, + 83150, + 32, + 15299, + 32, + 76049, + 1, + 13169, + 4, + 22100, + 10, + 28999, + 74, + 1, + 28999, + 74, + 1, + 43285, + 552, + 1, + 44749, + 541, + 1, + 33852, + 32, + 68246, + 32, + 72362, + 32, + 7243, + 32, + 7391, + 32, + 11546, + 32, + 85848, + 123203, + 7305, + -900, + 1716, + 549, + 57, + 85848, + 0, + 1, + 90434, + 519, + 0, + 1, + 74433, + 32, + 85848, + 123203, + 7305, + -900, + 1716, + 549, + 57, + 85848, + 0, + 1, + 1, + 85848, + 123203, + 7305, + -900, + 1716, + 549, + 57, + 85848, + 0, + 1, + 955506, + 213312, + 0, + 2, + 270652, + 22588, + 4, + 1457325, + 64566, + 4, + 20467, + 1, + 4, + 0, + 141992, + 32, + 100788, + 420, + 1, + 1, + 81663, + 32, + 59498, + 32, + 20142, + 32, + 24588, + 32, + 20744, + 32, + 25933, + 32, + 24623, + 32, + 43053543, + 10, + 53384111, + 14333, + 10, + 43574283, + 26308, + 10, + 16000, + 100, + 16000, + 100, + 962335, + 18, + 2780678, + 6, + 442008, + 1, + 52538055, + 3756, + 18, + 267929, + 18, + 76433006, + 8868, + 18, + 52948122, + 18, + 1995836, + 36, + 3227919, + 12, + 901022, + 1, + 166917843, + 4307, + 36, + 284546, + 36, + 158221314, + 26549, + 36, + 74698472, + 36, + 333849714, + 1, + 254006273, + 72, + 2174038, + 72, + 2261318, + 64571, + 4, + 207616, + 8310, + 4, + 1293828, + 28716, + 63, + 0, + 1, + 1006041, + 43623, + 251, + 0, + 1 + ], "constitution": { - "anchor": { - "url": "", - "dataHash": "0000000000000000000000000000000000000000000000000000000000000000" - } + "anchor": { + "dataHash": "ca41a91f399259bcefe57f9858e91f6d00e1a38d6d9c63d4052914ea7bd70cb2", + "url": "ipfs://bafkreifnwj6zpu3ixa4siz2lndqybyc5wnnt3jkwyutci4e2tmbnj3xrdm" + }, + "script": "fa24fb305126805cf2164c161d852a0e7330cf988f1fe558cf7d4a64" }, "committee": { "members": { + "scriptHash-df0e83bde65416dade5b1f97e7f115cc1ff999550ad968850783fe50": 580, + "scriptHash-b6012034ba0a7e4afbbf2c7a1432f8824aee5299a48e38e41a952686": 580, + "scriptHash-ce8b37a72b178a37bbd3236daa7b2c158c9d3604e7aa667e6c6004b7": 580, + "scriptHash-f0dc2c00d92a45521267be2d5de1c485f6f9d14466d7e16062897cf7": 580, + "scriptHash-349e55f83e9af24813e6cb368df6a80d38951b2a334dfcdf26815558": 580, + "scriptHash-84aebcfd3e00d0f87af918fc4b5e00135f407e379893df7e7d392c6a": 580, + "scriptHash-e8165b3328027ee0d74b1f07298cb092fd99aa7697a1436f5997f625": 580 }, - "quorum": 0 + "threshold": { + "numerator": 2, + "denominator": 3 + } } } diff --git a/config/network/preprod/cardano-db-sync/config.json b/config/network/preprod/cardano-db-sync/config.json index a8b62b95..d446cc10 100644 --- a/config/network/preprod/cardano-db-sync/config.json +++ b/config/network/preprod/cardano-db-sync/config.json @@ -1,4 +1,5 @@ { + "EnableFutureGenesis": true, "EnableLogMetrics": false, "EnableLogging": true, "NetworkName": "preprod", diff --git a/config/network/preprod/cardano-node/config.json b/config/network/preprod/cardano-node/config.json index b7cae2ae..ef77bc4e 100644 --- a/config/network/preprod/cardano-node/config.json +++ b/config/network/preprod/cardano-node/config.json @@ -4,12 +4,12 @@ "ByronGenesisFile": "../genesis/byron.json", "ByronGenesisHash": "d4b8de7a11d929a323373cbab6c1a9bdc931beffff11db111cf9d57356ee1937", "ConwayGenesisFile": "../genesis/conway.json", - "ConwayGenesisHash": "de609b281cb3d8ae91a9d63a00c87092975612d603aa54c0f1c6a781e33d6e1e", + "ConwayGenesisHash": "0eb6adaec3fcb1fe286c1b4ae0da2a117eafc3add51e17577d36dd39eddfc3db", "EnableP2P": true, "LastKnownBlockVersion-Alt": 0, "LastKnownBlockVersion-Major": 2, "LastKnownBlockVersion-Minor": 0, - "MinNodeVersion": "8.9.2", + "MinNodeVersion": "8.12.0", "PeerSharing": true, "Protocol": "Cardano", "RequiresNetworkMagic": "RequiresMagic", @@ -17,7 +17,7 @@ "ShelleyGenesisHash": "162d29c4e1cf6b8a84f2d692e67a3ac6bc7851bc3e6e4afe64d15778bed8bd86", "TargetNumberOfActivePeers": 20, "TargetNumberOfEstablishedPeers": 50, - "TargetNumberOfKnownPeers": 100, + "TargetNumberOfKnownPeers": 150, "TargetNumberOfRootPeers": 60, "TraceAcceptPolicy": true, "TraceBlockFetchClient": false, diff --git a/config/network/preprod/cardano-node/topology.json b/config/network/preprod/cardano-node/topology.json index 9faac371..2241cbcb 100644 --- a/config/network/preprod/cardano-node/topology.json +++ b/config/network/preprod/cardano-node/topology.json @@ -19,5 +19,5 @@ "advertise": false } ], - "useLedgerAfterSlot": 52358331 + "useLedgerAfterSlot": 64454371 } diff --git a/config/network/preprod/config.json b/config/network/preprod/config.json deleted file mode 100644 index b7cae2ae..00000000 --- a/config/network/preprod/config.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "AlonzoGenesisFile": "../genesis/alonzo.json", - "AlonzoGenesisHash": "7e94a15f55d1e82d10f09203fa1d40f8eede58fd8066542cf6566008068ed874", - "ByronGenesisFile": "../genesis/byron.json", - "ByronGenesisHash": "d4b8de7a11d929a323373cbab6c1a9bdc931beffff11db111cf9d57356ee1937", - "ConwayGenesisFile": "../genesis/conway.json", - "ConwayGenesisHash": "de609b281cb3d8ae91a9d63a00c87092975612d603aa54c0f1c6a781e33d6e1e", - "EnableP2P": true, - "LastKnownBlockVersion-Alt": 0, - "LastKnownBlockVersion-Major": 2, - "LastKnownBlockVersion-Minor": 0, - "MinNodeVersion": "8.9.2", - "PeerSharing": true, - "Protocol": "Cardano", - "RequiresNetworkMagic": "RequiresMagic", - "ShelleyGenesisFile": "../genesis/shelley.json", - "ShelleyGenesisHash": "162d29c4e1cf6b8a84f2d692e67a3ac6bc7851bc3e6e4afe64d15778bed8bd86", - "TargetNumberOfActivePeers": 20, - "TargetNumberOfEstablishedPeers": 50, - "TargetNumberOfKnownPeers": 100, - "TargetNumberOfRootPeers": 60, - "TraceAcceptPolicy": true, - "TraceBlockFetchClient": false, - "TraceBlockFetchDecisions": false, - "TraceBlockFetchProtocol": false, - "TraceBlockFetchProtocolSerialised": false, - "TraceBlockFetchServer": false, - "TraceChainDb": true, - "TraceChainSyncBlockServer": false, - "TraceChainSyncClient": false, - "TraceChainSyncHeaderServer": false, - "TraceChainSyncProtocol": false, - "TraceConnectionManager": true, - "TraceDNSResolver": true, - "TraceDNSSubscription": true, - "TraceDiffusionInitialization": true, - "TraceErrorPolicy": true, - "TraceForge": true, - "TraceHandshake": true, - "TraceInboundGovernor": true, - "TraceIpSubscription": true, - "TraceLedgerPeers": true, - "TraceLocalChainSyncProtocol": false, - "TraceLocalConnectionManager": true, - "TraceLocalErrorPolicy": true, - "TraceLocalHandshake": true, - "TraceLocalRootPeers": true, - "TraceLocalTxSubmissionProtocol": false, - "TraceLocalTxSubmissionServer": false, - "TraceMempool": true, - "TraceMux": false, - "TracePeerSelection": true, - "TracePeerSelectionActions": true, - "TracePublicRootPeers": true, - "TraceServer": true, - "TraceTxInbound": false, - "TraceTxOutbound": false, - "TraceTxSubmissionProtocol": false, - "TracingVerbosity": "NormalVerbosity", - "TurnOnLogMetrics": true, - "TurnOnLogging": true, - "defaultBackends": [ - "KatipBK" - ], - "defaultScribes": [ - [ - "StdoutSK", - "stdout" - ] - ], - "hasEKG": 12788, - "hasPrometheus": [ - "127.0.0.1", - 12798 - ], - "minSeverity": "Info", - "options": { - "mapBackends": { - "cardano.node.metrics": [ - "EKGViewBK" - ], - "cardano.node.resources": [ - "EKGViewBK" - ] - }, - "mapSubtrace": { - "cardano.node.metrics": { - "subtrace": "Neutral" - } - } - }, - "rotation": { - "rpKeepFilesNum": 10, - "rpLogLimitBytes": 5000000, - "rpMaxAgeHours": 24 - }, - "setupBackends": [ - "KatipBK" - ], - "setupScribes": [ - { - "scFormat": "ScText", - "scKind": "StdoutSK", - "scName": "stdout", - "scRotation": null - } - ] -} diff --git a/config/network/preprod/genesis/conway.json b/config/network/preprod/genesis/conway.json index 5f1de84e..09c77b4d 100644 --- a/config/network/preprod/genesis/conway.json +++ b/config/network/preprod/genesis/conway.json @@ -7,32 +7,297 @@ "ppSecurityGroup": 0.51 }, "dRepVotingThresholds": { - "motionNoConfidence": 0.51, - "committeeNormal": 0.51, - "committeeNoConfidence": 0.51, - "updateToConstitution": 0.51, - "hardForkInitiation": 0.51, - "ppNetworkGroup": 0.51, - "ppEconomicGroup": 0.51, - "ppTechnicalGroup": 0.51, - "ppGovGroup": 0.51, - "treasuryWithdrawal": 0.51 + "motionNoConfidence": 0.67, + "committeeNormal": 0.67, + "committeeNoConfidence": 0.6, + "updateToConstitution": 0.75, + "hardForkInitiation": 0.6, + "ppNetworkGroup": 0.67, + "ppEconomicGroup": 0.67, + "ppTechnicalGroup": 0.67, + "ppGovGroup": 0.75, + "treasuryWithdrawal": 0.67 }, - "committeeMinSize": 0, - "committeeMaxTermLength": 200, - "govActionLifetime": 10, - "govActionDeposit": 1000000000, - "dRepDeposit": 2000000, + "committeeMinSize": 7, + "committeeMaxTermLength": 146, + "govActionLifetime": 6, + "govActionDeposit": 100000000000, + "dRepDeposit": 500000000, "dRepActivity": 20, + "minFeeRefScriptCostPerByte": 15, + "plutusV3CostModel": [ + 100788, + 420, + 1, + 1, + 1000, + 173, + 0, + 1, + 1000, + 59957, + 4, + 1, + 11183, + 32, + 201305, + 8356, + 4, + 16000, + 100, + 16000, + 100, + 16000, + 100, + 16000, + 100, + 16000, + 100, + 16000, + 100, + 100, + 100, + 16000, + 100, + 94375, + 32, + 132994, + 32, + 61462, + 4, + 72010, + 178, + 0, + 1, + 22151, + 32, + 91189, + 769, + 4, + 2, + 85848, + 123203, + 7305, + -900, + 1716, + 549, + 57, + 85848, + 0, + 1, + 1, + 1000, + 42921, + 4, + 2, + 24548, + 29498, + 38, + 1, + 898148, + 27279, + 1, + 51775, + 558, + 1, + 39184, + 1000, + 60594, + 1, + 141895, + 32, + 83150, + 32, + 15299, + 32, + 76049, + 1, + 13169, + 4, + 22100, + 10, + 28999, + 74, + 1, + 28999, + 74, + 1, + 43285, + 552, + 1, + 44749, + 541, + 1, + 33852, + 32, + 68246, + 32, + 72362, + 32, + 7243, + 32, + 7391, + 32, + 11546, + 32, + 85848, + 123203, + 7305, + -900, + 1716, + 549, + 57, + 85848, + 0, + 1, + 90434, + 519, + 0, + 1, + 74433, + 32, + 85848, + 123203, + 7305, + -900, + 1716, + 549, + 57, + 85848, + 0, + 1, + 1, + 85848, + 123203, + 7305, + -900, + 1716, + 549, + 57, + 85848, + 0, + 1, + 955506, + 213312, + 0, + 2, + 270652, + 22588, + 4, + 1457325, + 64566, + 4, + 20467, + 1, + 4, + 0, + 141992, + 32, + 100788, + 420, + 1, + 1, + 81663, + 32, + 59498, + 32, + 20142, + 32, + 24588, + 32, + 20744, + 32, + 25933, + 32, + 24623, + 32, + 43053543, + 10, + 53384111, + 14333, + 10, + 43574283, + 26308, + 10, + 16000, + 100, + 16000, + 100, + 962335, + 18, + 2780678, + 6, + 442008, + 1, + 52538055, + 3756, + 18, + 267929, + 18, + 76433006, + 8868, + 18, + 52948122, + 18, + 1995836, + 36, + 3227919, + 12, + 901022, + 1, + 166917843, + 4307, + 36, + 284546, + 36, + 158221314, + 26549, + 36, + 74698472, + 36, + 333849714, + 1, + 254006273, + 72, + 2174038, + 72, + 2261318, + 64571, + 4, + 207616, + 8310, + 4, + 1293828, + 28716, + 63, + 0, + 1, + 1006041, + 43623, + 251, + 0, + 1 + ], "constitution": { - "anchor": { - "url": "", - "dataHash": "0000000000000000000000000000000000000000000000000000000000000000" - } + "anchor": { + "dataHash": "ca41a91f399259bcefe57f9858e91f6d00e1a38d6d9c63d4052914ea7bd70cb2", + "url": "ipfs://bafkreifnwj6zpu3ixa4siz2lndqybyc5wnnt3jkwyutci4e2tmbnj3xrdm" + }, + "script": "fa24fb305126805cf2164c161d852a0e7330cf988f1fe558cf7d4a64" }, "committee": { "members": { + "scriptHash-a6a5e006fd4e8f51062dc431362369b2a43140abced8aa2ff2256d7b": 229, + "scriptHash-6095e643ea6f1cccb6e463ec34349026b3a48621aac5d512655ab1bf": 229, + "scriptHash-94c0de47e7ae32e3f7234ada5cf976506b68e3bb88c54dc53b4ba984": 229, + "scriptHash-5098dfd0deba725fadd692198fc33ee959fbe7e6edf1b5a695e06e61": 229, + "scriptHash-5a71f17f4ce4c1c0be053575d717ade6ad8a1d5453d02a65ce40d4b1": 229, + "scriptHash-2f4a6c6f098e20ee4bfd5b39942c164575f8ceb348e754df5d0ec04f": 229, + "scriptHash-94f51c795a6c11adb9c1e30f0b6def4230cbd0b8bc800098e2d2307b": 229 }, - "quorum": 0 + "threshold": { + "numerator": 2, + "denominator": 3 + } } } diff --git a/config/network/preview/cardano-db-sync/config.json b/config/network/preview/cardano-db-sync/config.json index 9c496a2b..3e331dd8 100644 --- a/config/network/preview/cardano-db-sync/config.json +++ b/config/network/preview/cardano-db-sync/config.json @@ -1,4 +1,5 @@ { + "EnableFutureGenesis": true, "EnableLogMetrics": false, "EnableLogging": true, "NetworkName": "preview", diff --git a/config/network/preview/cardano-node/config.json b/config/network/preview/cardano-node/config.json index e17a3137..f830552f 100644 --- a/config/network/preview/cardano-node/config.json +++ b/config/network/preview/cardano-node/config.json @@ -4,14 +4,14 @@ "ByronGenesisFile": "../genesis/byron.json", "ByronGenesisHash": "83de1d7302569ad56cf9139a41e2e11346d4cb4a31c00142557b6ab3fa550761", "ConwayGenesisFile": "../genesis/conway.json", - "ConwayGenesisHash": "de609b281cb3d8ae91a9d63a00c87092975612d603aa54c0f1c6a781e33d6e1e", + "ConwayGenesisHash": "9cc5084f02e27210eacba47af0872e3dba8946ad9460b6072d793e1d2f3987ef", "EnableP2P": true, "ExperimentalHardForksEnabled": false, "ExperimentalProtocolsEnabled": false, "LastKnownBlockVersion-Alt": 0, "LastKnownBlockVersion-Major": 3, "LastKnownBlockVersion-Minor": 1, - "MinNodeVersion": "8.9.2", + "MinNodeVersion": "8.12.0", "PeerSharing": true, "Protocol": "Cardano", "RequiresNetworkMagic": "RequiresMagic", @@ -19,7 +19,7 @@ "ShelleyGenesisHash": "363498d1024f84bb39d3fa9593ce391483cb40d479b87233f868d6e57c3a400d", "TargetNumberOfActivePeers": 20, "TargetNumberOfEstablishedPeers": 50, - "TargetNumberOfKnownPeers": 100, + "TargetNumberOfKnownPeers": 150, "TargetNumberOfRootPeers": 60, "TestAllegraHardForkAtEpoch": 0, "TestAlonzoHardForkAtEpoch": 0, diff --git a/config/network/preview/cardano-node/topology.json b/config/network/preview/cardano-node/topology.json index 30284484..3a6607f5 100644 --- a/config/network/preview/cardano-node/topology.json +++ b/config/network/preview/cardano-node/topology.json @@ -19,5 +19,5 @@ "advertise": false } ], - "useLedgerAfterSlot": 41385503 + "useLedgerAfterSlot": 53827185 } diff --git a/config/network/preview/genesis/conway.json b/config/network/preview/genesis/conway.json index 5f1de84e..4f8b1d06 100644 --- a/config/network/preview/genesis/conway.json +++ b/config/network/preview/genesis/conway.json @@ -7,32 +7,291 @@ "ppSecurityGroup": 0.51 }, "dRepVotingThresholds": { - "motionNoConfidence": 0.51, - "committeeNormal": 0.51, - "committeeNoConfidence": 0.51, - "updateToConstitution": 0.51, - "hardForkInitiation": 0.51, - "ppNetworkGroup": 0.51, - "ppEconomicGroup": 0.51, - "ppTechnicalGroup": 0.51, - "ppGovGroup": 0.51, - "treasuryWithdrawal": 0.51 + "motionNoConfidence": 0.67, + "committeeNormal": 0.67, + "committeeNoConfidence": 0.6, + "updateToConstitution": 0.75, + "hardForkInitiation": 0.6, + "ppNetworkGroup": 0.67, + "ppEconomicGroup": 0.67, + "ppTechnicalGroup": 0.67, + "ppGovGroup": 0.75, + "treasuryWithdrawal": 0.67 }, "committeeMinSize": 0, - "committeeMaxTermLength": 200, - "govActionLifetime": 10, - "govActionDeposit": 1000000000, - "dRepDeposit": 2000000, + "committeeMaxTermLength": 365, + "govActionLifetime": 30, + "govActionDeposit": 100000000000, + "dRepDeposit": 500000000, "dRepActivity": 20, + "minFeeRefScriptCostPerByte": 15, + "plutusV3CostModel": [ + 100788, + 420, + 1, + 1, + 1000, + 173, + 0, + 1, + 1000, + 59957, + 4, + 1, + 11183, + 32, + 201305, + 8356, + 4, + 16000, + 100, + 16000, + 100, + 16000, + 100, + 16000, + 100, + 16000, + 100, + 16000, + 100, + 100, + 100, + 16000, + 100, + 94375, + 32, + 132994, + 32, + 61462, + 4, + 72010, + 178, + 0, + 1, + 22151, + 32, + 91189, + 769, + 4, + 2, + 85848, + 123203, + 7305, + -900, + 1716, + 549, + 57, + 85848, + 0, + 1, + 1, + 1000, + 42921, + 4, + 2, + 24548, + 29498, + 38, + 1, + 898148, + 27279, + 1, + 51775, + 558, + 1, + 39184, + 1000, + 60594, + 1, + 141895, + 32, + 83150, + 32, + 15299, + 32, + 76049, + 1, + 13169, + 4, + 22100, + 10, + 28999, + 74, + 1, + 28999, + 74, + 1, + 43285, + 552, + 1, + 44749, + 541, + 1, + 33852, + 32, + 68246, + 32, + 72362, + 32, + 7243, + 32, + 7391, + 32, + 11546, + 32, + 85848, + 123203, + 7305, + -900, + 1716, + 549, + 57, + 85848, + 0, + 1, + 90434, + 519, + 0, + 1, + 74433, + 32, + 85848, + 123203, + 7305, + -900, + 1716, + 549, + 57, + 85848, + 0, + 1, + 1, + 85848, + 123203, + 7305, + -900, + 1716, + 549, + 57, + 85848, + 0, + 1, + 955506, + 213312, + 0, + 2, + 270652, + 22588, + 4, + 1457325, + 64566, + 4, + 20467, + 1, + 4, + 0, + 141992, + 32, + 100788, + 420, + 1, + 1, + 81663, + 32, + 59498, + 32, + 20142, + 32, + 24588, + 32, + 20744, + 32, + 25933, + 32, + 24623, + 32, + 43053543, + 10, + 53384111, + 14333, + 10, + 43574283, + 26308, + 10, + 16000, + 100, + 16000, + 100, + 962335, + 18, + 2780678, + 6, + 442008, + 1, + 52538055, + 3756, + 18, + 267929, + 18, + 76433006, + 8868, + 18, + 52948122, + 18, + 1995836, + 36, + 3227919, + 12, + 901022, + 1, + 166917843, + 4307, + 36, + 284546, + 36, + 158221314, + 26549, + 36, + 74698472, + 36, + 333849714, + 1, + 254006273, + 72, + 2174038, + 72, + 2261318, + 64571, + 4, + 207616, + 8310, + 4, + 1293828, + 28716, + 63, + 0, + 1, + 1006041, + 43623, + 251, + 0, + 1 + ], "constitution": { - "anchor": { - "url": "", - "dataHash": "0000000000000000000000000000000000000000000000000000000000000000" - } + "anchor": { + "dataHash": "ca41a91f399259bcefe57f9858e91f6d00e1a38d6d9c63d4052914ea7bd70cb2", + "url": "ipfs://bafkreifnwj6zpu3ixa4siz2lndqybyc5wnnt3jkwyutci4e2tmbnj3xrdm" + }, + "script": "fa24fb305126805cf2164c161d852a0e7330cf988f1fe558cf7d4a64" }, "committee": { "members": { + "scriptHash-ff9babf23fef3f54ec29132c07a8e23807d7b395b143ecd8ff79f4c7": 1000 }, - "quorum": 0 + "threshold": { + "numerator": 2, + "denominator": 3 + } } } diff --git a/config/network/sanchonet/cardano-db-sync/config.json b/config/network/sanchonet/cardano-db-sync/config.json index aafe35d2..f29ec3ec 100644 --- a/config/network/sanchonet/cardano-db-sync/config.json +++ b/config/network/sanchonet/cardano-db-sync/config.json @@ -1,4 +1,5 @@ { + "EnableFutureGenesis": true, "EnableLogMetrics": false, "EnableLogging": true, "NetworkName": "sanchonet", diff --git a/config/network/sanchonet/cardano-node/config.json b/config/network/sanchonet/cardano-node/config.json index 061e86ee..75a13aed 100644 --- a/config/network/sanchonet/cardano-node/config.json +++ b/config/network/sanchonet/cardano-node/config.json @@ -4,14 +4,14 @@ "ByronGenesisFile": "../genesis/byron.json", "ByronGenesisHash": "785eb88427e136378a15b0a152a8bfbeec7a611529ccda29c43a1e60ffb48eaa", "ConwayGenesisFile": "../genesis/conway.json", - "ConwayGenesisHash": "49ef010ff0d13b090893a919bbc22022038a8b782faa0b1561a256b781672174", + "ConwayGenesisHash": "e85ee5b7af8ca5c273c20746c9f994aef1a72a79c38b4eea230817e7e66c0741", "EnableP2P": true, "ExperimentalHardForksEnabled": true, "ExperimentalProtocolsEnabled": true, "LastKnownBlockVersion-Alt": 0, "LastKnownBlockVersion-Major": 3, "LastKnownBlockVersion-Minor": 1, - "MinNodeVersion": "8.10.0", + "MinNodeVersion": "8.12.0", "PeerSharing": true, "Protocol": "Cardano", "RequiresNetworkMagic": "RequiresMagic", @@ -19,7 +19,7 @@ "ShelleyGenesisHash": "f94457ec45a0c6773057a529533cf7ccf746cb44dabd56ae970e1dbfb55bfdb2", "TargetNumberOfActivePeers": 20, "TargetNumberOfEstablishedPeers": 50, - "TargetNumberOfKnownPeers": 100, + "TargetNumberOfKnownPeers": 150, "TargetNumberOfRootPeers": 60, "TestAllegraHardForkAtEpoch": 0, "TestAlonzoHardForkAtEpoch": 0, diff --git a/config/network/sanchonet/cardano-node/topology.json b/config/network/sanchonet/cardano-node/topology.json index 4e41c44e..101e1e4a 100644 --- a/config/network/sanchonet/cardano-node/topology.json +++ b/config/network/sanchonet/cardano-node/topology.json @@ -19,5 +19,5 @@ "advertise": false } ], - "useLedgerAfterSlot": 21599922 + "useLedgerAfterSlot": 33695977 } diff --git a/config/network/sanchonet/cardano-submit-api/config.json b/config/network/sanchonet/cardano-submit-api/config.json index a9baf44b..d4e54074 100644 --- a/config/network/sanchonet/cardano-submit-api/config.json +++ b/config/network/sanchonet/cardano-submit-api/config.json @@ -1,113 +1,11 @@ -{ - "EnableLogMetrics": false, - "EnableLogging": true, - "GenesisHash": "785eb88427e136378a15b0a152a8bfbeec7a611529ccda29c43a1e60ffb48eaa", - "PrometheusPort": 8080, - "RequiresNetworkMagic": "RequiresMagic", - "defaultBackends": [ - "KatipBK" - ], - "defaultScribes": [ - [ - "StdoutSK", - "stdout" - ] - ], - "minSeverity": "Info", - "options": { - "cfokey": { - "value": "Release-1.0.0" - }, - "mapBackends": {}, - "mapSeverity": { - "db-sync-node": "Info", - "db-sync-node.Mux": "Error", - "db-sync-node.Subscription": "Error" - }, - "mapSubtrace": { - "#ekgview": { - "contents": [ - [ - { - "contents": "cardano.epoch-validation.benchmark", - "tag": "Contains" - }, - [ - { - "contents": ".monoclock.basic.", - "tag": "Contains" - } - ] - ], - [ - { - "contents": "cardano.epoch-validation.benchmark", - "tag": "Contains" - }, - [ - { - "contents": "diff.RTS.cpuNs.timed.", - "tag": "Contains" - } - ] - ], - [ - { - "contents": "#ekgview.#aggregation.cardano.epoch-validation.benchmark", - "tag": "StartsWith" - }, - [ - { - "contents": "diff.RTS.gcNum.timed.", - "tag": "Contains" - } - ] - ] - ], - "subtrace": "FilterTrace" - }, - "#messagecounters.aggregation": { - "subtrace": "NoTrace" - }, - "#messagecounters.ekgview": { - "subtrace": "NoTrace" - }, - "#messagecounters.katip": { - "subtrace": "NoTrace" - }, - "#messagecounters.monitoring": { - "subtrace": "NoTrace" - }, - "#messagecounters.switchboard": { - "subtrace": "NoTrace" - }, - "benchmark": { - "contents": [ - "GhcRtsStats", - "MonotonicClock" - ], - "subtrace": "ObservableTrace" - }, - "cardano.epoch-validation.utxo-stats": { - "subtrace": "NoTrace" - } - } - }, - "rotation": { - "rpKeepFilesNum": 10, - "rpLogLimitBytes": 5000000, - "rpMaxAgeHours": 24 - }, - "setupBackends": [ - "AggregationBK", - "KatipBK" - ], - "setupScribes": [ - { - "scFormat": "ScText", - "scKind": "StdoutSK", - "scName": "stdout", - "scRotation": null - } - ] -} +--2024-07-13 10:57:44-- https://book.world.dev.cardano.org/environments/sanchonet/submit-api-config.json +Resolving book.world.dev.cardano.org (book.world.dev.cardano.org)... 3.73.96.239 +Connecting to book.world.dev.cardano.org (book.world.dev.cardano.org)|3.73.96.239|:443... connected. +HTTP request sent, awaiting response... 200 OK +Length: 2546 (2.5K) [application/json] +Saving to: 'submit-api-config.json' + + 0K .. 100% 164M=0s + +2024-07-13 10:57:44 (164 MB/s) - 'submit-api-config.json' saved [2546/2546] + diff --git a/config/network/sanchonet/cardano-submit-api/submit-api-config.json b/config/network/sanchonet/cardano-submit-api/submit-api-config.json new file mode 100644 index 00000000..a9baf44b --- /dev/null +++ b/config/network/sanchonet/cardano-submit-api/submit-api-config.json @@ -0,0 +1,113 @@ +{ + "EnableLogMetrics": false, + "EnableLogging": true, + "GenesisHash": "785eb88427e136378a15b0a152a8bfbeec7a611529ccda29c43a1e60ffb48eaa", + "PrometheusPort": 8080, + "RequiresNetworkMagic": "RequiresMagic", + "defaultBackends": [ + "KatipBK" + ], + "defaultScribes": [ + [ + "StdoutSK", + "stdout" + ] + ], + "minSeverity": "Info", + "options": { + "cfokey": { + "value": "Release-1.0.0" + }, + "mapBackends": {}, + "mapSeverity": { + "db-sync-node": "Info", + "db-sync-node.Mux": "Error", + "db-sync-node.Subscription": "Error" + }, + "mapSubtrace": { + "#ekgview": { + "contents": [ + [ + { + "contents": "cardano.epoch-validation.benchmark", + "tag": "Contains" + }, + [ + { + "contents": ".monoclock.basic.", + "tag": "Contains" + } + ] + ], + [ + { + "contents": "cardano.epoch-validation.benchmark", + "tag": "Contains" + }, + [ + { + "contents": "diff.RTS.cpuNs.timed.", + "tag": "Contains" + } + ] + ], + [ + { + "contents": "#ekgview.#aggregation.cardano.epoch-validation.benchmark", + "tag": "StartsWith" + }, + [ + { + "contents": "diff.RTS.gcNum.timed.", + "tag": "Contains" + } + ] + ] + ], + "subtrace": "FilterTrace" + }, + "#messagecounters.aggregation": { + "subtrace": "NoTrace" + }, + "#messagecounters.ekgview": { + "subtrace": "NoTrace" + }, + "#messagecounters.katip": { + "subtrace": "NoTrace" + }, + "#messagecounters.monitoring": { + "subtrace": "NoTrace" + }, + "#messagecounters.switchboard": { + "subtrace": "NoTrace" + }, + "benchmark": { + "contents": [ + "GhcRtsStats", + "MonotonicClock" + ], + "subtrace": "ObservableTrace" + }, + "cardano.epoch-validation.utxo-stats": { + "subtrace": "NoTrace" + } + } + }, + "rotation": { + "rpKeepFilesNum": 10, + "rpLogLimitBytes": 5000000, + "rpMaxAgeHours": 24 + }, + "setupBackends": [ + "AggregationBK", + "KatipBK" + ], + "setupScribes": [ + { + "scFormat": "ScText", + "scKind": "StdoutSK", + "scName": "stdout", + "scRotation": null + } + ] +} diff --git a/config/network/sanchonet/genesis/conway.json b/config/network/sanchonet/genesis/conway.json index 87c9bb30..81b2f4b7 100644 --- a/config/network/sanchonet/genesis/conway.json +++ b/config/network/sanchonet/genesis/conway.json @@ -1,38 +1,297 @@ { "poolVotingThresholds": { - "committeeNormal": 0.60, - "committeeNoConfidence": 0.51, + "committeeNormal": 0.65, + "committeeNoConfidence": 0.65, "hardForkInitiation": 0.51, - "motionNoConfidence": 0.60, - "ppSecurityGroup": 0.60 + "motionNoConfidence": 0.6, + "ppSecurityGroup": 0.6 }, "dRepVotingThresholds": { "motionNoConfidence": 0.67, "committeeNormal": 0.67, - "committeeNoConfidence": 0.60, + "committeeNoConfidence": 0.65, "updateToConstitution": 0.75, - "hardForkInitiation": 0.60, + "hardForkInitiation": 0.6, "ppNetworkGroup": 0.67, "ppEconomicGroup": 0.67, "ppTechnicalGroup": 0.67, "ppGovGroup": 0.75, "treasuryWithdrawal": 0.67 }, - "committeeMinSize": 7, - "committeeMaxTermLength": 73, - "govActionLifetime": 6, - "govActionDeposit": 50000000000, + "committeeMinSize": 5, + "committeeMaxTermLength": 146, + "govActionLifetime": 14, + "govActionDeposit": 100000000000, "dRepDeposit": 500000000, "dRepActivity": 20, - "minFeeRefScriptCostPerByte": 44, + "minFeeRefScriptCostPerByte": 15, + "plutusV3CostModel": [ + 100788, + 420, + 1, + 1, + 1000, + 173, + 0, + 1, + 1000, + 59957, + 4, + 1, + 11183, + 32, + 201305, + 8356, + 4, + 16000, + 100, + 16000, + 100, + 16000, + 100, + 16000, + 100, + 16000, + 100, + 16000, + 100, + 100, + 100, + 16000, + 100, + 94375, + 32, + 132994, + 32, + 61462, + 4, + 72010, + 178, + 0, + 1, + 22151, + 32, + 91189, + 769, + 4, + 2, + 85848, + 123203, + 7305, + -900, + 1716, + 549, + 57, + 85848, + 0, + 1, + 1, + 1000, + 42921, + 4, + 2, + 24548, + 29498, + 38, + 1, + 898148, + 27279, + 1, + 51775, + 558, + 1, + 39184, + 1000, + 60594, + 1, + 141895, + 32, + 83150, + 32, + 15299, + 32, + 76049, + 1, + 13169, + 4, + 22100, + 10, + 28999, + 74, + 1, + 28999, + 74, + 1, + 43285, + 552, + 1, + 44749, + 541, + 1, + 33852, + 32, + 68246, + 32, + 72362, + 32, + 7243, + 32, + 7391, + 32, + 11546, + 32, + 85848, + 123203, + 7305, + -900, + 1716, + 549, + 57, + 85848, + 0, + 1, + 90434, + 519, + 0, + 1, + 74433, + 32, + 85848, + 123203, + 7305, + -900, + 1716, + 549, + 57, + 85848, + 0, + 1, + 1, + 85848, + 123203, + 7305, + -900, + 1716, + 549, + 57, + 85848, + 0, + 1, + 955506, + 213312, + 0, + 2, + 270652, + 22588, + 4, + 1457325, + 64566, + 4, + 20467, + 1, + 4, + 0, + 141992, + 32, + 100788, + 420, + 1, + 1, + 81663, + 32, + 59498, + 32, + 20142, + 32, + 24588, + 32, + 20744, + 32, + 25933, + 32, + 24623, + 32, + 43053543, + 10, + 53384111, + 14333, + 10, + 43574283, + 26308, + 10, + 16000, + 100, + 16000, + 100, + 962335, + 18, + 2780678, + 6, + 442008, + 1, + 52538055, + 3756, + 18, + 267929, + 18, + 76433006, + 8868, + 18, + 52948122, + 18, + 1995836, + 36, + 3227919, + 12, + 901022, + 1, + 166917843, + 4307, + 36, + 284546, + 36, + 158221314, + 26549, + 36, + 74698472, + 36, + 333849714, + 1, + 254006273, + 72, + 2174038, + 72, + 2261318, + 64571, + 4, + 207616, + 8310, + 4, + 1293828, + 28716, + 63, + 0, + 1, + 1006041, + 43623, + 251, + 0, + 1 + ], "constitution": { "anchor": { - "url": "", - "dataHash": "0000000000000000000000000000000000000000000000000000000000000000" - } + "url": "ipfs://QmQq5hWDNzvDR1ForEktAHrdCQmfSL2u5yctNpzDwoSBu4", + "dataHash": "23b43bebac48a4acc39e578715aa06635d6d900fa3ea7441dfffd6e43b914f7b" + }, + "script": "edcd84c10e36ae810dc50847477083069db796219b39ccde790484e0" }, "committee": { "members": { + "scriptHash-7ceede7d6a89e006408e6b7c6acb3dd094b3f6817e43b4a36d01535b": 500, + "scriptHash-6095e643ea6f1cccb6e463ec34349026b3a48621aac5d512655ab1bf": 500, + "scriptHash-27999ed757d6dac217471ae61d69b1b067b8b240d9e3ff36eb66b5d0": 500, + "scriptHash-87f867a31c0f81360d4d7dcddb6b025ba8383db9bf77a2af7797799d": 500, + "scriptHash-a19a7ba1caede8f3ab3e5e2a928b3798d7d011af18fbd577f7aeb0ec": 500 }, "threshold": 0.67 } diff --git a/test/postmanTests/Rosetta-TS-Mainnet.postman_environment.json b/test/postmanTests/Rosetta-TS-Mainnet.postman_environment.json index 97bebb28..5e1fe53e 100644 --- a/test/postmanTests/Rosetta-TS-Mainnet.postman_environment.json +++ b/test/postmanTests/Rosetta-TS-Mainnet.postman_environment.json @@ -121,6 +121,6 @@ } ], "_postman_variable_scope": "environment", - "_postman_exported_at": "2024-03-13T10:07:03.676Z", - "_postman_exported_using": "Postman/10.24.1" + "_postman_exported_at": "2024-07-29T06:57:20.637Z", + "_postman_exported_using": "Postman/11.3.1" } \ No newline at end of file diff --git a/test/postmanTests/rosetta-ts.postman_collection.json b/test/postmanTests/rosetta-ts.postman_collection.json index 5b6ec042..ae035525 100644 --- a/test/postmanTests/rosetta-ts.postman_collection.json +++ b/test/postmanTests/rosetta-ts.postman_collection.json @@ -1,7 +1,7 @@ { "info": { - "_postman_id": "43a01e72-964c-4176-abae-1f0e5d965ca2", - "name": "rosetta-ts", + "_postman_id": "6db35c15-7a0a-42a6-a88d-c10c3c970750", + "name": "rosetta-java", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "_exporter_id": "32834089" }, @@ -34,7 +34,8 @@ "", "" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -142,7 +143,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\n \"network_identifier\": {\n \"blockchain\": \"cardano\",\n \"network\": \"{{networkId}}\"\n },\n \"options\": {\n \"transaction_size\": 40.0,\n \"relative_ttl\": 10.0\n }\n}", + "raw": "{\n \"network_identifier\": {\n \"blockchain\": \"cardano\",\n \"network\": \"{{networkId}}\"\n },\n \"options\": {\n \"transaction_size\": 40,\n \"relative_ttl\": 10\n }\n}", "options": { "raw": { "language": "json" @@ -328,6 +329,286 @@ } }, "response": [] + }, + { + "name": "payload - simple", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test('Status code is 200', function () {", + " pm.response.to.have.status(200);", + "})", + "console.log(pm.response.json())", + "", + "pm.test('Contains Json Body', function () {", + " pm.response.to.have.jsonBody('payloads');", + " pm.response.to.have.jsonBody('unsigned_transaction');", + "})", + "", + "pm.test(\"Correct Values\", function () {", + " ", + " var responseData = pm.response.json();", + " pm.expect(responseData).to.be.an('object');", + " pm.expect(responseData.payloads.length).to.equal(2)", + " pm.expect(responseData.payloads[0].hex_bytes).to.equal('159434d5bab91b4a3b041ee49540d01bcaeef35481bd386f9feb17acfc3aa0af')", + "});", + "", + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"network_identifier\": {\n \"blockchain\": \"cardano\",\n \"network\": \"{{networkId}}\"\n },\n \"operations\": [\n {\n \"operation_identifier\": {\n \"index\": 0,\n \"network_index\": 0\n },\n \"type\": \"input\",\n \"status\": \"success\",\n \"account\": {\n \"address\": \"addr1vxa5pudxg77g3sdaddecmw8tvc6hmynywn49lltt4fmvn7cpnkcpx\"\n },\n \"amount\": {\n \"value\": \"-90000\",\n \"currency\": {\n \"symbol\": \"ADA\",\n \"decimals\": 6\n }\n },\n \"coin_change\": {\n \"coin_identifier\": {\n \"identifier\": \"2f23fd8cca835af21f3ac375bac601f97ead75f2e79143bdf71fe2c4be043e8f:1\"\n },\n \"coin_action\": \"coin_spent\"\n }\n },\n {\n \"operation_identifier\": {\n \"index\": 1\n },\n \"related_operations\": [\n {\n \"index\": 0\n }\n ],\n \"type\": \"output\",\n \"status\": \"success\",\n \"account\": {\n \"address\": \"addr1vxa5pudxg77g3sdaddecmw8tvc6hmynywn49lltt4fmvn7cpnkcpx\"\n },\n \"amount\": {\n \"value\": \"10000\",\n \"currency\": {\n \"symbol\": \"ADA\",\n \"decimals\": 6\n }\n }\n },\n {\n \"operation_identifier\": {\n \"index\": 2\n },\n \"related_operations\": [\n {\n \"index\": 0\n }\n ],\n \"type\": \"output\",\n \"status\": \"success\",\n \"account\": {\n \"address\": \"addr1vxa5pudxg77g3sdaddecmw8tvc6hmynywn49lltt4fmvn7cpnkcpx\"\n },\n \"amount\": {\n \"value\": \"40000\",\n \"currency\": {\n \"symbol\": \"ADA\",\n \"decimals\": 6\n }\n }\n },\n {\n \"operation_identifier\": {\n \"index\": 3\n },\n \"type\": \"stakeKeyDeregistration\",\n \"status\": \"success\",\n \"account\": {\n \"address\": \"stake1uxa5pudxg77g3sdaddecmw8tvc6hmynywn49lltt4fmvn7caek7a5\"\n },\n \"metadata\": {\n \"staking_credential\": {\n \"hex_bytes\": \"1B400D60AAF34EAF6DCBAB9BBA46001A23497886CF11066F7846933D30E5AD3F\",\n \"curve_type\": \"edwards25519\"\n }\n }\n }\n ],\n \"metadata\": {\n \"ttl\": \"0\",\n \"protocol_parameters\": {\n \"coinsPerUtxoSize\": \"0\",\n \"maxTxSize\": 16384,\n \"maxValSize\": 0,\n \"keyDeposit\": \"2000000\",\n \"maxCollateralInputs\": 0,\n \"minFeeCoefficient\": 44,\n \"minFeeConstant\": 155381,\n \"minPoolCost\": \"340000000\",\n \"poolDeposit\": \"500000000\",\n \"protocol\": 4\n }\n }\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{URL}}/construction/payloads", + "host": [ + "{{URL}}" + ], + "path": [ + "construction", + "payloads" + ] + } + }, + "response": [] + }, + { + "name": "payload - multiple assets", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test('Status code is 200', function () {", + " pm.response.to.have.status(200);", + "})", + "console.log(pm.response.json())", + "", + "pm.test('Contains Json Body', function () {", + " pm.response.to.have.jsonBody('payloads');", + " pm.response.to.have.jsonBody('unsigned_transaction');", + "})", + "", + "pm.test(\"Correct Values\", function () {", + " ", + " var responseData = pm.response.json();", + " pm.expect(responseData).to.be.an('object');", + " pm.expect(responseData.payloads.length).to.equal(1)", + " pm.expect(responseData.payloads[0].account_identifier.address).to.equal('addr1vxa5pudxg77g3sdaddecmw8tvc6hmynywn49lltt4fmvn7cpnkcpx')", + "});", + "", + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"network_identifier\": {\n \"blockchain\": \"cardano\",\n \"network\": \"{{networkId}}\"\n },\n \"operations\": [\n {\n \"operation_identifier\": {\n \"index\": 0,\n \"network_index\": 0\n },\n \"type\": \"input\",\n \"status\": \"success\",\n \"account\": {\n \"address\": \"addr1vxa5pudxg77g3sdaddecmw8tvc6hmynywn49lltt4fmvn7cpnkcpx\"\n },\n \"amount\": {\n \"value\": \"-9000000\",\n \"currency\": {\n \"symbol\": \"ADA\",\n \"decimals\": 6\n }\n },\n \"coin_change\": {\n \"coin_identifier\": {\n \"identifier\": \"2f23fd8cca835af21f3ac375bac601f97ead75f2e79143bdf71fe2c4be043e8f:1\"\n },\n \"coin_action\": \"coin_spent\"\n }\n },\n {\n \"operation_identifier\": {\n \"index\": 1\n },\n \"related_operations\": [\n {\n \"index\": 0\n }\n ],\n \"type\": \"output\",\n \"status\": \"success\",\n \"account\": {\n \"address\": \"addr1vxa5pudxg77g3sdaddecmw8tvc6hmynywn49lltt4fmvn7cpnkcpx\"\n },\n \"amount\": {\n \"value\": \"10000\",\n \"currency\": {\n \"symbol\": \"ADA\",\n \"decimals\": 6\n }\n }\n },\n {\n \"operation_identifier\": {\n \"index\": 2\n },\n \"related_operations\": [\n {\n \"index\": 0\n }\n ],\n \"type\": \"output\",\n \"status\": \"success\",\n \"account\": {\n \"address\": \"addr1vxa5pudxg77g3sdaddecmw8tvc6hmynywn49lltt4fmvn7cpnkcpx\"\n },\n \"amount\": {\n \"value\": \"40000\",\n \"currency\": {\n \"symbol\": \"ADA\",\n \"decimals\": 6\n }\n }\n },\n {\n \"operation_identifier\": {\n \"index\": 3\n },\n \"type\": \"stakeKeyRegistration\",\n \"status\": \"success\",\n \"account\": {\n \"address\": \"stake1uxa5pudxg77g3sdaddecmw8tvc6hmynywn49lltt4fmvn7caek7a5\"\n },\n \"metadata\": {\n \"staking_credential\": {\n \"hex_bytes\": \"1B400D60AAF34EAF6DCBAB9BBA46001A23497886CF11066F7846933D30E5AD3F\",\n \"curve_type\": \"edwards25519\"\n },\n \"depositAmount\": {\n \"currency\": {\n \"decimals\": 6,\n \"symbol\": \"ADA\"\n },\n \"value\": \"2000000\"\n }\n }\n }\n ],\n \"metadata\": {\n \"ttl\": \"1000\",\n \"protocol_parameters\": {\n \"coinsPerUtxoSize\": \"0\",\n \"maxTxSize\": 16384,\n \"maxValSize\": 0,\n \"keyDeposit\": \"2000000\",\n \"maxCollateralInputs\": 0,\n \"minFeeCoefficient\": 44,\n \"minFeeConstant\": 155381,\n \"minPoolCost\": \"340000000\",\n \"poolDeposit\": \"500000000\",\n \"protocol\": 4\n }\n }\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{URL}}/construction/payloads", + "host": [ + "{{URL}}" + ], + "path": [ + "construction", + "payloads" + ] + } + }, + "response": [] + }, + { + "name": "combine", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test('Status code is 200', function () {", + " pm.response.to.have.status(200);", + "})", + "console.log(pm.response.json())", + "", + "pm.test('Contains Json Body', function () {", + " pm.response.to.have.jsonBody('signed_transaction');", + "})" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"network_identifier\": {\n \"blockchain\": \"cardano\",\n \"network\": \"{{networkId}}\"\n },\n \"unsigned_transaction\": \"8278ee61343030383138323538323032663233666438636361383335616632316633616333373562616336303166393765616437356632653739313433626466373166653263346265303433653866303130313832383235383164363162623430663161363437626338386331626436623733386462386562363633353764393236343734656135666664366261613736633966623139323731303832353831643631626234306631613634376263383863316264366237333864623865623636333537643932363437346561356666643662616137366339666231393963343030323139396334303033313930336538a16a6f7065726174696f6e7381a6746f7065726174696f6e5f6964656e746966696572a265696e646578006d6e6574776f726b5f696e64657800647479706565696e707574667374617475736773756363657373676163636f756e74a16761646472657373783b416532746450775550455a4336574a66565178544e4e3274577734736b47724e367a5256756b76784a6d544679316e596b5647514275555255334c66616d6f756e74a26576616c7565662d39303030306863757272656e6379a26673796d626f6c6341444168646563696d616c73066b636f696e5f6368616e6765a26f636f696e5f6964656e746966696572a16a6964656e7469666965727842326632336664386363613833356166323166336163333735626163363031663937656164373566326537393134336264663731666532633462653034336538663a316b636f696e5f616374696f6e6a636f696e5f7370656e74\",\n \"signatures\": [\n {\n \"signing_payload\": {\n \"account_identifier\": {\n \"address\": \"Ae2tdPwUPEZC6WJfVQxTNN2tWw4skGrN6zRVukvxJmTFy1nYkVGQBuURU3L\",\n \"metadata\": {\n \"chain_code\": \"dd75e154da417becec55cdd249327454138f082110297d5e87ab25e15fad150f\"\n }\n },\n \"hex_bytes\": \"4691ebf945f37962153f74e198ba2553177e6dc8e464303e37589077f634397c\",\n \"signature_type\": \"ed25519\"\n },\n \"public_key\": {\n \"hex_bytes\": \"73fea80d424276ad0978d4fe5310e8bc2d485f5f6bb3bf87612989f112ad5a7d\",\n \"curve_type\": \"edwards25519\"\n },\n \"signature_type\": \"ed25519\",\n \"hex_bytes\": \"dc2a1948bfa9411b37e8d280b04c48a85af5588bcf509c0fca798f7b462ebca92d6733dacc1f1c6c1463623c085401be07ea422ad4f1c543375e7d3d2393aa0b\"\n }\n ]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{URL}}/construction/combine", + "host": [ + "{{URL}}" + ], + "path": [ + "construction", + "combine" + ] + } + }, + "response": [] + }, + { + "name": "parse - Deposit", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"network_identifier\": {\n \"blockchain\": \"cardano\",\n \"network\": \"{{networkId}}\"\n },\n \"signed\": false,\n \"transaction\": \"8279013a6135303038313832353832303266323366643863636138333561663231663361633337356261633630316639376561643735663265373931343362646637316665326334626530343365386630313031383238323538316436316262343066316136343762633838633162643662373338646238656236363335376439323634373465613566666436626161373663396662313932373130383235383164363162623430663161363437626338386331626436623733386462386562363633353764393236343734656135666664366261613736633966623139396334303032316130303661306337303033313930336538303438313832303038323030353831636262343066316136343762633838633162643662373338646238656236363335376439323634373465613566666436626161373663396662a16a6f7065726174696f6e7382a6746f7065726174696f6e5f6964656e746966696572a265696e646578006d6e6574776f726b5f696e64657800647479706565696e707574667374617475736773756363657373676163636f756e74a16761646472657373783a616464723176786135707564786737376733736461646465636d773874766336686d796e79776e34396c6c747434666d766e3763706e6b63707866616d6f756e74a26576616c7565682d393030303030306863757272656e6379a26673796d626f6c6341444168646563696d616c73066b636f696e5f6368616e6765a26f636f696e5f6964656e746966696572a16a6964656e7469666965727842326632336664386363613833356166323166336163333735626163363031663937656164373566326537393134336264663731666532633462653034336538663a316b636f696e5f616374696f6e6a636f696e5f7370656e74a5746f7065726174696f6e5f6964656e746966696572a165696e646578036474797065747374616b654b6579526567697374726174696f6e667374617475736773756363657373676163636f756e74a16761646472657373783b7374616b653175786135707564786737376733736461646465636d773874766336686d796e79776e34396c6c747434666d766e376361656b376135686d65746164617461a2727374616b696e675f63726564656e7469616ca2696865785f62797465737840314234303044363041414633344541463644434241423942424134363030314132333439373838364346313130363646373834363933334433304535414433466a63757276655f747970656c6564776172647332353531396d6465706f736974416d6f756e74a26863757272656e6379a26673796d626f6c6341444168646563696d616c73066576616c75656732303030303030\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{URL}}/construction/parse", + "host": [ + "{{URL}}" + ], + "path": [ + "construction", + "parse" + ] + } + }, + "response": [] + }, + { + "name": "parse - refund", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"network_identifier\": {\n \"blockchain\": \"cardano\",\n \"network\": \"{{networkId}}\"\n },\n \"signed\": false,\n \"transaction\": \"82790132613530303831383235383230326632336664386363613833356166323166336163333735626163363031663937656164373566326537393134336264663731666532633462653034336538663031303138323832353831643631626234306631613634376263383863316264366237333864623865623636333537643932363437346561356666643662616137366339666230313832353831643631626234306631613634376263383863316264366237333864623865623636333537643932363437346561356666643662616137366339666230343032316130353762636566623033313930336538303438313832303138323030353831636262343066316136343762633838633162643662373338646238656236363335376439323634373465613566666436626161373663396662a16a6f7065726174696f6e7382a6746f7065726174696f6e5f6964656e746966696572a265696e646578006d6e6574776f726b5f696e64657800647479706565696e707574667374617475736773756363657373676163636f756e74a16761646472657373783a616464723176786135707564786737376733736461646465636d773874766336686d796e79776e34396c6c747434666d766e3763706e6b63707866616d6f756e74a26576616c7565692d39303030303030306863757272656e6379a26673796d626f6c6341444168646563696d616c73066b636f696e5f6368616e6765a26f636f696e5f6964656e746966696572a16a6964656e7469666965727842326632336664386363613833356166323166336163333735626163363031663937656164373566326537393134336264663731666532633462653034336538663a316b636f696e5f616374696f6e6a636f696e5f7370656e74a5746f7065726174696f6e5f6964656e746966696572a165696e646578036474797065767374616b654b65794465726567697374726174696f6e667374617475736773756363657373676163636f756e74a16761646472657373783b7374616b653175387a666e6b687034673676686e6565746d763271656e3766356e64726b6c716a7138653973326e636b3968333063667a36716d70686d65746164617461a2727374616b696e675f63726564656e7469616ca2696865785f62797465737840314234303044363041414633344541463644434241423942424134363030314132333439373838364346313130363646373834363933334433304535414433466a63757276655f747970656c6564776172647332353531396c726566756e64416d6f756e74a26576616c7565682d323030303030306863757272656e6379a26673796d626f6c6341444168646563696d616c7306\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{URL}}/construction/parse", + "host": [ + "{{URL}}" + ], + "path": [ + "construction", + "parse" + ] + } + }, + "response": [] + }, + { + "name": "parse - Signed Multiasset", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"network_identifier\": {\n \"blockchain\": \"cardano\",\n \"network\": \"{{networkId}}\"\n },\n \"signed\": true,\n \"transaction\": \"8279025a3833613430303831383235383230326632336664386363613833356166323166336163333735626163363031663937656164373566326537393134336264663731666532633462653034336538663031303138323832353831643631626234306631613634376263383863316264366237333864623865623636333537643932363437346561356666643662616137366339666238323139323731306131353831636230643037643435666539353134663830323133663430323065356136313234313435386265363236383431636465373137636233386137613334393437373536393634366634333666363936653139303930363530346137353631366534333732373537613534366636623635366536313761366631393161306134373665373537343633366636393665313932373130383235383164363162623430663161363437626338386331626436623733386462386562363633353764393236343734656135666664366261613736633966623139396334303032313939633430303330306131303038313832353832303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303035383430303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303066356636a16a6f7065726174696f6e7381a7746f7065726174696f6e5f6964656e746966696572a265696e646578006d6e6574776f726b5f696e64657800647479706565696e707574667374617475736773756363657373676163636f756e74a16761646472657373783a616464723176786135707564786737376733736461646465636d773874766336686d796e79776e34396c6c747434666d766e3763706e6b63707866616d6f756e74a26576616c7565662d39303030306863757272656e6379a26673796d626f6c6341444168646563696d616c73066b636f696e5f6368616e6765a26f636f696e5f6964656e746966696572a16a6964656e7469666965727842326632336664386363613833356166323166336163333735626163363031663937656164373566326537393134336264663731666532633462653034336538663a316b636f696e5f616374696f6e6a636f696e5f7370656e74686d65746164617461a16b746f6b656e42756e646c6581a268706f6c69637949647838623064303764343566653935313466383032313366343032306535613631323431343538626536323638343163646537313763623338613766746f6b656e7383a26576616c756564323331306863757272656e6379a26673796d626f6c7234373735363936343666343336663639366568646563696d616c7300a26576616c756564363636366863757272656e6379a26673796d626f6c7820346137353631366534333732373537613534366636623635366536313761366668646563696d616c7300a26576616c75656531303030306863757272656e6379a26673796d626f6c6e366537353734363336663639366568646563696d616c7300\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{URL}}/construction/parse", + "host": [ + "{{URL}}" + ], + "path": [ + "construction", + "parse" + ] + } + }, + "response": [] + }, + { + "name": "submit", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"network_identifier\": {\n \"blockchain\": \"cardano\",\n \"network\": \"{{networkId}}\"\n },\n \"signed_transaction\": \"84a3008182582047f2a85b713bcf587bd46896da628fd80c268665d9b86050a6a8cf9030c5b8d3010182825839006971735734b6c29b6ab065142aaf89eb524d1ea6a293bb43b672a1bae8f8fdcc485472d5a3a6c2416bfc4bc0fa81dbcc9bc4317a4a68e1631a004c4b4082583900a8b3b814a65e5e43777f89b30c87eac4e3396a9b9c24cd08d66094998e5053d0eb80dda519e85bf8e08144bedb5485f8808502aa538447731a040c7d64021a0002a121a10081825820d498c3d54941e01cbcfb565371a844f1342edee82795ef5297de45be3acb19d85840dced88adf01fa809af2db1c76c5273394f1bca48c0c6709800b469231608713916d2292a644a503c275492ef68aa29ec8c5543034897ded231c461eb34d9180cf5f6\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{URL}}/construction/submit", + "host": [ + "{{URL}}" + ], + "path": [ + "construction", + "submit" + ] + } + }, + "response": [] } ] }, @@ -416,7 +697,8 @@ "});", "" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -517,7 +799,11 @@ " var responseBody = pm.response.json();", " pm.expect(responseBody).to.be.an('object');", " pm.expect(responseBody.block.parent_block_identifier.index).to.be.a('number').below(responseBody.block.block_identifier.index);", - "});" + "});", + "", + "//var jsonData = pm.response.json();", + "//postman.setEnvironmentVariable(\"transactionHash\", jsonData.block.transactions[0].transaction_identifier.hash)", + "//postman.setEnvironmentVariable(\"address\", jsonData.block.transactions[0].operations[1].account.address)" ], "type": "text/javascript", "packages": {} @@ -529,7 +815,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\n \"network_identifier\": {\n \"blockchain\": \"cardano\",\n \"network\": \"{{networkId}}\"\n },\n \"block_identifier\": {\n \"index\": {{blockIndex}},\n \"hash\": \"{{blockHash}}\"\n }\n}", + "raw": "{\n \"network_identifier\": {\n \"blockchain\": \"cardano\",\n \"network\": \"{{networkId}}\"\n },\n \"block_identifier\": {\n \"index\": \"{{blockIndex}}\"\n }\n}", "options": { "raw": { "language": "json" @@ -547,6 +833,184 @@ } }, "response": [] + }, + { + "name": "/account/balance", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "console.log(pm.response.json())", + "pm.test(\"Test account balance\", function () {", + " const accountBalance = pm.environment.get('accountBalance');", + " var responseBody = pm.response.json();", + " pm.expect(responseBody).to.be.an('object');", + "})" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"network_identifier\": {\n \"blockchain\": \"cardano\",\n \"network\": \"{{networkId}}\"\n },\n \"account_identifier\": {\n \"address\": \"{{TestAccountBaseAddress}}\"\n }\n }", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{URL}}/account/balance", + "host": [ + "{{URL}}" + ], + "path": [ + "account", + "balance" + ] + } + }, + "response": [] + }, + { + "name": "/account/coins", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "console.log(pm.response.json());", + "pm.test(\"Body has not empty address\", function () {", + " const current_block_index = Number.parseInt(pm.environment.get('blockIndex'));", + " const current_block_hash = pm.environment.get('blockHash');", + " pm.expect(pm.response.json().block_identifier.index).to.not.eq(null)", + " pm.expect(pm.response.json().block_identifier.hash).to.not.eq(null)", + " pm.expect(pm.response.json().block_identifier.hash).to.not.eq(\"\")", + "});", + "", + "const coin_with_metadata_index = pm.response.json().coins.findIndex(el => el.metadata != null);", + "var coin_identifier;", + "", + "if (coin_with_metadata_index !== -1) {", + " coin_identifier = pm.response.json().coins[coin_with_metadata_index].coin_identifier.identifier;", + "} else {", + " console.warn(\"No UTxO with metadata was found\")", + "};", + "", + "pm.test(\"UTxO has token policyId(s)\", function () {", + " if (coin_identifier) {", + " pm.expect(pm.response.json().coins[coin_with_metadata_index].metadata[coin_identifier]).length.to.be.greaterThan(0)", + " }", + "});", + "", + "pm.test(\"Policy has 1 token\", function () {", + " if (coin_identifier) {", + " pm.expect(pm.response.json().coins[coin_with_metadata_index].metadata[coin_identifier][0].tokens).to.have.lengthOf(1)", + " }", + "});", + "", + "pm.test(\"UTxO has Testcoin token(s)\", function () {", + " if (coin_identifier) {", + " const value = Number(pm.response.json().coins[coin_with_metadata_index].metadata[coin_identifier][0].tokens[0].value)", + " pm.expect(value).to.be.greaterThan(0)", + " }", + "});", + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"network_identifier\": {\n \"blockchain\": \"cardano\",\n \"network\": \"{{networkId}}\"\n },\n \"account_identifier\": {\n \"address\": \"{{TestAccountBaseAddress}}\"\n },\n \"include_mempool\": false\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{URL}}/account/coins", + "host": [ + "{{URL}}" + ], + "path": [ + "account", + "coins" + ] + } + }, + "response": [] + }, + { + "name": "/mempool/transaction", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"network_identifier\": {\n \"blockchain\": \"cardano\",\n \"network\": \"{{networkId}}\"\n },\n \"transaction_identifier\": {\n \"hash\": {{mempoolTransaction}}\n },\n \"metadata\": {}\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{URL}}/mempool/transaction", + "host": [ + "{{URL}}" + ], + "path": [ + "mempool", + "transaction" + ] + } + }, + "response": [] + }, + { + "name": "/mempool", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"network_identifier\": {\n \"blockchain\": \"cardano\",\n \"network\": \"{{networkId}}\"\n },\n \"metadata\": { }\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{URL}}/mempool", + "host": [ + "{{URL}}" + ], + "path": [ + "mempool" + ] + } + }, + "response": [] } ] }