├── .gitattributes ├── .github ├── ISSUE_TEMPLATE │ └── bug_report.md ├── PULL_REQUEST_TEMPLATE.md ├── bin │ └── check-git-dependencies ├── master-check-exceptions.list └── workflows │ ├── check-fourmolu.yml │ ├── check-git-dependencies.yml │ ├── haskell.yml │ ├── release-binaries.yml │ └── release-ghcr.yml ├── .gitignore ├── .hlint.yaml ├── CHANGELOG.md ├── CODE-OF-CONDUCT.md ├── CODEOWNERS ├── CONTRIBUTING.rst ├── LICENSE ├── NOTICE ├── Readme.md ├── SECURITY.md ├── bors.toml ├── cabal.project ├── cardano-chain-gen ├── CHANGELOG.md ├── LICENSE ├── NOTICE ├── Setup.hs ├── cardano-chain-gen.cabal ├── gen │ └── .gitkeep ├── hie.yaml ├── schema ├── src │ └── Cardano │ │ └── Mock │ │ ├── Chain.hs │ │ ├── ChainDB.hs │ │ ├── ChainSync │ │ ├── Server.hs │ │ └── State.hs │ │ ├── Forging │ │ ├── Crypto.hs │ │ ├── Interpreter.hs │ │ ├── Tx │ │ │ ├── Alonzo.hs │ │ │ ├── Alonzo │ │ │ │ ├── Scenarios.hs │ │ │ │ └── ScriptsExamples.hs │ │ │ ├── Babbage.hs │ │ │ ├── Babbage │ │ │ │ └── Scenarios.hs │ │ │ ├── Conway.hs │ │ │ ├── Conway │ │ │ │ ├── Scenarios.hs │ │ │ │ └── ScriptsExamples.hs │ │ │ ├── Generic.hs │ │ │ └── Shelley.hs │ │ └── Types.hs │ │ └── Query.hs └── test │ ├── Main.hs │ ├── Test │ └── Cardano │ │ └── Db │ │ └── Mock │ │ ├── Config.hs │ │ ├── Examples.hs │ │ ├── Property │ │ └── Property.hs │ │ ├── UnifiedApi.hs │ │ ├── Unit │ │ ├── Alonzo.hs │ │ ├── Alonzo │ │ │ ├── Config.hs │ │ │ ├── Simple.hs │ │ │ └── Tx.hs │ │ ├── Babbage.hs │ │ ├── Babbage │ │ │ ├── Reward.hs │ │ │ ├── Simple.hs │ │ │ └── Tx.hs │ │ ├── Conway.hs │ │ └── Conway │ │ │ ├── CommandLineArg │ │ │ ├── ConfigFile.hs │ │ │ └── EpochDisabled.hs │ │ │ ├── Config │ │ │ ├── JsonbInSchema.hs │ │ │ ├── MigrateConsumedPruneTxOut.hs │ │ │ └── Parse.hs │ │ │ ├── Governance.hs │ │ │ ├── InlineAndReference.hs │ │ │ ├── Other.hs │ │ │ ├── Plutus.hs │ │ │ ├── Reward.hs │ │ │ ├── Rollback.hs │ │ │ ├── Simple.hs │ │ │ ├── Stake.hs │ │ │ └── Tx.hs │ │ └── Validate.hs │ └── testfiles │ ├── config-alonzo-insert-options │ ├── genesis.alonzo.json │ ├── genesis.byron.json │ ├── genesis.json │ ├── genesis.spec.json │ ├── pools │ │ └── bulk1.creds │ ├── test-config.json │ └── test-db-sync-config.json │ ├── config-alonzo │ ├── genesis.alonzo.json │ ├── genesis.byron.json │ ├── genesis.json │ ├── genesis.spec.json │ ├── pools │ │ └── bulk1.creds │ ├── test-config.json │ └── test-db-sync-config.json │ ├── config-babbage-insert-options │ ├── genesis.alonzo.json │ ├── genesis.byron.json │ ├── genesis.conway.json │ ├── genesis.json │ ├── genesis.spec.json │ ├── pools │ │ └── bulk1.creds │ ├── test-config.json │ └── test-db-sync-config.json │ ├── config-conway-hf-epoch1 │ ├── genesis.alonzo.json │ ├── genesis.byron.json │ ├── genesis.conway.json │ ├── genesis.json │ ├── genesis.spec.json │ ├── pools │ │ └── bulk1.creds │ ├── test-config.json │ └── test-db-sync-config.json │ ├── config-conway-insert-options │ ├── genesis.alonzo.json │ ├── genesis.byron.json │ ├── genesis.conway.json │ ├── genesis.json │ ├── genesis.spec.json │ ├── pools │ │ └── bulk1.creds │ ├── test-config.json │ └── test-db-sync-config.json │ ├── config-conway-missing-genesis │ ├── genesis.alonzo.json │ ├── genesis.byron.json │ ├── genesis.json │ ├── genesis.spec.json │ ├── pools │ │ └── bulk1.creds │ ├── test-config.json │ └── test-db-sync-config.json │ ├── config-conway-no-pools │ ├── genesis.alonzo.json │ ├── genesis.byron.json │ ├── genesis.conway.json │ ├── genesis.json │ ├── genesis.spec.json │ ├── pools │ │ └── bulk1.creds │ ├── test-config.json │ └── test-db-sync-config.json │ ├── config-conway-no-stakes │ ├── genesis.alonzo.json │ ├── genesis.byron.json │ ├── genesis.conway.json │ ├── genesis.json │ ├── genesis.spec.json │ ├── pools │ │ └── bulk1.creds │ ├── test-config.json │ └── test-db-sync-config.json │ ├── config-conway │ ├── genesis.alonzo.json │ ├── genesis.byron.json │ ├── genesis.conway.json │ ├── genesis.json │ ├── genesis.spec.json │ ├── pools │ │ └── bulk1.creds │ ├── test-config.json │ └── test-db-sync-config.json │ ├── config-hf-epoch1 │ ├── genesis.alonzo.json │ ├── genesis.byron.json │ ├── genesis.json │ ├── genesis.spec.json │ ├── pools │ │ └── bulk1.creds │ ├── test-config.json │ └── test-db-sync-config.json │ ├── config-shelley │ ├── genesis.alonzo.json │ ├── genesis.byron.json │ ├── genesis.json │ ├── pools │ │ └── bulk1.creds │ ├── test-config.json │ └── test-db-sync-config.json │ ├── config │ ├── genesis.alonzo.json │ ├── genesis.byron.json │ ├── genesis.conway.json │ ├── genesis.json │ ├── genesis.spec.json │ ├── pools │ │ └── bulk1.creds │ ├── test-config.json │ └── test-db-sync-config.json │ ├── config2 │ ├── genesis.alonzo.json │ ├── genesis.byron.json │ ├── genesis.json │ ├── genesis.spec.json │ ├── pools │ │ └── bulk1.creds │ ├── test-config.json │ └── test-db-sync-config.json │ ├── config3 │ ├── genesis.alonzo.json │ ├── genesis.byron.json │ ├── genesis.json │ ├── genesis.spec.json │ ├── pools │ │ └── bulk1.creds │ ├── test-config.json │ └── test-db-sync-config.json │ ├── fingerprint │ ├── addSimple │ ├── addSimple-alonzo │ ├── addSimpleChain │ ├── addSimpleChain-alonzo │ ├── addSimpleTx │ ├── addSimpleTx-alonzo │ ├── addSimpleTxShelley │ ├── bigChain │ ├── configJsonbInSchemaShouldRemoveThenAdd │ ├── configNoPools │ ├── configNoPruneSameBlock │ ├── configNoStakes │ ├── configPrune │ ├── configPruneAndRollBack │ ├── configPruneCorrectAmount │ ├── configPruneOnFullRollback │ ├── configPruneSameBlock │ ├── configPruneSimpleRollback │ ├── consumeSameBlock │ ├── consumeSameBlock-alonzo │ ├── conwayAddSimple │ ├── conwayAddSimpleChain │ ├── conwayAddSimpleTx │ ├── conwayAddSimpleTxShelley │ ├── conwayBigChain │ ├── conwayCLACheckEpochDisabledArg │ ├── conwayChainedNewCommittee │ ├── conwayConfigLedgerDisabled │ ├── conwayConfigMetadataDisabled │ ├── conwayConfigMetadataEnabled │ ├── conwayConfigMetadataKeep │ ├── conwayConfigMultiAssetsDisabled │ ├── conwayConfigNoPools │ ├── conwayConfigNoPruneAndRollBack │ ├── conwayConfigNoPruneSameBlock │ ├── conwayConfigNoStakes │ ├── conwayConfigPlutusDisbaled │ ├── conwayConfigPrune │ ├── conwayConfigPruneAndRollBack │ ├── conwayConfigPruneCorrectAmount │ ├── conwayConfigPruneOnFullRollback │ ├── conwayConfigPruneSameBlock │ ├── conwayConfigPruneSimpleRollback │ ├── conwayConfigRemoveJsonbFromSchemaDisabled │ ├── conwayConfigRemoveJsonbFromSchemaEnabled │ ├── conwayConfigShelleyDisabled │ ├── conwayConfigShelleyEnabled │ ├── conwayConsumeSameBlock │ ├── conwayDelegations2000 │ ├── conwayDelegations2001 │ ├── conwayDelegations8000 │ ├── conwayDelegationsMany │ ├── conwayDelegationsManyNotDense │ ├── conwayDeregistrationScriptTx │ ├── conwayDeregistrationsScriptTx' │ ├── conwayDeregistrationsScriptTx'' │ ├── conwayDeregistrationsScriptTxs │ ├── conwayDoubleRollback │ ├── conwayDrepDistr │ ├── conwayFailedScript │ ├── conwayFailedScriptFees │ ├── conwayFailedScriptSameBlock │ ├── conwayForgeBlocks │ ├── conwayForkFixedEpoch │ ├── conwayForkParam │ ├── conwayGovParameterChange │ ├── conwayGovernanceHardFork │ ├── conwayGovernanceInfo │ ├── conwayInlineDatumCBOR │ ├── conwayLazyRollback │ ├── conwayLazyRollbackRestart │ ├── conwayMintMultiAsset │ ├── conwayMintMultiAssets │ ├── conwayMultipleScripts │ ├── conwayMultipleScriptsFailed │ ├── conwayMultipleScriptsFailedSameBlock │ ├── conwayMultipleScriptsRollback │ ├── conwayMultipleScriptsSameBlock │ ├── conwayNewCommittee │ ├── conwayNodeRestart │ ├── conwayNodeRestartBoundary │ ├── conwayNonexistentPoolQuery │ ├── conwayPoolDeReg │ ├── conwayPoolDeRegMany │ ├── conwayPoolDelist │ ├── conwayPoolReg │ ├── conwayRefScript │ ├── conwayReferenceDelegation │ ├── conwayReferenceInputUnspend │ ├── conwayReferenceMintingScript │ ├── conwayRegistrationScriptTx │ ├── conwayRegistrationTx │ ├── conwayRegistrationsSameBlock │ ├── conwayRegistrationsSameTx │ ├── conwayRestartAndRollback │ ├── conwayRestartDBSync │ ├── conwayRewardsShelley │ ├── conwayRollbackBoundary │ ├── conwayRollbackChangeTxOrder │ ├── conwayRollbackFork │ ├── conwayRollbackFullTx │ ├── conwayRollbackHardFork │ ├── conwayRollbackNewCommittee │ ├── conwayRollbackNewCommitteeProposal │ ├── conwaySimpleRewards │ ├── conwaySimpleRollback │ ├── conwaySimpleScript │ ├── conwaySpendCollateralOtputRollback │ ├── conwaySpendCollateralOutput │ ├── conwaySpendRefScriptSameBlock │ ├── conwaySpindCollateralOutputSameBlock │ ├── conwayStakeAddressPtr │ ├── conwayStakeAddressPtrDereg │ ├── conwayStakeAddressPtrUseBefore │ ├── conwayStakeAddressRollback │ ├── conwayStakeDistGenesis │ ├── conwaySupplyScriptToWays │ ├── conwaySupplyScriptsTwoWaysSameBlock │ ├── conwaySwapMultiAssets │ ├── conwayTreasuryWithdrawal │ ├── conwayUnlockDatumOutput │ ├── conwayUnlockDatumOutputSameBlock │ ├── conwayUnlockScriptSameBlock │ ├── conwayUpdateConstitution │ ├── delegations2000 │ ├── delegations2000-alonzo │ ├── delegations2001 │ ├── delegations2001-alonzo │ ├── delegations8000 │ ├── delegations8000-alonzo │ ├── delegationsMany │ ├── delegationsMany-alonzo │ ├── delegationsManyNotDense │ ├── delegationsManyNotDense-alonzo │ ├── deregistrationScriptTx │ ├── deregistrationScriptTx-alonzo │ ├── deregistrationsScriptTx │ ├── deregistrationsScriptTx' │ ├── deregistrationsScriptTx'' │ ├── deregistrationsScriptTx''-alonzo │ ├── deregistrationsScriptTx'-alonzo │ ├── deregistrationsScriptTx-alonzo │ ├── deregistrationsScriptTxs │ ├── deregistrationsScriptTxs-alonzo │ ├── doubleRollback │ ├── failedScript │ ├── failedScript-alonzo │ ├── failedScriptFees │ ├── failedScriptSameBlock │ ├── failedScriptSameBlock-alonzo │ ├── forgeBlocks │ ├── forgeBlocks-alonzo │ ├── forkFixedEpoch │ ├── inlineDatumCBOR │ ├── lazyRollback │ ├── lazyRollbackRestart │ ├── mintMultiAsset │ ├── mintMultiAsset-alonzo │ ├── mintMultiAssets │ ├── mintMultiAssets-alonzo │ ├── mirReward │ ├── mirReward-alonzo │ ├── mirRewardDereg │ ├── mirRewardDereg-alonzo │ ├── mirRewardRollback-alonzo │ ├── mirRewardShelley │ ├── multipleScripts │ ├── multipleScripts-alonzo │ ├── multipleScriptsFailed │ ├── multipleScriptsFailed-alonzo │ ├── multipleScriptsFailedSameBlock │ ├── multipleScriptsFailedSameBlock-alonzo │ ├── multipleScriptsRollback │ ├── multipleScriptsSameBlock │ ├── multipleScriptsSameBlock-alonzo │ ├── nodeRestart │ ├── nodeRestartBoundary │ ├── nonexistantPoolQuery │ ├── nonexistantPoolQuery-alonzo │ ├── poolDeReg │ ├── poolDeReg-alonzo │ ├── poolDeRegMany │ ├── poolDeRegMany-alonzo │ ├── poolDelist │ ├── poolDelist-alonzo │ ├── poolReg │ ├── poolReg-alonzo │ ├── referenceDelegation │ ├── referenceInputUnspend │ ├── referenceMintingScript │ ├── registrationScriptTx │ ├── registrationScriptTx-alonzo │ ├── registrationTx │ ├── registrationTx-alonzo │ ├── registrationsSameBlock │ ├── registrationsSameBlock-alonzo │ ├── registrationsSameTx │ ├── registrationsSameTx-alonzo │ ├── restartAndRollback │ ├── restartDBSync │ ├── restartDBSync-alonzo │ ├── rewardsDeregistration │ ├── rewardsDeregistration-alonzo │ ├── rewardsReregistration │ ├── rewardsReregistration-Alonzo │ ├── rewardsShelley │ ├── rollbackBoundary │ ├── rollbackBoundary-alonzo │ ├── rollbackChangeTxOrder │ ├── rollbackFork │ ├── rollbackFullTx │ ├── simpleRewards │ ├── simpleRewards-alonzo │ ├── simpleRollback │ ├── simpleScript │ ├── simpleScript-alonzo │ ├── singleMIRCertMultiOut │ ├── singleMIRCertMultiOut-alonzo │ ├── spendCollateralOutput │ ├── spendCollateralOutputRollback │ ├── spendCollateralOutputSameBlock │ ├── spendRefScript │ ├── spendRefScriptSameBlock │ ├── stakeAddressPtr │ ├── stakeAddressPtr-alonzo │ ├── stakeAddressPtrDereg │ ├── stakeAddressPtrDereg-alonzo │ ├── stakeAddressPtrUseBefore │ ├── stakeAddressPtrUseBefore-alonzo │ ├── stakeAddressRollback │ ├── stakeDistGenesis │ ├── stakeDistGenesis-alonzo │ ├── supplyScriptsTwoWays │ ├── supplyScriptsTwoWaysSameBlock │ ├── swapMultiAssets │ ├── swapMultiAssets-alonzo │ ├── unlockDatumOutput │ ├── unlockDatumOutputSameBlock │ ├── unlockScriptSameBlock │ └── unlockScriptSameBlock-alonzo │ └── pgpass-testing ├── cardano-db-sync ├── CHANGELOG.md ├── LICENSE ├── NOTICE ├── Setup.hs ├── app │ ├── cardano-db-sync.hs │ ├── http-get-json-metadata.hs │ └── test-http-get-json-metadata.hs ├── cardano-db-sync.cabal ├── gen │ └── .gitkeep ├── hie.yaml ├── schema ├── src │ └── Cardano │ │ ├── DbSync.hs │ │ └── DbSync │ │ ├── Api.hs │ │ ├── Api │ │ ├── Ledger.hs │ │ └── Types.hs │ │ ├── Cache.hs │ │ ├── Cache │ │ ├── Epoch.hs │ │ ├── FIFO.hs │ │ ├── LRU.hs │ │ └── Types.hs │ │ ├── Config.hs │ │ ├── Config │ │ ├── Alonzo.hs │ │ ├── Byron.hs │ │ ├── Cardano.hs │ │ ├── Conway.hs │ │ ├── Node.hs │ │ ├── Shelley.hs │ │ └── Types.hs │ │ ├── Database.hs │ │ ├── DbAction.hs │ │ ├── Default.hs │ │ ├── Epoch.hs │ │ ├── Era.hs │ │ ├── Era │ │ ├── Byron │ │ │ ├── Genesis.hs │ │ │ ├── Insert.hs │ │ │ └── Util.hs │ │ ├── Cardano │ │ │ ├── Insert.hs │ │ │ └── Util.hs │ │ ├── Shelley │ │ │ ├── Generic.hs │ │ │ ├── Generic │ │ │ │ ├── Block.hs │ │ │ │ ├── EpochUpdate.hs │ │ │ │ ├── Metadata.hs │ │ │ │ ├── ParamProposal.hs │ │ │ │ ├── ProtoParams.hs │ │ │ │ ├── Rewards.hs │ │ │ │ ├── Script.hs │ │ │ │ ├── ScriptData.hs │ │ │ │ ├── StakeDist.hs │ │ │ │ ├── Tx.hs │ │ │ │ ├── Tx │ │ │ │ │ ├── Allegra.hs │ │ │ │ │ ├── Alonzo.hs │ │ │ │ │ ├── Babbage.hs │ │ │ │ │ ├── Conway.hs │ │ │ │ │ ├── Mary.hs │ │ │ │ │ ├── Shelley.hs │ │ │ │ │ └── Types.hs │ │ │ │ ├── Util.hs │ │ │ │ └── Witness.hs │ │ │ ├── Genesis.hs │ │ │ ├── Query.hs │ │ │ └── ValidateWithdrawal.hs │ │ ├── Universal │ │ │ ├── Adjust.hs │ │ │ ├── Block.hs │ │ │ ├── Epoch.hs │ │ │ ├── Insert │ │ │ │ ├── Certificate.hs │ │ │ │ ├── GovAction.hs │ │ │ │ ├── Grouped.hs │ │ │ │ ├── LedgerEvent.hs │ │ │ │ ├── Other.hs │ │ │ │ ├── Pool.hs │ │ │ │ └── Tx.hs │ │ │ └── Validate.hs │ │ └── Util.hs │ │ ├── Error.hs │ │ ├── Ledger │ │ ├── Event.hs │ │ ├── State.hs │ │ └── Types.hs │ │ ├── LocalStateQuery.hs │ │ ├── Metrics.hs │ │ ├── OffChain.hs │ │ ├── OffChain │ │ ├── FetchQueue.hs │ │ ├── Http.hs │ │ ├── Query.hs │ │ ├── Types.hs │ │ └── Vote │ │ │ └── Types.hs │ │ ├── Rollback.hs │ │ ├── StateQuery.hs │ │ ├── Sync.hs │ │ ├── Tracing │ │ └── ToObjectOrphans.hs │ │ ├── Types.hs │ │ ├── Util.hs │ │ └── Util │ │ ├── Address.hs │ │ ├── Bech32.hs │ │ ├── Cbor.hs │ │ └── Constraint.hs └── test │ ├── Cardano │ ├── DbSync │ │ ├── ApiTest.hs │ │ ├── Config │ │ │ └── TypesTest.hs │ │ ├── Era │ │ │ └── Shelley │ │ │ │ └── Generic │ │ │ │ ├── ScriptDataTest.hs │ │ │ │ └── ScriptTest.hs │ │ ├── Gen.hs │ │ └── Util │ │ │ ├── AddressTest.hs │ │ │ ├── Bech32Test.hs │ │ │ └── CborTest.hs │ └── DbSyncTest.hs │ └── Main.hs ├── cardano-db-tool ├── CHANGELOG.md ├── LICENSE ├── app │ └── cardano-db-tool.hs ├── cardano-db-tool.cabal ├── hie.yaml └── src │ └── Cardano │ ├── DbTool.hs │ └── DbTool │ ├── PrepareSnapshot.hs │ ├── Report.hs │ ├── Report │ ├── Balance.hs │ ├── Display.hs │ ├── StakeReward.hs │ ├── StakeReward │ │ ├── History.hs │ │ └── Latest.hs │ ├── Synced.hs │ └── Transactions.hs │ ├── UtxoSet.hs │ ├── Validate │ ├── AdaPots.hs │ ├── Balance.hs │ ├── BlockProperties.hs │ ├── BlockTxs.hs │ ├── EpochTable.hs │ ├── Ledger.hs │ ├── PoolOwner.hs │ ├── TotalSupply.hs │ ├── TxAccounting.hs │ ├── Util.hs │ └── Withdrawal.hs │ └── Validation.hs ├── cardano-db ├── CHANGELOG.md ├── LICENSE ├── NOTICE ├── Setup.hs ├── app │ └── gen-schema-docs.hs ├── cardano-db.cabal ├── hie.yaml ├── src │ └── Cardano │ │ ├── Db.hs │ │ └── Db │ │ ├── Error.hs │ │ ├── Git │ │ ├── RevFromGit.hs │ │ └── Version.hs │ │ ├── Migration.hs │ │ ├── Migration │ │ ├── Haskell.hs │ │ └── Version.hs │ │ ├── Operations │ │ ├── AlterTable.hs │ │ ├── Delete.hs │ │ ├── Insert.hs │ │ ├── Other │ │ │ ├── ConsumedTxOut.hs │ │ │ ├── JsonbQuery.hs │ │ │ └── MinId.hs │ │ ├── Query.hs │ │ ├── QueryHelper.hs │ │ ├── TxOut │ │ │ ├── TxOutDelete.hs │ │ │ ├── TxOutInsert.hs │ │ │ └── TxOutQuery.hs │ │ └── Types.hs │ │ ├── PGConfig.hs │ │ ├── Run.hs │ │ ├── Schema │ │ ├── BaseSchema.hs │ │ ├── Orphans.hs │ │ ├── Types.hs │ │ └── Variants │ │ │ ├── TxOutAddress.hs │ │ │ └── TxOutCore.hs │ │ └── Types.hs └── test │ ├── LICENSE │ ├── Test │ ├── IO │ │ └── Cardano │ │ │ └── Db │ │ │ ├── Insert.hs │ │ │ ├── Migration.hs │ │ │ ├── PGConfig.hs │ │ │ ├── Rollback.hs │ │ │ ├── TotalSupply.hs │ │ │ └── Util.hs │ └── Property │ │ ├── Cardano │ │ └── Db │ │ │ ├── Migration.hs │ │ │ └── Types.hs │ │ └── Upstream.hs │ ├── cardano-db-test.cabal │ ├── schema-rollback.hs │ ├── schema │ └── migration-1-0000-20190730.sql │ ├── test-db.hs │ └── test.hs ├── cardano-smash-server ├── CHANGELOG.md ├── LICENSE ├── Setup.hs ├── app │ └── cardano-smash-server.hs ├── cardano-smash-server.cabal ├── hie.yaml └── src │ └── Cardano │ └── SMASH │ └── Server │ ├── Api.hs │ ├── Config.hs │ ├── FetchPolicies.hs │ ├── Impl.hs │ ├── PoolDataLayer.hs │ ├── Run.hs │ └── Types.hs ├── config ├── mainnet-config.yaml ├── pgpass-mainnet ├── pgpass-shelley-qa ├── preprod-config.yaml ├── secrets │ ├── postgres_db │ ├── postgres_password │ └── postgres_user └── shelley-qa-config.json ├── custom-config └── default.nix ├── doc ├── ERD.png ├── Readme.md ├── building-running.md ├── command-line-options.md ├── community-tools.md ├── configuration.md ├── docker.md ├── hlint-stylish-haskell.md ├── installing-with-nix.md ├── installing.md ├── interesting-queries.md ├── migrations.md ├── pool-offchain-data.md ├── release-process.md ├── running.md ├── schema-management.md ├── schema.md ├── smash.md ├── state-snapshot.md ├── syncing-and-rollbacks.md ├── troubleshooting.md ├── upgrading-postgresql.md └── validation.md ├── docker-compose.example.yml ├── docker-compose.yml ├── docker-test.yml ├── flake.lock ├── flake.nix ├── fourmolu.yaml ├── monitoring └── explorer-dashboard.json ├── nix ├── default.nix ├── docker.nix └── nixos │ ├── cardano-db-sync-service.nix │ ├── default.nix │ ├── module-list.nix │ ├── smash-service.nix │ └── tests │ ├── default.nix │ └── services-basic-test.nix ├── schema ├── migration-1-0000-20190730.sql ├── migration-1-0001-20190730.sql ├── migration-1-0002-20190912.sql ├── migration-1-0003-20200211.sql ├── migration-1-0004-20201026.sql ├── migration-1-0005-20210311.sql ├── migration-1-0006-20210531.sql ├── migration-1-0007-20210611.sql ├── migration-1-0008-20210727.sql ├── migration-1-0009-20210727.sql ├── migration-1-0010-20230612.sql ├── migration-1-0011-20230814.sql ├── migration-1-0012-20240211.sql ├── migration-1-0013-20240318.sql ├── migration-1-0014-20240411.sql ├── migration-1-0015-20240724.sql ├── migration-2-0001-20211003.sql ├── migration-2-0002-20211007.sql ├── migration-2-0003-20211013.sql ├── migration-2-0004-20211014.sql ├── migration-2-0005-20211018.sql ├── migration-2-0006-20220105.sql ├── migration-2-0007-20220118.sql ├── migration-2-0008-20220126.sql ├── migration-2-0009-20220207.sql ├── migration-2-0010-20220225.sql ├── migration-2-0011-20220318.sql ├── migration-2-0012-20220502.sql ├── migration-2-0013-20220505.sql ├── migration-2-0014-20220505.sql ├── migration-2-0015-20220505.sql ├── migration-2-0016-20220524.sql ├── migration-2-0017-20220526.sql ├── migration-2-0018-20220604.sql ├── migration-2-0019-20220615.sql ├── migration-2-0020-20220919.sql ├── migration-2-0021-20221019.sql ├── migration-2-0022-20221020.sql ├── migration-2-0023-20221019.sql ├── migration-2-0024-20221020.sql ├── migration-2-0025-20221020.sql ├── migration-2-0026-20231017.sql ├── migration-2-0027-20230713.sql ├── migration-2-0028-20240117.sql ├── migration-2-0029-20240117.sql ├── migration-2-0030-20240108.sql ├── migration-2-0031-20240117.sql ├── migration-2-0032-20230815.sql ├── migration-2-0033-20231009.sql ├── migration-2-0034-20240301.sql ├── migration-2-0035-20240308.sql ├── migration-2-0036-20240318.sql ├── migration-2-0037-20240403.sql ├── migration-2-0038-20240603.sql ├── migration-2-0039-20240703.sql ├── migration-2-0040-20240626.sql ├── migration-2-0041-20240711.sql ├── migration-2-0042-20240808.sql ├── migration-2-0043-20240828.sql ├── migration-2-0044-20240912.sql ├── migration-3-0001-20190816.sql ├── migration-3-0002-20200521.sql ├── migration-3-0003-20240121.sql ├── migration-3-0004-20240603.sql ├── migration-3-9999-20200728.sql ├── migration-4-0001-20200702.sql ├── migration-4-0002-20200810.sql ├── migration-4-0003-20210116.sql ├── migration-4-0004-20210116.sql ├── migration-4-0005-20211022.sql ├── migration-4-0006-20220118.sql ├── migration-4-0007-20220528.sql └── migration-4-0008-20240604.sql └── scripts ├── fourmolize.sh ├── gen-tx-submit-config.sh ├── git-pre-commit-hook ├── postgresql-setup.sh ├── postgresql-test.sh ├── run-everything-tmux.sh └── secp256k1-setup.sh /.gitattributes: -------------------------------------------------------------------------------- 1 | # GitHub Linguist annotations. 2 | # Hide nix/.stack.nix/*.nix 3 | # That is stuff that is generated by nix-tools stack-to-nix 4 | 5 | nix/.stack.nix/*.nix linguist-generated=true merge=union 6 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Issue/Bug report 3 | about: Report an issue with or bug in `cardano-db-sync` 4 | title: "" 5 | labels: bug 6 | assignees: '' 7 | 8 | --- 9 | 10 | **OS** 11 | Your OS: 12 | 13 | **Versions** 14 | The `db-sync` version (eg `cardano-db-sync --version`): 15 | PostgreSQL version: 16 | 17 | **Build/Install Method** 18 | The method you use to build or install `cardano-db-sync`: 19 | 20 | **Run method** 21 | The method you used to run `cardano-db-sync` (eg Nix/Docker/systemd/none): 22 | 23 | **Additional context** 24 | Add any other context about the problem here. 25 | 26 | **Problem Report** 27 | Please do not include screenshots or images, but instead cut and paste any relevant log messages 28 | or errors. 29 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | # Description 2 | 3 | Add your description here, if it fixes a particular issue please provide a [link](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword=) to the issue. 4 | 5 | # Checklist 6 | 7 | - [ ] Commit sequence broadly makes sense 8 | - [ ] Commits have useful messages 9 | - [ ] New tests are added if needed and existing tests are updated 10 | - [ ] Any changes are noted in the [changelog](https://github.com/IntersectMBO/cardano-db-sync/blob/master/db-sync/CHANGELOG.md) 11 | - [ ] Code is formatted with [`fourmolu`](https://github.com/fourmolu/fourmolu) on version 0.10.1.0 (which can be run with `scripts/fourmolize.sh`) 12 | - [ ] Self-reviewed the diff 13 | 14 | # Migrations 15 | 16 | - [ ] The pr causes a [breaking change](https://github.com/IntersectMBO/cardano-db-sync/blob/master/doc/migrations.md) of type a,b or c 17 | - [ ] If there is a breaking change, the pr includes a database migration and/or a fix process for old values, so that upgrade is possible 18 | - [ ] Resyncing and running the migrations provided will result in the same database semantically 19 | 20 | If there is a breaking change, especially a big one, please add a justification here. Please elaborate 21 | more what the migration achieves, what it cannot achieve or why a migration is not possible. 22 | -------------------------------------------------------------------------------- /.github/master-check-exceptions.list: -------------------------------------------------------------------------------- 1 | vshabanov/ekg-json 2 | input-output-hk/iohk-monitoring-framework 3 | -------------------------------------------------------------------------------- /.github/workflows/check-fourmolu.yml: -------------------------------------------------------------------------------- 1 | name: Check Fourmolu 2 | 3 | on: 4 | push: {} 5 | merge_group: {} 6 | 7 | jobs: 8 | build: 9 | runs-on: ubuntu-latest 10 | 11 | defaults: 12 | run: 13 | shell: bash 14 | 15 | steps: 16 | - uses: actions/checkout@v4 17 | 18 | - name: Run fourmolu 19 | uses: haskell-actions/run-fourmolu@v11 20 | with: 21 | version: "0.17.0.0" 22 | -------------------------------------------------------------------------------- /.github/workflows/check-git-dependencies.yml: -------------------------------------------------------------------------------- 1 | name: Check git dependencies 2 | 3 | on: 4 | push: 5 | 6 | jobs: 7 | build: 8 | runs-on: ubuntu-latest 9 | 10 | defaults: 11 | run: 12 | shell: bash 13 | 14 | steps: 15 | 16 | - uses: actions/checkout@v2 17 | 18 | - name: Check git dependencies 19 | run: | 20 | .github/bin/check-git-dependencies 21 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Haskell 2 | .ghc.environment.* 3 | .stack-work/ 4 | cabal.project.local 5 | dist-newstyle/ 6 | dist 7 | 8 | *.prof 9 | *.aux 10 | *.hp 11 | *.eventlog 12 | 13 | log-dir 14 | launch_* 15 | gen/ 16 | cardano-chain-gen/test/testfiles/temp/ 17 | /secp256k1/ 18 | 19 | # Vim 20 | *.swp 21 | 22 | # Emacs 23 | .dir-locals.el 24 | 25 | # Nix 26 | .direnv 27 | .envrc 28 | result* 29 | 30 | # VS Code 31 | /.vscode 32 | 33 | # MacOS 34 | .DS_Store -------------------------------------------------------------------------------- /CODEOWNERS: -------------------------------------------------------------------------------- 1 | # General reviewers per PR 2 | * @IntersectMBO/core-tech-dbsync 3 | 4 | # Specific reviewers for code pieces 5 | # NB - The last matching pattern takes precedence 6 | 7 | # /doc folder and README.* needs to be owned by @docs-access 8 | doc @input-output-hk/docs-access @IntersectMBO/core-tech-dbsync 9 | Readme.* @input-output-hk/docs-access @IntersectMBO/core-tech-dbsync 10 | CONTRIBUTING.rst @input-output-hk/docs-access @IntersectMBO/core-tech-dbsync 11 | 12 | # DevOps 13 | .github @IntersectMBO/core-tech-devx @IntersectMBO/core-tech-release 14 | /config @IntersectMBO/core-tech-devx @IntersectMBO/core-tech-release 15 | nix @IntersectMBO/core-tech-devx @IntersectMBO/core-tech-release 16 | *.nix @IntersectMBO/core-tech-devx @IntersectMBO/core-tech-release 17 | flake.lock @IntersectMBO/core-tech-devx @IntersectMBO/core-tech-release 18 | bors.toml @IntersectMBO/core-tech-devx @IntersectMBO/core-tech-release 19 | docker-compose.yml @IntersectMBO/core-tech-devx @IntersectMBO/core-tech-release 20 | scripts/postgresql-setup.sh @IntersectMBO/core-tech-devx @IntersectMBO/core-tech-release 21 | -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- 1 | Copyright 2019-2020 Input Output (Hong Kong) Ltd. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | ## Reporting a Vulnerability 4 | 5 | Please report (suspected) security vulnerabilities to security@intersectmbo.org. You will receive a 6 | response from us within 48 hours. If the issue is confirmed, we will release a patch as soon 7 | as possible. 8 | 9 | Please provide a clear and concise description of the vulnerability, including: 10 | 11 | * the affected version(s) of Open-Source-Office, 12 | * steps that can be followed to exercise the vulnerability, 13 | * any workarounds or mitigations 14 | 15 | If you have developed any code or utilities that can help demonstrate the suspected 16 | vulnerability, please mention them in your email but ***DO NOT*** attempt to include them as 17 | attachments as this may cause your Email to be blocked by spam filters. 18 | See the security file in the [Cardano engineering handbook](https://github.com/input-output-hk/cardano-engineering-handbook/blob/main/SECURITY.md). 19 | -------------------------------------------------------------------------------- /bors.toml: -------------------------------------------------------------------------------- 1 | status = [ 2 | "buildkite/cardano-db-sync", 3 | "ci", 4 | ] 5 | timeout_sec = 7200 6 | required_approvals = 1 7 | block_labels = [ "WIP", "DO NOT MERGE" ] 8 | delete_merged_branches = true 9 | -------------------------------------------------------------------------------- /cardano-chain-gen/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Revision history for cardano-chain-gen 2 | -------------------------------------------------------------------------------- /cardano-chain-gen/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright 2019-2020 Input Output (Hong Kong) Ltd. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /cardano-chain-gen/gen/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-db-sync/0c4fffaa3cdd39829850cbec395d3a6780a74e49/cardano-chain-gen/gen/.gitkeep -------------------------------------------------------------------------------- /cardano-chain-gen/hie.yaml: -------------------------------------------------------------------------------- 1 | cradle: 2 | cabal: 3 | -------------------------------------------------------------------------------- /cardano-chain-gen/schema: -------------------------------------------------------------------------------- 1 | ../schema -------------------------------------------------------------------------------- /cardano-chain-gen/src/Cardano/Mock/Forging/Crypto.hs: -------------------------------------------------------------------------------- 1 | {-# LANGUAGE TypeApplications #-} 2 | 3 | module Cardano.Mock.Forging.Crypto ( 4 | RawSeed (..), 5 | mkVRFKeyPair, 6 | mkSeedFromWords, 7 | ) where 8 | 9 | import Cardano.Binary (ToCBOR (..)) 10 | import Cardano.Crypto.Hash (Blake2b_256, hashToBytes, hashWithSerialiser) 11 | import Cardano.Crypto.Seed (Seed, mkSeedFromBytes) 12 | import Cardano.Crypto.VRF ( 13 | SignKeyVRF, 14 | VRFAlgorithm, 15 | VerKeyVRF, 16 | deriveVerKeyVRF, 17 | genKeyVRF, 18 | ) 19 | import Data.Typeable (Proxy (Proxy)) 20 | import Data.Word (Word64) 21 | 22 | instance ToCBOR RawSeed where 23 | toCBOR (RawSeed w1 w2 w3 w4 w5) = toCBOR (w1, w2, w3, w4, w5) 24 | encodedSizeExpr size _ = 1 + size (Proxy :: Proxy Word64) * 5 25 | 26 | data RawSeed = RawSeed !Word64 !Word64 !Word64 !Word64 !Word64 27 | deriving (Eq, Show) 28 | 29 | -- | For testing purposes, generate a deterministic VRF key pair given a seed. 30 | mkVRFKeyPair :: VRFAlgorithm v => RawSeed -> (SignKeyVRF v, VerKeyVRF v) 31 | mkVRFKeyPair seed = 32 | let sk = genKeyVRF $ mkSeedFromWords seed 33 | in (sk, deriveVerKeyVRF sk) 34 | 35 | -- | Construct a seed from a bunch of Word64s 36 | -- 37 | -- We multiply these words by some extra stuff to make sure they contain 38 | -- enough bits for our seed. 39 | mkSeedFromWords :: RawSeed -> Seed 40 | mkSeedFromWords stuff = 41 | mkSeedFromBytes . hashToBytes $ hashWithSerialiser @Blake2b_256 toCBOR stuff 42 | -------------------------------------------------------------------------------- /cardano-chain-gen/test/Test/Cardano/Db/Mock/Examples.hs: -------------------------------------------------------------------------------- 1 | module Test.Cardano.Db.Mock.Examples ( 2 | mockBlock0, 3 | mockBlock1, 4 | mockBlock2, 5 | ) where 6 | 7 | import Cardano.Mock.Forging.Types 8 | 9 | mockBlock0 :: MockBlock 10 | mockBlock0 = 11 | MockBlock 12 | { txs = [] 13 | , node = NodeId 0 14 | } 15 | 16 | mockBlock1 :: MockBlock 17 | mockBlock1 = 18 | MockBlock 19 | { txs = [] 20 | , node = NodeId 1 21 | } 22 | 23 | mockBlock2 :: MockBlock 24 | mockBlock2 = 25 | MockBlock 26 | { txs = [] 27 | , node = NodeId 2 28 | } 29 | -------------------------------------------------------------------------------- /cardano-chain-gen/test/Test/Cardano/Db/Mock/Unit/Conway/CommandLineArg/ConfigFile.hs: -------------------------------------------------------------------------------- 1 | {-# LANGUAGE NumericUnderscores #-} 2 | 3 | module Test.Cardano.Db.Mock.Unit.Conway.CommandLineArg.ConfigFile ( 4 | checkConfigFileArg, 5 | ) where 6 | 7 | import Cardano.Mock.ChainSync.Server (IOManager ()) 8 | import Cardano.Prelude 9 | import Test.Cardano.Db.Mock.Config 10 | import Test.Cardano.Db.Mock.Validate (checkStillRuns) 11 | import Test.Tasty.HUnit (Assertion ()) 12 | import Prelude () 13 | 14 | checkConfigFileArg :: IOManager -> [(Text, Text)] -> Assertion 15 | checkConfigFileArg = 16 | withCustomConfig cliArgs Nothing conwayConfigDir testLabel $ \_ _ dbSync -> do 17 | startDBSync dbSync 18 | -- There is a slight delay before the flag is checked 19 | threadDelay 2_000_000 20 | 21 | -- Expected to fail 22 | checkStillRuns dbSync 23 | where 24 | cliArgs = initCommandLineArgs {claConfigFilename = "does-not-exist"} 25 | testLabel = "conwayCLACheckConfigFileArg" 26 | -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/config-alonzo-insert-options/genesis.byron.json: -------------------------------------------------------------------------------- 1 | { "bootStakeholders": 2 | { "1a3e49767796fd99b057ad54db3310fd640806fcb0927399bbca7b43": 1 } 3 | , "heavyDelegation": 4 | { } 5 | , "startTime": 1637266922 6 | , "nonAvvmBalances": 7 | { } 8 | , "blockVersionData": 9 | { "scriptVersion": 0 10 | , "slotDuration": "20000" 11 | , "maxBlockSize": "2000000" 12 | , "maxHeaderSize": "2000000" 13 | , "maxTxSize": "4096" 14 | , "maxProposalSize": "700" 15 | , "mpcThd": "20000000000000" 16 | , "heavyDelThd": "300000000000" 17 | , "updateVoteThd": "1000000000000" 18 | , "updateProposalThd": "100000000000000" 19 | , "updateImplicit": "10000" 20 | , "softforkRule": 21 | { "initThd": "900000000000000" 22 | , "minThd": "600000000000000" 23 | , "thdDecrement": "50000000000000" 24 | } 25 | , "txFeePolicy": 26 | { "summand": "155381000000000" , "multiplier": "43946000000" } 27 | , "unlockStakeEpoch": "18446744073709551615" 28 | } 29 | , "protocolConsts": { "k": 10 , "protocolMagic": 42 } 30 | , "avvmDistr": {} 31 | } 32 | -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/config-alonzo-insert-options/genesis.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "maxLovelaceSupply": 0, 3 | "securityParam": 2160, 4 | "slotsPerKESPeriod": 129600, 5 | "updateQuorum": 5, 6 | "activeSlotsCoeff": 5.0e-2, 7 | "protocolParams": { 8 | "minUTxOValue": 0, 9 | "eMax": 18, 10 | "extraEntropy": { 11 | "tag": "NeutralNonce" 12 | }, 13 | "minFeeB": 0, 14 | "tau": 0.0, 15 | "maxBlockBodySize": 65536, 16 | "maxTxSize": 16384, 17 | "minPoolCost": 0, 18 | "minFeeA": 1, 19 | "nOpt": 100, 20 | "maxBlockHeaderSize": 1100, 21 | "keyDeposit": 0, 22 | "poolDeposit": 0, 23 | "protocolVersion": { 24 | "minor": 0, 25 | "major": 0 26 | }, 27 | "a0": 0.0, 28 | "rho": 0.0, 29 | "decentralisationParam": 1.0 30 | }, 31 | "networkMagic": 42, 32 | "initialFunds": {}, 33 | "networkId": "Testnet", 34 | "maxKESEvolutions": 60, 35 | "genDelegs": {}, 36 | "slotLength": 1, 37 | "systemStart": "1970-01-01T00:00:00Z", 38 | "epochLength": 432000, 39 | "staking": { 40 | "pools": {}, 41 | "stake": {} 42 | } 43 | } -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/config-alonzo/genesis.byron.json: -------------------------------------------------------------------------------- 1 | { "bootStakeholders": 2 | { "1a3e49767796fd99b057ad54db3310fd640806fcb0927399bbca7b43": 1 } 3 | , "heavyDelegation": 4 | { } 5 | , "startTime": 1637266922 6 | , "nonAvvmBalances": 7 | { } 8 | , "blockVersionData": 9 | { "scriptVersion": 0 10 | , "slotDuration": "20000" 11 | , "maxBlockSize": "2000000" 12 | , "maxHeaderSize": "2000000" 13 | , "maxTxSize": "4096" 14 | , "maxProposalSize": "700" 15 | , "mpcThd": "20000000000000" 16 | , "heavyDelThd": "300000000000" 17 | , "updateVoteThd": "1000000000000" 18 | , "updateProposalThd": "100000000000000" 19 | , "updateImplicit": "10000" 20 | , "softforkRule": 21 | { "initThd": "900000000000000" 22 | , "minThd": "600000000000000" 23 | , "thdDecrement": "50000000000000" 24 | } 25 | , "txFeePolicy": 26 | { "summand": "155381000000000" , "multiplier": "43946000000" } 27 | , "unlockStakeEpoch": "18446744073709551615" 28 | } 29 | , "protocolConsts": { "k": 10 , "protocolMagic": 42 } 30 | , "avvmDistr": {} 31 | } 32 | -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/config-alonzo/genesis.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "maxLovelaceSupply": 0, 3 | "securityParam": 2160, 4 | "slotsPerKESPeriod": 129600, 5 | "updateQuorum": 5, 6 | "activeSlotsCoeff": 5.0e-2, 7 | "protocolParams": { 8 | "minUTxOValue": 0, 9 | "eMax": 18, 10 | "extraEntropy": { 11 | "tag": "NeutralNonce" 12 | }, 13 | "minFeeB": 0, 14 | "tau": 0.0, 15 | "maxBlockBodySize": 65536, 16 | "maxTxSize": 16384, 17 | "minPoolCost": 0, 18 | "minFeeA": 1, 19 | "nOpt": 100, 20 | "maxBlockHeaderSize": 1100, 21 | "keyDeposit": 0, 22 | "poolDeposit": 0, 23 | "protocolVersion": { 24 | "minor": 0, 25 | "major": 0 26 | }, 27 | "a0": 0.0, 28 | "rho": 0.0, 29 | "decentralisationParam": 1.0 30 | }, 31 | "networkMagic": 42, 32 | "initialFunds": {}, 33 | "networkId": "Testnet", 34 | "maxKESEvolutions": 60, 35 | "genDelegs": {}, 36 | "slotLength": 1, 37 | "systemStart": "1970-01-01T00:00:00Z", 38 | "epochLength": 432000, 39 | "staking": { 40 | "pools": {}, 41 | "stake": {} 42 | } 43 | } -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/config-babbage-insert-options/genesis.byron.json: -------------------------------------------------------------------------------- 1 | { "bootStakeholders": 2 | { "1a3e49767796fd99b057ad54db3310fd640806fcb0927399bbca7b43": 1 } 3 | , "heavyDelegation": 4 | { } 5 | , "startTime": 1637266922 6 | , "nonAvvmBalances": 7 | { } 8 | , "blockVersionData": 9 | { "scriptVersion": 0 10 | , "slotDuration": "20000" 11 | , "maxBlockSize": "2000000" 12 | , "maxHeaderSize": "2000000" 13 | , "maxTxSize": "4096" 14 | , "maxProposalSize": "700" 15 | , "mpcThd": "20000000000000" 16 | , "heavyDelThd": "300000000000" 17 | , "updateVoteThd": "1000000000000" 18 | , "updateProposalThd": "100000000000000" 19 | , "updateImplicit": "10000" 20 | , "softforkRule": 21 | { "initThd": "900000000000000" 22 | , "minThd": "600000000000000" 23 | , "thdDecrement": "50000000000000" 24 | } 25 | , "txFeePolicy": 26 | { "summand": "155381000000000" , "multiplier": "43946000000" } 27 | , "unlockStakeEpoch": "18446744073709551615" 28 | } 29 | , "protocolConsts": { "k": 10 , "protocolMagic": 42 } 30 | , "avvmDistr": {} 31 | } 32 | -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/config-babbage-insert-options/genesis.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "maxLovelaceSupply": 0, 3 | "securityParam": 2160, 4 | "slotsPerKESPeriod": 129600, 5 | "updateQuorum": 5, 6 | "activeSlotsCoeff": 5.0e-2, 7 | "protocolParams": { 8 | "minUTxOValue": 0, 9 | "eMax": 18, 10 | "extraEntropy": { 11 | "tag": "NeutralNonce" 12 | }, 13 | "minFeeB": 0, 14 | "tau": 0.0, 15 | "maxBlockBodySize": 65536, 16 | "maxTxSize": 16384, 17 | "minPoolCost": 0, 18 | "minFeeA": 1, 19 | "nOpt": 100, 20 | "maxBlockHeaderSize": 1100, 21 | "keyDeposit": 0, 22 | "poolDeposit": 0, 23 | "protocolVersion": { 24 | "minor": 0, 25 | "major": 0 26 | }, 27 | "a0": 0.0, 28 | "rho": 0.0, 29 | "decentralisationParam": 1.0 30 | }, 31 | "networkMagic": 42, 32 | "initialFunds": {}, 33 | "networkId": "Testnet", 34 | "maxKESEvolutions": 60, 35 | "genDelegs": {}, 36 | "slotLength": 1, 37 | "systemStart": "1970-01-01T00:00:00Z", 38 | "epochLength": 432000, 39 | "staking": { 40 | "pools": {}, 41 | "stake": {} 42 | } 43 | } -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/config-conway-hf-epoch1/genesis.byron.json: -------------------------------------------------------------------------------- 1 | { "bootStakeholders": 2 | { "1a3e49767796fd99b057ad54db3310fd640806fcb0927399bbca7b43": 1 } 3 | , "heavyDelegation": 4 | { } 5 | , "startTime": 1637266922 6 | , "nonAvvmBalances": 7 | { } 8 | , "blockVersionData": 9 | { "scriptVersion": 0 10 | , "slotDuration": "20000" 11 | , "maxBlockSize": "2000000" 12 | , "maxHeaderSize": "2000000" 13 | , "maxTxSize": "4096" 14 | , "maxProposalSize": "700" 15 | , "mpcThd": "20000000000000" 16 | , "heavyDelThd": "300000000000" 17 | , "updateVoteThd": "1000000000000" 18 | , "updateProposalThd": "100000000000000" 19 | , "updateImplicit": "10000" 20 | , "softforkRule": 21 | { "initThd": "900000000000000" 22 | , "minThd": "600000000000000" 23 | , "thdDecrement": "50000000000000" 24 | } 25 | , "txFeePolicy": 26 | { "summand": "155381000000000" , "multiplier": "43946000000" } 27 | , "unlockStakeEpoch": "18446744073709551615" 28 | } 29 | , "protocolConsts": { "k": 10 , "protocolMagic": 42 } 30 | , "avvmDistr": {} 31 | } 32 | -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/config-conway-hf-epoch1/genesis.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "maxLovelaceSupply": 0, 3 | "securityParam": 2160, 4 | "slotsPerKESPeriod": 129600, 5 | "updateQuorum": 5, 6 | "activeSlotsCoeff": 5.0e-2, 7 | "protocolParams": { 8 | "minUTxOValue": 0, 9 | "eMax": 18, 10 | "extraEntropy": { 11 | "tag": "NeutralNonce" 12 | }, 13 | "minFeeB": 0, 14 | "tau": 0.0, 15 | "maxBlockBodySize": 65536, 16 | "maxTxSize": 16384, 17 | "minPoolCost": 0, 18 | "minFeeA": 1, 19 | "nOpt": 100, 20 | "maxBlockHeaderSize": 1100, 21 | "keyDeposit": 0, 22 | "poolDeposit": 0, 23 | "protocolVersion": { 24 | "minor": 0, 25 | "major": 0 26 | }, 27 | "a0": 0.0, 28 | "rho": 0.0, 29 | "decentralisationParam": 1.0 30 | }, 31 | "networkMagic": 42, 32 | "initialFunds": {}, 33 | "networkId": "Testnet", 34 | "maxKESEvolutions": 60, 35 | "genDelegs": {}, 36 | "slotLength": 1, 37 | "systemStart": "1970-01-01T00:00:00Z", 38 | "epochLength": 432000, 39 | "staking": { 40 | "pools": {}, 41 | "stake": {} 42 | } 43 | } -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/config-conway-insert-options/genesis.byron.json: -------------------------------------------------------------------------------- 1 | { "bootStakeholders": 2 | { "1a3e49767796fd99b057ad54db3310fd640806fcb0927399bbca7b43": 1 } 3 | , "heavyDelegation": 4 | { } 5 | , "startTime": 1637266922 6 | , "nonAvvmBalances": 7 | { } 8 | , "blockVersionData": 9 | { "scriptVersion": 0 10 | , "slotDuration": "20000" 11 | , "maxBlockSize": "2000000" 12 | , "maxHeaderSize": "2000000" 13 | , "maxTxSize": "4096" 14 | , "maxProposalSize": "700" 15 | , "mpcThd": "20000000000000" 16 | , "heavyDelThd": "300000000000" 17 | , "updateVoteThd": "1000000000000" 18 | , "updateProposalThd": "100000000000000" 19 | , "updateImplicit": "10000" 20 | , "softforkRule": 21 | { "initThd": "900000000000000" 22 | , "minThd": "600000000000000" 23 | , "thdDecrement": "50000000000000" 24 | } 25 | , "txFeePolicy": 26 | { "summand": "155381000000000" , "multiplier": "43946000000" } 27 | , "unlockStakeEpoch": "18446744073709551615" 28 | } 29 | , "protocolConsts": { "k": 10 , "protocolMagic": 42 } 30 | , "avvmDistr": {} 31 | } 32 | -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/config-conway-insert-options/genesis.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "maxLovelaceSupply": 0, 3 | "securityParam": 2160, 4 | "slotsPerKESPeriod": 129600, 5 | "updateQuorum": 5, 6 | "activeSlotsCoeff": 5.0e-2, 7 | "protocolParams": { 8 | "minUTxOValue": 0, 9 | "eMax": 18, 10 | "extraEntropy": { 11 | "tag": "NeutralNonce" 12 | }, 13 | "minFeeB": 0, 14 | "tau": 0.0, 15 | "maxBlockBodySize": 65536, 16 | "maxTxSize": 16384, 17 | "minPoolCost": 0, 18 | "minFeeA": 1, 19 | "nOpt": 100, 20 | "maxBlockHeaderSize": 1100, 21 | "keyDeposit": 0, 22 | "poolDeposit": 0, 23 | "protocolVersion": { 24 | "minor": 0, 25 | "major": 0 26 | }, 27 | "a0": 0.0, 28 | "rho": 0.0, 29 | "decentralisationParam": 1.0 30 | }, 31 | "networkMagic": 42, 32 | "initialFunds": {}, 33 | "networkId": "Testnet", 34 | "maxKESEvolutions": 60, 35 | "genDelegs": {}, 36 | "slotLength": 1, 37 | "systemStart": "1970-01-01T00:00:00Z", 38 | "epochLength": 432000, 39 | "staking": { 40 | "pools": {}, 41 | "stake": {} 42 | } 43 | } -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/config-conway-missing-genesis/genesis.byron.json: -------------------------------------------------------------------------------- 1 | { "bootStakeholders": 2 | { "1a3e49767796fd99b057ad54db3310fd640806fcb0927399bbca7b43": 1 } 3 | , "heavyDelegation": 4 | { } 5 | , "startTime": 1637266922 6 | , "nonAvvmBalances": 7 | { } 8 | , "blockVersionData": 9 | { "scriptVersion": 0 10 | , "slotDuration": "20000" 11 | , "maxBlockSize": "2000000" 12 | , "maxHeaderSize": "2000000" 13 | , "maxTxSize": "4096" 14 | , "maxProposalSize": "700" 15 | , "mpcThd": "20000000000000" 16 | , "heavyDelThd": "300000000000" 17 | , "updateVoteThd": "1000000000000" 18 | , "updateProposalThd": "100000000000000" 19 | , "updateImplicit": "10000" 20 | , "softforkRule": 21 | { "initThd": "900000000000000" 22 | , "minThd": "600000000000000" 23 | , "thdDecrement": "50000000000000" 24 | } 25 | , "txFeePolicy": 26 | { "summand": "155381000000000" , "multiplier": "43946000000" } 27 | , "unlockStakeEpoch": "18446744073709551615" 28 | } 29 | , "protocolConsts": { "k": 10 , "protocolMagic": 42 } 30 | , "avvmDistr": {} 31 | } 32 | -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/config-conway-missing-genesis/genesis.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "maxLovelaceSupply": 0, 3 | "securityParam": 2160, 4 | "slotsPerKESPeriod": 129600, 5 | "updateQuorum": 5, 6 | "activeSlotsCoeff": 5.0e-2, 7 | "protocolParams": { 8 | "minUTxOValue": 0, 9 | "eMax": 18, 10 | "extraEntropy": { 11 | "tag": "NeutralNonce" 12 | }, 13 | "minFeeB": 0, 14 | "tau": 0.0, 15 | "maxBlockBodySize": 65536, 16 | "maxTxSize": 16384, 17 | "minPoolCost": 0, 18 | "minFeeA": 1, 19 | "nOpt": 100, 20 | "maxBlockHeaderSize": 1100, 21 | "keyDeposit": 0, 22 | "poolDeposit": 0, 23 | "protocolVersion": { 24 | "minor": 0, 25 | "major": 0 26 | }, 27 | "a0": 0.0, 28 | "rho": 0.0, 29 | "decentralisationParam": 1.0 30 | }, 31 | "networkMagic": 42, 32 | "initialFunds": {}, 33 | "networkId": "Testnet", 34 | "maxKESEvolutions": 60, 35 | "genDelegs": {}, 36 | "slotLength": 1, 37 | "systemStart": "1970-01-01T00:00:00Z", 38 | "epochLength": 432000, 39 | "staking": { 40 | "pools": {}, 41 | "stake": {} 42 | } 43 | } -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/config-conway-no-pools/genesis.byron.json: -------------------------------------------------------------------------------- 1 | { "bootStakeholders": 2 | { "1a3e49767796fd99b057ad54db3310fd640806fcb0927399bbca7b43": 1 } 3 | , "heavyDelegation": 4 | { } 5 | , "startTime": 1637266922 6 | , "nonAvvmBalances": 7 | { } 8 | , "blockVersionData": 9 | { "scriptVersion": 0 10 | , "slotDuration": "20000" 11 | , "maxBlockSize": "2000000" 12 | , "maxHeaderSize": "2000000" 13 | , "maxTxSize": "4096" 14 | , "maxProposalSize": "700" 15 | , "mpcThd": "20000000000000" 16 | , "heavyDelThd": "300000000000" 17 | , "updateVoteThd": "1000000000000" 18 | , "updateProposalThd": "100000000000000" 19 | , "updateImplicit": "10000" 20 | , "softforkRule": 21 | { "initThd": "900000000000000" 22 | , "minThd": "600000000000000" 23 | , "thdDecrement": "50000000000000" 24 | } 25 | , "txFeePolicy": 26 | { "summand": "155381000000000" , "multiplier": "43946000000" } 27 | , "unlockStakeEpoch": "18446744073709551615" 28 | } 29 | , "protocolConsts": { "k": 10 , "protocolMagic": 42 } 30 | , "avvmDistr": {} 31 | } 32 | -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/config-conway-no-pools/genesis.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "maxLovelaceSupply": 0, 3 | "securityParam": 2160, 4 | "slotsPerKESPeriod": 129600, 5 | "updateQuorum": 5, 6 | "activeSlotsCoeff": 5.0e-2, 7 | "protocolParams": { 8 | "minUTxOValue": 0, 9 | "eMax": 18, 10 | "extraEntropy": { 11 | "tag": "NeutralNonce" 12 | }, 13 | "minFeeB": 0, 14 | "tau": 0.0, 15 | "maxBlockBodySize": 65536, 16 | "maxTxSize": 16384, 17 | "minPoolCost": 0, 18 | "minFeeA": 1, 19 | "nOpt": 100, 20 | "maxBlockHeaderSize": 1100, 21 | "keyDeposit": 0, 22 | "poolDeposit": 0, 23 | "protocolVersion": { 24 | "minor": 0, 25 | "major": 0 26 | }, 27 | "a0": 0.0, 28 | "rho": 0.0, 29 | "decentralisationParam": 1.0 30 | }, 31 | "networkMagic": 42, 32 | "initialFunds": {}, 33 | "networkId": "Testnet", 34 | "maxKESEvolutions": 60, 35 | "genDelegs": {}, 36 | "slotLength": 1, 37 | "systemStart": "1970-01-01T00:00:00Z", 38 | "epochLength": 432000, 39 | "staking": { 40 | "pools": {}, 41 | "stake": {} 42 | } 43 | } -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/config-conway-no-pools/pools/bulk1.creds: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/config-conway-no-stakes/genesis.byron.json: -------------------------------------------------------------------------------- 1 | { "bootStakeholders": 2 | { "1a3e49767796fd99b057ad54db3310fd640806fcb0927399bbca7b43": 1 } 3 | , "heavyDelegation": 4 | { } 5 | , "startTime": 1637266922 6 | , "nonAvvmBalances": 7 | { } 8 | , "blockVersionData": 9 | { "scriptVersion": 0 10 | , "slotDuration": "20000" 11 | , "maxBlockSize": "2000000" 12 | , "maxHeaderSize": "2000000" 13 | , "maxTxSize": "4096" 14 | , "maxProposalSize": "700" 15 | , "mpcThd": "20000000000000" 16 | , "heavyDelThd": "300000000000" 17 | , "updateVoteThd": "1000000000000" 18 | , "updateProposalThd": "100000000000000" 19 | , "updateImplicit": "10000" 20 | , "softforkRule": 21 | { "initThd": "900000000000000" 22 | , "minThd": "600000000000000" 23 | , "thdDecrement": "50000000000000" 24 | } 25 | , "txFeePolicy": 26 | { "summand": "155381000000000" , "multiplier": "43946000000" } 27 | , "unlockStakeEpoch": "18446744073709551615" 28 | } 29 | , "protocolConsts": { "k": 10 , "protocolMagic": 42 } 30 | , "avvmDistr": {} 31 | } 32 | -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/config-conway-no-stakes/genesis.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "maxLovelaceSupply": 0, 3 | "securityParam": 2160, 4 | "slotsPerKESPeriod": 129600, 5 | "updateQuorum": 5, 6 | "activeSlotsCoeff": 5.0e-2, 7 | "protocolParams": { 8 | "minUTxOValue": 0, 9 | "eMax": 18, 10 | "extraEntropy": { 11 | "tag": "NeutralNonce" 12 | }, 13 | "minFeeB": 0, 14 | "tau": 0.0, 15 | "maxBlockBodySize": 65536, 16 | "maxTxSize": 16384, 17 | "minPoolCost": 0, 18 | "minFeeA": 1, 19 | "nOpt": 100, 20 | "maxBlockHeaderSize": 1100, 21 | "keyDeposit": 0, 22 | "poolDeposit": 0, 23 | "protocolVersion": { 24 | "minor": 0, 25 | "major": 0 26 | }, 27 | "a0": 0.0, 28 | "rho": 0.0, 29 | "decentralisationParam": 1.0 30 | }, 31 | "networkMagic": 42, 32 | "initialFunds": {}, 33 | "networkId": "Testnet", 34 | "maxKESEvolutions": 60, 35 | "genDelegs": {}, 36 | "slotLength": 1, 37 | "systemStart": "1970-01-01T00:00:00Z", 38 | "epochLength": 432000, 39 | "staking": { 40 | "pools": {}, 41 | "stake": {} 42 | } 43 | } -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/config-conway/genesis.byron.json: -------------------------------------------------------------------------------- 1 | { "bootStakeholders": 2 | { "1a3e49767796fd99b057ad54db3310fd640806fcb0927399bbca7b43": 1 } 3 | , "heavyDelegation": 4 | { } 5 | , "startTime": 1637266922 6 | , "nonAvvmBalances": 7 | { } 8 | , "blockVersionData": 9 | { "scriptVersion": 0 10 | , "slotDuration": "20000" 11 | , "maxBlockSize": "2000000" 12 | , "maxHeaderSize": "2000000" 13 | , "maxTxSize": "4096" 14 | , "maxProposalSize": "700" 15 | , "mpcThd": "20000000000000" 16 | , "heavyDelThd": "300000000000" 17 | , "updateVoteThd": "1000000000000" 18 | , "updateProposalThd": "100000000000000" 19 | , "updateImplicit": "10000" 20 | , "softforkRule": 21 | { "initThd": "900000000000000" 22 | , "minThd": "600000000000000" 23 | , "thdDecrement": "50000000000000" 24 | } 25 | , "txFeePolicy": 26 | { "summand": "155381000000000" , "multiplier": "43946000000" } 27 | , "unlockStakeEpoch": "18446744073709551615" 28 | } 29 | , "protocolConsts": { "k": 10 , "protocolMagic": 42 } 30 | , "avvmDistr": {} 31 | } 32 | -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/config-conway/genesis.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "maxLovelaceSupply": 0, 3 | "securityParam": 2160, 4 | "slotsPerKESPeriod": 129600, 5 | "updateQuorum": 5, 6 | "activeSlotsCoeff": 5.0e-2, 7 | "protocolParams": { 8 | "minUTxOValue": 0, 9 | "eMax": 18, 10 | "extraEntropy": { 11 | "tag": "NeutralNonce" 12 | }, 13 | "minFeeB": 0, 14 | "tau": 0.0, 15 | "maxBlockBodySize": 65536, 16 | "maxTxSize": 16384, 17 | "minPoolCost": 0, 18 | "minFeeA": 1, 19 | "nOpt": 100, 20 | "maxBlockHeaderSize": 1100, 21 | "keyDeposit": 0, 22 | "poolDeposit": 0, 23 | "protocolVersion": { 24 | "minor": 0, 25 | "major": 0 26 | }, 27 | "a0": 0.0, 28 | "rho": 0.0, 29 | "decentralisationParam": 1.0 30 | }, 31 | "networkMagic": 42, 32 | "initialFunds": {}, 33 | "networkId": "Testnet", 34 | "maxKESEvolutions": 60, 35 | "genDelegs": {}, 36 | "slotLength": 1, 37 | "systemStart": "1970-01-01T00:00:00Z", 38 | "epochLength": 432000, 39 | "staking": { 40 | "pools": {}, 41 | "stake": {} 42 | } 43 | } -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/config-hf-epoch1/genesis.byron.json: -------------------------------------------------------------------------------- 1 | { "bootStakeholders": 2 | { "1a3e49767796fd99b057ad54db3310fd640806fcb0927399bbca7b43": 1 } 3 | , "heavyDelegation": 4 | { } 5 | , "startTime": 1637266922 6 | , "nonAvvmBalances": 7 | { } 8 | , "blockVersionData": 9 | { "scriptVersion": 0 10 | , "slotDuration": "20000" 11 | , "maxBlockSize": "2000000" 12 | , "maxHeaderSize": "2000000" 13 | , "maxTxSize": "4096" 14 | , "maxProposalSize": "700" 15 | , "mpcThd": "20000000000000" 16 | , "heavyDelThd": "300000000000" 17 | , "updateVoteThd": "1000000000000" 18 | , "updateProposalThd": "100000000000000" 19 | , "updateImplicit": "10000" 20 | , "softforkRule": 21 | { "initThd": "900000000000000" 22 | , "minThd": "600000000000000" 23 | , "thdDecrement": "50000000000000" 24 | } 25 | , "txFeePolicy": 26 | { "summand": "155381000000000" , "multiplier": "43946000000" } 27 | , "unlockStakeEpoch": "18446744073709551615" 28 | } 29 | , "protocolConsts": { "k": 10 , "protocolMagic": 42 } 30 | , "avvmDistr": {} 31 | } 32 | -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/config-hf-epoch1/genesis.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "maxLovelaceSupply": 0, 3 | "securityParam": 2160, 4 | "slotsPerKESPeriod": 129600, 5 | "updateQuorum": 5, 6 | "activeSlotsCoeff": 5.0e-2, 7 | "protocolParams": { 8 | "minUTxOValue": 0, 9 | "eMax": 18, 10 | "extraEntropy": { 11 | "tag": "NeutralNonce" 12 | }, 13 | "minFeeB": 0, 14 | "tau": 0.0, 15 | "maxBlockBodySize": 65536, 16 | "maxTxSize": 16384, 17 | "minPoolCost": 0, 18 | "minFeeA": 1, 19 | "nOpt": 100, 20 | "maxBlockHeaderSize": 1100, 21 | "keyDeposit": 0, 22 | "poolDeposit": 0, 23 | "protocolVersion": { 24 | "minor": 0, 25 | "major": 0 26 | }, 27 | "a0": 0.0, 28 | "rho": 0.0, 29 | "decentralisationParam": 1.0 30 | }, 31 | "networkMagic": 42, 32 | "initialFunds": {}, 33 | "networkId": "Testnet", 34 | "maxKESEvolutions": 60, 35 | "genDelegs": {}, 36 | "slotLength": 1, 37 | "systemStart": "1970-01-01T00:00:00Z", 38 | "epochLength": 432000, 39 | "staking": { 40 | "pools": {}, 41 | "stake": {} 42 | } 43 | } -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/config-shelley/genesis.byron.json: -------------------------------------------------------------------------------- 1 | { "bootStakeholders": 2 | { "1a3e49767796fd99b057ad54db3310fd640806fcb0927399bbca7b43": 1 } 3 | , "heavyDelegation": 4 | { } 5 | , "startTime": 1637266922 6 | , "nonAvvmBalances": 7 | { } 8 | , "blockVersionData": 9 | { "scriptVersion": 0 10 | , "slotDuration": "20000" 11 | , "maxBlockSize": "2000000" 12 | , "maxHeaderSize": "2000000" 13 | , "maxTxSize": "4096" 14 | , "maxProposalSize": "700" 15 | , "mpcThd": "20000000000000" 16 | , "heavyDelThd": "300000000000" 17 | , "updateVoteThd": "1000000000000" 18 | , "updateProposalThd": "100000000000000" 19 | , "updateImplicit": "10000" 20 | , "softforkRule": 21 | { "initThd": "900000000000000" 22 | , "minThd": "600000000000000" 23 | , "thdDecrement": "50000000000000" 24 | } 25 | , "txFeePolicy": 26 | { "summand": "155381000000000" , "multiplier": "43946000000" } 27 | , "unlockStakeEpoch": "18446744073709551615" 28 | } 29 | , "protocolConsts": { "k": 216 , "protocolMagic": 42 } 30 | , "avvmDistr": {} 31 | } 32 | -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/config/genesis.byron.json: -------------------------------------------------------------------------------- 1 | { "bootStakeholders": 2 | { "1a3e49767796fd99b057ad54db3310fd640806fcb0927399bbca7b43": 1 } 3 | , "heavyDelegation": 4 | { } 5 | , "startTime": 1637266922 6 | , "nonAvvmBalances": 7 | { } 8 | , "blockVersionData": 9 | { "scriptVersion": 0 10 | , "slotDuration": "20000" 11 | , "maxBlockSize": "2000000" 12 | , "maxHeaderSize": "2000000" 13 | , "maxTxSize": "4096" 14 | , "maxProposalSize": "700" 15 | , "mpcThd": "20000000000000" 16 | , "heavyDelThd": "300000000000" 17 | , "updateVoteThd": "1000000000000" 18 | , "updateProposalThd": "100000000000000" 19 | , "updateImplicit": "10000" 20 | , "softforkRule": 21 | { "initThd": "900000000000000" 22 | , "minThd": "600000000000000" 23 | , "thdDecrement": "50000000000000" 24 | } 25 | , "txFeePolicy": 26 | { "summand": "155381000000000" , "multiplier": "43946000000" } 27 | , "unlockStakeEpoch": "18446744073709551615" 28 | } 29 | , "protocolConsts": { "k": 10 , "protocolMagic": 42 } 30 | , "avvmDistr": {} 31 | } 32 | -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/config/genesis.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "maxLovelaceSupply": 0, 3 | "securityParam": 2160, 4 | "slotsPerKESPeriod": 129600, 5 | "updateQuorum": 5, 6 | "activeSlotsCoeff": 5.0e-2, 7 | "protocolParams": { 8 | "minUTxOValue": 0, 9 | "eMax": 18, 10 | "extraEntropy": { 11 | "tag": "NeutralNonce" 12 | }, 13 | "minFeeB": 0, 14 | "tau": 0.0, 15 | "maxBlockBodySize": 65536, 16 | "maxTxSize": 16384, 17 | "minPoolCost": 0, 18 | "minFeeA": 1, 19 | "nOpt": 100, 20 | "maxBlockHeaderSize": 1100, 21 | "keyDeposit": 0, 22 | "poolDeposit": 0, 23 | "protocolVersion": { 24 | "minor": 0, 25 | "major": 0 26 | }, 27 | "a0": 0.0, 28 | "rho": 0.0, 29 | "decentralisationParam": 1.0 30 | }, 31 | "networkMagic": 42, 32 | "initialFunds": {}, 33 | "networkId": "Testnet", 34 | "maxKESEvolutions": 60, 35 | "genDelegs": {}, 36 | "slotLength": 1, 37 | "systemStart": "1970-01-01T00:00:00Z", 38 | "epochLength": 432000, 39 | "staking": { 40 | "pools": {}, 41 | "stake": {} 42 | } 43 | } -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/config2/genesis.byron.json: -------------------------------------------------------------------------------- 1 | { "bootStakeholders": 2 | { "1a3e49767796fd99b057ad54db3310fd640806fcb0927399bbca7b43": 1 } 3 | , "heavyDelegation": 4 | { } 5 | , "startTime": 1637266922 6 | , "nonAvvmBalances": 7 | { } 8 | , "blockVersionData": 9 | { "scriptVersion": 0 10 | , "slotDuration": "20000" 11 | , "maxBlockSize": "2000000" 12 | , "maxHeaderSize": "2000000" 13 | , "maxTxSize": "4096" 14 | , "maxProposalSize": "700" 15 | , "mpcThd": "20000000000000" 16 | , "heavyDelThd": "300000000000" 17 | , "updateVoteThd": "1000000000000" 18 | , "updateProposalThd": "100000000000000" 19 | , "updateImplicit": "10000" 20 | , "softforkRule": 21 | { "initThd": "900000000000000" 22 | , "minThd": "600000000000000" 23 | , "thdDecrement": "50000000000000" 24 | } 25 | , "txFeePolicy": 26 | { "summand": "155381000000000" , "multiplier": "43946000000" } 27 | , "unlockStakeEpoch": "18446744073709551615" 28 | } 29 | , "protocolConsts": { "k": 2160 , "protocolMagic": 42 } 30 | , "avvmDistr": {} 31 | } 32 | -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/config2/genesis.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "maxLovelaceSupply": 0, 3 | "securityParam": 2160, 4 | "slotsPerKESPeriod": 129600, 5 | "updateQuorum": 5, 6 | "activeSlotsCoeff": 5.0e-2, 7 | "protocolParams": { 8 | "minUTxOValue": 0, 9 | "eMax": 18, 10 | "extraEntropy": { 11 | "tag": "NeutralNonce" 12 | }, 13 | "minFeeB": 0, 14 | "tau": 0.0, 15 | "maxBlockBodySize": 65536, 16 | "maxTxSize": 16384, 17 | "minPoolCost": 0, 18 | "minFeeA": 1, 19 | "nOpt": 100, 20 | "maxBlockHeaderSize": 1100, 21 | "keyDeposit": 0, 22 | "poolDeposit": 0, 23 | "protocolVersion": { 24 | "minor": 0, 25 | "major": 0 26 | }, 27 | "a0": 0.0, 28 | "rho": 0.0, 29 | "decentralisationParam": 1.0 30 | }, 31 | "networkMagic": 42, 32 | "initialFunds": {}, 33 | "networkId": "Testnet", 34 | "maxKESEvolutions": 60, 35 | "genDelegs": {}, 36 | "slotLength": 1, 37 | "systemStart": "1970-01-01T00:00:00Z", 38 | "epochLength": 432000, 39 | "staking": { 40 | "pools": {}, 41 | "stake": {} 42 | } 43 | } -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/config2/pools/bulk1.creds: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/config3/genesis.byron.json: -------------------------------------------------------------------------------- 1 | { "bootStakeholders": 2 | { "1a3e49767796fd99b057ad54db3310fd640806fcb0927399bbca7b43": 1 } 3 | , "heavyDelegation": 4 | { } 5 | , "startTime": 1637266922 6 | , "nonAvvmBalances": 7 | { } 8 | , "blockVersionData": 9 | { "scriptVersion": 0 10 | , "slotDuration": "20000" 11 | , "maxBlockSize": "2000000" 12 | , "maxHeaderSize": "2000000" 13 | , "maxTxSize": "4096" 14 | , "maxProposalSize": "700" 15 | , "mpcThd": "20000000000000" 16 | , "heavyDelThd": "300000000000" 17 | , "updateVoteThd": "1000000000000" 18 | , "updateProposalThd": "100000000000000" 19 | , "updateImplicit": "10000" 20 | , "softforkRule": 21 | { "initThd": "900000000000000" 22 | , "minThd": "600000000000000" 23 | , "thdDecrement": "50000000000000" 24 | } 25 | , "txFeePolicy": 26 | { "summand": "155381000000000" , "multiplier": "43946000000" } 27 | , "unlockStakeEpoch": "18446744073709551615" 28 | } 29 | , "protocolConsts": { "k": 2160 , "protocolMagic": 42 } 30 | , "avvmDistr": {} 31 | } 32 | -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/config3/genesis.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "maxLovelaceSupply": 0, 3 | "securityParam": 2160, 4 | "slotsPerKESPeriod": 129600, 5 | "updateQuorum": 5, 6 | "activeSlotsCoeff": 5.0e-2, 7 | "protocolParams": { 8 | "minUTxOValue": 0, 9 | "eMax": 18, 10 | "extraEntropy": { 11 | "tag": "NeutralNonce" 12 | }, 13 | "minFeeB": 0, 14 | "tau": 0.0, 15 | "maxBlockBodySize": 65536, 16 | "maxTxSize": 16384, 17 | "minPoolCost": 0, 18 | "minFeeA": 1, 19 | "nOpt": 100, 20 | "maxBlockHeaderSize": 1100, 21 | "keyDeposit": 0, 22 | "poolDeposit": 0, 23 | "protocolVersion": { 24 | "minor": 0, 25 | "major": 0 26 | }, 27 | "a0": 0.0, 28 | "rho": 0.0, 29 | "decentralisationParam": 1.0 30 | }, 31 | "networkMagic": 42, 32 | "initialFunds": {}, 33 | "networkId": "Testnet", 34 | "maxKESEvolutions": 60, 35 | "genDelegs": {}, 36 | "slotLength": 1, 37 | "systemStart": "1970-01-01T00:00:00Z", 38 | "epochLength": 432000, 39 | "staking": { 40 | "pools": {}, 41 | "stake": {} 42 | } 43 | } -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/addSimple: -------------------------------------------------------------------------------- 1 | [28] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/addSimple-alonzo: -------------------------------------------------------------------------------- 1 | [6] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/addSimpleChain: -------------------------------------------------------------------------------- 1 | [28,33,34] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/addSimpleChain-alonzo: -------------------------------------------------------------------------------- 1 | [6,43,46] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/addSimpleTx: -------------------------------------------------------------------------------- 1 | [5] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/addSimpleTx-alonzo: -------------------------------------------------------------------------------- 1 | [3] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/addSimpleTxShelley: -------------------------------------------------------------------------------- 1 | [0] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/bigChain: -------------------------------------------------------------------------------- 1 | [28,42,43,52,62,82,92,106,109,133,161,162,171,195,196,197,206,208,216,222,272,275,282,347,382,392,393,398,414,424,446,448,465,478,485,499,500,506,508,509,513,514,515,518,539,548,566,577,584,589,602,613,626,644,661,664,668,677,725,729,736,746,749,757,773,774,784,810,813,819,828,849,852,866,876,880,886,895,900,924,930,952,964,971,981,987,989,1001,1005,1012,1025,1026,1041,1046,1060,1071,1076,1079,1101,1119,1140,1144,1166,1181,1191,1205,1212,1250,1260,1263,1265,1308,1346,1370,1398,1409,1433,1441,1457,1477,1511,1527,1603,1645,1652,1710,1714,1721,1773,1803,1816,1818,1843,1879,1896,1897,1914,1923,1926,1940,1950,1963,1968,1972,1999,2002,2009,2021,2030,2043,2050,2051,2057,2067,2092,2106,2128,2157,2170,2206,2224,2273,2319,2346,2382,2387,2392,2394,2397,2437,2443,2475,2511,2531,2547,2582,2609,2615,2632,2662,2666,2686,2699,2706,2741,2744,2748,2756,2773,2809,2849,2850,2853,2856,2862,2876,2914,2937,2958,2990,3053,3066,3084,3085,3086,3092] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/configJsonbInSchemaShouldRemoveThenAdd: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/configNoPools: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/configNoPruneSameBlock: -------------------------------------------------------------------------------- 1 | [5,11,15,21,22,23,28,33,34,36,42,43,48,52,62,82,88,92,102,106,109,111,116,133,134,143,151,153,157,161,162,171,182,183,193,195,196,197,200,206,208,216,219,222,238,245,250,262,271,272,275,282,286,296,301,310,311,314,325,340,347,354,355,365,376,379,382,384,389,390,391,392,393,398,404,407,414,418,419,422,424,446,448,450,457,465,476,478,485,486,488,499,503,506,509,512,515,518,524,526,518] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/configNoStakes: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/configPrune: -------------------------------------------------------------------------------- 1 | [5,11,15,21,22,23,28,33,34,36,42,43,48,52,62,82,88,92,102,106,109,111,116,133,134,143,151,153,157,161,162,171,182,183,193,195,196,197,200,206,208,216,219,222,238,245,250,262,271,272,275,282,286,296,301,310,311,314,325,340,347,354,355,365,376,379,382,384,389,390,391,392,393,398,404,407,414,418,419,422,424,446,448,450,457,465,476,478,485,486,488,499,503,506,509,512,515,518,524,526] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/configPruneAndRollBack: -------------------------------------------------------------------------------- 1 | [5,11,15,21,22,23,28,33,34,36,42,43,48,52,62,82,88,92,102,106,109,111,116,133,134,143,151,153,157,161,162,171,182,183,193,195,196,197,200,206,208,216,219,222,238,245,250,262,271,272,275,282,286,296,301,310,311,314,325,340,347,354,355,365,376,379,382,384,389,390,391,392,393,398,404,407,414,418,419,422,424,446,448,450,457,465,476,478,485,486,488,499,503,506,509,512,515,518,524,526,527,527,530,541,542,549,556,561,570,576,578,579,583,589,596,597,609,611,615,620,621,627,633,634,644,650,651,654,661,671,675,680,682,687,694,698,703,705,711,716,718,726,728,730,739,748,749,757,761,782,784,785,791,796,798,815,818,823,837,845,846,847,858,862,865,877,879,881,882,884,885,888,890,892,893,895,898,900,904,908,916,921,922,923,929,930,932,934,936,950,956,957,968,969,985,992,993,994,1009,1011,1022,1025,1027,1033] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/configPruneCorrectAmount: -------------------------------------------------------------------------------- 1 | [5,11,15,21,22,23,28,33,34,36,42,43,48,52,62,82,88,92,102,106,109,111,116,133,134,143,151,153,157,161,162,171,182,183,193,195,196,197,200,206,208,216,219,222,238,245,250,262,271,272,275,282,286,296,301,310,311,314,325,340,347,354,355,365,376,379,382,384,389,390,391,392,393,398,404,407,414,418,419,422,424,446,448,450,457,465,476,478,485,486,488,499,503,506,509,512,515,518,524,526,527,530,541,542,549,556,561,570,576,578,579,583,589,596,597,609,611,615,620,621,627,633,634,644,650,651,654,661,671,675,680,682,687,694,698,703,705,711,716,718,726,728,730,739,748,749,757,761,782,784,785,791,796,798,815,818,823,837,845,846,847,858,862,865,877,879,881,882,884,885,888,890,892,893,895,898,900,904,908,916,921,922,923,929,930,932,934,936,950,956,957,968,969,985,992,993,994,1012,1015,1023,1037,1038,1042,1049,1052,1054,1056,1067,1068,1069] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/configPruneOnFullRollback: -------------------------------------------------------------------------------- 1 | [5,11,11] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/configPruneSameBlock: -------------------------------------------------------------------------------- 1 | [5,11,15,21,22,23,28,33,34,36,42,43,48,52,62,82,88,92,102,106,109,111,116,133,134,143,151,153,157,161,162,171,182,183,193,195,196,197,200,206,208,216,219,222,238,245,250,262,271,272,275,282,286,296,301,310,311,314,325,340,347,354,355,365,376,379,382,384,389,390,391,392,393,398,404,407,414,418,419,422,424,446,448,450,457,465,476,478,485,486,488,499,503,506,509,512,515,518,524,526,418] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/configPruneSimpleRollback: -------------------------------------------------------------------------------- 1 | [28,33,34,36,42,43,48,52,62,82,88,92,102,106,109,111,116,133,134,143,151,153,157,161,162,171,182,183,193,195,196,197,200,206,208,216,219,222,238,245,250,262,271,272,275,282,286,296,301,310,311,314,325,340,347,354,355,365,376,379,382,384,389,390,391,392,393,398,404,407,414,418,419,422,424,446,448,450,457,465,476,478,485,486,488,499,503,510,513,514,519,521,522,523,529,533,536,539,545,549] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/consumeSameBlock: -------------------------------------------------------------------------------- 1 | [5] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/consumeSameBlock-alonzo: -------------------------------------------------------------------------------- 1 | [3] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayAddSimple: -------------------------------------------------------------------------------- 1 | [18] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayAddSimpleChain: -------------------------------------------------------------------------------- 1 | [18,21,24] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayAddSimpleTx: -------------------------------------------------------------------------------- 1 | [12] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayAddSimpleTxShelley: -------------------------------------------------------------------------------- 1 | [0] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayBigChain: -------------------------------------------------------------------------------- 1 | [18,32,33,40,41,60,80,84,106,110,111,112,154,168,178,183,194,198,200,202,223,224,239,242,261,288,303,313,315,331,344,364,369,394,407,418,425,439,450,453,467,492,499,516,517,526,538,544,562,574,580,594,602,603,632,640,641,653,659,684,703,792,808,810,812,816,819,822,844,867,868,921,930,938,939,951,961,970,971,974,993,1009,1025,1052,1070,1093,1110,1111,1114,1126,1161,1170,1171,1174,1191,1207,1217,1218,1244,1275,1299,1313,1343,1357,1361,1363,1380,1382,1387,1402,1405,1433,1469,1495,1498,1517,1572,1579,1658,1667,1699,1720,1762,1802,1806,1808,1816,1849,1861,1905,1950,1977,1987,2023,2027,2028,2030,2042,2043,2045,2058,2064,2068,2120,2170,2183,2233,2256,2284,2290,2291,2318,2335,2336,2363,2378,2382,2397,2399,2404,2446,2464,2479,2487,2489,2500,2503,2519,2532,2559,2584,2651,2681,2690,2710,2711,2716,2718,2739,2758,2777,2815,2835,2849,2950,2977,2988,2991,3010,3030,3046,3092,3122,3123,3183,3186,3199,3212,3214,3240,3268,3273,3279,3301,3308,3323] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayCLACheckEpochDisabledArg: -------------------------------------------------------------------------------- 1 | [12,16,18,21,24,30,31,32,33,40,41,42,43,47,52,60,62,70,80,84,86,92,98,100,106,109,110,111,112,127,134,138,146,149,154,166,168,178,183,188,193,194,198,200,202,220,222,223,224,225,231,239,242,247,261,282,283,288,289,301,302,303,308,313,315,316,320,331,334,344,345,363,364,368,369,375,377,381,389,394,407,418,422,425,430,437,438,439,440,447,450,453,454,456,458,461,467,492,499,507,516,524,538,541,544,546,550,567,573,576,577,579] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayChainedNewCommittee: -------------------------------------------------------------------------------- 1 | [12,16,18,21,24,30,31,32,33,40,41,42,43,47,52,60,62,70,80,84,86,92,98,100,106,109,110,111,112,127,134,138,146,149,154,166,168,178,183,188,193,194,198,200,202,220,222,223,224,225,231,239,242,247,261,282,283,288,289,301,302,303,308,313,315,316,320,331,334,344,345,363,364,368,369,375,377,381,389,394,407,418,422,425,430,437,438,439,440,447,450,453,454,456,458,461,467,492,499,507,516,524] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayConfigLedgerDisabled: -------------------------------------------------------------------------------- 1 | [12] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayConfigMetadataDisabled: -------------------------------------------------------------------------------- 1 | [12] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayConfigMetadataEnabled: -------------------------------------------------------------------------------- 1 | [12] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayConfigMetadataKeep: -------------------------------------------------------------------------------- 1 | [12] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayConfigMultiAssetsDisabled: -------------------------------------------------------------------------------- 1 | [12] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayConfigNoPools: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayConfigNoPruneAndRollBack: -------------------------------------------------------------------------------- 1 | [12,16,18,21,24,30,31,32,33,40,41,42,43,47,52,60,62,70,80,84,86,92,98,100,106,109,110,111,112,127,134,138,146,149,154,166,168,178,183,188,193,194,198,200,202,220,222,223,224,225,231,239,242,247,261,282,283,288,289,301,302,303,308,313,315,316,320,331,334,344,345,363,364,368,369,375,377,381,389,394,407,418,422,425,430,437,438,439,440,447,450,453,454,456,458,461,467,492,499,507,516,516,524,538,541,544,546,550,567,573,576,577,579,580,586,589,595,597,603,605,609,616,618,619,623,624,634,636,643,644,659,664,665,672,678,692,705,711,712,719,726,730,739,740,743,747,749,751,754,759,762,763,765,767,773,777,786,788,789,794,801,806,807,829,830,832,849,851,853,869,871,874,875,878,882,888,893,895,896,898,899,903,906,908,911,912,913,922,930,932,938,941,944,950,960,963,966,968,972,977,985,986,988,990] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayConfigNoPruneSameBlock: -------------------------------------------------------------------------------- 1 | [12,16,18,21,24,30,31,32,33,40,41,42,43,47,52,60,62,70,80,84,86,92,98,100,106,109,110,111,112,127,134,138,146,149,154,166,168,178,183,188,193,194,198,200,202,220,222,223,224,225,231,239,242,247,261,282,283,288,289,301,302,303,308,313,315,316,320,331,334,344,345,363,364,368,369,375,377,381,389,394,407,418,422,425,430,437,438,439,440,447,450,453,454,456,458,461,467,492,499,507,492] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayConfigNoStakes: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayConfigPlutusDisbaled: -------------------------------------------------------------------------------- 1 | [12,16] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayConfigPrune: -------------------------------------------------------------------------------- 1 | [12,16,18,21,24,30,31,32,33,40,41,42,43,47,52,60,62,70,80,84,86,92,98,100,106,109,110,111,112,127,134,138,146,149,154,166,168,178,183,188,193,194,198,200,202,220,222,223,224,225,231,239,242,247,261,282,283,288,289,301,302,303,308,313,315,316,320,331,334,344,345,363,364,368,369,375,377,381,389,394,407,418,422,425,430,437,438,439,440,447,450,453,454,456,458,461,467,492,499,507] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayConfigPruneAndRollBack: -------------------------------------------------------------------------------- 1 | [12,16,18,21,24,30,31,32,33,40,41,42,43,47,52,60,62,70,80,84,86,92,98,100,106,109,110,111,112,127,134,138,146,149,154,166,168,178,183,188,193,194,198,200,202,220,222,223,224,225,231,239,242,247,261,282,283,288,289,301,302,303,308,313,315,316,320,331,334,344,345,363,364,368,369,375,377,381,389,394,407,418,422,425,430,437,438,439,440,447,450,453,454,456,458,461,467,492,499,507,516,516,524,538,541,544,546,550,567,573,576,577,579,580,586,589,595,597,603,605,609,616,618,619,623,624,634,636,643,644,659,664,665,672,678,692,705,711,712,719,726,730,739,740,743,747,749,751,754,759,762,763,765,767,773,777,786,788,789,794,801,806,807,829,830,832,849,851,853,869,871,874,875,878,882,888,893,895,896,898,899,903,906,908,911,912,913,922,930,932,938,941,944,950,960,963,966,968,972,977,985,986,988,990] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayConfigPruneCorrectAmount: -------------------------------------------------------------------------------- 1 | [12,16,18,21,24,30,31,32,33,40,41,42,43,47,52,60,62,70,80,84,86,92,98,100,106,109,110,111,112,127,134,138,146,149,154,166,168,178,183,188,193,194,198,200,202,220,222,223,224,225,231,239,242,247,261,282,283,288,289,301,302,303,308,313,315,316,320,331,334,344,345,363,364,368,369,375,377,381,389,394,407,418,422,425,430,437,438,439,440,447,450,453,454,456,458,461,467,492,499,507,516,524,538,541,544,546,550,567,573,576,577,579,580,586,589,595,597,603,605,609,616,618,619,623,624,634,636,643,644,659,664,665,672,678,692,705,711,712,719,726,730,739,740,743,747,749,751,754,759,762,763,765,767,773,777,786,788,789,794,801,806,807,829,830,832,849,851,853,869,871,874,875,878,882,888,893,895,896,898,899,903,906,908,911,912,913,922,930,932,938,941,944,950,960,963,966,968,972,977,985,986,988,990,991,994,997,1000,1003,1008,1009] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayConfigPruneOnFullRollback: -------------------------------------------------------------------------------- 1 | [12,16,16] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayConfigPruneSameBlock: -------------------------------------------------------------------------------- 1 | [12,16,18,21,24,30,31,32,33,40,41,42,43,47,52,60,62,70,80,84,86,92,98,100,106,109,110,111,112,127,134,138,146,149,154,166,168,178,183,188,193,194,198,200,202,220,222,223,224,225,231,239,242,247,261,282,283,288,289,301,302,303,308,313,315,316,320,331,334,344,345,363,364,368,369,375,377,381,389,394,407,418,422,425,430,437,438,439,440,447,450,453,454,456,458,461,467,492,499,507,381] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayConfigPruneSimpleRollback: -------------------------------------------------------------------------------- 1 | [18,21,24,30,31,32,33,40,41,42,43,47,52,60,62,70,80,84,86,92,98,100,106,109,110,111,112,127,134,138,146,149,154,166,168,178,183,188,193,194,198,200,202,220,222,223,224,225,231,239,242,247,261,282,283,288,289,301,302,303,308,313,315,316,320,331,334,344,345,363,364,368,369,375,377,381,389,394,407,418,422,425,430,437,438,439,440,447,450,453,454,456,458,461,467,492,499,509,511,526] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayConfigRemoveJsonbFromSchemaDisabled: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayConfigRemoveJsonbFromSchemaEnabled: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayConfigShelleyDisabled: -------------------------------------------------------------------------------- 1 | [12] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayConfigShelleyEnabled: -------------------------------------------------------------------------------- 1 | [12] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayConsumeSameBlock: -------------------------------------------------------------------------------- 1 | [12] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayDelegations2000: -------------------------------------------------------------------------------- 1 | [12,16,18,21,24,30,31,32,33,40,41,42,43,47,52,60,62,70,80,84,86,92,98,100,106,109,110,111,112,127,134,138,146,149,154,166,168,178,183,188,193,194,198,200,202,220,222,223,224,225,231,239,242,247,261,282,283,288,289,301,302,303,308,313,315,316,320,331,334,344,345,363,364,368,369,375,377,381,389,394,407,418,422,425,430,437,438,439,440,447,450,453,454,456,458,461,467,492,499,507,516,524,538,541,544,546,550,567,573,576,577] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayDelegations2001: -------------------------------------------------------------------------------- 1 | [12,16,18,21,24,30,31,32,33,40,41,42,43,47,52,60,62,70,80,84,86,92,98,100,106,109,110,111,112,127,134,138,146,149,154,166,168,178,183,188,193,194,198,200,202,220,222,223,224,225,231,239,242,247,261,282,283,288,289,301,302,303,308,313,315,316,320,331,334,344,345,363,364,368,369,375,377,381,389,394,407,418,422,425,430,437,438,439,440,447,450,453,454,456,458,461,467,492,499,507,516,524,538,541,544,546,550,567,573,576,577] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayDelegations8000: -------------------------------------------------------------------------------- 1 | [12,16,18,21,24,30,31,32,33,40,41,42,43,47,52,60,62,70,80,84,86,92,98,100,106,109,110,111,112,127,134,138,146,149,154,166,168,178,183,188,193,194,198,200,202,220,222,223,224,225,231,239,242,247,261,282,283,288,289,301,302,303,308,313,315,316,320,331,334,344,345,363,364,368,369,375,377,381,389,394,407,418,422,425,430,437,438,439,440,447,450,453,454,456,458,461,467,492,499,507,516,524,538,541,544,546,550,567,573,576,577,579,580,586,589,595,597,603,605,609,616,618,619,623,624,634,636,643,644,659,664,665,672,678,692,705,711,712,719,726,730,739,740,743,747,749,751,754,759,762,763,765,767,773,777,786,788,789,794,801,806,807,829,830,832,849,851,853,869,871,874,875,878,882,888,893,895,896,898,899,903,906,908,911,912,913,922,930,932,938,941,944,950,960,963,966,968,972,977,985,986,988,990,991,994,997,1000,1001,1011,1015,1016,1017,1018,1019,1024,1025,1030,1036,1038,1039,1054] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayDeregistrationScriptTx: -------------------------------------------------------------------------------- 1 | [12] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayDeregistrationsScriptTx': -------------------------------------------------------------------------------- 1 | [12] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayDeregistrationsScriptTx'': -------------------------------------------------------------------------------- 1 | [12] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayDeregistrationsScriptTxs: -------------------------------------------------------------------------------- 1 | [12] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayDrepDistr: -------------------------------------------------------------------------------- 1 | [12,16,18,21,24,30,31,32,33,40,41,42,43,47,52,60,62,70,80,84,86,92,98,100,106,109,110,111,112,127,134,138,146,149,154,166,168,178,183,188,193,194,198,200,202,220,222,223,224,225,231,239,242,247,261,282,283,288,289,301,302,303,308,313,315,316,320,331,334,344,345,363,364,368,369,375,377,381,389,394,407,418,422,425,430,437,438,439,440,447,450,453,454,456,458,461,467,492,499,507,516] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayFailedScript: -------------------------------------------------------------------------------- 1 | [21,24] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayFailedScriptFees: -------------------------------------------------------------------------------- 1 | [21,24] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayFailedScriptSameBlock: -------------------------------------------------------------------------------- 1 | [12,16] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayForgeBlocks: -------------------------------------------------------------------------------- 1 | [18,21,24] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayForkFixedEpoch: -------------------------------------------------------------------------------- 1 | [1,3,4,7,8,9,10,11,14,30,31,33,34,35,40,42,44,61,62,74,76,82,85,88,89,93,95,102,104,106,111,114,120,123,141,143,146,149,158,170,171,178,186,190,198,201,207,209,210,221,223,227,245,249,250,259,260,265,272,276,283,284,294,296,301,305,306,311,312,317,318,321,322,325,331,333,337,339,345,347,348,350,365,375,377,379,382,391,394,401,407,411,413,415,424,428,445,453,467,469,471,474,487,489,490,492,497,498,515,519,520,524,528,529,530,531,554,557,567,568,575,576,597,603,615,616,631,637,640,641,643,650,654,656,657,662,668,676,678,688,694,695,698,700,701,702,703,716,725,727,729,730,732,733,738,747,750,771,774,777,778,780,785,796,798,799,805,808,819,821,822,827,831,833,835,838,841,844,847,848,858,859,860,863,864,872,875,889,906,912,913,914,917,942,943,945,948,950,952,954,955,959,967,971,980,981,983,993,997,1002,1003,1006,1019,1027,1030,1038,1041,1047,1049,1050,1052,1053,1057,1058,1060,1064,1071,1072,1085,1089,1091,1094,1102,1111,1127,1134,1140,1141,1145,1146,1147,1150,1165,1170,1181,1184,1185,1186,1207,1208,1216,1221,1231,1238,1241,1259,1261,1272,1276,1279,1284,1294,1298,1309,1310,1313,1317,1323,1326,1328,1330,1334,1338,1339,1343,1353,1358,1374,1386,1388,1391,1398,1403,1407,1409,1420,1421,1422,1427,1435,1436,1438,1443,1445,1446,1448,1468,1469,1483,1485,1486,1493,1494,1496,1501] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayForkParam: -------------------------------------------------------------------------------- 1 | [5,11,15,21,22,23,28,33,34,36,42,43,48,52,62,82,88,92,102,106,109,111,116,133,134,143,151,153,157,161,162,171,182,183,193,195,196,197,200,206,208,216,219,222,238,245,250,262,271,272,275,282,286,296,301,310,311,314,325,340,347,354,355,365,376,379,382,384,389,390,391,392,393,398,404,407,414,418,419,422,424,446,448,450,457,465,476,478,485,486,488,499,503,506,509,512,515,518,524,526,527,530,541,542,549,556,561,570,576,578,579,583,589,596,597,609,611,615,620,621,627,633,634,644,650,651,654,661,671,675,680,682,687,694,698,703,705,711,716,718,726,728,730,739,748,749,757,761,782,784,785,791,796,798,815,818,823,837,845,846,847,858,862,865,877,879,881,882,884,885,888,890,892,893,895,898,900,904,908,916,921,922,923,929,930,932,934,936,950,956,957,968,969,985,992,993,994,1009,1011] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayGovParameterChange: -------------------------------------------------------------------------------- 1 | [12,16,18,21,24,30,31,32,33,40,41,42,43,47,52,60,62,70,80,84,86,92,98,100,106,109,110,111,112,127,134,138,146,149,154,166,168,178,183,188,193,194,198,200,202,220,222,223,224,225,231,239,242,247,261,282,283,288,289,301,302,303,308,313,315,316,320,331,334,344,345,363,364,368,369,375,377,381,389,394,407,418,422,425,430,437,438,439,440,447,450,453,454,456,458,461,467,492,499,507,516,524,538,541,544,546,550,567,573,576,577,579,580,586,589,595,597,603,605,609,616,618,619,623,624,634,636,643,644,659,664,665,672,678,692,705,711,712,719,726,730,739,740,743,747,749,751,754,759,762,763,765,767,773,777,786,788,789,794,801,806,807,829,830,832,849,851,853,869,871,874,875,878,882,888,893,895,896,898,899,903,906,908,911,912,913,922,930,932,938,941,944,950,960,963,966,968,972,977,985,986,988,990,991,994,997,1001,1005,1008,1014,1019,1020,1021,1026,1027,1031,1032,1033,1036,1037,1049,1050,1053,1057,1062,1067,1068,1070,1074,1083,1102,1104,1107,1111,1115,1117,1118,1120,1125,1127,1137,1149,1151,1155,1161,1164,1167,1174,1187,1200,1201,1206,1213,1218,1221,1237,1242,1248,1258,1263,1266,1272,1277,1286,1299,1300,1304,1309,1313,1317,1336,1338,1343,1356,1363,1366,1376,1377,1379,1390,1397,1401,1408,1409,1410,1418,1423,1424,1429,1432,1435,1438,1439,1442,1444,1449,1453,1454,1461,1462,1470,1473,1474,1481,1484,1486,1503] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayGovernanceHardFork: -------------------------------------------------------------------------------- 1 | [12,16,18,21,24,30,31,32,33,40,41,42,43,47,52,60,62,70,80,84,86,92,98,100,106,109,110,111,112,127,134,138,146,149,154,166,168,178,183,188,193,194,198,200,202,220,222,223,224,225,231,239,242,247,261,282,283,288,289,301,302,303,308,313,315,316,320,331,334,344,345,363,364,368,369,375,377,381,389,394,407,418,422,425,430,437,438,439,440,447,450,453,454,456,458,461,467,492,499,507,516,524,538,541,544,546,550,567,573,576,577,579,580,586,589,595,597,603,605,609,616,618,619,623,624,634,636,643,644,659,664,665,672,678,692,705,711,712,719,726,730,739,740,743,747,749,751,754,759,762,763,765,767,773,777,786,788,789,794,801,806,807,829,830,832,849,851,853,869,871,874,875,878,882,888,893,895,896,898,899,903,906,908,911,912,913,922,930,932,938,941,944,950,960,963,966,968,972,977,985,986,988,990,991,994,997,1001,1005,1008,1014,1019,1020,1021,1026,1027,1031,1032,1033,1036,1037,1049,1050,1053,1057,1062,1067,1068,1070,1074,1083,1102,1104,1107,1111,1115,1117,1118,1120,1125,1127,1137,1149,1151,1155,1161,1164,1167,1174,1187,1200,1201,1206,1213,1218,1221,1237,1242,1248,1258,1263,1266,1272,1277,1286,1299,1300,1304,1309,1313,1317,1336,1338,1343,1356,1363,1366,1376,1377,1379,1390,1397,1401,1408,1409,1410,1418,1423,1424,1429,1432,1435,1438,1439,1442,1444,1449,1453,1454,1461,1462,1470,1473,1474,1481,1484,1486,1501] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayInlineDatumCBOR: -------------------------------------------------------------------------------- 1 | [12,21] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayLazyRollback: -------------------------------------------------------------------------------- 1 | [12,16,18,21,24,30,31,32,33,40,41,42,43,47,52,60,62,70,80,84,86,92,98,100,106,109,110,111,112,127,134,138,146,149,154,166,168,178,183,188,193,194,198,200,202,220,222,223,224,225,231,239,242,247,261,282,283,288,289,301,302,303,308,313,315,316,320,331,334,344,345,363,364,368,369,375,377,381,389,394,407,418,422,425,430,437,438,439,440,447,450,453,454,456,458,461,467,492,499,507,516,524,538,541,544,546,550,567,573,576,577,579,580,586,589,595,597,603,605,609,616,618,619,623,624,634,636,643,644,659,664,665,672,678,692,705,711,712,719,726,730,739,740,743,747,749,751,754,759,762,763,765,767,773,777,786,788,789,794,801,806,807,829,830,832,849,851,853,869,871,874,875,878,882,888,893,895,896,898,899,903,906,908,911,912,913,922,930,932,938,941,944,950,960,963,966,968,972,977,985,986,988,990,991,994,997,1005,1010,1012,1015,1038,1042,1046,1048,1049,1054,1055,1061,1067,1072,1073,1092,1097,1103,1106,1109,1125,1134,1143,1151,1154,1174,1175,1190,1191,1194,1200,1204,1212,1216,1225,1228,1231,1236,1241,1250,1252,1257,1258,1259,1262,1268,1278,1284,1290,1291,1294,1298,1300,1302,1308,1318,1331,1333,1339,1348,1349,1359,1368,1373,986,988,990,991,994,997,1005,1010,1012,1015,1038,1042,1046,1048,1049,1054,1055,1061,1067,1072,1073,1092,1097,1103,1106,1109,1125,1134,1143,1151,1154,1174,1175,1190,1191,1194,1200,1204,1212,1216,1225] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayLazyRollbackRestart: -------------------------------------------------------------------------------- 1 | [12,16,18,21,24,30,31,32,33,40,41,42,43,47,52,60,62,70,80,84,86,92,98,100,106,109,110,111,112,127,134,138,146,149,154,166,168,178,183,188,193,194,198,200,202,220,222,223,224,225,231,239,242,247,261,282,283,288,289,301,302,303,308,313,315,316,320,331,334,344,345,363,364,368,369,375,377,381,389,394,407,418,422,425,430,437,438,439,440,447,450,453,454,456,458,461,467,492,499,507,516,524,538,541,544,546,550,567,573,576,577,579,580,586,589,595,597,603,605,609,616,618,619,623,624,634,636,643,644,659,664,665,672,678,692,705,711,712,719,726,730,739,740,743,747,749,751,754,759,762,763,765,767,773,777,786,788,789,794,801,806,807,829,830,832,849,851,853,869,871,874,875,878,882,888,893,895,896,898,899,903,906,908,911,912,913,922,930,932,938,941,944,950,960,963,966,968,972,977,985,986,988,990,991,994,997,1005,1010,1012,1015,1038,1042,1046,1048,1049,1054,1055,1061,1067,1072,1073,1092,1097,1103,1106,1109,1125,1134,1143,1151,1154,1174,1175,1190,1191,1194,1200,1204,1212,1216,1225,1228,1231,1236,1241,1250,1252,1257,1258,1259,1262,1268,1278,1284,1290,1291,1294,1298,1300,1302,1308,1318,1331,1333,1339,1348,1349,1359,1368,1373,1385,1391,1400,1408,1410,1412,1424,1428,1430,1433,1073,1092,1097,1103,1106,1109,1125,1134,1143,1151,1154,1174,1175,1190,1191,1194,1200,1204,1212,1216,1225,1228,1231,1236,1241,1250,1252,1257,1258,1259,1262] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayMintMultiAsset: -------------------------------------------------------------------------------- 1 | [12] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayMintMultiAssets: -------------------------------------------------------------------------------- 1 | [12] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayMultipleScripts: -------------------------------------------------------------------------------- 1 | [21,30] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayMultipleScriptsFailed: -------------------------------------------------------------------------------- 1 | [21,30] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayMultipleScriptsFailedSameBlock: -------------------------------------------------------------------------------- 1 | [12] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayMultipleScriptsRollback: -------------------------------------------------------------------------------- 1 | [21,30,12,21,30] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayMultipleScriptsSameBlock: -------------------------------------------------------------------------------- 1 | [12] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayNewCommittee: -------------------------------------------------------------------------------- 1 | [12,16,18,21,24,30,31,32,33,40,41,42,43,47,52,60,62,70,80,84,86,92,98,100,106,109,110,111,112,127,134,138,146,149,154,166,168,178,183,188,193,194,198,200,202,220,222,223,224,225,231,239,242,247,261,282,283,288,289,301,302,303,308,313,315,316,320,331,334,344,345,363,364,368,369,375,377,381,389,394,407,418,422,425,430,437,438,439,440,447,450,453,454,456,458,461,467,492,499,507,516,524,538,541,544,546,550,567,573,576,577,579,580,586,589,595,597,603,605,609,616,618,619,623,624,634,636,643,644,659,664,665,672,678,692,705,711,712,719,726,730,739,740,743,747,749,751,754,759,762,763,765,767,773,777,786,788,789,794,801,806,807,829,830,832,849,851,853,869,871,874,875,878,882,888,893,895,896,898,899,903,906,908,911,912,913,922,930,932,938,941,944,950,960,963,966,968,972,977,985,986,988,990,991,994,997,1001,1005,1008,1014,1019,1020,1021,1026,1027,1031,1032,1033,1036,1037,1049,1050,1053,1057,1062,1067,1068,1070,1074,1083,1102,1104,1107,1111,1115,1117,1118,1120,1125,1127,1137,1149,1151,1155,1161,1164,1167,1174,1187,1200,1201,1206,1213,1218,1221,1237,1242,1248,1258,1263,1266,1272,1277,1286,1299,1300,1304,1309,1313,1317,1336,1338,1343,1356,1363,1366,1376,1377,1379,1390,1397,1401,1408,1409,1410,1418,1423,1424,1429,1432,1435,1438,1439,1442,1444,1449,1453,1454,1461,1462,1470,1473,1474,1481,1484,1486,1504] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayNodeRestart: -------------------------------------------------------------------------------- 1 | [12,16,18,21,24,30,31,32,33,40] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayNodeRestartBoundary: -------------------------------------------------------------------------------- 1 | [12,16,18,21,24,30,31,32,33,40,41,42,43,47,52,60,62,70,80,84,86,92,98,100,106,109,110,111,112,127,134,138,146,149,154,166,168,178,183,188,193,194,198,200,202,220,222,223,224,225,231,239,242,247,261,282,283,288,289,301,302,303,308,313,315,316,320,331,334,344,345,363,364,368,369,375,377,381,389,394,407,418,422,425,430,437,438,439,440,447,450,453,454,456,458,461,467,492,499,507,516,524,538,541,544] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayNonexistentPoolQuery: -------------------------------------------------------------------------------- 1 | [12] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayPoolDeReg: -------------------------------------------------------------------------------- 1 | [12,16,18,21,24,30,31,32,33,40,41,42,43,47,52,60,62,70,80,84,86,92,98,100,106,109,110,111,112,127,134,138,146,149,154,166,168,178,183,188,193,194,198,200,202,220,222,223,224,225,231,239,242,247,261,282,283,288,289,301,302,303,308,313,315,316,320,331,334,344,345,363,364,368,369,375,377,381,389,394,407,418,422,425,430,437,438,439,440,447,450,453,454,456,458,461,467,492,499,507] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayPoolDeRegMany: -------------------------------------------------------------------------------- 1 | [12,16,18,21,24,30,31,32,33,40,41,42,43,47,52,60,62,70,80,84,86,92,98,100,106,109,110,111,112,127,134,138,146,149,154,166,168,178,183,188,193,194,198,200,202,220,222,223,224,225,231,239,242,247,261,282,283,288,289,301,302,303,308,313,315,316,320,331,334,344,345,363,364,368,369,375,377,381,389,394,407,418,422,425,430,437,438,439,440,447,450,453,454,456,458,461,467,492,499,507] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayPoolDelist: -------------------------------------------------------------------------------- 1 | [12,16,18,21,24] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayPoolReg: -------------------------------------------------------------------------------- 1 | [12,16] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayRefScript: -------------------------------------------------------------------------------- 1 | [12,21,24] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayReferenceDelegation: -------------------------------------------------------------------------------- 1 | [12,16] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayReferenceInputUnspend: -------------------------------------------------------------------------------- 1 | [12,16] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayReferenceMintingScript: -------------------------------------------------------------------------------- 1 | [12,16] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayRegistrationScriptTx: -------------------------------------------------------------------------------- 1 | [12] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayRegistrationTx: -------------------------------------------------------------------------------- 1 | [12,16,18,21] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayRegistrationsSameBlock: -------------------------------------------------------------------------------- 1 | [12] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayRegistrationsSameTx: -------------------------------------------------------------------------------- 1 | [12] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayRestartAndRollback: -------------------------------------------------------------------------------- 1 | [18,32,33,40,41,60,80,84,106,110,111,112,154,168,178,183,194,198,200,202,223,224,239,242,261,288,303,313,315,331,344,364,369,394,407,418,425,439,450,453,467,492,499,516,517,526,538,544,562,574,580,594,602,603,632,640,641,653,659,684,703,792,808,810,812,816,819,822,844,867,868,921,930,938,939,951,961,970,971,974,993,1009,1025,1052,1070,1093,1110,1111,1114,1126,1161,1170,1171,1174,1191,1207,1217,1218,1244,1275,1299,1304,1307,1314,1331,1338,1398,1413,1414,1416,1426,1441,1458,1460,1471,1486,1489,1490,1493,1505,1513,1518,1525,1542,1550,1578,1580,1602,1605,1617,1628,1635,1643,1644,1646,1661,1672,1683,1686,1694,1709,1716,1724,1731,1736,1746,1749,1778,1791,1793,1807,1816,1846,1852,1853,1882,1894,1897,1908,1932,1933,1940,1955,1961,1965,1971,1994,2002,2018,2036,2038,2052,2053,2068,2086,2093,2095,2103,2108,2124,2141,2144,2149,2168,2175,2179,2186,2193,2197,2198,2225,2232,2242,2253,2257,2262,2272,2277,2303,2315,2320,2322,2342,2354,2355,2365] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayRestartDBSync: -------------------------------------------------------------------------------- 1 | [18] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayRollbackChangeTxOrder: -------------------------------------------------------------------------------- 1 | [12,16,16] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayRollbackFork: -------------------------------------------------------------------------------- 1 | [1,3,4,7,8,9,10,11,14,30,31,33,34,35,40,42,44,61,62,74,76,82,85,88,89,93,95,102,104,106,111,114,120,123,141,143,146,149,158,170,171,178,186,190,198,201,207,209,210,221,223,227,245,249,250,259,260,265,272,276,283,284,294,296,301,305,306,311,312,317,318,321,322,325,331,333,337,339,345,347,348,350,365,375,377,379,382,391,394,401,407,411,413,415,424,428,445,453,467,469,471,474,487,489,490,492,497,498,515,519,520,524,528,529,530,531,554,557,567,568,575,576,597,603,615,616,631,637,640,641,643,650,654,656,657,662,668,676,678,688,694,695,698,700,701,702,703,716,725,727,729,730,732,733,738,747,750,771,774,777,778,780,785,796,798,799,805,808,819,821,822,827,831,833,835,838,841,844,847,848,858,859,860,863,864,872,875,889,906,912,913,914,917,942,943,945,948,950,952,954,955,959,967,971,980,981,983,993,997,1002,1003] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayRollbackFullTx: -------------------------------------------------------------------------------- 1 | [12,16,16] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayRollbackHardFork: -------------------------------------------------------------------------------- 1 | [12,16,18,21,24,30,31,32,33,40,41,42,43,47,52,60,62,70,80,84,86,92,98,100,106,109,110,111,112,127,134,138,146,149,154,166,168,178,183,188,193,194,198,200,202,220,222,223,224,225,231,239,242,247,261,282,283,288,289,301,302,303,308,313,315,316,320,331,334,344,345,363,364,368,369,375,377,381,389,394,407,418,422,425,430,437,438,439,440,447,450,453,454,456,458,461,467,492,499,507,516,524,538,541,544,546,550,567,573,576,577,579,580,586,589,595,597,603,605,609,616,618,619,623,624,634,636,643,644,659,664,665,672,678,692,705,711,712,719,726,730,739,740,743,747,749,751,754,759,762,763,765,767,773,777,786,788,789,794,801,806,807,829,830,832,849,851,853,869,871,874,875,878,882,888,893,895,896,898,899,903,906,908,911,912,913,922,930,932,938,941,944,950,960,963,966,968,972,977,985,986,988,990,991,994,997,1001,1005,1008,1014,1019,1020,1021,1026,1027,1031,1032,1033,1036,1037,1049,1050,1053,1057,1062,1067,1068,1070,1074,1083,1102,1104,1107,1111,1115,1117,1118,1120,1125,1127,1137,1149,1151,1155,1161,1164,1167,1174,1187,1200,1201,1206,1213,1218,1221,1237,1242,1248,1258,1263,1266,1272,1277,1286,1299,1300,1304,1309,1313,1317,1336,1338,1343,1356,1363,1366,1376,1377,1379,1390,1397,1401,1408,1409,1410,1418,1423,1424,1429,1432,1435,1438,1439,1442,1444,1449,1453,1454,1461,1462,1470,1473,1474,1481,1484,1486,1501,1486,1501] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayRollbackNewCommittee: -------------------------------------------------------------------------------- 1 | [12,16,18,21,24,30,31,32,33,40,41,42,43,47,52,60,62,70,80,84,86,92,98,100,106,109,110,111,112,127,134,138,146,149,154,166,168,178,183,188,193,194,198,200,202,220,222,223,224,225,231,239,242,247,261,282,283,288,289,301,302,303,308,313,315,316,320,331,334,344,345,363,364,368,369,375,377,381,389,394,407,418,422,425,430,437,438,439,440,447,450,453,454,456,458,461,467,492,499,507,516,524,538,541,544,546,550,567,573,576,577,579,580,586,589,595,597,603,605,609,616,618,619,623,624,634,636,643,644,659,664,665,672,678,692,705,711,712,719,726,730,739,740,743,747,749,751,754,759,762,763,765,767,773,777,786,788,789,794,801,806,807,829,830,832,849,851,853,869,871,874,875,878,882,888,893,895,896,898,899,903,906,908,911,912,913,922,930,932,938,941,944,950,960,963,966,968,972,977,985,986,988,990,991,994,997,1001,1005,1008,1014,1019,1020,1021,1026,1027,1031,1032,1033,1036,1037,1049,1050,1053,1057,1062,1067,1068,1070,1074,1083,1102,1104,1107,1111,1115,1117,1118,1120,1125,1127,1137,1149,1151,1155,1161,1164,1167,1174,1187,1200,1201,1206,1213,1218,1221,1237,1242,1248,1258,1263,1266,1272,1277,1286,1299,1300,1304,1309,1313,1317,1336,1338,1343,1356,1363,1366,1376,1377,1379,1390,1397,1401,1408,1409,1410,1418,1423,1424,1429,1432,1435,1438,1439,1442,1444,1449,1453,1454,1461,1462,1470,1473,1474,1481,1484,1486,1504,1486,1504] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayRollbackNewCommitteeProposal: -------------------------------------------------------------------------------- 1 | [12,16,18,21,24,30,31,32,33,40,41,42,43,47,52,60,62,70,80,84,86,92,98,100,106,109,110,111,112,127,134,138,146,149,154,166,168,178,183,188,193,194,198,200,202,220,222,223,224,225,231,239,242,247,261,282,283,288,289,301,302,303,308,313,315,316,320,331,334,344,345,363,364,368,369,375,377,381,389,394,407,418,422,425,430,437,438,439,440,447,450,453,454,456,458,461,467,492,499,507,516,524,516] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwaySimpleRollback: -------------------------------------------------------------------------------- 1 | [18,21,24] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwaySimpleScript: -------------------------------------------------------------------------------- 1 | [12,16,18,21,24,30,31,32,33,40,41,42,43,47,52,60,62,70,80,84,86,92,98,100,106,109,110,111,112,127,134,138,146,149,154,166,168,178,183,188,193,194,198,200,202,220,222,223,224,225,231,239,242,247,261,282,283,288,289,301,302,303,308,313,315,316,320,331,334,344,345,363,364,368,369,375,377,381,389,394,407,418,422,425,430,437,438,439,440,447,450,453,454,456,458,461,467,492,499,507,516] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwaySpendCollateralOtputRollback: -------------------------------------------------------------------------------- 1 | [12,16,18,21,16,18,21,24] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwaySpendCollateralOutput: -------------------------------------------------------------------------------- 1 | [12,16,18,21] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwaySpendRefScriptSameBlock: -------------------------------------------------------------------------------- 1 | [12,21] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwaySpindCollateralOutputSameBlock: -------------------------------------------------------------------------------- 1 | [12,16] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayStakeAddressPtr: -------------------------------------------------------------------------------- 1 | [12,16] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayStakeAddressPtrDereg: -------------------------------------------------------------------------------- 1 | [12,16,18] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayStakeAddressPtrUseBefore: -------------------------------------------------------------------------------- 1 | [12,16,18] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayStakeAddressRollback: -------------------------------------------------------------------------------- 1 | [12,16,16,18] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayStakeDistGenesis: -------------------------------------------------------------------------------- 1 | [12,16,18,21,24,30,31,32,33,40,41,42,43,47,52,60,62,70,80,84,86,92,98,100,106,109,110,111,112,127,134,138,146,149,154,166,168,178,183,188,193,194,198,200,202,220,222,223,224,225,231,239,242,247,261,282,283,288,289,301,302,303,308,313,315,316,320,331,334,344,345,363,364,368,369,375,377,381,389,394,407,418,422,425,430,437,438,439,440,447,450,453,454,456,458,461,467,492,499,507] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwaySupplyScriptToWays: -------------------------------------------------------------------------------- 1 | [12,16,18] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwaySupplyScriptsTwoWaysSameBlock: -------------------------------------------------------------------------------- 1 | [12,16] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwaySwapMultiAssets: -------------------------------------------------------------------------------- 1 | [12] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayTreasuryWithdrawal: -------------------------------------------------------------------------------- 1 | [12,16,18,21,24,30,31,32,33,40,41,42,43,47,52,60,62,70,80,84,86,92,98,100,106,109,110,111,112,127,134,138,146,149,154,166,168,178,183,188,193,194,198,200,202,220,222,223,224,225,231,239,242,247,261,282,283,288,289,301,302,303,308,313,315,316,320,331,334,344,345,363,364,368,369,375,377,381,389,394,407,418,422,425,430,437,438,439,440,447,450,453,454,456,458,461,467,492,499,507,516,524,538,541,544,546,550,567,573,576,577,579,580,586,589,595,597,603,605,609,616,618,619,623,624,634,636,643,644,659,664,665,672,678,692,705,711,712,719,726,730,739,740,743,747,749,751,754,759,762,763,765,767,773,777,786,788,789,794,801,806,807,829,830,832,849,851,853,869,871,874,875,878,882,888,893,895,896,898,899,903,906,908,911,912,913,922,930,932,938,941,944,950,960,963,966,968,972,977,985,986,988,990,991,994,997,1001,1005,1008,1014,1019,1020,1021,1026,1027,1031,1032,1033,1036,1037,1049,1050,1053,1057,1062,1067,1068,1070,1074,1083,1102,1104,1107,1111,1115,1117,1118,1120,1125,1127,1137,1149,1151,1155,1161,1164,1167,1174,1187,1200,1201,1206,1213,1218,1221,1237,1242,1248,1258,1263,1266,1272,1277,1286,1299,1300,1304,1309,1313,1317,1336,1338,1343,1356,1363,1366,1376,1377,1379,1390,1397,1401,1408,1409,1410,1418,1423,1424,1429,1432,1435,1438,1439,1442,1444,1449,1453,1454,1461,1462,1470,1473,1474,1481,1484,1486,1500] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayUnlockDatumOutput: -------------------------------------------------------------------------------- 1 | [12,21,24] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayUnlockDatumOutputSameBlock: -------------------------------------------------------------------------------- 1 | [12,21] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayUnlockScriptSameBlock: -------------------------------------------------------------------------------- 1 | [12,16] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/conwayUpdateConstitution: -------------------------------------------------------------------------------- 1 | [12,16,18,21,24,30,31,32,33,40,41,42,43,47,52,60,62,70,80,84,86,92,98,100,106,109,110,111,112,127,134,138,146,149,154,166,168,178,183,188,193,194,198,200,202,220,222,223,224,225,231,239,242,247,261,282,283,288,289,301,302,303,308,313,315,316,320,331,334,344,345,363,364,368,369,375,377,381,389,394,407,418,422,425,430,437,438,439,440,447,450,453,454,456,458,461,467,492,499,507,516,524,538,541,544,546,550,567,573,576,577,579,580,586,589,595,597,603,605,609,616,618,619,623,624,634,636,643,644,659,664,665,672,678,692,705,711,712,719,726,730,739,740,743,747,749,751,754,759,762,763,765,767,773,777,786,788,789,794,801,806,807,829,830,832,849,851,853,869,871,874,875,878,882,888,893,895,896,898,899,903,906,908,911,912,913,922,930,932,938,941,944,950,960,963,966,968,972,977,985,986,988,990,991,994,997,1001,1005,1008,1014,1019,1020,1021,1026,1027,1031,1032,1033,1036,1037,1049,1050,1053,1057,1062,1067,1068,1070,1074,1083,1102,1104,1107,1111,1115,1117,1118,1120,1125,1127,1137,1149,1151,1155,1161,1164,1167,1174,1187,1200,1201,1206,1213,1218,1221,1237,1242,1248,1258,1263,1266,1272,1277,1286,1299,1300,1304,1309,1313,1317,1336,1338,1343,1356,1363,1366,1376,1377,1379,1390,1397,1401,1408,1409,1410,1418,1423,1424,1429,1432,1435,1438,1439,1442,1444,1449,1453,1454,1461,1462,1470,1473,1474,1481,1484,1486,1504] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/delegations2000: -------------------------------------------------------------------------------- 1 | [5,11,15,21,22,23,28,33,34,36,42,43,48,52,62,82,88,92,102,106,109,111,116,133,134,143,151,153,157,161,162,171,182,183,193,195,196,197,200,206,208,216,219,222,238,245,250,262,271,272,275,282,286,296,301,310,311,314,325,340,347,354,355,365,376,379,382,384,389,390,391,392,393,398,404,407,414,418,419,422,424,446,448,450,457,465,476,478,485,486,488,499,503,506,509,512,515,518,524,526,527,530,541,542] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/delegations2000-alonzo: -------------------------------------------------------------------------------- 1 | [3,4,6,13,22,31,43,46,52,54,56,64,69,73,76,78,79,90,98,99,104,105,106,109,111,113,114,120,122,124,132,142,143,144,152,158,163,167,199,201,209,210,216,219,235,237,254,261,268,273,275,279,280,285,303,304,306,309,310,313,322,325,327,329,330,331,335,340,346,348,353,361,366,372,373,376,377,378,383,388,391,392,393,397,406,408,409,413,420,422,430,438,440,444,452,454,456,460,461,468,469,471,478,483,488,503,507,511,513,514,529,530,536,547,550,554,556] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/delegations2001: -------------------------------------------------------------------------------- 1 | [5,11,15,21,22,23,28,33,34,36,42,43,48,52,62,82,88,92,102,106,109,111,116,133,134,143,151,153,157,161,162,171,182,183,193,195,196,197,200,206,208,216,219,222,238,245,250,262,271,272,275,282,286,296,301,310,311,314,325,340,347,354,355,365,376,379,382,384,389,390,391,392,393,398,404,407,414,418,419,422,424,446,448,450,457,465,476,478,485,486,488,499,503,506,509,512,515,518,524,526,527,530,541,542] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/delegations2001-alonzo: -------------------------------------------------------------------------------- 1 | [3,4,6,13,22,31,43,46,52,54,56,64,69,73,76,78,79,90,98,99,104,105,106,109,111,113,114,120,122,124,132,142,143,144,152,158,163,167,199,201,209,210,216,219,235,237,254,261,268,273,275,279,280,285,303,304,306,309,310,313,322,325,327,329,330,331,335,340,346,348,353,361,366,372,373,376,377,378,383,388,391,392,393,397,406,408,409,413,420,422,430,438,440,444,452,454,456,460,461,468,469,471,478,483,488,503,507,511,513,514,529,530,536,547,550,554,556] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/delegations8000: -------------------------------------------------------------------------------- 1 | [5,11,15,21,22,23,28,33,34,36,42,43,48,52,62,82,88,92,102,106,109,111,116,133,134,143,151,153,157,161,162,171,182,183,193,195,196,197,200,206,208,216,219,222,238,245,250,262,271,272,275,282,286,296,301,310,311,314,325,340,347,354,355,365,376,379,382,384,389,390,391,392,393,398,404,407,414,418,419,422,424,446,448,450,457,465,476,478,485,486,488,499,503,506,509,512,515,518,524,526,527,530,541,542,549,556,561,570,576,578,579,583,589,596,597,609,611,615,620,621,627,633,634,644,650,651,654,661,671,675,680,682,687,694,698,703,705,711,716,718,726,728,730,739,748,749,757,761,782,784,785,791,796,798,815,818,823,837,845,846,847,858,862,865,877,879,881,882,884,885,888,890,892,893,895,898,900,904,908,916,921,922,923,929,930,932,934,936,950,956,957,968,969,985,992,993,994,1013,1020,1023,1026,1029,1030,1034,1035,1038,1039,1043,1044,1057,1065,1092] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/delegations8000-alonzo: -------------------------------------------------------------------------------- 1 | [3,4,6,13,22,31,43,46,52,54,56,64,69,73,76,78,79,90,98,99,104,105,106,109,111,113,114,120,122,124,132,142,143,144,152,158,163,167,199,201,209,210,216,219,235,237,254,261,268,273,275,279,280,285,303,304,306,309,310,313,322,325,327,329,330,331,335,340,346,348,353,361,366,372,373,376,377,378,383,388,391,392,393,397,406,408,409,413,420,422,430,438,440,444,452,454,456,460,461,468,469,471,478,483,488,503,507,511,513,514,529,530,536,547,550,554,556,558,561,562,565,566,577,591,594,595,596,599,605,606,611,620,625,627,629,643,644,655,658,667,676,684,690,695,701,704,711,715,720,723,730,732,737,739,741,748,752,755,758,765,772,776,779,780,781,785,790,806,810,816,818,820,822,835,843,846,852,854,855,858,864,865,866,875,878,880,883,888,891,900,904,905,906,907,911,914,917,920,925,934,939,945,951,953,959,962,968,971,975,979,983,988,992,993,996,1002,1003,1018,1019,1022,1029,1036,1038,1043,1067,1081,1086,1087,1093,1095] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/deregistrationScriptTx: -------------------------------------------------------------------------------- 1 | [5] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/deregistrationScriptTx-alonzo: -------------------------------------------------------------------------------- 1 | [3] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/deregistrationsScriptTx: -------------------------------------------------------------------------------- 1 | [5] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/deregistrationsScriptTx': -------------------------------------------------------------------------------- 1 | [5] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/deregistrationsScriptTx'': -------------------------------------------------------------------------------- 1 | [5] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/deregistrationsScriptTx''-alonzo: -------------------------------------------------------------------------------- 1 | [3] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/deregistrationsScriptTx'-alonzo: -------------------------------------------------------------------------------- 1 | [3] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/deregistrationsScriptTx-alonzo: -------------------------------------------------------------------------------- 1 | [3] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/deregistrationsScriptTxs: -------------------------------------------------------------------------------- 1 | [5] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/deregistrationsScriptTxs-alonzo: -------------------------------------------------------------------------------- 1 | [3] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/failedScript: -------------------------------------------------------------------------------- 1 | [15,21] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/failedScript-alonzo: -------------------------------------------------------------------------------- 1 | [3,4] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/failedScriptFees: -------------------------------------------------------------------------------- 1 | [15,21] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/failedScriptSameBlock: -------------------------------------------------------------------------------- 1 | [5,11] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/failedScriptSameBlock-alonzo: -------------------------------------------------------------------------------- 1 | [3,4] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/forgeBlocks: -------------------------------------------------------------------------------- 1 | [28,33,34] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/forgeBlocks-alonzo: -------------------------------------------------------------------------------- 1 | [6,43,46] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/forkFixedEpoch: -------------------------------------------------------------------------------- 1 | [3,4,6,13,22,31,43,46,52,54,56,64,69,73,76,78,79,90,98,99,104,105,106,109,111,113,114,120,122,124,132,142,143,144,152,158,163,167,199,201,209,210,216,219,235,237,254,261,268,273,275,279,280,285,303,304,306,309,310,313,322,325,327,329,330,331,335,340,346,348,353,361,366,372,373,376,377,378,383,388,391,392,393,397,406,408,409,413,420,422,430,438,440,444,452,454,456,460,461,468,469,471,478,483,488,503,507,511,513,514,529,530,536,547,550,554,556,558,561,562,565,566,577,591,594,595,596,599,605,606,611,620,625,627,629,643,644,655,658,667,676,684,690,695,701,704,711,715,720,723,730,732,737,739,741,748,752,755,758,765,772,776,779,780,781,785,790,806,810,816,818,820,822,835,843,846,852,854,855,858,864,865,866,875,878,880,883,888,891,900,904,905,906,907,911,914,917,920,925,934,939,945,951,953,959,962,968,971,975,979,983,988,992,993,996,1013,1018,1020,1023,1033,1040,1045,1056,1065,1073,1089,1103,1105,1117,1130,1131,1132,1134,1135,1139,1145,1154,1159,1168,1172,1184,1195,1196,1199,1212,1216,1223,1232,1233,1235,1238,1253,1255,1258,1263,1275,1277,1286,1287,1295,1298,1299,1301,1302,1304,1309,1313,1323,1324,1328,1333,1334,1347,1351,1361,1363,1367,1377,1378,1383,1384,1393,1400,1401,1421,1425,1427,1429,1431,1436,1437,1439,1442,1443,1450,1461,1464,1469,1474,1475,1477,1492,1493,1498,1499,1504] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/inlineDatumCBOR: -------------------------------------------------------------------------------- 1 | [5,15] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/lazyRollback: -------------------------------------------------------------------------------- 1 | [5,11,15,21,22,23,28,33,34,36,42,43,48,52,62,82,88,92,102,106,109,111,116,133,134,143,151,153,157,161,162,171,182,183,193,195,196,197,200,206,208,216,219,222,238,245,250,262,271,272,275,282,286,296,301,310,311,314,325,340,347,354,355,365,376,379,382,384,389,390,391,392,393,398,404,407,414,418,419,422,424,446,448,450,457,465,476,478,485,486,488,499,503,506,509,512,515,518,524,526,527,530,541,542,549,556,561,570,576,578,579,583,589,596,597,609,611,615,620,621,627,633,634,644,650,651,654,661,671,675,680,682,687,694,698,703,705,711,716,718,726,728,730,739,748,749,757,761,782,784,785,791,796,798,815,818,823,837,845,846,847,858,862,865,877,879,881,882,884,885,888,890,892,893,895,898,900,904,908,916,921,922,923,929,930,932,934,936,950,956,957,968,969,985,992,993,994,1009,1011,1022,1025,1027,1033,1035,1036,1037,1042,1043,1045,1052,1065,1077,1082,1088,1102,1103,1105,1106,1109,1128,1137,1143,1156,1167,1169,1172,1177,1178,1180,1189,1193,1197,1198,1201,1208,1212,1214,1217,1218,1223,1225,1229,1232,1233,1246,1248,1253,1256,1267,1278,1284,1289,1290,1305,1307,1308,1312,1316,1326,1329,1334,1349,1361,1366,1368,1369,1372,1377,1382,1383,1025,1027,1033,1035,1036,1037,1042,1043,1045,1052,1065,1077,1082,1088,1102,1103,1105,1106,1109,1128,1137,1143,1156,1167,1169,1172,1177,1178,1180,1189,1193,1197,1198,1201,1208,1212,1214,1217,1218,1223,1225] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/lazyRollbackRestart: -------------------------------------------------------------------------------- 1 | [5,11,15,21,22,23,28,33,34,36,42,43,48,52,62,82,88,92,102,106,109,111,116,133,134,143,151,153,157,161,162,171,182,183,193,195,196,197,200,206,208,216,219,222,238,245,250,262,271,272,275,282,286,296,301,310,311,314,325,340,347,354,355,365,376,379,382,384,389,390,391,392,393,398,404,407,414,418,419,422,424,446,448,450,457,465,476,478,485,486,488,499,503,506,509,512,515,518,524,526,527,530,541,542,549,556,561,570,576,578,579,583,589,596,597,609,611,615,620,621,627,633,634,644,650,651,654,661,671,675,680,682,687,694,698,703,705,711,716,718,726,728,730,739,748,749,757,761,782,784,785,791,796,798,815,818,823,837,845,846,847,858,862,865,877,879,881,882,884,885,888,890,892,893,895,898,900,904,908,916,921,922,923,929,930,932,934,936,950,956,957,968,969,985,992,993,994,1009,1011,1022,1025,1027,1033,1035,1036,1037,1042,1043,1045,1052,1065,1077,1082,1088,1102,1103,1105,1106,1109,1128,1137,1143,1156,1167,1169,1172,1177,1178,1180,1189,1193,1197,1198,1201,1208,1212,1214,1217,1218,1223,1225,1229,1232,1233,1246,1248,1253,1256,1267,1278,1284,1289,1290,1305,1307,1308,1312,1316,1326,1329,1334,1349,1361,1366,1368,1369,1372,1377,1382,1383,1386,1387,1390,1392,1401,1406,1409,1412,1413,1416,1137,1143,1156,1167,1169,1172,1177,1178,1180,1189,1193,1197,1198,1201,1208,1212,1214,1217,1218,1223,1225,1229,1232,1233,1246,1248,1253,1256,1267,1278,1284] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/mintMultiAsset: -------------------------------------------------------------------------------- 1 | [5] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/mintMultiAsset-alonzo: -------------------------------------------------------------------------------- 1 | [3] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/mintMultiAssets: -------------------------------------------------------------------------------- 1 | [5] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/mintMultiAssets-alonzo: -------------------------------------------------------------------------------- 1 | [3] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/mirReward: -------------------------------------------------------------------------------- 1 | [5,11,15,21,22,23,28,33,34,36,42,43,48,52,62,82,88,92,102,106,109,111,116,133,134,143,151,153,157,161,162,171,182,183,193,195,196,197,200,206,208,216,219,222,238,245,250,262,271,272,275,282,286,296,301,310,311,314,325,340,347,354,355,365,376,379,382,384,389,390,391,392,393,398,404,407,414,418,419,422,424,446,448,450,457,465,476,478,485,486,488,499,503] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/mirReward-alonzo: -------------------------------------------------------------------------------- 1 | [3,4,6,13,22,31,43,46,52,54,56,64,69,73,76,78,79,90,98,99,104,105,106,109,111,113,114,120,122,124,132,142,143,144,152,158,163,167,199,201,209,210,216,219,235,237,254,261,268,273,275,279,280,285,303,304,306,309,310,313,322,325,327,329,330,331,335,340,346,348,353,361,366,372,373,376,377,378,383,388,391,392,393,397,406,408,409,413,420,422,430,438,440,444,452,454,456,460,461,468,469,471,478,483,488,503] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/mirRewardDereg: -------------------------------------------------------------------------------- 1 | [5,11,15,21,22,23,28,33,34,36,42,43,48,52,62,82,88,92,102,106,109,111,116,133,134,143,151,153,157,161,162,171,182,183,193,195,196,197,200,206,208,216,219,222,238,245,250,262,271,272,275,282,286,296,301,310,311,314,325,340,347,354,355,365,376,379,382,384,389,390,391,392,393,398,404,407,414,418,419,422,424,446,448,450,457,465,476,478,485,486,488,499,503,506,509,512,515,518,524,526,527,530,541,542,549,556,561,570,576,578,579,583,589,596,597] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/mirRewardDereg-alonzo: -------------------------------------------------------------------------------- 1 | [3,4,6,13,22,31,43,46,52,54,56,64,69,73,76,78,79,90,98,99,104,105,106,109,111,113,114,120,122,124,132,142,143,144,152,158,163,167,199,201,209,210,216,219,235,237,254,261,268,273,275,279,280,285,303,304,306,309,310,313,322,325,327,329,330,331,335,340,346,348,353,361,366,372,373,376,377,378,383,388,391,392,393,397,406,408,409,413,420,422,430,438,440,444,452,454,456,460,461,468,469,471,478,483,488,503,507,511,513,514,529,530,536,547,550,554,556,558,561,562,565,566,577,591,594,595,596,599] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/mirRewardRollback-alonzo: -------------------------------------------------------------------------------- 1 | [3,4,6,13,22,31,43,46,52,54,56,64,69,73,76,78,79,90,98,99,104,105,106,109,111,113,114,120,122,124,132,142,143,144,152,158,163,167,199,201,209,210,216,219,235,237,254,261,268,273,275,279,280,285,303,304,306,309,310,313,322,325,327,329,330,331,335,340,346,348,353,361,366,372,373,376,377,378,383,388,391,392,393,397,406,408,409,413,420,422,430,438,440,444,452,454,456,460,461,468,469,471,478,483,488,503,507,511,513,514,529,530,536,547,550,554,556,558,561,562,565,566,577,591,594,595,596,599,605,606,611,620,625,627,629,643,644,655,658,667,676,684,690,695,701,704,711,715,720,723,730,732,737,739,741,748,752,755,758,765,772,776,779,780,781,785,790,806,810,816,818,820,822,835,843,846,852,854,855,858,864,865,866,875,878,880,883,888,891,900,904,905,906,907,911,914,917,920,925,934,939,945,951,953,959,962,968,971,975,979,983,988,992,993,996,1008,1009,1013,1014,1028,1029] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/mirRewardShelley: -------------------------------------------------------------------------------- 1 | [0,2,3,12,14,22,32,34,36,38,43,49,55,57,59,67,73,76,77,89,91,97,106,111,116,117,133,136,140,146,150,161,162,169,179,180,186,187,194,205,210,212,215,216,220,223,229,230,234,236,238,248,249,253,254,259,270,278,282,283,284,294,297,302,315,319,326,332,333,349,359,362,364,374,376,377,380,381,382,398,405,410,415,417,421,424,430,431,436,440,442,443,449,451,458,459,461,464,466,472,473,479,487,489,490,501] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/multipleScripts: -------------------------------------------------------------------------------- 1 | [15,23] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/multipleScripts-alonzo: -------------------------------------------------------------------------------- 1 | [3,43] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/multipleScriptsFailed: -------------------------------------------------------------------------------- 1 | [15,23] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/multipleScriptsFailed-alonzo: -------------------------------------------------------------------------------- 1 | [3,43] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/multipleScriptsFailedSameBlock: -------------------------------------------------------------------------------- 1 | [5] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/multipleScriptsFailedSameBlock-alonzo: -------------------------------------------------------------------------------- 1 | [3] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/multipleScriptsRollback: -------------------------------------------------------------------------------- 1 | [15,23,5,15,23] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/multipleScriptsSameBlock: -------------------------------------------------------------------------------- 1 | [5] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/multipleScriptsSameBlock-alonzo: -------------------------------------------------------------------------------- 1 | [3] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/nodeRestart: -------------------------------------------------------------------------------- 1 | [5,11,15,21,22,23,28,33,34,36] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/nodeRestartBoundary: -------------------------------------------------------------------------------- 1 | [5,11,15,21,22,23,28,33,34,36,42,43,48,52,62,82,88,92,102,106,109,111,116,133,134,143,151,153,157,161,162,171,182,183,193,195,196,197,200,206,208,216,219,222,238,245,250,262,271,272,275,282,286,296,301,310,311,314,325,340,347,354,355,365,376,379,382,384,389,390,391,392,393,398,404,407,414,418,419,422,424,446,448,450,457,465,476,478,485,486,488,499,503,506,509,512,515,518] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/nonexistantPoolQuery: -------------------------------------------------------------------------------- 1 | [5] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/nonexistantPoolQuery-alonzo: -------------------------------------------------------------------------------- 1 | [3] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/poolDeReg: -------------------------------------------------------------------------------- 1 | [5,11,15,21,22,23,28,33,34,36,42,43,48,52,62,82,88,92,102,106,109,111,116,133,134,143,151,153,157,161,162,171,182,183,193,195,196,197,200,206,208,216,219,222,238,245,250,262,271,272,275,282,286,296,301,310,311,314,325,340,347,354,355,365,376,379,382,384,389,390,391,392,393,398,404,407,414,418,419,422,424,446,448,450,457,465,476,478,485,486,488,499,503] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/poolDeReg-alonzo: -------------------------------------------------------------------------------- 1 | [3,4,6,13,22,31,43,46,52,54,56,64,69,73,76,78,79,90,98,99,104,105,106,109,111,113,114,120,122,124,132,142,143,144,152,158,163,167,199,201,209,210,216,219,235,237,254,261,268,273,275,279,280,285,303,304,306,309,310,313,322,325,327,329,330,331,335,340,346,348,353,361,366,372,373,376,377,378,383,388,391,392,393,397,406,408,409,413,420,422,430,438,440,444,452,454,456,460,461,468,469,471,478,483,488,503] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/poolDeRegMany: -------------------------------------------------------------------------------- 1 | [5,11,15,21,22,23,28,33,34,36,42,43,48,52,62,82,88,92,102,106,109,111,116,133,134,143,151,153,157,161,162,171,182,183,193,195,196,197,200,206,208,216,219,222,238,245,250,262,271,272,275,282,286,296,301,310,311,314,325,340,347,354,355,365,376,379,382,384,389,390,391,392,393,398,404,407,414,418,419,422,424,446,448,450,457,465,476,478,485,486,488,499,503] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/poolDeRegMany-alonzo: -------------------------------------------------------------------------------- 1 | [3,4,6,13,22,31,43,46,52,54,56,64,69,73,76,78,79,90,98,99,104,105,106,109,111,113,114,120,122,124,132,142,143,144,152,158,163,167,199,201,209,210,216,219,235,237,254,261,268,273,275,279,280,285,303,304,306,309,310,313,322,325,327,329,330,331,335,340,346,348,353,361,366,372,373,376,377,378,383,388,391,392,393,397,406,408,409,413,420,422,430,438,440,444,452,454,456,460,461,468,469,471,478,483,488,503] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/poolDelist: -------------------------------------------------------------------------------- 1 | [5,11,15,21,22,23,28,33,34,36,42,43,48,52,62,82,88,92,102,106,109,111,116,133,134,143,151,153,157,161,162,171,182,183,193,195,196,197,200,206,208,216,219,222,238,245,250,262,271,272,275,282,286,296,301,310,311,314,325,340,347,354,355,365,376,379,382,384,389,390,391,392,393,398,404,407,414,418,419,422,424,446,448,450,457,465,476,478,485,486,488,499,503,506] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/poolDelist-alonzo: -------------------------------------------------------------------------------- 1 | [3,4,6,13,22,31,43,46,52,54,56,64,69,73,76,78,79,90,98,99,104,105,106,109,111,113,114,120,122,124,132,142,143,144,152,158,163,167,199,201,209,210,216,219,235,237,254,261,268,273,275,279,280,285,303,304,306,309,310,313,322,325,327,329,330,331,335,340,346,348,353,361,366,372,373,376,377,378,383,388,391,392,393,397,406,408,409,413,420,422,430,438,440,444,452,454,456,460,461,468,469,471,478,483,488,503,507] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/poolReg: -------------------------------------------------------------------------------- 1 | [5,11] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/poolReg-alonzo: -------------------------------------------------------------------------------- 1 | [3,4] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/referenceDelegation: -------------------------------------------------------------------------------- 1 | [5,11] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/referenceInputUnspend: -------------------------------------------------------------------------------- 1 | [5,11] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/referenceMintingScript: -------------------------------------------------------------------------------- 1 | [5,11] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/registrationScriptTx: -------------------------------------------------------------------------------- 1 | [5] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/registrationScriptTx-alonzo: -------------------------------------------------------------------------------- 1 | [3] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/registrationTx: -------------------------------------------------------------------------------- 1 | [5,11,15,21] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/registrationTx-alonzo: -------------------------------------------------------------------------------- 1 | [3,4,6,13] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/registrationsSameBlock: -------------------------------------------------------------------------------- 1 | [5] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/registrationsSameBlock-alonzo: -------------------------------------------------------------------------------- 1 | [3] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/registrationsSameTx: -------------------------------------------------------------------------------- 1 | [5] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/registrationsSameTx-alonzo: -------------------------------------------------------------------------------- 1 | [3] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/restartAndRollback: -------------------------------------------------------------------------------- 1 | [28,42,43,52,62,82,92,106,109,133,161,162,171,195,196,197,206,208,216,222,272,275,282,347,382,392,393,398,414,424,446,448,465,478,485,499,500,506,508,509,513,514,515,518,539,548,566,577,584,589,602,613,626,644,661,664,668,677,725,729,736,746,749,757,773,774,784,810,813,819,828,849,852,866,876,880,886,895,900,924,930,952,964,971,981,987,989,1001,1005,1012,1025,1026,1041,1046,1060,1071,1076,1079,1101,1119,1140,1159,1160,1168,1173,1175,1207,1221,1258,1268,1283,1287,1343,1346,1363,1366,1369,1371,1372,1373,1379,1390,1394,1402,1419,1423,1447,1451,1464,1466,1475,1485,1491,1493,1499,1516,1521,1538,1544,1560,1561,1568,1569,1573,1588,1596,1607,1666,1672,1682,1697,1734,1751,1764,1766,1767,1798,1809,1837,1842,1863,1870,1872,1875,1887,1888,1892,1905,1925,1931,1933,1934,1939,1944,1946,1947,1948,1962,1973,1975,1977,1978,1984,1990,1995,2026,2039,2063,2072,2074,2085,2086,2093,2120,2133,2164,2182,2185,2203,2206,2242,2245,2253,2271,2288,2291] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/restartDBSync: -------------------------------------------------------------------------------- 1 | [28] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/restartDBSync-alonzo: -------------------------------------------------------------------------------- 1 | [6] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/rollbackChangeTxOrder: -------------------------------------------------------------------------------- 1 | [5,11,11] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/rollbackFork: -------------------------------------------------------------------------------- 1 | [3,4,6,13,22,31,43,46,52,54,56,64,69,73,76,78,79,90,98,99,104,105,106,109,111,113,114,120,122,124,132,142,143,144,152,158,163,167,199,201,209,210,216,219,235,237,254,261,268,273,275,279,280,285,303,304,306,309,310,313,322,325,327,329,330,331,335,340,346,348,353,361,366,372,373,376,377,378,383,388,391,392,393,397,406,408,409,413,420,422,430,438,440,444,452,454,456,460,461,468,469,471,478,483,488,503,507,511,513,514,529,530,536,547,550,554,556,558,561,562,565,566,577,591,594,595,596,599,605,606,611,620,625,627,629,643,644,655,658,667,676,684,690,695,701,704,711,715,720,723,730,732,737,739,741,748,752,755,758,765,772,776,779,780,781,785,790,806,810,816,818,820,822,835,843,846,852,854,855,858,864,865,866,875,878,880,883,888,891,900,904,905,906,907,911,914,917,920,925,934,939,945,951,953,959,962,968,971,975,979,983,988,992,993,996,1013,1018] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/rollbackFullTx: -------------------------------------------------------------------------------- 1 | [5,11,11] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/simpleRollback: -------------------------------------------------------------------------------- 1 | [28,33,34] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/simpleScript: -------------------------------------------------------------------------------- 1 | [5,11,15,21,22,23,28,33,34,36,42,43,48,52,62,82,88,92,102,106,109,111,116,133,134,143,151,153,157,161,162,171,182,183,193,195,196,197,200,206,208,216,219,222,238,245,250,262,271,272,275,282,286,296,301,310,311,314,325,340,347,354,355,365,376,379,382,384,389,390,391,392,393,398,404,407,414,418,419,422,424,446,448,450,457,465,476,478,485,486,488,499,503,506] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/simpleScript-alonzo: -------------------------------------------------------------------------------- 1 | [3,4,6,13,22,31,43,46,52,54,56,64,69,73,76,78,79,90,98,99,104,105,106,109,111,113,114,120,122,124,132,142,143,144,152,158,163,167,199,201,209,210,216,219,235,237,254,261,268,273,275,279,280,285,303,304,306,309,310,313,322,325,327,329,330,331,335,340,346,348,353,361,366,372,373,376,377,378,383,388,391,392,393,397,406,408,409,413,420,422,430,438,440,444,452,454,456,460,461,468,469,471,478,483,488,503,507] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/singleMIRCertMultiOut: -------------------------------------------------------------------------------- 1 | [5,11,15,21,22,23,28,33,34,36,42,43,48,52,62,82,88,92,102,106,109,111,116,133,134,143,151,153,157,161,162,171,182,183,193,195,196,197,200,206,208,216,219,222,238,245,250,262,271,272,275,282,286,296,301,310,311,314,325,340,347,354,355,365,376,379,382,384,389,390,391,392,393,398,404,407,414,418,419,422,424,446,448,450,457,465,476,478,485,486,488,499,503,506,509,512,515,518,524,526,527,530,541,542,549,556,561,570,576,578,579,583,589,596,597,609,611,615,620,621,627,633,634,644,650,651,654,661,671,675,680,682,687,694,698,703,705,711,716,718,726,728,730,739,748,749,757,761,782,784,785,791,796,798,815,818,823,837,845,846,847,858,862,865,877,879,881,882,884,885,888,890,892,893,895,898,900,904,908,916,921,922,923,929,930,932,934,936,950,956,957,968,969,985,992,993,994,1000] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/singleMIRCertMultiOut-alonzo: -------------------------------------------------------------------------------- 1 | [3,4,6,13,22,31,43,46,52,54,56,64,69,73,76,78,79,90,98,99,104,105,106,109,111,113,114,120,122,124,132,142,143,144,152,158,163,167,199,201,209,210,216,219,235,237,254,261,268,273,275,279,280,285,303,304,306,309,310,313,322,325,327,329,330,331,335,340,346,348,353,361,366,372,373,376,377,378,383,388,391,392,393,397,406,408,409,413,420,422,430,438,440,444,452,454,456,460,461,468,469,471,478,483,488,503,507,511,513,514,529,530,536,547,550,554,556,558,561,562,565,566,577,591,594,595,596,599,605,606,611,620,625,627,629,643,644,655,658,667,676,684,690,695,701,704,711,715,720,723,730,732,737,739,741,748,752,755,758,765,772,776,779,780,781,785,790,806,810,816,818,820,822,835,843,846,852,854,855,858,864,865,866,875,878,880,883,888,891,900,904,905,906,907,911,914,917,920,925,934,939,945,951,953,959,962,968,971,975,979,983,988,992,993,996,1001] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/spendCollateralOutput: -------------------------------------------------------------------------------- 1 | [5,11,15,21] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/spendCollateralOutputRollback: -------------------------------------------------------------------------------- 1 | [5,11,15,21,11,15,21,22] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/spendCollateralOutputSameBlock: -------------------------------------------------------------------------------- 1 | [5,11] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/spendRefScript: -------------------------------------------------------------------------------- 1 | [5,15,21] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/spendRefScriptSameBlock: -------------------------------------------------------------------------------- 1 | [5,15] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/stakeAddressPtr: -------------------------------------------------------------------------------- 1 | [5,11] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/stakeAddressPtr-alonzo: -------------------------------------------------------------------------------- 1 | [3,4] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/stakeAddressPtrDereg: -------------------------------------------------------------------------------- 1 | [5,11,15] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/stakeAddressPtrDereg-alonzo: -------------------------------------------------------------------------------- 1 | [3,4,6] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/stakeAddressPtrUseBefore: -------------------------------------------------------------------------------- 1 | [5,11,15] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/stakeAddressPtrUseBefore-alonzo: -------------------------------------------------------------------------------- 1 | [3,4,6] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/stakeAddressRollback: -------------------------------------------------------------------------------- 1 | [5,11,11,15] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/stakeDistGenesis: -------------------------------------------------------------------------------- 1 | [5,11,15,21,22,23,28,33,34,36,42,43,48,52,62,82,88,92,102,106,109,111,116,133,134,143,151,153,157,161,162,171,182,183,193,195,196,197,200,206,208,216,219,222,238,245,250,262,271,272,275,282,286,296,301,310,311,314,325,340,347,354,355,365,376,379,382,384,389,390,391,392,393,398,404,407,414,418,419,422,424,446,448,450,457,465,476,478,485,486,488,499,503] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/stakeDistGenesis-alonzo: -------------------------------------------------------------------------------- 1 | [3,4,6,13,22,31,43,46,52,54,56,64,69,73,76,78,79,90,98,99,104,105,106,109,111,113,114,120,122,124,132,142,143,144,152,158,163,167,199,201,209,210,216,219,235,237,254,261,268,273,275,279,280,285,303,304,306,309,310,313,322,325,327,329,330,331,335,340,346,348,353,361,366,372,373,376,377,378,383,388,391,392,393,397,406,408,409,413,420,422,430,438,440,444,452,454,456,460,461,468,469,471,478,483,488,503] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/supplyScriptsTwoWays: -------------------------------------------------------------------------------- 1 | [5,11,15] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/supplyScriptsTwoWaysSameBlock: -------------------------------------------------------------------------------- 1 | [5,11] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/swapMultiAssets: -------------------------------------------------------------------------------- 1 | [5] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/swapMultiAssets-alonzo: -------------------------------------------------------------------------------- 1 | [3] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/unlockDatumOutput: -------------------------------------------------------------------------------- 1 | [5,15,21] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/unlockDatumOutputSameBlock: -------------------------------------------------------------------------------- 1 | [5,15] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/unlockScriptSameBlock: -------------------------------------------------------------------------------- 1 | [5,11] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/fingerprint/unlockScriptSameBlock-alonzo: -------------------------------------------------------------------------------- 1 | [3,4] -------------------------------------------------------------------------------- /cardano-chain-gen/test/testfiles/pgpass-testing: -------------------------------------------------------------------------------- 1 | /var/run/postgresql:5432:testing:*:* 2 | -------------------------------------------------------------------------------- /cardano-db-sync/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ../CHANGELOG.md -------------------------------------------------------------------------------- /cardano-db-sync/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright 2019-2020 Input Output (Hong Kong) Ltd. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /cardano-db-sync/gen/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-db-sync/0c4fffaa3cdd39829850cbec395d3a6780a74e49/cardano-db-sync/gen/.gitkeep -------------------------------------------------------------------------------- /cardano-db-sync/hie.yaml: -------------------------------------------------------------------------------- 1 | cradle: 2 | cabal: 3 | -------------------------------------------------------------------------------- /cardano-db-sync/schema: -------------------------------------------------------------------------------- 1 | ../schema/ -------------------------------------------------------------------------------- /cardano-db-sync/src/Cardano/DbSync/Config/Byron.hs: -------------------------------------------------------------------------------- 1 | {-# LANGUAGE FlexibleInstances #-} 2 | {-# LANGUAGE MultiParamTypeClasses #-} 3 | {-# LANGUAGE RankNTypes #-} 4 | 5 | module Cardano.DbSync.Config.Byron ( 6 | readByronGenesisConfig, 7 | ) where 8 | 9 | import qualified Cardano.Chain.Genesis as Byron 10 | import Cardano.Crypto (decodeAbstractHash) 11 | import Cardano.DbSync.Config.Types 12 | import Cardano.DbSync.Error 13 | import Control.Monad.Trans.Except (ExceptT) 14 | import Control.Monad.Trans.Except.Extra (firstExceptT, hoistEither) 15 | 16 | readByronGenesisConfig :: 17 | SyncNodeConfig -> 18 | ExceptT SyncNodeError IO Byron.Config 19 | readByronGenesisConfig enc = do 20 | let file = unGenesisFile $ dncByronGenesisFile enc 21 | genHash <- 22 | firstExceptT SNErrDefault 23 | . hoistEither 24 | $ decodeAbstractHash (unGenesisHashByron $ dncByronGenesisHash enc) 25 | firstExceptT (SNErrByronConfig file) $ 26 | Byron.mkConfigFromFile (dncRequiresNetworkMagic enc) file genHash 27 | -------------------------------------------------------------------------------- /cardano-db-sync/src/Cardano/DbSync/Era.hs: -------------------------------------------------------------------------------- 1 | {-# LANGUAGE FlexibleInstances #-} 2 | {-# LANGUAGE MultiParamTypeClasses #-} 3 | {-# LANGUAGE RankNTypes #-} 4 | 5 | module Cardano.DbSync.Era ( 6 | insertValidateGenesisDist, 7 | ) where 8 | 9 | import Cardano.DbSync.Api.Types (SyncEnv) 10 | import Cardano.DbSync.Config 11 | import qualified Cardano.DbSync.Era.Byron.Genesis as Byron 12 | import qualified Cardano.DbSync.Era.Shelley.Genesis as Shelley 13 | import Cardano.DbSync.Error 14 | import Cardano.Prelude 15 | 16 | insertValidateGenesisDist :: 17 | SyncEnv -> 18 | NetworkName -> 19 | GenesisConfig -> 20 | Bool -> 21 | ExceptT SyncNodeError IO () 22 | insertValidateGenesisDist syncEnv nname genCfg shelleyInitiation = 23 | case genCfg of 24 | GenesisCardano _ bCfg sCfg _aCfg _ -> do 25 | Byron.insertValidateGenesisDist syncEnv nname bCfg 26 | Shelley.insertValidateGenesisDist syncEnv (unNetworkName nname) (scConfig sCfg) shelleyInitiation 27 | -------------------------------------------------------------------------------- /cardano-db-sync/src/Cardano/DbSync/Era/Cardano/Util.hs: -------------------------------------------------------------------------------- 1 | {-# LANGUAGE OverloadedStrings #-} 2 | 3 | module Cardano.DbSync.Era.Cardano.Util ( 4 | unChainHash, 5 | ) where 6 | 7 | import Cardano.Prelude 8 | import qualified Data.ByteString.Short as SBS 9 | import Ouroboros.Consensus.Cardano.Block (CardanoBlock) 10 | import qualified Ouroboros.Consensus.HardFork.Combinator as Consensus 11 | import Ouroboros.Network.Block (ChainHash (..)) 12 | 13 | unChainHash :: ChainHash (CardanoBlock era) -> ByteString 14 | unChainHash ch = 15 | case ch of 16 | GenesisHash -> "genesis" 17 | BlockHash bh -> SBS.fromShort (Consensus.getOneEraHash bh) 18 | -------------------------------------------------------------------------------- /cardano-db-sync/src/Cardano/DbSync/Era/Shelley/Generic.hs: -------------------------------------------------------------------------------- 1 | module Cardano.DbSync.Era.Shelley.Generic ( 2 | module X, 3 | ) where 4 | 5 | import Cardano.DbSync.Era.Shelley.Generic.Block as X 6 | import Cardano.DbSync.Era.Shelley.Generic.EpochUpdate as X 7 | import Cardano.DbSync.Era.Shelley.Generic.ProtoParams as X 8 | import Cardano.DbSync.Era.Shelley.Generic.Rewards as X 9 | import Cardano.DbSync.Era.Shelley.Generic.StakeDist as X 10 | import Cardano.DbSync.Era.Shelley.Generic.Tx as X 11 | import Cardano.DbSync.Era.Shelley.Generic.Util as X 12 | -------------------------------------------------------------------------------- /cardano-db-sync/src/Cardano/DbSync/Era/Shelley/Generic/Tx.hs: -------------------------------------------------------------------------------- 1 | module Cardano.DbSync.Era.Shelley.Generic.Tx ( 2 | fromShelleyTx, 3 | fromAllegraTx, 4 | fromMaryTx, 5 | fromAlonzoTx, 6 | fromBabbageTx, 7 | fromConwayTx, 8 | module X, 9 | ) where 10 | 11 | import Cardano.DbSync.Era.Shelley.Generic.Tx.Allegra 12 | import Cardano.DbSync.Era.Shelley.Generic.Tx.Alonzo 13 | import Cardano.DbSync.Era.Shelley.Generic.Tx.Babbage 14 | import Cardano.DbSync.Era.Shelley.Generic.Tx.Conway 15 | import Cardano.DbSync.Era.Shelley.Generic.Tx.Mary 16 | import Cardano.DbSync.Era.Shelley.Generic.Tx.Shelley 17 | import Cardano.DbSync.Era.Shelley.Generic.Tx.Types as X 18 | -------------------------------------------------------------------------------- /cardano-db-sync/test/Main.hs: -------------------------------------------------------------------------------- 1 | module Main where 2 | 3 | import qualified Cardano.DbSync.ApiTest as Api 4 | import qualified Cardano.DbSync.Config.TypesTest as Types 5 | import qualified Cardano.DbSync.Era.Shelley.Generic.ScriptDataTest as ScriptData 6 | import qualified Cardano.DbSync.Era.Shelley.Generic.ScriptTest as Script 7 | import qualified Cardano.DbSync.Util.AddressTest as Address 8 | import qualified Cardano.DbSync.Util.Bech32Test as Bech32 9 | import qualified Cardano.DbSync.Util.CborTest as Cbor 10 | import qualified Cardano.DbSyncTest as DbSync 11 | import Cardano.Prelude 12 | import Hedgehog.Main 13 | import Prelude () 14 | 15 | main :: IO () 16 | main = 17 | defaultMain 18 | [ Bech32.tests 19 | , Address.tests 20 | , Cbor.tests 21 | , Script.tests 22 | , ScriptData.tests 23 | , DbSync.tests 24 | , Types.tests 25 | , Api.tests 26 | ] 27 | -------------------------------------------------------------------------------- /cardano-db-tool/hie.yaml: -------------------------------------------------------------------------------- 1 | cradle: 2 | cabal: 3 | -------------------------------------------------------------------------------- /cardano-db-tool/src/Cardano/DbTool.hs: -------------------------------------------------------------------------------- 1 | module Cardano.DbTool ( 2 | module X, 3 | ) where 4 | 5 | import Cardano.DbTool.PrepareSnapshot as X 6 | import Cardano.DbTool.Report as X 7 | import Cardano.DbTool.UtxoSet as X 8 | import Cardano.DbTool.Validation as X 9 | -------------------------------------------------------------------------------- /cardano-db-tool/src/Cardano/DbTool/Report.hs: -------------------------------------------------------------------------------- 1 | module Cardano.DbTool.Report ( 2 | module X, 3 | Report (..), 4 | runReport, 5 | ) where 6 | 7 | import Cardano.Db (TxOutVariantType) 8 | import Cardano.DbTool.Report.Balance (reportBalance) 9 | import Cardano.DbTool.Report.StakeReward ( 10 | reportEpochStakeRewards, 11 | reportLatestStakeRewards, 12 | reportStakeRewardHistory, 13 | ) 14 | import Cardano.DbTool.Report.Synced as X 15 | import Cardano.DbTool.Report.Transactions (reportTransactions) 16 | import Data.Text (Text) 17 | import Data.Word (Word64) 18 | 19 | data Report 20 | = ReportAllRewards [Text] 21 | | ReportBalance [Text] 22 | | ReportEpochRewards Word64 [Text] 23 | | ReportLatestRewards [Text] 24 | | ReportTransactions [Text] 25 | 26 | runReport :: Report -> TxOutVariantType -> IO () 27 | runReport report txOutTableType = do 28 | assertFullySynced 29 | case report of 30 | ReportAllRewards sas -> mapM_ reportStakeRewardHistory sas 31 | ReportBalance sas -> reportBalance txOutTableType sas 32 | ReportEpochRewards ep sas -> reportEpochStakeRewards ep sas 33 | ReportLatestRewards sas -> reportLatestStakeRewards sas 34 | ReportTransactions sas -> reportTransactions txOutTableType sas 35 | -------------------------------------------------------------------------------- /cardano-db-tool/src/Cardano/DbTool/Report/Display.hs: -------------------------------------------------------------------------------- 1 | {-# LANGUAGE OverloadedStrings #-} 2 | 3 | module Cardano.DbTool.Report.Display ( 4 | leftPad, 5 | rightPad, 6 | separator, 7 | spaces, 8 | ) where 9 | 10 | import qualified Data.List as List 11 | import Data.Text (Text) 12 | import qualified Data.Text as Text 13 | import qualified Data.Text.ICU as ICU 14 | 15 | leftPad :: Int -> Text -> Text 16 | leftPad width txt = Text.take (width - textDisplayLen txt) spaces <> txt 17 | 18 | rightPad :: Int -> Text -> Text 19 | rightPad width txt = txt <> Text.take (width - textDisplayLen txt) spaces 20 | 21 | separator :: Text 22 | separator = " | " 23 | 24 | spaces :: Text 25 | spaces = " " 26 | 27 | -- Calculates the screen character count a `Text` object will use when printed. 28 | textDisplayLen :: Text -> Int 29 | textDisplayLen = List.length . ICU.breaks (ICU.breakCharacter ICU.Root) 30 | -------------------------------------------------------------------------------- /cardano-db-tool/src/Cardano/DbTool/Report/StakeReward.hs: -------------------------------------------------------------------------------- 1 | module Cardano.DbTool.Report.StakeReward ( 2 | module X, 3 | ) where 4 | 5 | import Cardano.DbTool.Report.StakeReward.History as X 6 | import Cardano.DbTool.Report.StakeReward.Latest as X 7 | -------------------------------------------------------------------------------- /cardano-db-tool/src/Cardano/DbTool/Validate/PoolOwner.hs: -------------------------------------------------------------------------------- 1 | {-# LANGUAGE TypeApplications #-} 2 | 3 | module Cardano.DbTool.Validate.PoolOwner ( 4 | validateAllPoolsHaveOwners, 5 | ) where 6 | 7 | import Cardano.Db 8 | import Cardano.DbTool.Validate.Util 9 | import Control.Monad.IO.Class (MonadIO) 10 | import Control.Monad.Trans.Reader (ReaderT) 11 | import Database.Esqueleto.Experimental ( 12 | SqlBackend, 13 | Value (..), 14 | countRows, 15 | from, 16 | notExists, 17 | select, 18 | table, 19 | unValue, 20 | where_, 21 | (==.), 22 | (^.), 23 | ) 24 | 25 | validateAllPoolsHaveOwners :: IO () 26 | validateAllPoolsHaveOwners = do 27 | putStrF "All pools have owners : " 28 | count <- runDbNoLoggingEnv queryPoolsWithoutOwners 29 | if count == 0 30 | then putStrLn $ greenText "ok" 31 | else putStrLn $ redText ("Failed, " ++ show count ++ " pools are without owners.") 32 | 33 | -- ----------------------------------------------------------------------------- 34 | 35 | -- select * from pool_hash 36 | -- where not exists (select * from pool_owner where pool_owner.pool_hash_id = pool_hash.id) ; 37 | 38 | queryPoolsWithoutOwners :: MonadIO m => ReaderT SqlBackend m Int 39 | queryPoolsWithoutOwners = do 40 | res <- select $ do 41 | pupd <- from $ table @PoolUpdate 42 | where_ . notExists $ do 43 | powner <- from (table @PoolOwner) 44 | where_ (pupd ^. PoolUpdateId ==. powner ^. PoolOwnerPoolUpdateId) 45 | pure countRows 46 | 47 | pure $ maybe 0 unValue (listToMaybe res) 48 | -------------------------------------------------------------------------------- /cardano-db-tool/src/Cardano/DbTool/Validate/Util.hs: -------------------------------------------------------------------------------- 1 | module Cardano.DbTool.Validate.Util ( 2 | codeGreen, 3 | codeRed, 4 | codeReset, 5 | fmap2, 6 | greenText, 7 | redText, 8 | putStrF, 9 | ) where 10 | 11 | import System.Console.ANSI (setSGRCode) 12 | import System.Console.ANSI.Types ( 13 | Color (..), 14 | ColorIntensity (..), 15 | ConsoleLayer (..), 16 | SGR (..), 17 | ) 18 | import System.IO (hFlush, stdout) 19 | 20 | codeGreen :: String 21 | codeGreen = setSGRCode [SetColor Foreground Vivid Green] 22 | 23 | codeRed :: String 24 | codeRed = setSGRCode [SetColor Foreground Vivid Red] 25 | 26 | codeReset :: String 27 | codeReset = setSGRCode [Reset] 28 | 29 | fmap2 :: (Functor f, Functor g) => (a -> b) -> f (g a) -> f (g b) 30 | fmap2 = fmap . fmap 31 | 32 | greenText :: String -> String 33 | greenText s = codeGreen ++ s ++ codeReset 34 | 35 | redText :: String -> String 36 | redText s = codeRed ++ s ++ codeReset 37 | 38 | putStrF :: String -> IO () 39 | putStrF s = putStr s >> hFlush stdout 40 | -------------------------------------------------------------------------------- /cardano-db/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright 2019-2020 Input Output (Hong Kong) Ltd. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /cardano-db/Setup.hs: -------------------------------------------------------------------------------- 1 | import Distribution.Simple 2 | 3 | main = defaultMain 4 | -------------------------------------------------------------------------------- /cardano-db/hie.yaml: -------------------------------------------------------------------------------- 1 | cradle: 2 | cabal: 3 | -------------------------------------------------------------------------------- /cardano-db/src/Cardano/Db.hs: -------------------------------------------------------------------------------- 1 | module Cardano.Db ( 2 | module X, 3 | AssetFingerprint (..), 4 | -- Data types from Cardano.Db.Schema: 5 | Block (..), 6 | Tx (..), 7 | TxIn (..), 8 | gitRev, 9 | ) where 10 | 11 | import Cardano.Db.Error as X 12 | import Cardano.Db.Git.Version (gitRev) 13 | import Cardano.Db.Migration as X 14 | import Cardano.Db.Migration.Version as X 15 | import Cardano.Db.Operations.AlterTable as X 16 | import Cardano.Db.Operations.Delete as X 17 | import Cardano.Db.Operations.Insert as X 18 | import Cardano.Db.Operations.Other.ConsumedTxOut as X 19 | import Cardano.Db.Operations.Other.JsonbQuery as X 20 | import Cardano.Db.Operations.Other.MinId as X 21 | import Cardano.Db.Operations.Query as X 22 | import Cardano.Db.Operations.QueryHelper as X 23 | import Cardano.Db.Operations.TxOut.TxOutDelete as X 24 | import Cardano.Db.Operations.TxOut.TxOutInsert as X 25 | import Cardano.Db.Operations.TxOut.TxOutQuery as X 26 | import Cardano.Db.Operations.Types as X 27 | import Cardano.Db.PGConfig as X 28 | import Cardano.Db.Run as X 29 | import Cardano.Db.Schema.BaseSchema as X 30 | import Cardano.Db.Schema.Types as X 31 | import Cardano.Db.Types as X 32 | -------------------------------------------------------------------------------- /cardano-db/src/Cardano/Db/Git/RevFromGit.hs: -------------------------------------------------------------------------------- 1 | module Cardano.Db.Git.RevFromGit ( 2 | gitRevFromGit, 3 | ) where 4 | 5 | import Control.Exception (catch) 6 | import qualified Language.Haskell.TH as TH 7 | import System.Exit (ExitCode (..)) 8 | import System.IO (hPutStrLn, stderr) 9 | import System.IO.Error (isDoesNotExistError) 10 | import System.Process (readProcessWithExitCode) 11 | 12 | -- | Git revision found by running git rev-parse. If git could not be 13 | -- executed, then this will be an empty string. 14 | gitRevFromGit :: TH.Q TH.Exp 15 | gitRevFromGit = 16 | TH.LitE . TH.StringL <$> TH.runIO runGitRevParse 17 | where 18 | runGitRevParse :: IO String 19 | runGitRevParse = do 20 | (exitCode, output, errorMessage) <- readProcessWithExitCode_ "git" ["rev-parse", "--verify", "HEAD"] "" 21 | case exitCode of 22 | ExitSuccess -> pure output 23 | ExitFailure _ -> do 24 | hPutStrLn stderr $ "WARNING: " ++ errorMessage 25 | pure "" 26 | 27 | readProcessWithExitCode_ :: FilePath -> [String] -> String -> IO (ExitCode, String, String) 28 | readProcessWithExitCode_ cmd args input = 29 | catch (readProcessWithExitCode cmd args input) $ \e -> 30 | if isDoesNotExistError e 31 | then pure (ExitFailure 127, "", show e) 32 | else pure (ExitFailure 999, "", show e) 33 | -------------------------------------------------------------------------------- /cardano-db/src/Cardano/Db/Git/Version.hs: -------------------------------------------------------------------------------- 1 | {-# LANGUAGE CPP #-} 2 | {-# LANGUAGE OverloadedStrings #-} 3 | {-# LANGUAGE TemplateHaskell #-} 4 | 5 | module Cardano.Db.Git.Version ( 6 | gitRev, 7 | ) where 8 | 9 | import Cardano.Db.Git.RevFromGit (gitRevFromGit) 10 | import Data.FileEmbed (dummySpaceWith) 11 | import Data.Text (Text) 12 | import qualified Data.Text as Text 13 | import qualified Data.Text.Encoding as Text 14 | 15 | -- | Provide the git revision at compilation time (if possible) 16 | -- 17 | -- Used to provide a git revision in cli programs 18 | gitRev :: Text 19 | gitRev 20 | | gitRevEmbed /= zeroRev = gitRevEmbed 21 | | Text.null fromGit = zeroRev 22 | | otherwise = fromGit 23 | where 24 | -- Git revision embedded after compilation using 25 | -- Data.FileEmbed.injectWith. If nothing has been injected, 26 | -- this will be filled with 0 characters. 27 | gitRevEmbed :: Text 28 | gitRevEmbed = Text.decodeUtf8 $(dummySpaceWith "gitrev" 40) 29 | 30 | -- Git revision found during compilation by running git. If 31 | -- git could not be run, then this will be empty. 32 | #if defined(arm_HOST_ARCH) 33 | -- cross compiling to arm fails; due to a linker bug 34 | fromGit = "" 35 | #else 36 | fromGit = Text.strip (Text.pack $(gitRevFromGit)) 37 | #endif 38 | 39 | zeroRev :: Text 40 | zeroRev = "0000000000000000000000000000000000000000" 41 | -------------------------------------------------------------------------------- /cardano-db/src/Cardano/Db/Schema/Types.hs: -------------------------------------------------------------------------------- 1 | {-# LANGUAGE DeriveGeneric #-} 2 | {-# LANGUAGE DerivingVia #-} 3 | 4 | module Cardano.Db.Schema.Types ( 5 | AddressHash (..), 6 | PaymentAddrHash (..), 7 | PoolMetaHash (..), 8 | PoolUrl (..), 9 | ) where 10 | 11 | import Data.ByteString.Char8 (ByteString) 12 | import Data.Text (Text) 13 | import GHC.Generics (Generic) 14 | import Quiet (Quiet (..)) 15 | 16 | newtype AddressHash -- Length (28 bytes) enforced by Postgres 17 | = AddressHash {unAddressHash :: ByteString} 18 | deriving (Generic) 19 | deriving (Read, Show) via (Quiet AddressHash) 20 | 21 | newtype PaymentAddrHash -- Length (32 bytes) enforced by Postgres 22 | = PaymentAddrHash {unPaymentAddrHash :: ByteString} 23 | deriving (Generic) 24 | deriving (Read, Show) via (Quiet PaymentAddrHash) 25 | 26 | -- The pool's Bech32 encoded identifier (the hash of the stake pool operator's vkey). 27 | newtype PoolIdent = PoolIdent {unPoolIdent :: Text} 28 | deriving (Eq, Ord, Generic) 29 | deriving (Show) via (Quiet PoolIdent) 30 | 31 | -- | The raw binary hash of a stake pool's metadata. 32 | newtype PoolMetaHash = PoolMetaHash {unPoolMetaHash :: ByteString} 33 | deriving (Eq, Ord, Generic) 34 | deriving (Show) via (Quiet PoolMetaHash) 35 | 36 | -- | The pool url wrapper so we have some additional safety. 37 | newtype PoolUrl = PoolUrl {unPoolUrl :: Text} 38 | deriving (Eq, Ord, Generic) 39 | deriving (Show) via (Quiet PoolUrl) 40 | -------------------------------------------------------------------------------- /cardano-db/test/Test/IO/Cardano/Db/PGConfig.hs: -------------------------------------------------------------------------------- 1 | {-# LANGUAGE OverloadedStrings #-} 2 | {-# OPTIONS_GHC -fno-warn-orphans #-} 3 | 4 | module Test.IO.Cardano.Db.PGConfig ( 5 | tests, 6 | ) where 7 | 8 | import Cardano.Db (PGConfig (..), PGPassSource (..), readPGPass, runOrThrowIODb) 9 | import Control.Monad (unless) 10 | import System.Directory (getCurrentDirectory) 11 | import System.Environment 12 | import System.FilePath (()) 13 | import Test.Tasty (TestTree, testGroup) 14 | import Test.Tasty.HUnit (testCase) 15 | 16 | tests :: TestTree 17 | tests = 18 | testGroup 19 | "PGConfig" 20 | [ testCase "Reading PGPass file" pgFileReadTest 21 | ] 22 | 23 | -- Custom Eq instance that ignores the user field. 24 | instance Eq PGConfig where 25 | (==) a b = 26 | pgcHost a == pgcHost b 27 | && pgcPort a == pgcPort b 28 | && pgcDbname a == pgcDbname b 29 | && pgcPassword a == pgcPassword b 30 | 31 | pgFileReadTest :: IO () 32 | pgFileReadTest = do 33 | let expected = PGConfig "/var/run/postgresql" "5432" "cexplorer" "" "*" 34 | 35 | currentDir <- getCurrentDirectory 36 | setEnv "OTHER_PG_PASS_ENV_VARIABLE" (currentDir "../config/pgpass-mainnet") 37 | 38 | let pg = PGPassEnv "OTHER_PG_PASS_ENV_VARIABLE" 39 | 40 | result <- runOrThrowIODb $ readPGPass pg 41 | unless (result == expected) $ 42 | error $ 43 | mconcat 44 | [ "PGConfig mismatch. Expected " 45 | , show expected 46 | , " but got " 47 | , show result 48 | , "." 49 | ] 50 | -------------------------------------------------------------------------------- /cardano-db/test/Test/Property/Upstream.hs: -------------------------------------------------------------------------------- 1 | {-# LANGUAGE OverloadedStrings #-} 2 | {-# LANGUAGE TemplateHaskell #-} 3 | 4 | module Test.Property.Upstream ( 5 | tests, 6 | ) where 7 | 8 | -- Test things that come from upstream packages that have at any stage gone wrong 9 | -- or for which 10 | 11 | import Cardano.Chain.Common (decodeAddressBase58, isRedeemAddress) 12 | import Hedgehog (Property, discover, (===)) 13 | import qualified Hedgehog as H 14 | import qualified Hedgehog.Gen as Gen 15 | 16 | prop_isRedeemAddress :: Property 17 | prop_isRedeemAddress = 18 | H.withTests 2 . H.property $ do 19 | addr <- 20 | H.forAll $ 21 | Gen.element 22 | [ "Ae2tdPwUPEYycJ77DaXcWEdM3jaSBg2HgmK9jT1HmBzeLJ94x8mRw33xpBM" 23 | , "Ae2tdPwUPEZ5bWquLHSYARmM5qgmCg1cjAPb7C4tVkRNQXN2BoX2Han8xKj" 24 | , "Ae2tdPwUPEZMB92JqgxAEWfXJo6Ex7wWLoS7REmh81Ue6GgsNrDNs3MeQKA" 25 | , "Ae2tdPwUPEZ43NhMYvw1bkcGnEzdDbm9QTWiRux6Xpy8sorgfSJfazneEsP" 26 | ] 27 | fmap isRedeemAddress (decodeAddressBase58 addr) === Right True 28 | 29 | -- ----------------------------------------------------------------------------- 30 | 31 | tests :: IO Bool 32 | tests = H.checkParallel $$discover 33 | -------------------------------------------------------------------------------- /cardano-db/test/schema/migration-1-0000-20190730.sql: -------------------------------------------------------------------------------- 1 | dummy migration 2 | -------------------------------------------------------------------------------- /cardano-db/test/test-db.hs: -------------------------------------------------------------------------------- 1 | {-# LANGUAGE OverloadedStrings #-} 2 | 3 | import Control.Monad (when) 4 | import Data.Maybe (isNothing) 5 | import System.Directory (getCurrentDirectory) 6 | import System.Environment (lookupEnv, setEnv) 7 | import System.FilePath (()) 8 | import qualified Test.IO.Cardano.Db.Insert 9 | import qualified Test.IO.Cardano.Db.Migration 10 | import qualified Test.IO.Cardano.Db.PGConfig 11 | import qualified Test.IO.Cardano.Db.Rollback 12 | import qualified Test.IO.Cardano.Db.TotalSupply 13 | import Test.Tasty (defaultMain, testGroup) 14 | import Prelude 15 | 16 | main :: IO () 17 | main = do 18 | -- If the env is not set, set it to default. 19 | mPgPassFile <- lookupEnv "PGPASSFILE" 20 | when (isNothing mPgPassFile) $ do 21 | currentDir <- getCurrentDirectory 22 | setEnv "PGPASSFILE" (currentDir "../config/pgpass-mainnet") 23 | 24 | defaultMain $ 25 | testGroup 26 | "Database" 27 | [ Test.IO.Cardano.Db.Migration.tests 28 | , Test.IO.Cardano.Db.Insert.tests 29 | , Test.IO.Cardano.Db.TotalSupply.tests 30 | , Test.IO.Cardano.Db.Rollback.tests 31 | , Test.IO.Cardano.Db.PGConfig.tests 32 | ] 33 | -------------------------------------------------------------------------------- /cardano-db/test/test.hs: -------------------------------------------------------------------------------- 1 | import Hedgehog.Main (defaultMain) 2 | import qualified Test.Property.Cardano.Db.Migration 3 | import qualified Test.Property.Cardano.Db.Types 4 | import qualified Test.Property.Upstream 5 | 6 | main :: IO () 7 | main = 8 | defaultMain 9 | [ Test.Property.Upstream.tests 10 | , Test.Property.Cardano.Db.Migration.tests 11 | , Test.Property.Cardano.Db.Types.tests 12 | ] 13 | -------------------------------------------------------------------------------- /cardano-smash-server/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Revision history for cardano-smash-server 2 | 3 | ## 13.0.0 4 | * Added connection pools for smash, instead of opening a connection for each request. Configurable with `--pool` for admins. 5 | * Fix smash server error "Pool is retired" for pool that don't exist. (#997) 6 | * Removed "no-store" from metadata caching (#1075) 7 | 8 | ## 12.0.2 9 | * Fix PoolOfflineFetchError URL entry (#697). 10 | 11 | ## 12.0.1 12 | * Fix metadata hash in served JSON. 13 | 14 | ## 12.0.0 15 | * Port standalone smash to db-sync. 16 | -------------------------------------------------------------------------------- /cardano-smash-server/Setup.hs: -------------------------------------------------------------------------------- 1 | import Distribution.Simple 2 | 3 | main = defaultMain 4 | -------------------------------------------------------------------------------- /cardano-smash-server/hie.yaml: -------------------------------------------------------------------------------- 1 | cradle: 2 | cabal: 3 | -------------------------------------------------------------------------------- /config/pgpass-mainnet: -------------------------------------------------------------------------------- 1 | /var/run/postgresql:5432:cexplorer:*:* 2 | -------------------------------------------------------------------------------- /config/pgpass-shelley-qa: -------------------------------------------------------------------------------- 1 | /var/run/postgresql:5432:shelley-test:*:* 2 | -------------------------------------------------------------------------------- /config/secrets/postgres_db: -------------------------------------------------------------------------------- 1 | cexplorer -------------------------------------------------------------------------------- /config/secrets/postgres_password: -------------------------------------------------------------------------------- 1 | v8hlDV0yMAHHlIurYupj -------------------------------------------------------------------------------- /config/secrets/postgres_user: -------------------------------------------------------------------------------- 1 | postgres -------------------------------------------------------------------------------- /custom-config/default.nix: -------------------------------------------------------------------------------- 1 | self: { 2 | withHoogle = true; 3 | # optional extra haskell.nix module 4 | haskellNix = {}; 5 | } 6 | -------------------------------------------------------------------------------- /doc/ERD.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-db-sync/0c4fffaa3cdd39829850cbec395d3a6780a74e49/doc/ERD.png -------------------------------------------------------------------------------- /doc/hlint-stylish-haskell.md: -------------------------------------------------------------------------------- 1 | # Auto-running hlint on Commit 2 | 3 | This document describes how to have `hlint` locally on every commit. 4 | 5 | # Installing Them 6 | 7 | Installing this is as simple as `cabal install hlint` which will install them 8 | in `$HOME/.cabal/bin` which should then be added to your `PATH` environment variable. 9 | 10 | # Install the Git Pre-commit Hook 11 | 12 | In the `db-sync` repo, there is a shell script at `scripts/git-pre-commit-hook`. This can be 13 | symlinked to run as a Git pre-commit hook. If you go to the `.git` directory of your 14 | `cardano-db-sync` Git checkout and create the symlink as follows: 15 | ``` 16 | (cd .git/hooks/ && ln -s ../../scripts/git-pre-commit-hook pre-commit) 17 | ``` 18 | -------------------------------------------------------------------------------- /docker-test.yml: -------------------------------------------------------------------------------- 1 | version: "3.5" 2 | 3 | services: 4 | postgres: 5 | image: postgres:17.2-alpine 6 | environment: 7 | - POSTGRES_LOGGING=true 8 | - POSTGRES_DB_FILE=/run/secrets/postgres_db 9 | - POSTGRES_PASSWORD_FILE=/run/secrets/postgres_password 10 | - POSTGRES_USER_FILE=/run/secrets/postgres_user 11 | secrets: 12 | - postgres_password 13 | - postgres_user 14 | - postgres_db 15 | volumes: 16 | - postgres:/var/lib/postgresql/data 17 | restart: on-failure 18 | ports: 19 | - "5432:5432" 20 | logging: 21 | driver: "json-file" 22 | options: 23 | max-size: "200k" 24 | max-file: "10" 25 | 26 | secrets: 27 | postgres_db: 28 | file: ./config/secrets/postgres_db 29 | postgres_password: 30 | file: ./config/secrets/postgres_password 31 | postgres_user: 32 | file: ./config/secrets/postgres_user 33 | 34 | volumes: 35 | postgres: 36 | -------------------------------------------------------------------------------- /fourmolu.yaml: -------------------------------------------------------------------------------- 1 | indentation: 2 2 | column-limit: none 3 | function-arrows: trailing 4 | comma-style: leading 5 | import-export-style: diff-friendly 6 | import-grouping: legacy 7 | indent-wheres: true 8 | record-brace-space: true 9 | newlines-between-decls: 1 10 | haddock-style: single-line 11 | haddock-style-module: null 12 | let-style: auto 13 | in-style: right-align 14 | single-constraint-parens: never 15 | single-deriving-parens: always 16 | sort-constraints: false 17 | sort-derived-classes: false 18 | sort-deriving-clauses: false 19 | trailing-section-operators: true 20 | unicode: never 21 | respectful: true 22 | reexports: 23 | - module Cardano.Prelude exports Prelude 24 | -------------------------------------------------------------------------------- /nix/default.nix: -------------------------------------------------------------------------------- 1 | { ... }@args: 2 | with (import ./flake-compat.nix args); 3 | defaultNix.legacyPackages.${args.system or builtins.currentSystem} 4 | -------------------------------------------------------------------------------- /nix/nixos/default.nix: -------------------------------------------------------------------------------- 1 | { imports = import ./module-list.nix; } 2 | -------------------------------------------------------------------------------- /nix/nixos/module-list.nix: -------------------------------------------------------------------------------- 1 | [ ./cardano-db-sync-service.nix 2 | ./smash-service.nix 3 | ] 4 | -------------------------------------------------------------------------------- /nix/nixos/tests/default.nix: -------------------------------------------------------------------------------- 1 | { pkgs 2 | , 3 | }: 4 | 5 | let 6 | nixos-lib = import (pkgs.path + "/nixos/lib") { }; 7 | in { 8 | basicTest = nixos-lib.runTest (import ./services-basic-test.nix { inherit pkgs; }); 9 | } 10 | -------------------------------------------------------------------------------- /schema/migration-1-0000-20190730.sql: -------------------------------------------------------------------------------- 1 | -- Hand written migration that creates a 'schema_version' table and initializes it. 2 | 3 | CREATE FUNCTION init() RETURNS void AS $$ 4 | 5 | DECLARE 6 | emptyDB boolean; 7 | 8 | BEGIN 9 | -- Run a notification that migrations are starting. 10 | NOTIFY cardano_db_sync_startup, 'init'; 11 | 12 | SELECT NOT EXISTS (SELECT 1 FROM information_schema.tables WHERE table_name='schema_version') INTO emptyDB; 13 | IF emptyDB THEN 14 | EXECUTE 'CREATE TABLE "schema_version" (id SERIAL PRIMARY KEY UNIQUE, stage_one INT8 NOT NULL, stage_two INT8 NOT NULL, stage_three INT8 NOT NULL);'; 15 | EXECUTE 'INSERT INTO "schema_version" (stage_one, stage_two, stage_three) VALUES (0, 0, 0);'; 16 | 17 | RAISE NOTICE 'DB has been initialized'; 18 | END IF; 19 | END; 20 | 21 | $$ LANGUAGE plpgsql; 22 | 23 | SELECT init(); 24 | 25 | DROP FUNCTION init(); 26 | -------------------------------------------------------------------------------- /schema/migration-1-0002-20190912.sql: -------------------------------------------------------------------------------- 1 | 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | DECLARE 5 | next_version int ; 6 | BEGIN 7 | SELECT stage_one + 1 INTO next_version FROM "schema_version" ; 8 | IF next_version = 2 THEN 9 | -- Empty migration file just to raise the version 10 | 11 | UPDATE schema_version SET stage_one = next_version ; 12 | RAISE NOTICE 'DB has been migrated to stage_one version %', next_version ; 13 | END IF ; 14 | END ; 15 | $$ LANGUAGE plpgsql ; 16 | 17 | SELECT migrate() ; 18 | 19 | DROP FUNCTION migrate() ; 20 | -------------------------------------------------------------------------------- /schema/migration-1-0003-20200211.sql: -------------------------------------------------------------------------------- 1 | -- Hand written migration to create the custom types with 'DOMAIN' statements. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | 5 | DECLARE 6 | next_version int; 7 | 8 | BEGIN 9 | SELECT stage_one + 1 INTO next_version FROM "schema_version"; 10 | IF next_version = 3 THEN 11 | -- Used as the sum of tx outputs for an epoch. 12 | -- Persistent does not support more precision than 'Int64' (support for 'Word64' 13 | -- is done as a 'cast' to/from 'Int64' resulting in values greater than 14 | -- 'maxBound :: Int64' being represented in the database as negative values. 15 | -- Instead we we use 'Word128'. 16 | EXECUTE 'CREATE DOMAIN outsum AS word128type;'; 17 | 18 | UPDATE "schema_version" SET stage_one = next_version; 19 | RAISE NOTICE 'DB has been migrated to stage_one version %', next_version; 20 | END IF; 21 | END; 22 | 23 | $$ LANGUAGE plpgsql; 24 | 25 | SELECT migrate(); 26 | 27 | DROP FUNCTION migrate(); 28 | -------------------------------------------------------------------------------- /schema/migration-1-0004-20201026.sql: -------------------------------------------------------------------------------- 1 | -- Hand written migration to create the custom types with 'DOMAIN' statements. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | 5 | DECLARE 6 | next_version int; 7 | 8 | BEGIN 9 | SELECT stage_one + 1 INTO next_version FROM "schema_version"; 10 | IF next_version = 4 THEN 11 | -- Asset identifiers are ByteStrings of up to 32 bytes in length. 12 | -- The empty ByteString is a valid value. 13 | EXECUTE 'CREATE DOMAIN asset32type AS bytea CHECK (octet_length (VALUE) <= 32);'; 14 | 15 | -- This is horrible. Basically a 'Word64' with an extra sign bit. 16 | EXECUTE 'CREATE DOMAIN int65type AS numeric (20, 0) CHECK (VALUE >= -18446744073709551615 AND VALUE <= 18446744073709551615);'; 17 | 18 | UPDATE "schema_version" SET stage_one = next_version; 19 | RAISE NOTICE 'DB has been migrated to stage_one version %', next_version; 20 | END IF; 21 | END; 22 | 23 | $$ LANGUAGE plpgsql; 24 | 25 | SELECT migrate(); 26 | 27 | DROP FUNCTION migrate(); 28 | -------------------------------------------------------------------------------- /schema/migration-1-0005-20210311.sql: -------------------------------------------------------------------------------- 1 | -- Hand written migration to create the custom types with 'DOMAIN' statements. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | 5 | DECLARE 6 | next_version int; 7 | 8 | BEGIN 9 | SELECT stage_one + 1 INTO next_version FROM "schema_version"; 10 | IF next_version = 5 THEN 11 | 12 | -- Would normally put this inside an "EXECUTE" statement, but that does not work for some 13 | -- reason and this does. In Haskell code this is the RewardSource type. 14 | CREATE TYPE rewardtype AS ENUM ('leader', 'member', 'reserves', 'treasury', 'refund'); 15 | 16 | UPDATE "schema_version" SET stage_one = next_version; 17 | RAISE NOTICE 'DB has been migrated to stage_one version %', next_version; 18 | END IF; 19 | END; 20 | 21 | $$ LANGUAGE plpgsql; 22 | 23 | SELECT migrate(); 24 | 25 | DROP FUNCTION migrate(); 26 | -------------------------------------------------------------------------------- /schema/migration-1-0006-20210531.sql: -------------------------------------------------------------------------------- 1 | -- Hand written migration to create the custom types with 'DOMAIN' statements. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | 5 | DECLARE 6 | next_version int; 7 | 8 | BEGIN 9 | SELECT stage_one + 1 INTO next_version FROM "schema_version"; 10 | IF next_version = 6 THEN 11 | 12 | -- Would normally put this inside an "EXECUTE" statement, but that does not work for some 13 | -- reason and this does. 14 | CREATE TYPE syncstatetype AS ENUM ('lagging', 'following'); 15 | 16 | UPDATE "schema_version" SET stage_one = next_version; 17 | RAISE NOTICE 'DB has been migrated to stage_one version %', next_version; 18 | END IF; 19 | END; 20 | 21 | $$ LANGUAGE plpgsql; 22 | 23 | SELECT migrate(); 24 | 25 | DROP FUNCTION migrate(); 26 | -------------------------------------------------------------------------------- /schema/migration-1-0007-20210611.sql: -------------------------------------------------------------------------------- 1 | -- Hand written migration to create the custom types with 'DOMAIN' statements. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | 5 | DECLARE 6 | next_version int; 7 | 8 | BEGIN 9 | SELECT stage_one + 1 INTO next_version FROM "schema_version"; 10 | IF next_version = 7 THEN 11 | 12 | EXECUTE 'CREATE DOMAIN word63type AS BIGINT CHECK (VALUE >= 0);'; 13 | 14 | UPDATE "schema_version" SET stage_one = next_version; 15 | RAISE NOTICE 'DB has been migrated to stage_one version %', next_version; 16 | END IF; 17 | END; 18 | 19 | $$ LANGUAGE plpgsql; 20 | 21 | SELECT migrate(); 22 | 23 | DROP FUNCTION migrate(); 24 | -------------------------------------------------------------------------------- /schema/migration-1-0008-20210727.sql: -------------------------------------------------------------------------------- 1 | -- Hand written migration to create the custom types with 'DOMAIN' statements. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | 5 | DECLARE 6 | next_version int; 7 | 8 | BEGIN 9 | SELECT stage_one + 1 INTO next_version FROM "schema_version"; 10 | IF next_version = 8 THEN 11 | 12 | CREATE TYPE scriptpurposetype AS ENUM ('spend', 'mint', 'cert', 'reward'); 13 | 14 | UPDATE "schema_version" SET stage_one = next_version; 15 | RAISE NOTICE 'DB has been migrated to stage_one version %', next_version; 16 | END IF; 17 | END; 18 | 19 | $$ LANGUAGE plpgsql; 20 | 21 | SELECT migrate(); 22 | 23 | DROP FUNCTION migrate(); 24 | -------------------------------------------------------------------------------- /schema/migration-1-0009-20210727.sql: -------------------------------------------------------------------------------- 1 | -- Hand written migration to create the custom types with 'DOMAIN' statements. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | 5 | DECLARE 6 | next_version int; 7 | 8 | BEGIN 9 | SELECT stage_one + 1 INTO next_version FROM "schema_version"; 10 | IF next_version = 9 THEN 11 | 12 | CREATE TYPE scripttype AS ENUM ('multisig', 'timelock', 'plutusV1', 'plutusV2'); 13 | 14 | UPDATE "schema_version" SET stage_one = next_version; 15 | RAISE NOTICE 'DB has been migrated to stage_one version %', next_version; 16 | END IF; 17 | END; 18 | 19 | $$ LANGUAGE plpgsql; 20 | 21 | SELECT migrate(); 22 | 23 | DROP FUNCTION migrate(); 24 | -------------------------------------------------------------------------------- /schema/migration-1-0010-20230612.sql: -------------------------------------------------------------------------------- 1 | -- Hand written migration to create the custom types with 'DOMAIN' statements. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | 5 | DECLARE 6 | next_version int; 7 | 8 | BEGIN 9 | SELECT stage_one + 1 INTO next_version FROM "schema_version"; 10 | IF next_version = 10 THEN 11 | 12 | ALTER TYPE scripttype ADD VALUE 'plutusV3' AFTER 'plutusV2'; 13 | 14 | UPDATE "schema_version" SET stage_one = next_version; 15 | RAISE NOTICE 'DB has been migrated to stage_one version %', next_version; 16 | END IF; 17 | END; 18 | 19 | $$ LANGUAGE plpgsql; 20 | 21 | SELECT migrate(); 22 | 23 | DROP FUNCTION migrate(); 24 | -------------------------------------------------------------------------------- /schema/migration-1-0011-20230814.sql: -------------------------------------------------------------------------------- 1 | -- Hand written migration to create the custom types with 'DOMAIN' statements. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | 5 | DECLARE 6 | next_version int; 7 | 8 | BEGIN 9 | SELECT stage_one + 1 INTO next_version FROM "schema_version"; 10 | IF next_version = 11 THEN 11 | 12 | CREATE TYPE voterrole AS ENUM ('ConstitutionalCommittee', 'DRep', 'SPO'); 13 | CREATE TYPE vote AS ENUM ('Yes', 'No', 'Abstain'); 14 | CREATE TYPE govactiontype AS ENUM ('ParameterChange', 'HardForkInitiation', 'TreasuryWithdrawals', 'NoConfidence', 'NewCommittee', 'NewConstitution', 'InfoAction'); 15 | 16 | UPDATE "schema_version" SET stage_one = next_version; 17 | RAISE NOTICE 'DB has been migrated to stage_one version %', next_version; 18 | END IF; 19 | END; 20 | 21 | $$ LANGUAGE plpgsql; 22 | 23 | SELECT migrate(); 24 | 25 | DROP FUNCTION migrate(); 26 | -------------------------------------------------------------------------------- /schema/migration-1-0012-20240211.sql: -------------------------------------------------------------------------------- 1 | -- Hand written migration to create the custom types with 'DOMAIN' statements. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | 5 | DECLARE 6 | next_version int; 7 | 8 | BEGIN 9 | SELECT stage_one + 1 INTO next_version FROM "schema_version"; 10 | IF next_version = 12 THEN 11 | 12 | ALTER TYPE scriptpurposetype ADD VALUE 'vote' AFTER 'reward'; 13 | ALTER TYPE scriptpurposetype ADD VALUE 'propose' AFTER 'vote'; 14 | 15 | UPDATE "schema_version" SET stage_one = next_version; 16 | RAISE NOTICE 'DB has been migrated to stage_one version %', next_version; 17 | END IF; 18 | END; 19 | 20 | $$ LANGUAGE plpgsql; 21 | 22 | SELECT migrate(); 23 | 24 | DROP FUNCTION migrate(); 25 | -------------------------------------------------------------------------------- /schema/migration-1-0013-20240318.sql: -------------------------------------------------------------------------------- 1 | -- Hand written migration to create the custom types with 'DOMAIN' statements. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | 5 | DECLARE 6 | next_version int; 7 | 8 | BEGIN 9 | SELECT stage_one + 1 INTO next_version FROM "schema_version"; 10 | IF next_version = 13 THEN 11 | 12 | CREATE TYPE anchorType AS ENUM ('gov_action', 'drep','other'); 13 | 14 | UPDATE "schema_version" SET stage_one = next_version; 15 | RAISE NOTICE 'DB has been migrated to stage_one version %', next_version; 16 | END IF; 17 | END; 18 | 19 | $$ LANGUAGE plpgsql; 20 | 21 | SELECT migrate(); 22 | 23 | DROP FUNCTION migrate(); 24 | -------------------------------------------------------------------------------- /schema/migration-1-0014-20240411.sql: -------------------------------------------------------------------------------- 1 | -- Hand written migration to create the custom types with 'DOMAIN' statements. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | 5 | DECLARE 6 | next_version int; 7 | 8 | BEGIN 9 | SELECT stage_one + 1 INTO next_version FROM "schema_version"; 10 | IF next_version = 14 THEN 11 | 12 | ALTER TYPE rewardtype ADD VALUE 'proposal_refund' AFTER 'refund'; 13 | 14 | UPDATE "schema_version" SET stage_one = next_version; 15 | RAISE NOTICE 'DB has been migrated to stage_one version %', next_version; 16 | END IF; 17 | END; 18 | 19 | $$ LANGUAGE plpgsql; 20 | 21 | SELECT migrate(); 22 | 23 | DROP FUNCTION migrate(); 24 | -------------------------------------------------------------------------------- /schema/migration-1-0015-20240724.sql: -------------------------------------------------------------------------------- 1 | -- Hand written migration to create the custom types with 'DOMAIN' statements. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | 5 | DECLARE 6 | next_version int; 7 | 8 | BEGIN 9 | SELECT stage_one + 1 INTO next_version FROM "schema_version"; 10 | IF next_version = 15 THEN 11 | 12 | ALTER TYPE anchorType ADD VALUE 'vote' AFTER 'other'; 13 | ALTER TYPE anchorType ADD VALUE 'committee_dereg' AFTER 'vote'; 14 | ALTER TYPE anchorType ADD VALUE 'constitution' AFTER 'committee_dereg'; 15 | 16 | UPDATE "schema_version" SET stage_one = next_version; 17 | RAISE NOTICE 'DB has been migrated to stage_one version %', next_version; 18 | END IF; 19 | END; 20 | 21 | $$ LANGUAGE plpgsql; 22 | 23 | SELECT migrate(); 24 | 25 | DROP FUNCTION migrate(); 26 | -------------------------------------------------------------------------------- /schema/migration-2-0003-20211013.sql: -------------------------------------------------------------------------------- 1 | -- Persistent generated migration. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | DECLARE 5 | next_version int ; 6 | BEGIN 7 | SELECT stage_two + 1 INTO next_version FROM schema_version ; 8 | IF next_version = 3 THEN 9 | EXECUTE 'ALTER TABLE "meta" ADD COLUMN "version" VARCHAR NOT NULL' ; 10 | -- Hand written SQL statements can be added here. 11 | UPDATE schema_version SET stage_two = next_version ; 12 | RAISE NOTICE 'DB has been migrated to stage_two version %', next_version ; 13 | END IF ; 14 | END ; 15 | $$ LANGUAGE plpgsql ; 16 | 17 | SELECT migrate() ; 18 | 19 | DROP FUNCTION migrate() ; 20 | -------------------------------------------------------------------------------- /schema/migration-2-0004-20211014.sql: -------------------------------------------------------------------------------- 1 | -- Persistent generated migration. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | DECLARE 5 | next_version int ; 6 | BEGIN 7 | SELECT stage_two + 1 INTO next_version FROM schema_version ; 8 | IF next_version = 4 THEN 9 | EXECUTE 'CREATe TABLE "delisted_pool"("id" SERIAL8 PRIMARY KEY UNIQUE,"hash_raw" hash28type NOT NULL)' ; 10 | EXECUTE 'ALTER TABLE "delisted_pool" ADD CONSTRAINT "unique_delisted_pool" UNIQUE("hash_raw")' ; 11 | -- Hand written SQL statements can be added here. 12 | UPDATE schema_version SET stage_two = next_version ; 13 | RAISE NOTICE 'DB has been migrated to stage_two version %', next_version ; 14 | END IF ; 15 | END ; 16 | $$ LANGUAGE plpgsql ; 17 | 18 | SELECT migrate() ; 19 | 20 | DROP FUNCTION migrate() ; 21 | -------------------------------------------------------------------------------- /schema/migration-2-0005-20211018.sql: -------------------------------------------------------------------------------- 1 | -- Persistent generated migration. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | DECLARE 5 | next_version int ; 6 | BEGIN 7 | SELECT stage_two + 1 INTO next_version FROM schema_version ; 8 | IF next_version = 5 THEN 9 | EXECUTE 'ALTER TABLE "reserved_pool_ticker" ADD COLUMN "pool_hash" hash28type NOT NULL' ; 10 | EXECUTE 'ALTER TABLE "reserved_pool_ticker" DROP COLUMN "pool_id"' ; 11 | -- Hand written SQL statements can be added here. 12 | UPDATE schema_version SET stage_two = next_version ; 13 | RAISE NOTICE 'DB has been migrated to stage_two version %', next_version ; 14 | END IF ; 15 | END ; 16 | $$ LANGUAGE plpgsql ; 17 | 18 | SELECT migrate() ; 19 | 20 | DROP FUNCTION migrate() ; 21 | -------------------------------------------------------------------------------- /schema/migration-2-0006-20220105.sql: -------------------------------------------------------------------------------- 1 | -- Persistent generated migration. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | DECLARE 5 | next_version int ; 6 | BEGIN 7 | SELECT stage_two + 1 INTO next_version FROM schema_version ; 8 | IF next_version = 6 THEN 9 | EXECUTE 'CREATe TABLE "extra_key_witness"("id" SERIAL8 PRIMARY KEY UNIQUE,"hash" hash28type NOT NULL,"tx_id" INT8 NOT NULL)' ; 10 | EXECUTE 'ALTER TABLE "extra_key_witness" ADD CONSTRAINT "unique_witness" UNIQUE("hash")' ; 11 | EXECUTE 'ALTER TABLE "extra_key_witness" ADD CONSTRAINT "extra_key_witness_tx_id_fkey" FOREIGN KEY("tx_id") REFERENCES "tx"("id") ON DELETE CASCADE ON UPDATE RESTRICT' ; 12 | -- Hand written SQL statements can be added here. 13 | UPDATE schema_version SET stage_two = next_version ; 14 | RAISE NOTICE 'DB has been migrated to stage_two version %', next_version ; 15 | END IF ; 16 | END ; 17 | $$ LANGUAGE plpgsql ; 18 | 19 | SELECT migrate() ; 20 | 21 | DROP FUNCTION migrate() ; 22 | -------------------------------------------------------------------------------- /schema/migration-2-0008-20220126.sql: -------------------------------------------------------------------------------- 1 | -- Persistent generated migration. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | DECLARE 5 | next_version int ; 6 | BEGIN 7 | SELECT stage_two + 1 INTO next_version FROM schema_version ; 8 | IF next_version = 8 THEN 9 | EXECUTE 'ALTER TABLE "stake_address" ADD COLUMN "tx_id" INT8 NOT NULL' ; 10 | EXECUTE 'ALTER TABLE "stake_address" DROP COLUMN "registered_tx_id"' ; 11 | EXECUTE 'ALTER TABLE "pool_update" ADD COLUMN "reward_addr_id" INT8 NOT NULL' ; 12 | EXECUTE 'ALTER TABLE "pool_update" DROP COLUMN "reward_addr"' ; 13 | EXECUTE 'ALTER TABLE "pool_owner" ADD COLUMN "pool_update_id" INT8 NOT NULL' ; 14 | EXECUTE 'ALTER TABLE "pool_owner" DROP COLUMN "pool_hash_id"' ; 15 | EXECUTE 'ALTER TABLE "pool_owner" DROP COLUMN "registered_tx_id"' ; 16 | EXECUTE 'ALTER TABLE "pool_owner" ADD CONSTRAINT "unique_pool_owner" UNIQUE("addr_id","pool_update_id")' ; 17 | -- Hand written SQL statements can be added here. 18 | UPDATE schema_version SET stage_two = next_version ; 19 | RAISE NOTICE 'DB has been migrated to stage_two version %', next_version ; 20 | END IF ; 21 | END ; 22 | $$ LANGUAGE plpgsql ; 23 | 24 | SELECT migrate() ; 25 | 26 | DROP FUNCTION migrate() ; 27 | -------------------------------------------------------------------------------- /schema/migration-2-0009-20220207.sql: -------------------------------------------------------------------------------- 1 | -- Persistent generated migration. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | DECLARE 5 | next_version int ; 6 | BEGIN 7 | SELECT stage_two + 1 INTO next_version FROM schema_version ; 8 | IF next_version = 9 THEN 9 | EXECUTE 'ALTER TABLE "stake_address" ADD CONSTRAINT "stake_address_tx_id_fkey" FOREIGN KEY("tx_id") REFERENCES "tx"("id") ON DELETE CASCADE ON UPDATE RESTRICT' ; 10 | EXECUTE 'ALTER TABLE "pool_update" ADD CONSTRAINT "pool_update_reward_addr_id_fkey" FOREIGN KEY("reward_addr_id") REFERENCES "stake_address"("id") ON DELETE CASCADE ON UPDATE RESTRICT' ; 11 | EXECUTE 'ALTER TABLE "pool_owner" ADD CONSTRAINT "pool_owner_pool_update_id_fkey" FOREIGN KEY("pool_update_id") REFERENCES "pool_update"("id") ON DELETE CASCADE ON UPDATE RESTRICT' ; 12 | EXECUTE 'ALTER TABLE "treasury" DROP CONSTRAINT "unique_treasury"' ; 13 | EXECUTE 'ALTER TABLE "treasury" ADD CONSTRAINT "unique_treasury" UNIQUE("addr_id","tx_id","cert_index")' ; 14 | EXECUTE 'ALTER TABLE "reserve" DROP CONSTRAINT "unique_reserves"' ; 15 | EXECUTE 'ALTER TABLE "reserve" ADD CONSTRAINT "unique_reserves" UNIQUE("addr_id","tx_id","cert_index")' ; 16 | -- Hand written SQL statements can be added here. 17 | UPDATE schema_version SET stage_two = next_version ; 18 | RAISE NOTICE 'DB has been migrated to stage_two version %', next_version ; 19 | END IF ; 20 | END ; 21 | $$ LANGUAGE plpgsql ; 22 | 23 | SELECT migrate() ; 24 | 25 | DROP FUNCTION migrate() ; 26 | -------------------------------------------------------------------------------- /schema/migration-2-0010-20220225.sql: -------------------------------------------------------------------------------- 1 | -- Persistent generated migration. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | DECLARE 5 | next_version int ; 6 | BEGIN 7 | SELECT stage_two + 1 INTO next_version FROM schema_version ; 8 | IF next_version = 10 THEN 9 | EXECUTE 'ALTER TABLE "pool_metadata_ref" DROP CONSTRAINT "pool_metadata_ref_pool_id_fkey"' ; 10 | EXECUTE 'ALTER TABLE "pool_metadata_ref" ADD CONSTRAINT "pool_metadata_ref_pool_id_fkey" FOREIGN KEY("pool_id") REFERENCES "pool_hash"("id") ON DELETE CASCADE ON UPDATE RESTRICT' ; 11 | EXECUTE 'ALTER TABLE "ma_tx_mint" DROP CONSTRAINT "ma_tx_mint_ident_fkey"' ; 12 | EXECUTE 'ALTER TABLE "ma_tx_mint" ADD CONSTRAINT "ma_tx_mint_ident_fkey" FOREIGN KEY("ident") REFERENCES "multi_asset"("id") ON DELETE CASCADE ON UPDATE RESTRICT' ; 13 | EXECUTE 'ALTER TABLE "ma_tx_out" DROP CONSTRAINT "ma_tx_out_ident_fkey"' ; 14 | EXECUTE 'ALTER TABLE "ma_tx_out" ADD CONSTRAINT "ma_tx_out_ident_fkey" FOREIGN KEY("ident") REFERENCES "multi_asset"("id") ON DELETE CASCADE ON UPDATE RESTRICT' ; 15 | -- Hand written SQL statements can be added here. 16 | UPDATE schema_version SET stage_two = next_version ; 17 | RAISE NOTICE 'DB has been migrated to stage_two version %', next_version ; 18 | END IF ; 19 | END ; 20 | $$ LANGUAGE plpgsql ; 21 | 22 | SELECT migrate() ; 23 | 24 | DROP FUNCTION migrate() ; 25 | -------------------------------------------------------------------------------- /schema/migration-2-0011-20220318.sql: -------------------------------------------------------------------------------- 1 | -- Persistent generated migration. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | DECLARE 5 | next_version int ; 6 | BEGIN 7 | SELECT stage_two + 1 INTO next_version FROM schema_version ; 8 | IF next_version = 11 THEN 9 | EXECUTE 'ALTER TABLE "block" ALTER COLUMN "slot_no" TYPE word63type' ; 10 | EXECUTE 'ALTER TABLE "ada_pots" ALTER COLUMN "slot_no" TYPE word63type' ; 11 | EXECUTE 'ALTER TABLE "delegation" ALTER COLUMN "slot_no" TYPE word63type' ; 12 | -- Hand written SQL statements can be added here. 13 | UPDATE schema_version SET stage_two = next_version ; 14 | RAISE NOTICE 'DB has been migrated to stage_two version %', next_version ; 15 | END IF ; 16 | END ; 17 | $$ LANGUAGE plpgsql ; 18 | 19 | SELECT migrate() ; 20 | 21 | DROP FUNCTION migrate() ; 22 | -------------------------------------------------------------------------------- /schema/migration-2-0012-20220502.sql: -------------------------------------------------------------------------------- 1 | -- Persistent generated migration. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | DECLARE 5 | next_version int ; 6 | BEGIN 7 | SELECT stage_two + 1 INTO next_version FROM schema_version ; 8 | IF next_version = 12 THEN 9 | EXECUTE 'ALTER TABLE "epoch_param" ADD COLUMN "extra_entropy" hash32type NULL' ; 10 | EXECUTE 'ALTER TABLE "epoch_param" DROP COLUMN "entropy"' ; 11 | -- Hand written SQL statements can be added here. 12 | UPDATE schema_version SET stage_two = next_version ; 13 | RAISE NOTICE 'DB has been migrated to stage_two version %', next_version ; 14 | END IF ; 15 | END ; 16 | $$ LANGUAGE plpgsql ; 17 | 18 | SELECT migrate() ; 19 | 20 | DROP FUNCTION migrate() ; 21 | -------------------------------------------------------------------------------- /schema/migration-2-0014-20220505.sql: -------------------------------------------------------------------------------- 1 | -- Persistent generated migration. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | DECLARE 5 | next_version int ; 6 | BEGIN 7 | SELECT stage_two + 1 INTO next_version FROM schema_version ; 8 | IF next_version = 14 THEN 9 | EXECUTE 'ALTER TABLE "tx_out" ADD COLUMN "inline_datum_id" INT8 NULL' ; 10 | EXECUTE 'ALTER TABLE "tx_out" ADD COLUMN "reference_script_id" INT8 NULL' ; 11 | EXECUTE 'ALTER TABLE "collateral_tx_out" ADD COLUMN "inline_datum_id" INT8 NULL' ; 12 | EXECUTE 'ALTER TABLE "collateral_tx_out" ADD COLUMN "reference_script_id" INT8 NULL' ; 13 | EXECUTE 'ALTER TABLE "redeemer" ADD CONSTRAINT "redeemer_redeemer_data_id_fkey" FOREIGN KEY("redeemer_data_id") REFERENCES "redeemer_data"("id") ON DELETE CASCADE ON UPDATE RESTRICT' ; 14 | -- Hand written SQL statements can be added here. 15 | UPDATE schema_version SET stage_two = next_version ; 16 | RAISE NOTICE 'DB has been migrated to stage_two version %', next_version ; 17 | END IF ; 18 | END ; 19 | $$ LANGUAGE plpgsql ; 20 | 21 | SELECT migrate() ; 22 | 23 | DROP FUNCTION migrate() ; 24 | -------------------------------------------------------------------------------- /schema/migration-2-0015-20220505.sql: -------------------------------------------------------------------------------- 1 | -- Persistent generated migration. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | DECLARE 5 | next_version int ; 6 | BEGIN 7 | SELECT stage_two + 1 INTO next_version FROM schema_version ; 8 | IF next_version = 15 THEN 9 | EXECUTE 'ALTER TABLE "tx_out" ADD CONSTRAINT "tx_out_inline_datum_id_fkey" FOREIGN KEY("inline_datum_id") REFERENCES "datum"("id") ON DELETE CASCADE ON UPDATE RESTRICT' ; 10 | EXECUTE 'ALTER TABLE "tx_out" ADD CONSTRAINT "tx_out_reference_script_id_fkey" FOREIGN KEY("reference_script_id") REFERENCES "script"("id") ON DELETE CASCADE ON UPDATE RESTRICT' ; 11 | EXECUTE 'ALTER TABLE "collateral_tx_out" ADD CONSTRAINT "collateral_tx_out_inline_datum_id_fkey" FOREIGN KEY("inline_datum_id") REFERENCES "datum"("id") ON DELETE CASCADE ON UPDATE RESTRICT' ; 12 | EXECUTE 'ALTER TABLE "collateral_tx_out" ADD CONSTRAINT "collateral_tx_out_reference_script_id_fkey" FOREIGN KEY("reference_script_id") REFERENCES "script"("id") ON DELETE CASCADE ON UPDATE RESTRICT' ; 13 | -- Hand written SQL statements can be added here. 14 | UPDATE schema_version SET stage_two = next_version ; 15 | RAISE NOTICE 'DB has been migrated to stage_two version %', next_version ; 16 | END IF ; 17 | END ; 18 | $$ LANGUAGE plpgsql ; 19 | 20 | SELECT migrate() ; 21 | 22 | DROP FUNCTION migrate() ; 23 | -------------------------------------------------------------------------------- /schema/migration-2-0016-20220524.sql: -------------------------------------------------------------------------------- 1 | -- Persistent generated migration. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | DECLARE 5 | next_version int ; 6 | BEGIN 7 | SELECT stage_two + 1 INTO next_version FROM schema_version ; 8 | IF next_version = 16 THEN 9 | EXECUTE 'ALTER TABLE "cost_model" ADD COLUMN "hash" hash32type NOT NULL' ; 10 | EXECUTE 'ALTER TABLE "cost_model" DROP CONSTRAINT "unique_cost_model"' ; 11 | EXECUTE 'ALTER TABLE "cost_model" ADD CONSTRAINT "unique_cost_model" UNIQUE("hash")' ; 12 | EXECUTE 'DROP TABLE epoch_reward_total_received'; 13 | -- Hand written SQL statements can be added here. 14 | UPDATE schema_version SET stage_two = next_version ; 15 | RAISE NOTICE 'DB has been migrated to stage_two version %', next_version ; 16 | END IF ; 17 | END ; 18 | $$ LANGUAGE plpgsql ; 19 | 20 | SELECT migrate() ; 21 | 22 | DROP FUNCTION migrate() ; 23 | -------------------------------------------------------------------------------- /schema/migration-2-0017-20220526.sql: -------------------------------------------------------------------------------- 1 | -- Persistent generated migration. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | DECLARE 5 | next_version int ; 6 | BEGIN 7 | SELECT stage_two + 1 INTO next_version FROM schema_version ; 8 | IF next_version = 17 THEN 9 | EXECUTE 'ALTER TABLE "param_proposal" ADD COLUMN "coins_per_utxo_size" lovelace NULL' ; 10 | EXECUTE 'ALTER TABLE "param_proposal" DROP COLUMN "coins_per_utxo_word"' ; 11 | EXECUTE 'ALTER TABLE "epoch_param" ADD COLUMN "coins_per_utxo_size" lovelace NULL' ; 12 | EXECUTE 'ALTER TABLE "epoch_param" DROP COLUMN "coins_per_utxo_word"' ; 13 | -- Hand written SQL statements can be added here. 14 | UPDATE schema_version SET stage_two = next_version ; 15 | RAISE NOTICE 'DB has been migrated to stage_two version %', next_version ; 16 | END IF ; 17 | END ; 18 | $$ LANGUAGE plpgsql ; 19 | 20 | SELECT migrate() ; 21 | 22 | DROP FUNCTION migrate() ; 23 | -------------------------------------------------------------------------------- /schema/migration-2-0018-20220604.sql: -------------------------------------------------------------------------------- 1 | -- Persistent generated migration. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | DECLARE 5 | next_version int ; 6 | BEGIN 7 | SELECT stage_two + 1 INTO next_version FROM schema_version ; 8 | IF next_version = 18 THEN 9 | EXECUTE 'ALTER TABLE "datum" ADD COLUMN "bytes" bytea NOT NULL' ; 10 | EXECUTE 'ALTER TABLE "redeemer_data" ADD COLUMN "bytes" bytea NOT NULL' ; 11 | -- Hand written SQL statements can be added here. 12 | UPDATE schema_version SET stage_two = next_version ; 13 | RAISE NOTICE 'DB has been migrated to stage_two version %', next_version ; 14 | END IF ; 15 | END ; 16 | $$ LANGUAGE plpgsql ; 17 | 18 | SELECT migrate() ; 19 | 20 | DROP FUNCTION migrate() ; 21 | -------------------------------------------------------------------------------- /schema/migration-2-0019-20220615.sql: -------------------------------------------------------------------------------- 1 | -- Persistent generated migration. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | DECLARE 5 | next_version int ; 6 | BEGIN 7 | SELECT stage_two + 1 INTO next_version FROM schema_version ; 8 | IF next_version = 19 THEN 9 | EXECUTE 'ALTER TABLE "redeemer" ALTER COLUMN "fee" DROP NOT NULL' ; 10 | -- Hand written SQL statements can be added here. 11 | UPDATE schema_version SET stage_two = next_version ; 12 | RAISE NOTICE 'DB has been migrated to stage_two version %', next_version ; 13 | END IF ; 14 | END ; 15 | $$ LANGUAGE plpgsql ; 16 | 17 | SELECT migrate() ; 18 | 19 | DROP FUNCTION migrate() ; 20 | -------------------------------------------------------------------------------- /schema/migration-2-0020-20220919.sql: -------------------------------------------------------------------------------- 1 | -- Persistent generated migration. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | DECLARE 5 | next_version int ; 6 | BEGIN 7 | SELECT stage_two + 1 INTO next_version FROM schema_version ; 8 | IF next_version = 20 THEN 9 | -- Empty migration file just to raise the version 10 | -- This indicates that the fixing operation has occured 11 | 12 | UPDATE schema_version SET stage_two = next_version ; 13 | RAISE NOTICE 'DB has been migrated to stage_two version %', next_version ; 14 | END IF ; 15 | END ; 16 | $$ LANGUAGE plpgsql ; 17 | 18 | SELECT migrate() ; 19 | 20 | DROP FUNCTION migrate() ; 21 | -------------------------------------------------------------------------------- /schema/migration-2-0023-20221019.sql: -------------------------------------------------------------------------------- 1 | CREATE FUNCTION migrate() RETURNS void AS $$ 2 | DECLARE 3 | next_version int ; 4 | BEGIN 5 | SELECT stage_two + 1 INTO next_version FROM schema_version ; 6 | IF next_version = 23 THEN 7 | EXECUTE 'ALTER TABLE "stake_address" DROP COLUMN "tx_id"' ; 8 | EXECUTE 'ALTER TABLE "cost_model" DROP COLUMN "block_id"' ; 9 | 10 | EXECUTE 'ALTER TABLE "reward" DROP CONSTRAINT "reward_pool_id_fkey"' ; 11 | EXECUTE 'ALTER TABLE "reward" DROP CONSTRAINT "reward_addr_id_fkey"' ; 12 | EXECUTE 'ALTER TABLE "epoch_stake" DROP CONSTRAINT "epoch_stake_addr_id_fkey"' ; 13 | EXECUTE 'ALTER TABLE "epoch_stake" DROP CONSTRAINT "epoch_stake_pool_id_fkey"' ; 14 | -- Hand written SQL statements can be added here. 15 | UPDATE schema_version SET stage_two = next_version ; 16 | RAISE NOTICE 'DB has been migrated to stage_two version %', next_version ; 17 | END IF ; 18 | END ; 19 | $$ LANGUAGE plpgsql ; 20 | 21 | SELECT migrate() ; 22 | 23 | DROP FUNCTION migrate() ; 24 | -------------------------------------------------------------------------------- /schema/migration-2-0024-20221020.sql: -------------------------------------------------------------------------------- 1 | -- Persistent generated migration. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | DECLARE 5 | next_version int ; 6 | BEGIN 7 | SELECT stage_two + 1 INTO next_version FROM schema_version ; 8 | IF next_version = 24 THEN 9 | EXECUTE 'CREATe TABLE "reverse_index"("id" SERIAL8 PRIMARY KEY UNIQUE,"block_id" INT8 NOT NULL,"min_ids" VARCHAR NULL)' ; 10 | -- Hand written SQL statements can be added here. 11 | UPDATE schema_version SET stage_two = next_version ; 12 | RAISE NOTICE 'DB has been migrated to stage_two version %', next_version ; 13 | END IF ; 14 | END ; 15 | $$ LANGUAGE plpgsql ; 16 | 17 | SELECT migrate() ; 18 | 19 | DROP FUNCTION migrate() ; 20 | -------------------------------------------------------------------------------- /schema/migration-2-0026-20231017.sql: -------------------------------------------------------------------------------- 1 | -- Persistent generated migration. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | DECLARE 5 | next_version int ; 6 | BEGIN 7 | SELECT stage_two + 1 INTO next_version FROM schema_version ; 8 | IF next_version = 26 THEN 9 | EXECUTE 'ALTER TABLE "pool_offline_data" RENAME TO "off_chain_pool_data"' ; 10 | EXECUTE 'ALTER SEQUENCE "pool_offline_data_id_seq" RENAME TO "off_chain_pool_data_id_seq"' ; 11 | EXECUTE 'ALTER TABLE "off_chain_pool_data" RENAME CONSTRAINT "unique_pool_offline_data" TO "unique_off_chain_pool_data"' ; 12 | EXECUTE 'ALTER TABLE "off_chain_pool_data" RENAME CONSTRAINT "pool_offline_data_pkey" TO "off_chain_pool_data_pkey"' ; 13 | 14 | EXECUTE 'ALTER TABLE "pool_offline_fetch_error" RENAME TO "off_chain_pool_fetch_error"' ; 15 | EXECUTE 'ALTER SEQUENCE "pool_offline_fetch_error_id_seq" RENAME TO "off_chain_pool_fetch_error_id_seq"' ; 16 | EXECUTE 'ALTER TABLE "off_chain_pool_fetch_error" RENAME CONSTRAINT "unique_pool_offline_fetch_error" TO "unique_off_chain_pool_fetch_error"' ; 17 | EXECUTE 'ALTER TABLE "off_chain_pool_fetch_error" RENAME CONSTRAINT "pool_offline_fetch_error_pkey" TO "off_chain_pool_fetch_error_pkey"' ; 18 | 19 | -- Hand written SQL statements can be added here. 20 | UPDATE schema_version SET stage_two = next_version ; 21 | RAISE NOTICE 'DB has been migrated to stage_two version %', next_version ; 22 | END IF ; 23 | END ; 24 | $$ LANGUAGE plpgsql ; 25 | 26 | SELECT migrate() ; 27 | 28 | DROP FUNCTION migrate() ; 29 | -------------------------------------------------------------------------------- /schema/migration-2-0027-20230713.sql: -------------------------------------------------------------------------------- 1 | -- Persistent generated migration. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | DECLARE 5 | next_version int ; 6 | BEGIN 7 | SELECT stage_two + 1 INTO next_version FROM schema_version ; 8 | IF next_version = 27 THEN 9 | EXECUTE 'CREATe TABLE "epoch_stake_progress"("id" SERIAL8 PRIMARY KEY UNIQUE,"epoch_no" word31type NOT NULL,"completed" BOOLEAN NOT NULL)' ; 10 | EXECUTE 'ALTER TABLE "epoch_stake_progress" ADD CONSTRAINT "unique_epoch_stake_progress" UNIQUE("epoch_no")' ; 11 | EXECUTE 'CREATe TABLE "extra_migrations"("id" SERIAL8 PRIMARY KEY UNIQUE,"token" VARCHAR NOT NULL,"description" VARCHAR NULL)' ; 12 | EXECUTE 'ALTER TABLE "tx" ALTER COLUMN "deposit" DROP NOT NULL' ; 13 | -- Hand written SQL statements can be added here. 14 | UPDATE schema_version SET stage_two = next_version ; 15 | RAISE NOTICE 'DB has been migrated to stage_two version %', next_version ; 16 | END IF ; 17 | END ; 18 | $$ LANGUAGE plpgsql ; 19 | 20 | SELECT migrate() ; 21 | 22 | DROP FUNCTION migrate() ; 23 | -------------------------------------------------------------------------------- /schema/migration-2-0028-20240117.sql: -------------------------------------------------------------------------------- 1 | -- Persistent generated migration. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | DECLARE 5 | next_version int ; 6 | BEGIN 7 | SELECT stage_two + 1 INTO next_version FROM schema_version ; 8 | IF next_version = 28 THEN 9 | EXECUTE 'CREATe TABLE instant_reward AS TABLE reward WITH NO DATA'; 10 | EXECUTE 'INSERT INTO instant_reward (SELECT * FROM reward WHERE pool_id IS NULL)'; 11 | -- Hand written SQL statements can be added here. 12 | UPDATE schema_version SET stage_two = next_version ; 13 | RAISE NOTICE 'DB has been migrated to stage_two version %', next_version ; 14 | END IF ; 15 | END ; 16 | $$ LANGUAGE plpgsql ; 17 | 18 | SELECT migrate() ; 19 | 20 | DROP FUNCTION migrate() ; 21 | -------------------------------------------------------------------------------- /schema/migration-2-0030-20240108.sql: -------------------------------------------------------------------------------- 1 | -- Persistent generated migration. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | DECLARE 5 | next_version int ; 6 | BEGIN 7 | SELECT stage_two + 1 INTO next_version FROM schema_version ; 8 | IF next_version = 30 THEN 9 | EXECUTE 'alter domain addr29type drop constraint addr29type_check' ; 10 | EXECUTE 'alter domain asset32type drop constraint asset32type_check' ; 11 | EXECUTE 'alter domain hash28type drop constraint hash28type_check' ; 12 | EXECUTE 'alter domain hash32type drop constraint hash32type_check' ; 13 | EXECUTE 'alter domain int65type drop constraint int65type_check' ; 14 | EXECUTE 'alter domain lovelace drop constraint lovelace_check' ; 15 | EXECUTE 'alter domain txindex drop constraint txindex_check' ; 16 | EXECUTE 'alter domain word128type drop constraint word128type_check' ; 17 | EXECUTE 'alter domain word31type drop constraint word31type_check' ; 18 | EXECUTE 'alter domain word63type drop constraint word63type_check' ; 19 | EXECUTE 'alter domain word64type drop constraint word64type_check' ; 20 | -- Hand written SQL statements can be added here. 21 | UPDATE schema_version SET stage_two = next_version ; 22 | RAISE NOTICE 'DB has been migrated to stage_two version %', next_version ; 23 | END IF ; 24 | END ; 25 | $$ LANGUAGE plpgsql ; 26 | 27 | SELECT migrate() ; 28 | 29 | DROP FUNCTION migrate() ; 30 | -------------------------------------------------------------------------------- /schema/migration-2-0031-20240117.sql: -------------------------------------------------------------------------------- 1 | -- Persistent generated migration. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | DECLARE 5 | next_version int ; 6 | BEGIN 7 | SELECT stage_two + 1 INTO next_version FROM schema_version ; 8 | IF next_version = 31 THEN 9 | EXECUTE 'ALTER TABLE "tx_out" DROP COLUMN "address_raw"' ; 10 | 11 | EXECUTE 'ALTER TABLE "collateral_tx_out" DROP COLUMN "address_raw"' ; 12 | -- Hand written SQL statements can be added here. 13 | UPDATE schema_version SET stage_two = next_version ; 14 | RAISE NOTICE 'DB has been migrated to stage_two version %', next_version ; 15 | END IF ; 16 | END ; 17 | $$ LANGUAGE plpgsql ; 18 | 19 | SELECT migrate() ; 20 | 21 | DROP FUNCTION migrate() ; 22 | -------------------------------------------------------------------------------- /schema/migration-2-0038-20240603.sql: -------------------------------------------------------------------------------- 1 | -- Persistent generated migration. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | DECLARE 5 | next_version int ; 6 | BEGIN 7 | SELECT stage_two + 1 INTO next_version FROM schema_version ; 8 | IF next_version = 38 THEN 9 | EXECUTE 'CREATe TABLE "tx_cbor"("id" SERIAL8 PRIMARY KEY UNIQUE,"tx_id" INT8 NOT NULL,"bytes" bytea NOT NULL)' ; 10 | 11 | -- Hand written SQL statements can be added here. 12 | UPDATE schema_version SET stage_two = next_version ; 13 | RAISE NOTICE 'DB has been migrated to stage_two version %', next_version ; 14 | END IF ; 15 | END ; 16 | $$ LANGUAGE plpgsql ; 17 | 18 | SELECT migrate() ; 19 | 20 | DROP FUNCTION migrate() ; 21 | -------------------------------------------------------------------------------- /schema/migration-2-0039-20240703.sql: -------------------------------------------------------------------------------- 1 | -- Persistent generated migration. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | DECLARE 5 | next_version int ; 6 | BEGIN 7 | SELECT stage_two + 1 INTO next_version FROM schema_version ; 8 | IF next_version = 39 THEN 9 | EXECUTE 'ALTER TABLE "ada_pots" ALTER COLUMN "deposits_drep" DROP DEFAULT' ; 10 | EXECUTE 'ALTER TABLE "ada_pots" ALTER COLUMN "deposits_proposal" DROP DEFAULT' ; 11 | EXECUTE 'ALTER TABLE "pool_metadata_ref" DROP CONSTRAINT "unique_pool_metadata_ref"' ; 12 | -- Hand written SQL statements can be added here. 13 | UPDATE schema_version SET stage_two = next_version ; 14 | RAISE NOTICE 'DB has been migrated to stage_two version %', next_version ; 15 | END IF ; 16 | END ; 17 | $$ LANGUAGE plpgsql ; 18 | 19 | SELECT migrate() ; 20 | 21 | DROP FUNCTION migrate() ; 22 | -------------------------------------------------------------------------------- /schema/migration-2-0040-20240626.sql: -------------------------------------------------------------------------------- 1 | -- Persistent generated migration. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | DECLARE 5 | next_version int ; 6 | BEGIN 7 | SELECT stage_two + 1 INTO next_version FROM schema_version ; 8 | IF next_version = 40 THEN 9 | EXECUTE 'ALTER TABLE "tx" ADD COLUMN "treasury_donation" lovelace NOT NULL DEFAULT 0' ; 10 | -- Hand written SQL statements can be added here. 11 | UPDATE schema_version SET stage_two = next_version ; 12 | RAISE NOTICE 'DB has been migrated to stage_two version %', next_version ; 13 | END IF ; 14 | END ; 15 | $$ LANGUAGE plpgsql ; 16 | 17 | SELECT migrate() ; 18 | 19 | DROP FUNCTION migrate() ; 20 | -------------------------------------------------------------------------------- /schema/migration-2-0041-20240711.sql: -------------------------------------------------------------------------------- 1 | -- Persistent generated migration. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | DECLARE 5 | next_version int ; 6 | BEGIN 7 | SELECT stage_two + 1 INTO next_version FROM schema_version ; 8 | IF next_version = 41 THEN 9 | EXECUTE 'CREATe TABLE "pool_stat"("id" SERIAL8 PRIMARY KEY UNIQUE,"pool_hash_id" INT8 NOT NULL,"epoch_no" word31type NOT NULL,"number_of_blocks" word64type NOT NULL,"number_of_delegators" word64type NOT NULL,"stake" word64type NOT NULL,"voting_power" word64type NULL)' ; 10 | -- Hand written SQL statements can be added here. 11 | UPDATE schema_version SET stage_two = next_version ; 12 | RAISE NOTICE 'DB has been migrated to stage_two version %', next_version ; 13 | END IF ; 14 | END ; 15 | $$ LANGUAGE plpgsql ; 16 | 17 | SELECT migrate() ; 18 | 19 | DROP FUNCTION migrate() ; 20 | -------------------------------------------------------------------------------- /schema/migration-2-0042-20240808.sql: -------------------------------------------------------------------------------- 1 | -- Persistent generated migration. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | DECLARE 5 | next_version int ; 6 | BEGIN 7 | SELECT stage_two + 1 INTO next_version FROM schema_version ; 8 | IF next_version = 42 THEN 9 | EXECUTE 'ALTER TABLE "voting_procedure" ADD COLUMN "invalid" INT8 NULL' ; 10 | EXECUTE 'CREATe TABLE "event_info"("id" SERIAL8 PRIMARY KEY UNIQUE,"tx_id" INT8 NULL,"epoch" word31type NOT NULL,"type" VARCHAR NOT NULL,"explanation" VARCHAR NULL)' ; 11 | EXECUTE 'ALTER TABLE "off_chain_pool_data" DROP CONSTRAINT "unique_off_chain_pool_data"' ; 12 | EXECUTE 'ALTER TABLE "off_chain_pool_data" ADD CONSTRAINT "unique_off_chain_pool_data" UNIQUE("pool_id","pmr_id")' ; 13 | -- Hand written SQL statements can be added here. 14 | UPDATE schema_version SET stage_two = next_version ; 15 | RAISE NOTICE 'DB has been migrated to stage_two version %', next_version ; 16 | END IF ; 17 | END ; 18 | $$ LANGUAGE plpgsql ; 19 | 20 | SELECT migrate() ; 21 | 22 | DROP FUNCTION migrate() ; 23 | -------------------------------------------------------------------------------- /schema/migration-2-0043-20240828.sql: -------------------------------------------------------------------------------- 1 | -- Persistent generated migration. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | DECLARE 5 | next_version int ; 6 | BEGIN 7 | SELECT stage_two + 1 INTO next_version FROM schema_version ; 8 | IF next_version = 43 THEN 9 | EXECUTE 'ALTER TABLE "committee_member" DROP CONSTRAINT "committee_member_committee_id_fkey"' ; 10 | EXECUTE 'ALTER TABLE "committee_member" ADD CONSTRAINT "committee_member_committee_id_fkey" FOREIGN KEY("committee_id") REFERENCES "committee"("id") ON DELETE CASCADE ON UPDATE RESTRICT' ; 11 | -- Hand written SQL statements can be added here. 12 | UPDATE schema_version SET stage_two = next_version ; 13 | RAISE NOTICE 'DB has been migrated to stage_two version %', next_version ; 14 | END IF ; 15 | END ; 16 | $$ LANGUAGE plpgsql ; 17 | 18 | SELECT migrate() ; 19 | 20 | DROP FUNCTION migrate() ; 21 | -------------------------------------------------------------------------------- /schema/migration-2-0044-20240912.sql: -------------------------------------------------------------------------------- 1 | -- Persistent generated migration. 2 | 3 | CREATE FUNCTION migrate() RETURNS void AS $$ 4 | DECLARE 5 | next_version int ; 6 | BEGIN 7 | SELECT stage_two + 1 INTO next_version FROM schema_version ; 8 | IF next_version = 44 THEN 9 | -- EXECUTE 'ALTER TABLE "reward" ADD COLUMN "id" INT8 NOT NULL' ; 10 | -- EXECUTE 'ALTER TABLE "reward_rest" ADD COLUMN "id" INT8 NOT NULL' ; 11 | EXECUTE 'ALTER TABLE "tx_out" ADD COLUMN IF NOT EXISTS "consumed_by_tx_id" INT8 NULL' ; 12 | -- Hand written SQL statements can be added here. 13 | UPDATE schema_version SET stage_two = next_version ; 14 | RAISE NOTICE 'DB has been migrated to stage_two version %', next_version ; 15 | END IF ; 16 | END ; 17 | $$ LANGUAGE plpgsql ; 18 | 19 | SELECT migrate() ; 20 | 21 | DROP FUNCTION migrate() ; 22 | -------------------------------------------------------------------------------- /schema/migration-3-0001-20190816.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IntersectMBO/cardano-db-sync/0c4fffaa3cdd39829850cbec395d3a6780a74e49/schema/migration-3-0001-20190816.sql -------------------------------------------------------------------------------- /schema/migration-3-0002-20200521.sql: -------------------------------------------------------------------------------- 1 | 2 | -- Hand crafted indices for performance 3 | -- These indexes are used by queries db-sync does. 4 | CREATE INDEX IF NOT EXISTS idx_block_slot_no ON block(slot_no); 5 | CREATE INDEX IF NOT EXISTS idx_block_block_no ON block(block_no); 6 | CREATE INDEX IF NOT EXISTS idx_block_epoch_no ON block(epoch_no); 7 | CREATE INDEX IF NOT EXISTS idx_block_previous_id ON block(previous_id); 8 | CREATE INDEX IF NOT EXISTS idx_tx_block_id ON tx(block_id); 9 | CREATE INDEX IF NOT EXISTS idx_reward_spendable_epoch ON reward(spendable_epoch); 10 | CREATE INDEX IF NOT EXISTS idx_epoch_stake_epoch_no ON epoch_stake(epoch_no) ; 11 | CREATE INDEX IF NOT EXISTS idx_pool_metadata_ref_pool_id ON pool_metadata_ref(pool_id); 12 | -------------------------------------------------------------------------------- /schema/migration-3-0003-20240121.sql: -------------------------------------------------------------------------------- 1 | 2 | -- as of 13.2.0.0 offline was renamed to off_chain so we rename previous indexes if they exists 3 | ALTER INDEX IF EXISTS idx_pool_offline_data_pmr_id RENAME TO idx_off_chain_pool_data_pmr_id; 4 | ALTER INDEX IF EXISTS idx_pool_offline_fetch_error_pmr_id RENAME TO idx_off_chain_pool_fetch_error_pmr_id; 5 | 6 | CREATE INDEX IF NOT EXISTS idx_off_chain_pool_fetch_error_pmr_id ON off_chain_pool_fetch_error (pmr_id); 7 | CREATE INDEX IF NOT EXISTS idx_off_chain_pool_data_pmr_id ON off_chain_pool_data (pmr_id); 8 | -------------------------------------------------------------------------------- /schema/migration-3-0004-20240603.sql: -------------------------------------------------------------------------------- 1 | 2 | CREATE INDEX IF NOT EXISTS idx_committee_member_committee_id ON committee_member (committee_id); 3 | CREATE INDEX IF NOT EXISTS idx_pool_update_registered_tx_id ON pool_update (registered_tx_id); 4 | -------------------------------------------------------------------------------- /schema/migration-3-9999-20200728.sql: -------------------------------------------------------------------------------- 1 | CREATE FUNCTION migrate() RETURNS void AS $$ 2 | BEGIN 3 | NOTIFY cardano_db_sync_startup, 'db-setup'; 4 | END ; 5 | $$ LANGUAGE plpgsql ; 6 | 7 | SELECT migrate() ; 8 | 9 | DROP FUNCTION migrate() ; 10 | -------------------------------------------------------------------------------- /schema/migration-4-0001-20200702.sql: -------------------------------------------------------------------------------- 1 | -- 2 | -- The following index creations only happen when not using "use_address_table" config in tx-out. 3 | -- This is because the following uses columns that get moved to the `address` table . 4 | -- 5 | 6 | CREATE INDEX IF NOT EXISTS idx_tx_out_payment_cred ON tx_out(payment_cred); 7 | CREATE INDEX IF NOT EXISTS idx_tx_out_stake_address_id ON tx_out(stake_address_id); 8 | 9 | -- Left here for reference, it's removed to speed up restoring from a snapshot as this index is very slow to create. 10 | -- CREATE INDEX IF NOT EXISTS idx_tx_out_address ON tx_out USING hash (address); 11 | -------------------------------------------------------------------------------- /schema/migration-4-0002-20200810.sql: -------------------------------------------------------------------------------- 1 | 2 | CREATE INDEX IF NOT EXISTS idx_block_time ON block(time); 3 | CREATE INDEX IF NOT EXISTS idx_pool_update_hash_id ON pool_update(hash_id); 4 | -------------------------------------------------------------------------------- /schema/migration-4-0004-20210116.sql: -------------------------------------------------------------------------------- 1 | 2 | -- Indexes which optimize inserting new rewards 3 | CREATE INDEX IF NOT EXISTS idx_delegation_active_epoch_no ON delegation(active_epoch_no) ; 4 | CREATE INDEX IF NOT EXISTS idx_pool_update_reward_addr ON pool_update(reward_addr_id) ; 5 | CREATE INDEX IF NOT EXISTS idx_pool_update_active_epoch_no ON pool_update(active_epoch_no) ; 6 | 7 | UPDATE schema_version SET stage_three = 6 ; 8 | -------------------------------------------------------------------------------- /schema/migration-4-0005-20211022.sql: -------------------------------------------------------------------------------- 1 | 2 | -- Indexes which optimize inserting new rewards 3 | CREATE INDEX IF NOT EXISTS idx_stake_address_view ON stake_address USING hash (view); 4 | CREATE INDEX IF NOT EXISTS idx_epoch_no ON epoch(no); 5 | CREATE INDEX IF NOT EXISTS idx_tx_in_redeemer_id ON tx_in (redeemer_id); 6 | CREATE INDEX IF NOT EXISTS idx_delegation_redeemer_id ON delegation (redeemer_id); 7 | CREATE INDEX IF NOT EXISTS idx_withdrawal_redeemer_id ON withdrawal (redeemer_id); 8 | CREATE INDEX IF NOT EXISTS idx_stake_deregistration_redeemer_id ON stake_deregistration (redeemer_id); 9 | CREATE INDEX IF NOT EXISTS idx_reserved_pool_ticker_pool_hash ON reserved_pool_ticker (pool_hash); 10 | CREATE INDEX IF NOT EXISTS idx_collateral_tx_in_tx_out_id ON collateral_tx_in (tx_out_id); 11 | CREATE INDEX IF NOT EXISTS idx_script_tx_id ON script (tx_id); 12 | -------------------------------------------------------------------------------- /schema/migration-4-0006-20220118.sql: -------------------------------------------------------------------------------- 1 | 2 | CREATE INDEX IF NOT EXISTS idx_datum_tx_id ON datum (tx_id) ; 3 | CREATE INDEX IF NOT EXISTS idx_extra_key_witness_tx_id ON extra_key_witness (tx_id) ; 4 | CREATE INDEX IF NOT EXISTS idx_param_proposal_cost_model_id ON param_proposal (cost_model_id) ; 5 | CREATE INDEX IF NOT EXISTS idx_epoch_param_cost_model_id ON epoch_param (cost_model_id) ; 6 | -------------------------------------------------------------------------------- /schema/migration-4-0007-20220528.sql: -------------------------------------------------------------------------------- 1 | 2 | CREATE INDEX IF NOT EXISTS tx_out_inline_datum_id_idx ON tx_out (inline_datum_id); 3 | CREATE INDEX IF NOT EXISTS tx_out_reference_script_id_idx ON tx_out (reference_script_id); 4 | CREATE INDEX IF NOT EXISTS redeemer_redeemer_data_id_idx ON redeemer (redeemer_data_id); 5 | CREATE INDEX IF NOT EXISTS pool_owner_pool_update_id_idx ON pool_owner (pool_update_id); 6 | CREATE INDEX IF NOT EXISTS redeemer_data_tx_id_idx ON redeemer_data (tx_id); 7 | CREATE INDEX IF NOT EXISTS reference_tx_in_tx_out_id_idx ON reference_tx_in (tx_out_id); 8 | CREATE INDEX IF NOT EXISTS collateral_tx_out_stake_address_id_idx ON collateral_tx_out (stake_address_id); 9 | CREATE INDEX IF NOT EXISTS collateral_tx_out_inline_datum_id_idx ON collateral_tx_out (inline_datum_id); 10 | CREATE INDEX IF NOT EXISTS collateral_tx_out_reference_script_id_idx ON collateral_tx_out (reference_script_id); 11 | -------------------------------------------------------------------------------- /schema/migration-4-0008-20240604.sql: -------------------------------------------------------------------------------- 1 | 2 | CREATE INDEX IF NOT EXISTS idx_tx_cbor_tx_id ON tx_cbor(tx_id) ; 3 | -------------------------------------------------------------------------------- /scripts/fourmolize.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -euo pipefail 4 | 5 | git ls-files -- '*.hs' \ 6 | | grep -v Setup.hs \ 7 | | xargs fourmolu -c -m inplace 8 | 9 | git diff --exit-code 10 | -------------------------------------------------------------------------------- /scripts/gen-tx-submit-config.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Unoffiical bash strict mode. 4 | # See: http://redsymbol.net/articles/unofficial-bash-strict-mode/ 5 | set -u 6 | set -o pipefail 7 | IFS=$'\n\t' 8 | 9 | if test $# -eq 0 ; then 10 | echo 11 | echo "Usage: $0 [--require-magic|--require-no-magic] --genesis-hash --output " 12 | echo 13 | exit 1 14 | fi 15 | 16 | genesis_hash="" 17 | outfile="" 18 | require_magic=2 19 | 20 | while test $# -gt 0 ; do 21 | case "$1" in 22 | --require-magic) 23 | require_magic=1 24 | shift 25 | ;; 26 | 27 | --require-no-magic) 28 | require_magic=0 29 | shift 30 | ;; 31 | 32 | --genesis-hash) 33 | shift 34 | genesis_hash="$1" 35 | shift 36 | ;; 37 | --output) 38 | shift 39 | outfile="$1" 40 | shift 41 | ;; 42 | *) 43 | ;; 44 | esac 45 | done 46 | 47 | case "$require_magic" in 48 | 0) 49 | require_magic="RequiresNoMagic" 50 | ;; 51 | 1) 52 | require_magic="RequiresMagic" 53 | ;; 54 | *) 55 | echo "Error: Missing --require-magic or --require-no-magic parameter" 56 | exit 1 57 | ;; 58 | esac 59 | 60 | sed "s/^RequiresNetworkMagic.*/RequiresNetworkMagic: ${require_magic}/;s/^GenesisHash.*/GenesisHash: ${genesis_hash}/" \ 61 | config/tx-submit-mainnet-config.yaml > "${outfile}" 62 | -------------------------------------------------------------------------------- /scripts/secp256k1-setup.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # This script installs a specific version of secp256k1 for both Linux and OSX. 4 | # 5 | # To use this script run it from the top level and provide a git sha from secp256k1. 6 | 7 | # Unofficial bash strict mode. 8 | # See: http://redsymbol.net/articles/unofficial-bash-strict-mode/ 9 | set -eu 10 | set -o pipefail 11 | 12 | if [[ $# -ne 1 ]]; then 13 | echo "Usage: $0 SECP256K1_REF" >&2 14 | exit 2 15 | fi 16 | 17 | SECP256K1_REF=$1 18 | 19 | UNAME=$(uname -s) INSTAL_CMD= 20 | case $UNAME in 21 | Darwin ) INSTAL_CMD="make install";; 22 | Linux ) INSTAL_CMD="sudo make install";; 23 | esac 24 | 25 | PREFIX= 26 | case $UNAME in 27 | Darwin ) PREFIX="";; 28 | Linux ) PREFIX="--prefix=/usr";; 29 | esac 30 | 31 | if [ ! -d "secp256k1" ]; then 32 | git clone https://github.com/bitcoin-core/secp256k1.git secp256k1 33 | fi 34 | 35 | pushd secp256k1 || exit 1 36 | 37 | git reset --hard "$SECP256K1_REF" 38 | ./autogen.sh 39 | ./configure $PREFIX --enable-module-schnorrsig --enable-experimental 40 | make 41 | make check 42 | $INSTAL_CMD 43 | 44 | popd || exit 2 45 | 46 | --------------------------------------------------------------------------------