diff --git a/.env.IntegrationTest b/.env.IntegrationTest index 062d3ea2a1..87093091fa 100644 --- a/.env.IntegrationTest +++ b/.env.IntegrationTest @@ -4,7 +4,7 @@ NETWORK=devkit PROTOCOL_MAGIC=42 ## Postgres image -PG_VERSION_TAG=REL_14_11 +PG_VERSION_TAG=REL_18_0 ## Yaci image YACI_VERSION=0.10.5 @@ -16,10 +16,10 @@ DB_SECRET=weakpwd#123_d DB_HOST=db # Service name in docker-compose or local db DB_PORT=5432 -DB_SCHEMA=${NETWORK} +DB_SCHEMA=public DB_PATH=data -UPDATE_GENESIS_BLOCK_QUERY="UPDATE devkit.block SET number = 0 WHERE number = -1; UPDATE devkit.block SET prev_hash = 'Genesis' WHERE number = 1" -#UPDATE_GENESIS_BLOCK_QUERY="UPDATE devkit.block SET prev_hash = 'Genesis' WHERE number = 1" +UPDATE_GENESIS_BLOCK_QUERY="UPDATE \"public\".block SET number = 0 WHERE number = -1; UPDATE \"public\".block SET prev_hash = 'Genesis' WHERE number = 1" +#UPDATE_GENESIS_BLOCK_QUERY="UPDATE \"public\".block SET prev_hash = 'Genesis' WHERE number = 1" ## Cardano Node variables CARDANO_NODE_HOST=yaci-cli diff --git a/.env.docker-compose b/.env.docker-compose index ffd61ddd00..0c07616165 100644 --- a/.env.docker-compose +++ b/.env.docker-compose @@ -7,7 +7,7 @@ PROTOCOL_MAGIC=764824073 # mainnet 764824073, preprod 1, preview 2, devkit 42 ## Postgres image -PG_VERSION_TAG=REL_14_11 +PG_VERSION_TAG=REL_18_0 ## Postgres variables DB_NAME=rosetta-java @@ -16,7 +16,7 @@ DB_SECRET=weakpwd#123_d DB_HOST=db # Service name in docker-compose or local db DB_PORT=5432 -DB_SCHEMA=${NETWORK} +DB_SCHEMA=public DB_PATH=data ## Cardano Node variables diff --git a/.env.docker-compose-preprod b/.env.docker-compose-preprod index 382625b06e..3fc74c1c54 100644 --- a/.env.docker-compose-preprod +++ b/.env.docker-compose-preprod @@ -7,7 +7,7 @@ PROTOCOL_MAGIC=1 # mainnet 764824073, preprod 1, preview 2, devkit 42 ## Postgres image -PG_VERSION_TAG=REL_14_11 +PG_VERSION_TAG=REL_18_0 ## Postgres variables DB_NAME=rosetta-java @@ -16,7 +16,7 @@ DB_SECRET=weakpwd#123_d DB_HOST=db # Service name in docker-compose or local db DB_PORT=5432 -DB_SCHEMA=${NETWORK} +DB_SCHEMA=public DB_PATH=/opt/rosetta-java-preprod/sql_data ## Cardano Node variables diff --git a/.env.h2 b/.env.h2 index a76ecb627d..a4c6a73d85 100644 --- a/.env.h2 +++ b/.env.h2 @@ -31,11 +31,11 @@ API_PORT=8082 PRINT_EXCEPTION=true ROSETTA_VERSION=1.4.13 -TOPOLOGY_FILEPATH=./config/${NETWORK}/topology.json -GENESIS_SHELLEY_PATH=./config/${NETWORK}/shelley-genesis.json -GENESIS_BYRON_PATH=./config/${NETWORK}/byron-genesis.json -GENESIS_ALONZO_PATH=./config/${NETWORK}/alonzo-genesis.json -GENESIS_CONWAY_PATH=./config/${NETWORK}/conway-genesis.json +TOPOLOGY_FILEPATH=./config/node/${NETWORK}/topology.json +GENESIS_SHELLEY_PATH=./config/node/${NETWORK}/shelley-genesis.json +GENESIS_BYRON_PATH=./config/node/${NETWORK}/byron-genesis.json +GENESIS_ALONZO_PATH=./config/node/${NETWORK}/alonzo-genesis.json +GENESIS_CONWAY_PATH=./config/node/${NETWORK}/conway-genesis.json SEARCH_LIMIT=100 ## Yaci Indexer env diff --git a/.env.h2-testdata b/.env.h2-testdata index 0175efde21..af1c30e753 100644 --- a/.env.h2-testdata +++ b/.env.h2-testdata @@ -31,11 +31,11 @@ API_PORT=8082 PRINT_EXCEPTION=true ROSETTA_VERSION=1.4.13 -TOPOLOGY_FILEPATH=./config/${NETWORK}/topology.json -GENESIS_SHELLEY_PATH=./config/${NETWORK}/shelley-genesis.json -GENESIS_BYRON_PATH=./config/${NETWORK}/byron-genesis.json -GENESIS_ALONZO_PATH=./config/${NETWORK}/alonzo-genesis.json -GENESIS_CONWAY_PATH=./config/${NETWORK}/conway-genesis.json +TOPOLOGY_FILEPATH=./config/node/${NETWORK}/topology.json +GENESIS_SHELLEY_PATH=./config/node/${NETWORK}/shelley-genesis.json +GENESIS_BYRON_PATH=./config/node/${NETWORK}/byron-genesis.json +GENESIS_ALONZO_PATH=./config/node/${NETWORK}/alonzo-genesis.json +GENESIS_CONWAY_PATH=./config/node/${NETWORK}/conway-genesis.json SEARCH_LIMIT=100 ## Yaci Indexer env diff --git a/.github/actions/build_docker_images/action.yml b/.github/actions/build_docker_images/action.yml index 7521f22b30..576a906af9 100644 --- a/.github/actions/build_docker_images/action.yml +++ b/.github/actions/build_docker_images/action.yml @@ -133,19 +133,11 @@ runs: tags: cardanofoundation/cardano-rosetta-java-mithril:${{ steps.envver.outputs.mithril_version }} push: true - - name: All-in-one - Build and push Docker image - uses: docker/build-push-action@v4 - with: - context: . - file: ./docker/Dockerfile - tags: cardanofoundation/cardano-rosetta-java:${{ inputs.tag }} - push: true - - - name: All-in-one - Build and push Docker latest image + - name: Mithril - Build and push Docker latest image uses: docker/build-push-action@v4 if: ${{ inputs.isRelease == 'true' }} with: context: . - file: ./docker/Dockerfile - tags: cardanofoundation/cardano-rosetta-java:latest + file: ./docker/dockerfiles/mithril/Dockerfile + tags: cardanofoundation/cardano-rosetta-java-mithril:latest push: true \ No newline at end of file diff --git a/.github/workflows/integration-test.yaml b/.github/workflows/integration-test.yaml index a96e5daf2f..982fad7e7e 100644 --- a/.github/workflows/integration-test.yaml +++ b/.github/workflows/integration-test.yaml @@ -35,6 +35,7 @@ jobs: python-version: '3.12' - name: "Install uv" run: curl -LsSf https://astral.sh/uv/install.sh | sh + # - name: "Install mesh-cli" # run: curl -sSfL https://raw.githubusercontent.com/coinbase/mesh-cli/master/scripts/install.sh | sh -s @@ -42,8 +43,9 @@ jobs: - name: "Install mesh-cli" run: curl -sSfL https://raw.githubusercontent.com/coinbase/mesh-cli/v0.10.3/scripts/install.sh | sed -e 's/^REPO=.*/REPO=mesh-cli/' | sh -s - - name: "Run tests" - run: newman run ./postmanTests/rosetta-java.postman_collection.json -e postmanTests/Rosetta-java-env.postman_environment.json -r cli +# - name: "Run tests" +# run: newman run ./postmanTests/rosetta-java.postman_collection.json -e postmanTests/Rosetta-java-env.postman_environment.json -r cli + - name: "Run construction API tests with schema validation" run: | cd ./tests/integration @@ -51,7 +53,9 @@ jobs: -u http://localhost:8082 \ --network-id devkit \ --openapi ../../api/src/main/resources/rosetta-specifications-1.4.15/api.yaml + - name: "Run rosetta check:data tests" run: ./bin/rosetta-cli check:data --configuration-file ./rosetta-cli-tests/data/byron_sample.json + - name: "Tear down environment" run: docker compose --env-file .env.IntegrationTest -f docker-integration-test-environment.yaml down diff --git a/CLAUDE.md b/CLAUDE.md index 2fa5698024..2e1b831f3c 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -33,21 +33,25 @@ cd api && mvn spring-boot:run mvn clean package ``` -### Docker Commands +### Docker Compose Commands ```bash -# Build from source -docker build -t rosetta-java -f ./docker/Dockerfile . +# Start all services (full stack) +docker compose --env-file .env.docker-compose --env-file .env.docker-compose-profile-mid-level up -d -# Run with docker-compose (full stack) -docker-compose up -d - -# Run specific services -docker-compose up -d api indexer postgres +# Start specific services +docker compose up -d cardano-node db +docker compose up -d api yaci-indexer # View logs -docker logs rosetta -f -docker exec rosetta tail -f /logs/node.log -docker exec rosetta tail -f /logs/indexer.log +docker compose logs -f api +docker compose logs -f yaci-indexer +docker compose logs -f cardano-node + +# Stop all services +docker compose down + +# Restart a service +docker compose restart api ``` ## Architecture Overview diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/Preprod.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/Public.java similarity index 78% rename from api/src/main/java/org/cardanofoundation/rosetta/api/jooq/Preprod.java rename to api/src/main/java/org/cardanofoundation/rosetta/api/jooq/Public.java index 6d930b82f4..6de17b933d 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/Preprod.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/Public.java @@ -39,134 +39,134 @@ * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) -public class Preprod extends SchemaImpl { +public class Public extends SchemaImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of preprod + * The reference instance of public */ - public static final Preprod PREPROD = new Preprod(); + public static final Public PUBLIC = new Public(); /** - * The table preprod.address. + * The table public.address. */ public final Address ADDRESS = Address.ADDRESS; /** - * The table preprod.address_utxo. + * The table public.address_utxo. */ public final AddressUtxo ADDRESS_UTXO = AddressUtxo.ADDRESS_UTXO; /** - * The table preprod.block. + * The table public.block. */ public final Block BLOCK = Block.BLOCK; /** - * The table preprod.cost_model. + * The table public.cost_model. */ public final CostModel COST_MODEL = CostModel.COST_MODEL; /** - * The table preprod.cursor_. + * The table public.cursor_. */ public final Cursor_ CURSOR_ = Cursor_.CURSOR_; /** - * The table preprod.delegation. + * The table public.delegation. */ public final Delegation DELEGATION = Delegation.DELEGATION; /** - * The table preprod.epoch_param. + * The table public.epoch_param. */ public final EpochParam EPOCH_PARAM = EpochParam.EPOCH_PARAM; /** - * The table preprod.era. + * The table public.era. */ public final Era ERA = Era.ERA; /** - * The table preprod.error. + * The table public.error. */ public final Error ERROR = Error.ERROR; /** - * The table preprod.error_review. + * The table public.error_review. */ public final ErrorReview ERROR_REVIEW = ErrorReview.ERROR_REVIEW; /** - * The table preprod.flyway_schema_history. + * The table public.flyway_schema_history. */ public final FlywaySchemaHistory FLYWAY_SCHEMA_HISTORY = FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY; /** - * The table preprod.invalid_transaction. + * The table public.invalid_transaction. */ public final InvalidTransaction INVALID_TRANSACTION = InvalidTransaction.INVALID_TRANSACTION; /** - * The table preprod.local_epoch_param. + * The table public.local_epoch_param. */ public final LocalEpochParam LOCAL_EPOCH_PARAM = LocalEpochParam.LOCAL_EPOCH_PARAM; /** - * The table preprod.pool_registration. + * The table public.pool_registration. */ public final PoolRegistration POOL_REGISTRATION = PoolRegistration.POOL_REGISTRATION; /** - * The table preprod.pool_retirement. + * The table public.pool_retirement. */ public final PoolRetirement POOL_RETIREMENT = PoolRetirement.POOL_RETIREMENT; /** - * The table preprod.protocol_params_proposal. + * The table public.protocol_params_proposal. */ public final ProtocolParamsProposal PROTOCOL_PARAMS_PROPOSAL = ProtocolParamsProposal.PROTOCOL_PARAMS_PROPOSAL; /** - * The table preprod.rollback. + * The table public.rollback. */ public final Rollback ROLLBACK = Rollback.ROLLBACK; /** - * The table preprod.stake_registration. + * The table public.stake_registration. */ public final StakeRegistration STAKE_REGISTRATION = StakeRegistration.STAKE_REGISTRATION; /** - * The table preprod.transaction. + * The table public.transaction. */ public final Transaction TRANSACTION = Transaction.TRANSACTION; /** - * The table preprod.transaction_size. + * The table public.transaction_size. */ public final TransactionSize TRANSACTION_SIZE = TransactionSize.TRANSACTION_SIZE; /** - * The table preprod.transaction_witness. + * The table public.transaction_witness. */ public final TransactionWitness TRANSACTION_WITNESS = TransactionWitness.TRANSACTION_WITNESS; /** - * The table preprod.tx_input. + * The table public.tx_input. */ public final TxInput TX_INPUT = TxInput.TX_INPUT; /** - * The table preprod.withdrawal. + * The table public.withdrawal. */ public final Withdrawal WITHDRAWAL = Withdrawal.WITHDRAWAL; /** * No further instances allowed */ - private Preprod() { + private Public() { super("preprod", null); } diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/Tables.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/Tables.java index 0991429ea8..06c85d8bc9 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/Tables.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/Tables.java @@ -36,117 +36,117 @@ public class Tables { /** - * The table preprod.address. + * The table public.address. */ public static final Address ADDRESS = Address.ADDRESS; /** - * The table preprod.address_utxo. + * The table public.address_utxo. */ public static final AddressUtxo ADDRESS_UTXO = AddressUtxo.ADDRESS_UTXO; /** - * The table preprod.block. + * The table public.block. */ public static final Block BLOCK = Block.BLOCK; /** - * The table preprod.cost_model. + * The table public.cost_model. */ public static final CostModel COST_MODEL = CostModel.COST_MODEL; /** - * The table preprod.cursor_. + * The table public.cursor_. */ public static final Cursor_ CURSOR_ = Cursor_.CURSOR_; /** - * The table preprod.delegation. + * The table public.delegation. */ public static final Delegation DELEGATION = Delegation.DELEGATION; /** - * The table preprod.epoch_param. + * The table public.epoch_param. */ public static final EpochParam EPOCH_PARAM = EpochParam.EPOCH_PARAM; /** - * The table preprod.era. + * The table public.era. */ public static final Era ERA = Era.ERA; /** - * The table preprod.error. + * The table public.error. */ public static final Error ERROR = Error.ERROR; /** - * The table preprod.error_review. + * The table public.error_review. */ public static final ErrorReview ERROR_REVIEW = ErrorReview.ERROR_REVIEW; /** - * The table preprod.flyway_schema_history. + * The table public.flyway_schema_history. */ public static final FlywaySchemaHistory FLYWAY_SCHEMA_HISTORY = FlywaySchemaHistory.FLYWAY_SCHEMA_HISTORY; /** - * The table preprod.invalid_transaction. + * The table public.invalid_transaction. */ public static final InvalidTransaction INVALID_TRANSACTION = InvalidTransaction.INVALID_TRANSACTION; /** - * The table preprod.local_epoch_param. + * The table public.local_epoch_param. */ public static final LocalEpochParam LOCAL_EPOCH_PARAM = LocalEpochParam.LOCAL_EPOCH_PARAM; /** - * The table preprod.pool_registration. + * The table public.pool_registration. */ public static final PoolRegistration POOL_REGISTRATION = PoolRegistration.POOL_REGISTRATION; /** - * The table preprod.pool_retirement. + * The table public.pool_retirement. */ public static final PoolRetirement POOL_RETIREMENT = PoolRetirement.POOL_RETIREMENT; /** - * The table preprod.protocol_params_proposal. + * The table public.protocol_params_proposal. */ public static final ProtocolParamsProposal PROTOCOL_PARAMS_PROPOSAL = ProtocolParamsProposal.PROTOCOL_PARAMS_PROPOSAL; /** - * The table preprod.rollback. + * The table public.rollback. */ public static final Rollback ROLLBACK = Rollback.ROLLBACK; /** - * The table preprod.stake_registration. + * The table public.stake_registration. */ public static final StakeRegistration STAKE_REGISTRATION = StakeRegistration.STAKE_REGISTRATION; /** - * The table preprod.transaction. + * The table public.transaction. */ public static final Transaction TRANSACTION = Transaction.TRANSACTION; /** - * The table preprod.transaction_size. + * The table public.transaction_size. */ public static final TransactionSize TRANSACTION_SIZE = TransactionSize.TRANSACTION_SIZE; /** - * The table preprod.transaction_witness. + * The table public.transaction_witness. */ public static final TransactionWitness TRANSACTION_WITNESS = TransactionWitness.TRANSACTION_WITNESS; /** - * The table preprod.tx_input. + * The table public.tx_input. */ public static final TxInput TX_INPUT = TxInput.TX_INPUT; /** - * The table preprod.withdrawal. + * The table public.withdrawal. */ public static final Withdrawal WITHDRAWAL = Withdrawal.WITHDRAWAL; } diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/Address.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/Address.java index 522715ab88..1c63b7ce96 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/Address.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/Address.java @@ -11,7 +11,7 @@ import org.cardanofoundation.rosetta.api.jooq.Indexes; import org.cardanofoundation.rosetta.api.jooq.Keys; -import org.cardanofoundation.rosetta.api.jooq.Preprod; +import org.cardanofoundation.rosetta.api.jooq.Public; import org.cardanofoundation.rosetta.api.jooq.tables.records.AddressRecord; import org.jooq.Condition; import org.jooq.Field; @@ -42,7 +42,7 @@ public class Address extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of preprod.address + * The reference instance of public.address */ public static final Address ADDRESS = new Address(); @@ -55,37 +55,37 @@ public Class getRecordType() { } /** - * The column preprod.address.id. + * The column public.address.id. */ public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); /** - * The column preprod.address.address. + * The column public.address.address. */ public final TableField ADDRESS_ = createField(DSL.name("address"), SQLDataType.VARCHAR(500).nullable(false), this, ""); /** - * The column preprod.address.addr_full. + * The column public.address.addr_full. */ public final TableField ADDR_FULL = createField(DSL.name("addr_full"), SQLDataType.CLOB, this, ""); /** - * The column preprod.address.payment_credential. + * The column public.address.payment_credential. */ public final TableField PAYMENT_CREDENTIAL = createField(DSL.name("payment_credential"), SQLDataType.VARCHAR(56), this, ""); /** - * The column preprod.address.stake_address. + * The column public.address.stake_address. */ public final TableField STAKE_ADDRESS = createField(DSL.name("stake_address"), SQLDataType.VARCHAR(255), this, ""); /** - * The column preprod.address.stake_credential. + * The column public.address.stake_credential. */ public final TableField STAKE_CREDENTIAL = createField(DSL.name("stake_credential"), SQLDataType.VARCHAR(56), this, ""); /** - * The column preprod.address.update_datetime. + * The column public.address.update_datetime. */ public final TableField UPDATE_DATETIME = createField(DSL.name("update_datetime"), SQLDataType.LOCALDATETIME(6), this, ""); @@ -98,21 +98,21 @@ private Address(Name alias, Table aliased, Field[] parameters, } /** - * Create an aliased preprod.address table reference + * Create an aliased public.address table reference */ public Address(String alias) { this(DSL.name(alias), ADDRESS); } /** - * Create an aliased preprod.address table reference + * Create an aliased public.address table reference */ public Address(Name alias) { this(alias, ADDRESS); } /** - * Create a preprod.address table reference + * Create a public.address table reference */ public Address() { this(DSL.name("address"), null); @@ -120,7 +120,7 @@ public Address() { @Override public Schema getSchema() { - return aliased() ? null : Preprod.PREPROD; + return aliased() ? null : Public.PUBLIC; } @Override diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/AddressUtxo.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/AddressUtxo.java index f9e7b55ab6..32d8820b0f 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/AddressUtxo.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/AddressUtxo.java @@ -11,7 +11,7 @@ import org.cardanofoundation.rosetta.api.jooq.Indexes; import org.cardanofoundation.rosetta.api.jooq.Keys; -import org.cardanofoundation.rosetta.api.jooq.Preprod; +import org.cardanofoundation.rosetta.api.jooq.Public; import org.cardanofoundation.rosetta.api.jooq.tables.records.AddressUtxoRecord; import org.jooq.Condition; import org.jooq.Field; @@ -42,7 +42,7 @@ public class AddressUtxo extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of preprod.address_utxo + * The reference instance of public.address_utxo */ public static final AddressUtxo ADDRESS_UTXO = new AddressUtxo(); @@ -55,102 +55,102 @@ public Class getRecordType() { } /** - * The column preprod.address_utxo.tx_hash. + * The column public.address_utxo.tx_hash. */ public final TableField TX_HASH = createField(DSL.name("tx_hash"), SQLDataType.VARCHAR(64).nullable(false), this, ""); /** - * The column preprod.address_utxo.output_index. + * The column public.address_utxo.output_index. */ public final TableField OUTPUT_INDEX = createField(DSL.name("output_index"), SQLDataType.SMALLINT.nullable(false), this, ""); /** - * The column preprod.address_utxo.slot. + * The column public.address_utxo.slot. */ public final TableField SLOT = createField(DSL.name("slot"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.address_utxo.block_hash. + * The column public.address_utxo.block_hash. */ public final TableField BLOCK_HASH = createField(DSL.name("block_hash"), SQLDataType.VARCHAR(64), this, ""); /** - * The column preprod.address_utxo.epoch. + * The column public.address_utxo.epoch. */ public final TableField EPOCH = createField(DSL.name("epoch"), SQLDataType.INTEGER, this, ""); /** - * The column preprod.address_utxo.lovelace_amount. + * The column public.address_utxo.lovelace_amount. */ public final TableField LOVELACE_AMOUNT = createField(DSL.name("lovelace_amount"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.address_utxo.amounts. + * The column public.address_utxo.amounts. */ public final TableField AMOUNTS = createField(DSL.name("amounts"), SQLDataType.JSONB, this, ""); /** - * The column preprod.address_utxo.data_hash. + * The column public.address_utxo.data_hash. */ public final TableField DATA_HASH = createField(DSL.name("data_hash"), SQLDataType.VARCHAR(64), this, ""); /** - * The column preprod.address_utxo.inline_datum. + * The column public.address_utxo.inline_datum. */ public final TableField INLINE_DATUM = createField(DSL.name("inline_datum"), SQLDataType.CLOB, this, ""); /** - * The column preprod.address_utxo.owner_addr. + * The column public.address_utxo.owner_addr. */ public final TableField OWNER_ADDR = createField(DSL.name("owner_addr"), SQLDataType.VARCHAR(500), this, ""); /** - * The column preprod.address_utxo.owner_addr_full. + * The column public.address_utxo.owner_addr_full. */ public final TableField OWNER_ADDR_FULL = createField(DSL.name("owner_addr_full"), SQLDataType.CLOB, this, ""); /** - * The column preprod.address_utxo.owner_stake_addr. + * The column public.address_utxo.owner_stake_addr. */ public final TableField OWNER_STAKE_ADDR = createField(DSL.name("owner_stake_addr"), SQLDataType.VARCHAR(255), this, ""); /** - * The column preprod.address_utxo.owner_payment_credential. + * The column public.address_utxo.owner_payment_credential. */ public final TableField OWNER_PAYMENT_CREDENTIAL = createField(DSL.name("owner_payment_credential"), SQLDataType.VARCHAR(56), this, ""); /** - * The column preprod.address_utxo.owner_stake_credential. + * The column public.address_utxo.owner_stake_credential. */ public final TableField OWNER_STAKE_CREDENTIAL = createField(DSL.name("owner_stake_credential"), SQLDataType.VARCHAR(56), this, ""); /** - * The column preprod.address_utxo.script_ref. + * The column public.address_utxo.script_ref. */ public final TableField SCRIPT_REF = createField(DSL.name("script_ref"), SQLDataType.CLOB, this, ""); /** - * The column preprod.address_utxo.reference_script_hash. + * The column public.address_utxo.reference_script_hash. */ public final TableField REFERENCE_SCRIPT_HASH = createField(DSL.name("reference_script_hash"), SQLDataType.VARCHAR(56), this, ""); /** - * The column preprod.address_utxo.is_collateral_return. + * The column public.address_utxo.is_collateral_return. */ public final TableField IS_COLLATERAL_RETURN = createField(DSL.name("is_collateral_return"), SQLDataType.BOOLEAN, this, ""); /** - * The column preprod.address_utxo.block. + * The column public.address_utxo.block. */ public final TableField BLOCK = createField(DSL.name("block"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.address_utxo.block_time. + * The column public.address_utxo.block_time. */ public final TableField BLOCK_TIME = createField(DSL.name("block_time"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.address_utxo.update_datetime. + * The column public.address_utxo.update_datetime. */ public final TableField UPDATE_DATETIME = createField(DSL.name("update_datetime"), SQLDataType.LOCALDATETIME(6), this, ""); @@ -163,21 +163,21 @@ private AddressUtxo(Name alias, Table aliased, Field[] par } /** - * Create an aliased preprod.address_utxo table reference + * Create an aliased public.address_utxo table reference */ public AddressUtxo(String alias) { this(DSL.name(alias), ADDRESS_UTXO); } /** - * Create an aliased preprod.address_utxo table reference + * Create an aliased public.address_utxo table reference */ public AddressUtxo(Name alias) { this(alias, ADDRESS_UTXO); } /** - * Create a preprod.address_utxo table reference + * Create a public.address_utxo table reference */ public AddressUtxo() { this(DSL.name("address_utxo"), null); @@ -185,7 +185,7 @@ public AddressUtxo() { @Override public Schema getSchema() { - return aliased() ? null : Preprod.PREPROD; + return aliased() ? null : Public.PUBLIC; } @Override diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/Block.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/Block.java index 33d446c49c..f0bb988544 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/Block.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/Block.java @@ -12,7 +12,7 @@ import org.cardanofoundation.rosetta.api.jooq.Indexes; import org.cardanofoundation.rosetta.api.jooq.Keys; -import org.cardanofoundation.rosetta.api.jooq.Preprod; +import org.cardanofoundation.rosetta.api.jooq.Public; import org.cardanofoundation.rosetta.api.jooq.tables.records.BlockRecord; import org.jooq.Condition; import org.jooq.Field; @@ -43,7 +43,7 @@ public class Block extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of preprod.block + * The reference instance of public.block */ public static final Block BLOCK = new Block(); @@ -56,132 +56,132 @@ public Class getRecordType() { } /** - * The column preprod.block.hash. + * The column public.block.hash. */ public final TableField HASH = createField(DSL.name("hash"), SQLDataType.VARCHAR(64).nullable(false), this, ""); /** - * The column preprod.block.number. + * The column public.block.number. */ public final TableField NUMBER = createField(DSL.name("number"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.block.body_hash. + * The column public.block.body_hash. */ public final TableField BODY_HASH = createField(DSL.name("body_hash"), SQLDataType.VARCHAR(64), this, ""); /** - * The column preprod.block.body_size. + * The column public.block.body_size. */ public final TableField BODY_SIZE = createField(DSL.name("body_size"), SQLDataType.INTEGER, this, ""); /** - * The column preprod.block.epoch. + * The column public.block.epoch. */ public final TableField EPOCH = createField(DSL.name("epoch"), SQLDataType.INTEGER, this, ""); /** - * The column preprod.block.total_output. + * The column public.block.total_output. */ public final TableField TOTAL_OUTPUT = createField(DSL.name("total_output"), SQLDataType.DECIMAL_INTEGER(38), this, ""); /** - * The column preprod.block.total_fees. + * The column public.block.total_fees. */ public final TableField TOTAL_FEES = createField(DSL.name("total_fees"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.block.block_time. + * The column public.block.block_time. */ public final TableField BLOCK_TIME = createField(DSL.name("block_time"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.block.era. + * The column public.block.era. */ public final TableField ERA = createField(DSL.name("era"), SQLDataType.SMALLINT, this, ""); /** - * The column preprod.block.issuer_vkey. + * The column public.block.issuer_vkey. */ public final TableField ISSUER_VKEY = createField(DSL.name("issuer_vkey"), SQLDataType.VARCHAR(64), this, ""); /** - * The column preprod.block.leader_vrf. + * The column public.block.leader_vrf. */ public final TableField LEADER_VRF = createField(DSL.name("leader_vrf"), SQLDataType.JSONB, this, ""); /** - * The column preprod.block.nonce_vrf. + * The column public.block.nonce_vrf. */ public final TableField NONCE_VRF = createField(DSL.name("nonce_vrf"), SQLDataType.JSONB, this, ""); /** - * The column preprod.block.prev_hash. + * The column public.block.prev_hash. */ public final TableField PREV_HASH = createField(DSL.name("prev_hash"), SQLDataType.VARCHAR(64), this, ""); /** - * The column preprod.block.protocol_version. + * The column public.block.protocol_version. */ public final TableField PROTOCOL_VERSION = createField(DSL.name("protocol_version"), SQLDataType.VARCHAR(64), this, ""); /** - * The column preprod.block.slot. + * The column public.block.slot. */ public final TableField SLOT = createField(DSL.name("slot"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.block.vrf_result. + * The column public.block.vrf_result. */ public final TableField VRF_RESULT = createField(DSL.name("vrf_result"), SQLDataType.JSONB, this, ""); /** - * The column preprod.block.vrf_vkey. + * The column public.block.vrf_vkey. */ public final TableField VRF_VKEY = createField(DSL.name("vrf_vkey"), SQLDataType.VARCHAR(64), this, ""); /** - * The column preprod.block.no_of_txs. + * The column public.block.no_of_txs. */ public final TableField NO_OF_TXS = createField(DSL.name("no_of_txs"), SQLDataType.INTEGER, this, ""); /** - * The column preprod.block.slot_leader. + * The column public.block.slot_leader. */ public final TableField SLOT_LEADER = createField(DSL.name("slot_leader"), SQLDataType.VARCHAR(56), this, ""); /** - * The column preprod.block.epoch_slot. + * The column public.block.epoch_slot. */ public final TableField EPOCH_SLOT = createField(DSL.name("epoch_slot"), SQLDataType.INTEGER, this, ""); /** - * The column preprod.block.op_cert_hot_vkey. + * The column public.block.op_cert_hot_vkey. */ public final TableField OP_CERT_HOT_VKEY = createField(DSL.name("op_cert_hot_vkey"), SQLDataType.VARCHAR(64), this, ""); /** - * The column preprod.block.op_cert_seq_number. + * The column public.block.op_cert_seq_number. */ public final TableField OP_CERT_SEQ_NUMBER = createField(DSL.name("op_cert_seq_number"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.block.op_cert_kes_period. + * The column public.block.op_cert_kes_period. */ public final TableField OP_CERT_KES_PERIOD = createField(DSL.name("op_cert_kes_period"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.block.op_cert_sigma. + * The column public.block.op_cert_sigma. */ public final TableField OP_CERT_SIGMA = createField(DSL.name("op_cert_sigma"), SQLDataType.VARCHAR(256), this, ""); /** - * The column preprod.block.create_datetime. + * The column public.block.create_datetime. */ public final TableField CREATE_DATETIME = createField(DSL.name("create_datetime"), SQLDataType.LOCALDATETIME(6), this, ""); /** - * The column preprod.block.update_datetime. + * The column public.block.update_datetime. */ public final TableField UPDATE_DATETIME = createField(DSL.name("update_datetime"), SQLDataType.LOCALDATETIME(6), this, ""); @@ -194,21 +194,21 @@ private Block(Name alias, Table aliased, Field[] parameters, Con } /** - * Create an aliased preprod.block table reference + * Create an aliased public.block table reference */ public Block(String alias) { this(DSL.name(alias), BLOCK); } /** - * Create an aliased preprod.block table reference + * Create an aliased public.block table reference */ public Block(Name alias) { this(alias, BLOCK); } /** - * Create a preprod.block table reference + * Create a public.block table reference */ public Block() { this(DSL.name("block"), null); @@ -216,7 +216,7 @@ public Block() { @Override public Schema getSchema() { - return aliased() ? null : Preprod.PREPROD; + return aliased() ? null : Public.PUBLIC; } @Override diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/CostModel.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/CostModel.java index 8accd14946..ffc535fcd4 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/CostModel.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/CostModel.java @@ -8,7 +8,7 @@ import java.util.Collection; import org.cardanofoundation.rosetta.api.jooq.Keys; -import org.cardanofoundation.rosetta.api.jooq.Preprod; +import org.cardanofoundation.rosetta.api.jooq.Public; import org.cardanofoundation.rosetta.api.jooq.tables.records.CostModelRecord; import org.jooq.Condition; import org.jooq.Field; @@ -38,7 +38,7 @@ public class CostModel extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of preprod.cost_model + * The reference instance of public.cost_model */ public static final CostModel COST_MODEL = new CostModel(); @@ -51,32 +51,32 @@ public Class getRecordType() { } /** - * The column preprod.cost_model.hash. + * The column public.cost_model.hash. */ public final TableField HASH = createField(DSL.name("hash"), SQLDataType.VARCHAR(64).nullable(false), this, ""); /** - * The column preprod.cost_model.costs. + * The column public.cost_model.costs. */ public final TableField COSTS = createField(DSL.name("costs"), SQLDataType.JSONB, this, ""); /** - * The column preprod.cost_model.slot. + * The column public.cost_model.slot. */ public final TableField SLOT = createField(DSL.name("slot"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.cost_model.block. + * The column public.cost_model.block. */ public final TableField BLOCK = createField(DSL.name("block"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.cost_model.block_time. + * The column public.cost_model.block_time. */ public final TableField BLOCK_TIME = createField(DSL.name("block_time"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.cost_model.update_datetime. + * The column public.cost_model.update_datetime. */ public final TableField UPDATE_DATETIME = createField(DSL.name("update_datetime"), SQLDataType.LOCALDATETIME(6), this, ""); @@ -89,21 +89,21 @@ private CostModel(Name alias, Table aliased, Field[] paramet } /** - * Create an aliased preprod.cost_model table reference + * Create an aliased public.cost_model table reference */ public CostModel(String alias) { this(DSL.name(alias), COST_MODEL); } /** - * Create an aliased preprod.cost_model table reference + * Create an aliased public.cost_model table reference */ public CostModel(Name alias) { this(alias, COST_MODEL); } /** - * Create a preprod.cost_model table reference + * Create a public.cost_model table reference */ public CostModel() { this(DSL.name("cost_model"), null); @@ -111,7 +111,7 @@ public CostModel() { @Override public Schema getSchema() { - return aliased() ? null : Preprod.PREPROD; + return aliased() ? null : Public.PUBLIC; } @Override diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/Cursor_.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/Cursor_.java index 53912107e5..59f7d72a0a 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/Cursor_.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/Cursor_.java @@ -11,7 +11,7 @@ import org.cardanofoundation.rosetta.api.jooq.Indexes; import org.cardanofoundation.rosetta.api.jooq.Keys; -import org.cardanofoundation.rosetta.api.jooq.Preprod; +import org.cardanofoundation.rosetta.api.jooq.Public; import org.cardanofoundation.rosetta.api.jooq.tables.records.Cursor_Record; import org.jooq.Condition; import org.jooq.Field; @@ -41,7 +41,7 @@ public class Cursor_ extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of preprod.cursor_ + * The reference instance of public.cursor_ */ public static final Cursor_ CURSOR_ = new Cursor_(); @@ -54,42 +54,42 @@ public Class getRecordType() { } /** - * The column preprod.cursor_.id. + * The column public.cursor_.id. */ public final TableField ID = createField(DSL.name("id"), SQLDataType.INTEGER.nullable(false), this, ""); /** - * The column preprod.cursor_.block_hash. + * The column public.cursor_.block_hash. */ public final TableField BLOCK_HASH = createField(DSL.name("block_hash"), SQLDataType.VARCHAR(64).nullable(false), this, ""); /** - * The column preprod.cursor_.slot. + * The column public.cursor_.slot. */ public final TableField SLOT = createField(DSL.name("slot"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.cursor_.block_number. + * The column public.cursor_.block_number. */ public final TableField BLOCK_NUMBER = createField(DSL.name("block_number"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.cursor_.era. + * The column public.cursor_.era. */ public final TableField ERA = createField(DSL.name("era"), SQLDataType.INTEGER, this, ""); /** - * The column preprod.cursor_.prev_block_hash. + * The column public.cursor_.prev_block_hash. */ public final TableField PREV_BLOCK_HASH = createField(DSL.name("prev_block_hash"), SQLDataType.VARCHAR(64), this, ""); /** - * The column preprod.cursor_.create_datetime. + * The column public.cursor_.create_datetime. */ public final TableField CREATE_DATETIME = createField(DSL.name("create_datetime"), SQLDataType.LOCALDATETIME(6), this, ""); /** - * The column preprod.cursor_.update_datetime. + * The column public.cursor_.update_datetime. */ public final TableField UPDATE_DATETIME = createField(DSL.name("update_datetime"), SQLDataType.LOCALDATETIME(6), this, ""); @@ -102,21 +102,21 @@ private Cursor_(Name alias, Table aliased, Field[] parameters, } /** - * Create an aliased preprod.cursor_ table reference + * Create an aliased public.cursor_ table reference */ public Cursor_(String alias) { this(DSL.name(alias), CURSOR_); } /** - * Create an aliased preprod.cursor_ table reference + * Create an aliased public.cursor_ table reference */ public Cursor_(Name alias) { this(alias, CURSOR_); } /** - * Create a preprod.cursor_ table reference + * Create a public.cursor_ table reference */ public Cursor_() { this(DSL.name("cursor_"), null); @@ -124,7 +124,7 @@ public Cursor_() { @Override public Schema getSchema() { - return aliased() ? null : Preprod.PREPROD; + return aliased() ? null : Public.PUBLIC; } @Override diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/Delegation.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/Delegation.java index 62067ecafb..a06adfc8a2 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/Delegation.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/Delegation.java @@ -11,7 +11,7 @@ import org.cardanofoundation.rosetta.api.jooq.Indexes; import org.cardanofoundation.rosetta.api.jooq.Keys; -import org.cardanofoundation.rosetta.api.jooq.Preprod; +import org.cardanofoundation.rosetta.api.jooq.Public; import org.cardanofoundation.rosetta.api.jooq.tables.records.DelegationRecord; import org.jooq.Condition; import org.jooq.Field; @@ -41,7 +41,7 @@ public class Delegation extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of preprod.delegation + * The reference instance of public.delegation */ public static final Delegation DELEGATION = new Delegation(); @@ -54,57 +54,57 @@ public Class getRecordType() { } /** - * The column preprod.delegation.tx_hash. + * The column public.delegation.tx_hash. */ public final TableField TX_HASH = createField(DSL.name("tx_hash"), SQLDataType.VARCHAR(64).nullable(false), this, ""); /** - * The column preprod.delegation.cert_index. + * The column public.delegation.cert_index. */ public final TableField CERT_INDEX = createField(DSL.name("cert_index"), SQLDataType.INTEGER.nullable(false), this, ""); /** - * The column preprod.delegation.credential. + * The column public.delegation.credential. */ public final TableField CREDENTIAL = createField(DSL.name("credential"), SQLDataType.VARCHAR(56).nullable(false), this, ""); /** - * The column preprod.delegation.pool_id. + * The column public.delegation.pool_id. */ public final TableField POOL_ID = createField(DSL.name("pool_id"), SQLDataType.VARCHAR(56), this, ""); /** - * The column preprod.delegation.address. + * The column public.delegation.address. */ public final TableField ADDRESS = createField(DSL.name("address"), SQLDataType.VARCHAR(255), this, ""); /** - * The column preprod.delegation.epoch. + * The column public.delegation.epoch. */ public final TableField EPOCH = createField(DSL.name("epoch"), SQLDataType.INTEGER, this, ""); /** - * The column preprod.delegation.slot. + * The column public.delegation.slot. */ public final TableField SLOT = createField(DSL.name("slot"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.delegation.block_hash. + * The column public.delegation.block_hash. */ public final TableField BLOCK_HASH = createField(DSL.name("block_hash"), SQLDataType.VARCHAR(64), this, ""); /** - * The column preprod.delegation.block. + * The column public.delegation.block. */ public final TableField BLOCK = createField(DSL.name("block"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.delegation.block_time. + * The column public.delegation.block_time. */ public final TableField BLOCK_TIME = createField(DSL.name("block_time"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.delegation.update_datetime. + * The column public.delegation.update_datetime. */ public final TableField UPDATE_DATETIME = createField(DSL.name("update_datetime"), SQLDataType.LOCALDATETIME(6), this, ""); @@ -117,21 +117,21 @@ private Delegation(Name alias, Table aliased, Field[] param } /** - * Create an aliased preprod.delegation table reference + * Create an aliased public.delegation table reference */ public Delegation(String alias) { this(DSL.name(alias), DELEGATION); } /** - * Create an aliased preprod.delegation table reference + * Create an aliased public.delegation table reference */ public Delegation(Name alias) { this(alias, DELEGATION); } /** - * Create a preprod.delegation table reference + * Create a public.delegation table reference */ public Delegation() { this(DSL.name("delegation"), null); @@ -139,7 +139,7 @@ public Delegation() { @Override public Schema getSchema() { - return aliased() ? null : Preprod.PREPROD; + return aliased() ? null : Public.PUBLIC; } @Override diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/EpochParam.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/EpochParam.java index 3efa7c1525..21a9e33b47 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/EpochParam.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/EpochParam.java @@ -11,7 +11,7 @@ import org.cardanofoundation.rosetta.api.jooq.Indexes; import org.cardanofoundation.rosetta.api.jooq.Keys; -import org.cardanofoundation.rosetta.api.jooq.Preprod; +import org.cardanofoundation.rosetta.api.jooq.Public; import org.cardanofoundation.rosetta.api.jooq.tables.records.EpochParamRecord; import org.jooq.Condition; import org.jooq.Field; @@ -42,7 +42,7 @@ public class EpochParam extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of preprod.epoch_param + * The reference instance of public.epoch_param */ public static final EpochParam EPOCH_PARAM = new EpochParam(); @@ -55,37 +55,37 @@ public Class getRecordType() { } /** - * The column preprod.epoch_param.epoch. + * The column public.epoch_param.epoch. */ public final TableField EPOCH = createField(DSL.name("epoch"), SQLDataType.INTEGER.nullable(false), this, ""); /** - * The column preprod.epoch_param.params. + * The column public.epoch_param.params. */ public final TableField PARAMS = createField(DSL.name("params"), SQLDataType.JSONB, this, ""); /** - * The column preprod.epoch_param.cost_model_hash. + * The column public.epoch_param.cost_model_hash. */ public final TableField COST_MODEL_HASH = createField(DSL.name("cost_model_hash"), SQLDataType.VARCHAR(64), this, ""); /** - * The column preprod.epoch_param.slot. + * The column public.epoch_param.slot. */ public final TableField SLOT = createField(DSL.name("slot"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.epoch_param.block. + * The column public.epoch_param.block. */ public final TableField BLOCK = createField(DSL.name("block"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.epoch_param.block_time. + * The column public.epoch_param.block_time. */ public final TableField BLOCK_TIME = createField(DSL.name("block_time"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.epoch_param.update_datetime. + * The column public.epoch_param.update_datetime. */ public final TableField UPDATE_DATETIME = createField(DSL.name("update_datetime"), SQLDataType.LOCALDATETIME(6), this, ""); @@ -98,21 +98,21 @@ private EpochParam(Name alias, Table aliased, Field[] param } /** - * Create an aliased preprod.epoch_param table reference + * Create an aliased public.epoch_param table reference */ public EpochParam(String alias) { this(DSL.name(alias), EPOCH_PARAM); } /** - * Create an aliased preprod.epoch_param table reference + * Create an aliased public.epoch_param table reference */ public EpochParam(Name alias) { this(alias, EPOCH_PARAM); } /** - * Create a preprod.epoch_param table reference + * Create a public.epoch_param table reference */ public EpochParam() { this(DSL.name("epoch_param"), null); @@ -120,7 +120,7 @@ public EpochParam() { @Override public Schema getSchema() { - return aliased() ? null : Preprod.PREPROD; + return aliased() ? null : Public.PUBLIC; } @Override diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/Era.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/Era.java index 534b136304..9909776a4a 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/Era.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/Era.java @@ -7,7 +7,7 @@ import java.util.Collection; import org.cardanofoundation.rosetta.api.jooq.Keys; -import org.cardanofoundation.rosetta.api.jooq.Preprod; +import org.cardanofoundation.rosetta.api.jooq.Public; import org.cardanofoundation.rosetta.api.jooq.tables.records.EraRecord; import org.jooq.Condition; import org.jooq.Field; @@ -36,7 +36,7 @@ public class Era extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of preprod.era + * The reference instance of public.era */ public static final Era ERA = new Era(); @@ -49,22 +49,22 @@ public Class getRecordType() { } /** - * The column preprod.era.era. + * The column public.era.era. */ public final TableField ERA_ = createField(DSL.name("era"), SQLDataType.INTEGER.nullable(false), this, ""); /** - * The column preprod.era.start_slot. + * The column public.era.start_slot. */ public final TableField START_SLOT = createField(DSL.name("start_slot"), SQLDataType.BIGINT.nullable(false), this, ""); /** - * The column preprod.era.block. + * The column public.era.block. */ public final TableField BLOCK = createField(DSL.name("block"), SQLDataType.BIGINT.nullable(false), this, ""); /** - * The column preprod.era.block_hash. + * The column public.era.block_hash. */ public final TableField BLOCK_HASH = createField(DSL.name("block_hash"), SQLDataType.VARCHAR(64).nullable(false), this, ""); @@ -77,21 +77,21 @@ private Era(Name alias, Table aliased, Field[] parameters, Conditi } /** - * Create an aliased preprod.era table reference + * Create an aliased public.era table reference */ public Era(String alias) { this(DSL.name(alias), ERA); } /** - * Create an aliased preprod.era table reference + * Create an aliased public.era table reference */ public Era(Name alias) { this(alias, ERA); } /** - * Create a preprod.era table reference + * Create a public.era table reference */ public Era() { this(DSL.name("era"), null); @@ -99,7 +99,7 @@ public Era() { @Override public Schema getSchema() { - return aliased() ? null : Preprod.PREPROD; + return aliased() ? null : Public.PUBLIC; } @Override diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/Error.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/Error.java index ca4d4307a7..09101d6857 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/Error.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/Error.java @@ -8,7 +8,7 @@ import java.util.Collection; import org.cardanofoundation.rosetta.api.jooq.Keys; -import org.cardanofoundation.rosetta.api.jooq.Preprod; +import org.cardanofoundation.rosetta.api.jooq.Public; import org.cardanofoundation.rosetta.api.jooq.tables.records.ErrorRecord; import org.jooq.Condition; import org.jooq.Field; @@ -38,7 +38,7 @@ public class Error extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of preprod.error + * The reference instance of public.error */ public static final Error ERROR = new Error(); @@ -51,32 +51,32 @@ public Class getRecordType() { } /** - * The column preprod.error.id. + * The column public.error.id. */ public final TableField ID = createField(DSL.name("id"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); /** - * The column preprod.error.block. + * The column public.error.block. */ public final TableField BLOCK = createField(DSL.name("block"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.error.error_code. + * The column public.error.error_code. */ public final TableField ERROR_CODE = createField(DSL.name("error_code"), SQLDataType.VARCHAR(64).nullable(false), this, ""); /** - * The column preprod.error.reason. + * The column public.error.reason. */ public final TableField REASON = createField(DSL.name("reason"), SQLDataType.CLOB.nullable(false), this, ""); /** - * The column preprod.error.details. + * The column public.error.details. */ public final TableField DETAILS = createField(DSL.name("details"), SQLDataType.CLOB, this, ""); /** - * The column preprod.error.update_datetime. + * The column public.error.update_datetime. */ public final TableField UPDATE_DATETIME = createField(DSL.name("update_datetime"), SQLDataType.LOCALDATETIME(6), this, ""); @@ -89,21 +89,21 @@ private Error(Name alias, Table aliased, Field[] parameters, Con } /** - * Create an aliased preprod.error table reference + * Create an aliased public.error table reference */ public Error(String alias) { this(DSL.name(alias), ERROR); } /** - * Create an aliased preprod.error table reference + * Create an aliased public.error table reference */ public Error(Name alias) { this(alias, ERROR); } /** - * Create a preprod.error table reference + * Create a public.error table reference */ public Error() { this(DSL.name("error"), null); @@ -111,7 +111,7 @@ public Error() { @Override public Schema getSchema() { - return aliased() ? null : Preprod.PREPROD; + return aliased() ? null : Public.PUBLIC; } @Override diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/ErrorReview.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/ErrorReview.java index 5728ec4235..f9514ff4ef 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/ErrorReview.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/ErrorReview.java @@ -8,7 +8,7 @@ import java.util.Collection; import org.cardanofoundation.rosetta.api.jooq.Keys; -import org.cardanofoundation.rosetta.api.jooq.Preprod; +import org.cardanofoundation.rosetta.api.jooq.Public; import org.cardanofoundation.rosetta.api.jooq.tables.records.ErrorReviewRecord; import org.jooq.Condition; import org.jooq.Field; @@ -37,7 +37,7 @@ public class ErrorReview extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of preprod.error_review + * The reference instance of public.error_review */ public static final ErrorReview ERROR_REVIEW = new ErrorReview(); @@ -50,27 +50,27 @@ public Class getRecordType() { } /** - * The column preprod.error_review.id. + * The column public.error_review.id. */ public final TableField ID = createField(DSL.name("id"), SQLDataType.INTEGER.nullable(false), this, ""); /** - * The column preprod.error_review.status. + * The column public.error_review.status. */ public final TableField STATUS = createField(DSL.name("status"), SQLDataType.VARCHAR(255).nullable(false), this, ""); /** - * The column preprod.error_review.comment. + * The column public.error_review.comment. */ public final TableField COMMENT = createField(DSL.name("comment"), SQLDataType.VARCHAR(255), this, ""); /** - * The column preprod.error_review.checked_by. + * The column public.error_review.checked_by. */ public final TableField CHECKED_BY = createField(DSL.name("checked_by"), SQLDataType.VARCHAR(255), this, ""); /** - * The column preprod.error_review.last_updated. + * The column public.error_review.last_updated. */ public final TableField LAST_UPDATED = createField(DSL.name("last_updated"), SQLDataType.LOCALDATETIME(6).nullable(false).defaultValue(DSL.field(DSL.raw("CURRENT_TIMESTAMP"), SQLDataType.LOCALDATETIME)), this, ""); @@ -83,21 +83,21 @@ private ErrorReview(Name alias, Table aliased, Field[] par } /** - * Create an aliased preprod.error_review table reference + * Create an aliased public.error_review table reference */ public ErrorReview(String alias) { this(DSL.name(alias), ERROR_REVIEW); } /** - * Create an aliased preprod.error_review table reference + * Create an aliased public.error_review table reference */ public ErrorReview(Name alias) { this(alias, ERROR_REVIEW); } /** - * Create a preprod.error_review table reference + * Create a public.error_review table reference */ public ErrorReview() { this(DSL.name("error_review"), null); @@ -105,7 +105,7 @@ public ErrorReview() { @Override public Schema getSchema() { - return aliased() ? null : Preprod.PREPROD; + return aliased() ? null : Public.PUBLIC; } @Override diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/FlywaySchemaHistory.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/FlywaySchemaHistory.java index f2f2cc0849..65a62eecac 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/FlywaySchemaHistory.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/FlywaySchemaHistory.java @@ -11,7 +11,7 @@ import org.cardanofoundation.rosetta.api.jooq.Indexes; import org.cardanofoundation.rosetta.api.jooq.Keys; -import org.cardanofoundation.rosetta.api.jooq.Preprod; +import org.cardanofoundation.rosetta.api.jooq.Public; import org.cardanofoundation.rosetta.api.jooq.tables.records.FlywaySchemaHistoryRecord; import org.jooq.Condition; import org.jooq.Field; @@ -41,7 +41,7 @@ public class FlywaySchemaHistory extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of preprod.flyway_schema_history + * The reference instance of public.flyway_schema_history */ public static final FlywaySchemaHistory FLYWAY_SCHEMA_HISTORY = new FlywaySchemaHistory(); @@ -54,52 +54,52 @@ public Class getRecordType() { } /** - * The column preprod.flyway_schema_history.installed_rank. + * The column public.flyway_schema_history.installed_rank. */ public final TableField INSTALLED_RANK = createField(DSL.name("installed_rank"), SQLDataType.INTEGER.nullable(false), this, ""); /** - * The column preprod.flyway_schema_history.version. + * The column public.flyway_schema_history.version. */ public final TableField VERSION = createField(DSL.name("version"), SQLDataType.VARCHAR(50), this, ""); /** - * The column preprod.flyway_schema_history.description. + * The column public.flyway_schema_history.description. */ public final TableField DESCRIPTION = createField(DSL.name("description"), SQLDataType.VARCHAR(200).nullable(false), this, ""); /** - * The column preprod.flyway_schema_history.type. + * The column public.flyway_schema_history.type. */ public final TableField TYPE = createField(DSL.name("type"), SQLDataType.VARCHAR(20).nullable(false), this, ""); /** - * The column preprod.flyway_schema_history.script. + * The column public.flyway_schema_history.script. */ public final TableField SCRIPT = createField(DSL.name("script"), SQLDataType.VARCHAR(1000).nullable(false), this, ""); /** - * The column preprod.flyway_schema_history.checksum. + * The column public.flyway_schema_history.checksum. */ public final TableField CHECKSUM = createField(DSL.name("checksum"), SQLDataType.INTEGER, this, ""); /** - * The column preprod.flyway_schema_history.installed_by. + * The column public.flyway_schema_history.installed_by. */ public final TableField INSTALLED_BY = createField(DSL.name("installed_by"), SQLDataType.VARCHAR(100).nullable(false), this, ""); /** - * The column preprod.flyway_schema_history.installed_on. + * The column public.flyway_schema_history.installed_on. */ public final TableField INSTALLED_ON = createField(DSL.name("installed_on"), SQLDataType.LOCALDATETIME(6).nullable(false).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, ""); /** - * The column preprod.flyway_schema_history.execution_time. + * The column public.flyway_schema_history.execution_time. */ public final TableField EXECUTION_TIME = createField(DSL.name("execution_time"), SQLDataType.INTEGER.nullable(false), this, ""); /** - * The column preprod.flyway_schema_history.success. + * The column public.flyway_schema_history.success. */ public final TableField SUCCESS = createField(DSL.name("success"), SQLDataType.BOOLEAN.nullable(false), this, ""); @@ -112,7 +112,7 @@ private FlywaySchemaHistory(Name alias, Table aliased } /** - * Create an aliased preprod.flyway_schema_history table + * Create an aliased public.flyway_schema_history table * reference */ public FlywaySchemaHistory(String alias) { @@ -120,7 +120,7 @@ public FlywaySchemaHistory(String alias) { } /** - * Create an aliased preprod.flyway_schema_history table + * Create an aliased public.flyway_schema_history table * reference */ public FlywaySchemaHistory(Name alias) { @@ -128,7 +128,7 @@ public FlywaySchemaHistory(Name alias) { } /** - * Create a preprod.flyway_schema_history table reference + * Create a public.flyway_schema_history table reference */ public FlywaySchemaHistory() { this(DSL.name("flyway_schema_history"), null); @@ -136,7 +136,7 @@ public FlywaySchemaHistory() { @Override public Schema getSchema() { - return aliased() ? null : Preprod.PREPROD; + return aliased() ? null : Public.PUBLIC; } @Override diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/InvalidTransaction.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/InvalidTransaction.java index 13be7e3926..02c5cf81ec 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/InvalidTransaction.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/InvalidTransaction.java @@ -11,7 +11,7 @@ import org.cardanofoundation.rosetta.api.jooq.Indexes; import org.cardanofoundation.rosetta.api.jooq.Keys; -import org.cardanofoundation.rosetta.api.jooq.Preprod; +import org.cardanofoundation.rosetta.api.jooq.Public; import org.cardanofoundation.rosetta.api.jooq.tables.records.InvalidTransactionRecord; import org.jooq.Condition; import org.jooq.Field; @@ -42,7 +42,7 @@ public class InvalidTransaction extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of preprod.invalid_transaction + * The reference instance of public.invalid_transaction */ public static final InvalidTransaction INVALID_TRANSACTION = new InvalidTransaction(); @@ -55,32 +55,32 @@ public Class getRecordType() { } /** - * The column preprod.invalid_transaction.tx_hash. + * The column public.invalid_transaction.tx_hash. */ public final TableField TX_HASH = createField(DSL.name("tx_hash"), SQLDataType.VARCHAR(64).nullable(false), this, ""); /** - * The column preprod.invalid_transaction.slot. + * The column public.invalid_transaction.slot. */ public final TableField SLOT = createField(DSL.name("slot"), SQLDataType.BIGINT.nullable(false), this, ""); /** - * The column preprod.invalid_transaction.block_hash. + * The column public.invalid_transaction.block_hash. */ public final TableField BLOCK_HASH = createField(DSL.name("block_hash"), SQLDataType.VARCHAR(64), this, ""); /** - * The column preprod.invalid_transaction.transaction. + * The column public.invalid_transaction.transaction. */ public final TableField TRANSACTION = createField(DSL.name("transaction"), SQLDataType.JSONB, this, ""); /** - * The column preprod.invalid_transaction.create_datetime. + * The column public.invalid_transaction.create_datetime. */ public final TableField CREATE_DATETIME = createField(DSL.name("create_datetime"), SQLDataType.LOCALDATETIME(6), this, ""); /** - * The column preprod.invalid_transaction.update_datetime. + * The column public.invalid_transaction.update_datetime. */ public final TableField UPDATE_DATETIME = createField(DSL.name("update_datetime"), SQLDataType.LOCALDATETIME(6), this, ""); @@ -93,7 +93,7 @@ private InvalidTransaction(Name alias, Table aliased, } /** - * Create an aliased preprod.invalid_transaction table + * Create an aliased public.invalid_transaction table * reference */ public InvalidTransaction(String alias) { @@ -101,7 +101,7 @@ public InvalidTransaction(String alias) { } /** - * Create an aliased preprod.invalid_transaction table + * Create an aliased public.invalid_transaction table * reference */ public InvalidTransaction(Name alias) { @@ -109,7 +109,7 @@ public InvalidTransaction(Name alias) { } /** - * Create a preprod.invalid_transaction table reference + * Create a public.invalid_transaction table reference */ public InvalidTransaction() { this(DSL.name("invalid_transaction"), null); @@ -117,7 +117,7 @@ public InvalidTransaction() { @Override public Schema getSchema() { - return aliased() ? null : Preprod.PREPROD; + return aliased() ? null : Public.PUBLIC; } @Override diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/LocalEpochParam.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/LocalEpochParam.java index 4a479df869..71ad3ed58a 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/LocalEpochParam.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/LocalEpochParam.java @@ -8,7 +8,7 @@ import java.util.Collection; import org.cardanofoundation.rosetta.api.jooq.Keys; -import org.cardanofoundation.rosetta.api.jooq.Preprod; +import org.cardanofoundation.rosetta.api.jooq.Public; import org.cardanofoundation.rosetta.api.jooq.tables.records.LocalEpochParamRecord; import org.jooq.Condition; import org.jooq.Field; @@ -38,7 +38,7 @@ public class LocalEpochParam extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of preprod.local_epoch_param + * The reference instance of public.local_epoch_param */ public static final LocalEpochParam LOCAL_EPOCH_PARAM = new LocalEpochParam(); @@ -51,17 +51,17 @@ public Class getRecordType() { } /** - * The column preprod.local_epoch_param.epoch. + * The column public.local_epoch_param.epoch. */ public final TableField EPOCH = createField(DSL.name("epoch"), SQLDataType.INTEGER.nullable(false), this, ""); /** - * The column preprod.local_epoch_param.params. + * The column public.local_epoch_param.params. */ public final TableField PARAMS = createField(DSL.name("params"), SQLDataType.JSONB, this, ""); /** - * The column preprod.local_epoch_param.update_datetime. + * The column public.local_epoch_param.update_datetime. */ public final TableField UPDATE_DATETIME = createField(DSL.name("update_datetime"), SQLDataType.LOCALDATETIME(6), this, ""); @@ -74,21 +74,21 @@ private LocalEpochParam(Name alias, Table aliased, Field< } /** - * Create an aliased preprod.local_epoch_param table reference + * Create an aliased public.local_epoch_param table reference */ public LocalEpochParam(String alias) { this(DSL.name(alias), LOCAL_EPOCH_PARAM); } /** - * Create an aliased preprod.local_epoch_param table reference + * Create an aliased public.local_epoch_param table reference */ public LocalEpochParam(Name alias) { this(alias, LOCAL_EPOCH_PARAM); } /** - * Create a preprod.local_epoch_param table reference + * Create a public.local_epoch_param table reference */ public LocalEpochParam() { this(DSL.name("local_epoch_param"), null); @@ -96,7 +96,7 @@ public LocalEpochParam() { @Override public Schema getSchema() { - return aliased() ? null : Preprod.PREPROD; + return aliased() ? null : Public.PUBLIC; } @Override diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/PoolRegistration.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/PoolRegistration.java index c174441e93..2dfd4159c7 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/PoolRegistration.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/PoolRegistration.java @@ -13,7 +13,7 @@ import org.cardanofoundation.rosetta.api.jooq.Indexes; import org.cardanofoundation.rosetta.api.jooq.Keys; -import org.cardanofoundation.rosetta.api.jooq.Preprod; +import org.cardanofoundation.rosetta.api.jooq.Public; import org.cardanofoundation.rosetta.api.jooq.tables.records.PoolRegistrationRecord; import org.jooq.Condition; import org.jooq.Field; @@ -44,7 +44,7 @@ public class PoolRegistration extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of preprod.pool_registration + * The reference instance of public.pool_registration */ public static final PoolRegistration POOL_REGISTRATION = new PoolRegistration(); @@ -57,92 +57,92 @@ public Class getRecordType() { } /** - * The column preprod.pool_registration.tx_hash. + * The column public.pool_registration.tx_hash. */ public final TableField TX_HASH = createField(DSL.name("tx_hash"), SQLDataType.VARCHAR(64).nullable(false), this, ""); /** - * The column preprod.pool_registration.cert_index. + * The column public.pool_registration.cert_index. */ public final TableField CERT_INDEX = createField(DSL.name("cert_index"), SQLDataType.INTEGER.nullable(false), this, ""); /** - * The column preprod.pool_registration.pool_id. + * The column public.pool_registration.pool_id. */ public final TableField POOL_ID = createField(DSL.name("pool_id"), SQLDataType.VARCHAR(56), this, ""); /** - * The column preprod.pool_registration.vrf_key. + * The column public.pool_registration.vrf_key. */ public final TableField VRF_KEY = createField(DSL.name("vrf_key"), SQLDataType.VARCHAR(64), this, ""); /** - * The column preprod.pool_registration.pledge. + * The column public.pool_registration.pledge. */ public final TableField PLEDGE = createField(DSL.name("pledge"), SQLDataType.DECIMAL_INTEGER(20), this, ""); /** - * The column preprod.pool_registration.cost. + * The column public.pool_registration.cost. */ public final TableField COST = createField(DSL.name("cost"), SQLDataType.DECIMAL_INTEGER(20), this, ""); /** - * The column preprod.pool_registration.margin. + * The column public.pool_registration.margin. */ public final TableField MARGIN = createField(DSL.name("margin"), SQLDataType.NUMERIC(10, 8), this, ""); /** - * The column preprod.pool_registration.reward_account. + * The column public.pool_registration.reward_account. */ public final TableField REWARD_ACCOUNT = createField(DSL.name("reward_account"), SQLDataType.VARCHAR(255), this, ""); /** - * The column preprod.pool_registration.pool_owners. + * The column public.pool_registration.pool_owners. */ public final TableField POOL_OWNERS = createField(DSL.name("pool_owners"), SQLDataType.JSONB, this, ""); /** - * The column preprod.pool_registration.relays. + * The column public.pool_registration.relays. */ public final TableField RELAYS = createField(DSL.name("relays"), SQLDataType.JSONB, this, ""); /** - * The column preprod.pool_registration.metadata_url. + * The column public.pool_registration.metadata_url. */ public final TableField METADATA_URL = createField(DSL.name("metadata_url"), SQLDataType.CLOB, this, ""); /** - * The column preprod.pool_registration.metadata_hash. + * The column public.pool_registration.metadata_hash. */ public final TableField METADATA_HASH = createField(DSL.name("metadata_hash"), SQLDataType.VARCHAR(64), this, ""); /** - * The column preprod.pool_registration.epoch. + * The column public.pool_registration.epoch. */ public final TableField EPOCH = createField(DSL.name("epoch"), SQLDataType.INTEGER, this, ""); /** - * The column preprod.pool_registration.slot. + * The column public.pool_registration.slot. */ public final TableField SLOT = createField(DSL.name("slot"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.pool_registration.block_hash. + * The column public.pool_registration.block_hash. */ public final TableField BLOCK_HASH = createField(DSL.name("block_hash"), SQLDataType.VARCHAR(64), this, ""); /** - * The column preprod.pool_registration.block. + * The column public.pool_registration.block. */ public final TableField BLOCK = createField(DSL.name("block"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.pool_registration.block_time. + * The column public.pool_registration.block_time. */ public final TableField BLOCK_TIME = createField(DSL.name("block_time"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.pool_registration.update_datetime. + * The column public.pool_registration.update_datetime. */ public final TableField UPDATE_DATETIME = createField(DSL.name("update_datetime"), SQLDataType.LOCALDATETIME(6), this, ""); @@ -155,21 +155,21 @@ private PoolRegistration(Name alias, Table aliased, Fiel } /** - * Create an aliased preprod.pool_registration table reference + * Create an aliased public.pool_registration table reference */ public PoolRegistration(String alias) { this(DSL.name(alias), POOL_REGISTRATION); } /** - * Create an aliased preprod.pool_registration table reference + * Create an aliased public.pool_registration table reference */ public PoolRegistration(Name alias) { this(alias, POOL_REGISTRATION); } /** - * Create a preprod.pool_registration table reference + * Create a public.pool_registration table reference */ public PoolRegistration() { this(DSL.name("pool_registration"), null); @@ -177,7 +177,7 @@ public PoolRegistration() { @Override public Schema getSchema() { - return aliased() ? null : Preprod.PREPROD; + return aliased() ? null : Public.PUBLIC; } @Override diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/PoolRetirement.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/PoolRetirement.java index a4ef523eef..973a04df36 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/PoolRetirement.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/PoolRetirement.java @@ -11,7 +11,7 @@ import org.cardanofoundation.rosetta.api.jooq.Indexes; import org.cardanofoundation.rosetta.api.jooq.Keys; -import org.cardanofoundation.rosetta.api.jooq.Preprod; +import org.cardanofoundation.rosetta.api.jooq.Public; import org.cardanofoundation.rosetta.api.jooq.tables.records.PoolRetirementRecord; import org.jooq.Condition; import org.jooq.Field; @@ -41,7 +41,7 @@ public class PoolRetirement extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of preprod.pool_retirement + * The reference instance of public.pool_retirement */ public static final PoolRetirement POOL_RETIREMENT = new PoolRetirement(); @@ -54,52 +54,52 @@ public Class getRecordType() { } /** - * The column preprod.pool_retirement.tx_hash. + * The column public.pool_retirement.tx_hash. */ public final TableField TX_HASH = createField(DSL.name("tx_hash"), SQLDataType.VARCHAR(64).nullable(false), this, ""); /** - * The column preprod.pool_retirement.cert_index. + * The column public.pool_retirement.cert_index. */ public final TableField CERT_INDEX = createField(DSL.name("cert_index"), SQLDataType.INTEGER.nullable(false), this, ""); /** - * The column preprod.pool_retirement.pool_id. + * The column public.pool_retirement.pool_id. */ public final TableField POOL_ID = createField(DSL.name("pool_id"), SQLDataType.VARCHAR(56), this, ""); /** - * The column preprod.pool_retirement.retirement_epoch. + * The column public.pool_retirement.retirement_epoch. */ public final TableField RETIREMENT_EPOCH = createField(DSL.name("retirement_epoch"), SQLDataType.INTEGER, this, ""); /** - * The column preprod.pool_retirement.epoch. + * The column public.pool_retirement.epoch. */ public final TableField EPOCH = createField(DSL.name("epoch"), SQLDataType.INTEGER, this, ""); /** - * The column preprod.pool_retirement.slot. + * The column public.pool_retirement.slot. */ public final TableField SLOT = createField(DSL.name("slot"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.pool_retirement.block_hash. + * The column public.pool_retirement.block_hash. */ public final TableField BLOCK_HASH = createField(DSL.name("block_hash"), SQLDataType.VARCHAR(64), this, ""); /** - * The column preprod.pool_retirement.block. + * The column public.pool_retirement.block. */ public final TableField BLOCK = createField(DSL.name("block"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.pool_retirement.block_time. + * The column public.pool_retirement.block_time. */ public final TableField BLOCK_TIME = createField(DSL.name("block_time"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.pool_retirement.update_datetime. + * The column public.pool_retirement.update_datetime. */ public final TableField UPDATE_DATETIME = createField(DSL.name("update_datetime"), SQLDataType.LOCALDATETIME(6), this, ""); @@ -112,21 +112,21 @@ private PoolRetirement(Name alias, Table aliased, Field } /** - * Create an aliased preprod.pool_retirement table reference + * Create an aliased public.pool_retirement table reference */ public PoolRetirement(String alias) { this(DSL.name(alias), POOL_RETIREMENT); } /** - * Create an aliased preprod.pool_retirement table reference + * Create an aliased public.pool_retirement table reference */ public PoolRetirement(Name alias) { this(alias, POOL_RETIREMENT); } /** - * Create a preprod.pool_retirement table reference + * Create a public.pool_retirement table reference */ public PoolRetirement() { this(DSL.name("pool_retirement"), null); @@ -134,7 +134,7 @@ public PoolRetirement() { @Override public Schema getSchema() { - return aliased() ? null : Preprod.PREPROD; + return aliased() ? null : Public.PUBLIC; } @Override diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/ProtocolParamsProposal.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/ProtocolParamsProposal.java index 748e2c533f..fa001a0af5 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/ProtocolParamsProposal.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/ProtocolParamsProposal.java @@ -11,7 +11,7 @@ import org.cardanofoundation.rosetta.api.jooq.Indexes; import org.cardanofoundation.rosetta.api.jooq.Keys; -import org.cardanofoundation.rosetta.api.jooq.Preprod; +import org.cardanofoundation.rosetta.api.jooq.Public; import org.cardanofoundation.rosetta.api.jooq.tables.records.ProtocolParamsProposalRecord; import org.jooq.Condition; import org.jooq.Field; @@ -42,7 +42,7 @@ public class ProtocolParamsProposal extends TableImplpreprod.protocol_params_proposal + * The reference instance of public.protocol_params_proposal */ public static final ProtocolParamsProposal PROTOCOL_PARAMS_PROPOSAL = new ProtocolParamsProposal(); @@ -55,52 +55,52 @@ public Class getRecordType() { } /** - * The column preprod.protocol_params_proposal.tx_hash. + * The column public.protocol_params_proposal.tx_hash. */ public final TableField TX_HASH = createField(DSL.name("tx_hash"), SQLDataType.VARCHAR(64).nullable(false), this, ""); /** - * The column preprod.protocol_params_proposal.key_hash. + * The column public.protocol_params_proposal.key_hash. */ public final TableField KEY_HASH = createField(DSL.name("key_hash"), SQLDataType.VARCHAR(56).nullable(false), this, ""); /** - * The column preprod.protocol_params_proposal.params. + * The column public.protocol_params_proposal.params. */ public final TableField PARAMS = createField(DSL.name("params"), SQLDataType.JSONB, this, ""); /** - * The column preprod.protocol_params_proposal.target_epoch. + * The column public.protocol_params_proposal.target_epoch. */ public final TableField TARGET_EPOCH = createField(DSL.name("target_epoch"), SQLDataType.INTEGER, this, ""); /** - * The column preprod.protocol_params_proposal.epoch. + * The column public.protocol_params_proposal.epoch. */ public final TableField EPOCH = createField(DSL.name("epoch"), SQLDataType.INTEGER, this, ""); /** - * The column preprod.protocol_params_proposal.slot. + * The column public.protocol_params_proposal.slot. */ public final TableField SLOT = createField(DSL.name("slot"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.protocol_params_proposal.era. + * The column public.protocol_params_proposal.era. */ public final TableField ERA = createField(DSL.name("era"), SQLDataType.SMALLINT, this, ""); /** - * The column preprod.protocol_params_proposal.block. + * The column public.protocol_params_proposal.block. */ public final TableField BLOCK = createField(DSL.name("block"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.protocol_params_proposal.block_time. + * The column public.protocol_params_proposal.block_time. */ public final TableField BLOCK_TIME = createField(DSL.name("block_time"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.protocol_params_proposal.update_datetime. + * The column public.protocol_params_proposal.update_datetime. */ public final TableField UPDATE_DATETIME = createField(DSL.name("update_datetime"), SQLDataType.LOCALDATETIME(6), this, ""); @@ -113,7 +113,7 @@ private ProtocolParamsProposal(Name alias, Table a } /** - * Create an aliased preprod.protocol_params_proposal table + * Create an aliased public.protocol_params_proposal table * reference */ public ProtocolParamsProposal(String alias) { @@ -121,7 +121,7 @@ public ProtocolParamsProposal(String alias) { } /** - * Create an aliased preprod.protocol_params_proposal table + * Create an aliased public.protocol_params_proposal table * reference */ public ProtocolParamsProposal(Name alias) { @@ -129,7 +129,7 @@ public ProtocolParamsProposal(Name alias) { } /** - * Create a preprod.protocol_params_proposal table reference + * Create a public.protocol_params_proposal table reference */ public ProtocolParamsProposal() { this(DSL.name("protocol_params_proposal"), null); @@ -137,7 +137,7 @@ public ProtocolParamsProposal() { @Override public Schema getSchema() { - return aliased() ? null : Preprod.PREPROD; + return aliased() ? null : Public.PUBLIC; } @Override diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/Rollback.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/Rollback.java index 2e40fccf06..339baa5d69 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/Rollback.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/Rollback.java @@ -8,7 +8,7 @@ import java.util.Collection; import org.cardanofoundation.rosetta.api.jooq.Keys; -import org.cardanofoundation.rosetta.api.jooq.Preprod; +import org.cardanofoundation.rosetta.api.jooq.Public; import org.cardanofoundation.rosetta.api.jooq.tables.records.RollbackRecord; import org.jooq.Condition; import org.jooq.Field; @@ -38,7 +38,7 @@ public class Rollback extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of preprod.rollback + * The reference instance of public.rollback */ public static final Rollback ROLLBACK = new Rollback(); @@ -51,42 +51,42 @@ public Class getRecordType() { } /** - * The column preprod.rollback.id. + * The column public.rollback.id. */ public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); /** - * The column preprod.rollback.rollback_to_block_hash. + * The column public.rollback.rollback_to_block_hash. */ public final TableField ROLLBACK_TO_BLOCK_HASH = createField(DSL.name("rollback_to_block_hash"), SQLDataType.VARCHAR(64), this, ""); /** - * The column preprod.rollback.rollback_to_slot. + * The column public.rollback.rollback_to_slot. */ public final TableField ROLLBACK_TO_SLOT = createField(DSL.name("rollback_to_slot"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.rollback.current_block_hash. + * The column public.rollback.current_block_hash. */ public final TableField CURRENT_BLOCK_HASH = createField(DSL.name("current_block_hash"), SQLDataType.VARCHAR(64), this, ""); /** - * The column preprod.rollback.current_slot. + * The column public.rollback.current_slot. */ public final TableField CURRENT_SLOT = createField(DSL.name("current_slot"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.rollback.current_block. + * The column public.rollback.current_block. */ public final TableField CURRENT_BLOCK = createField(DSL.name("current_block"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.rollback.create_datetime. + * The column public.rollback.create_datetime. */ public final TableField CREATE_DATETIME = createField(DSL.name("create_datetime"), SQLDataType.LOCALDATETIME(6), this, ""); /** - * The column preprod.rollback.update_datetime. + * The column public.rollback.update_datetime. */ public final TableField UPDATE_DATETIME = createField(DSL.name("update_datetime"), SQLDataType.LOCALDATETIME(6), this, ""); @@ -99,21 +99,21 @@ private Rollback(Name alias, Table aliased, Field[] parameter } /** - * Create an aliased preprod.rollback table reference + * Create an aliased public.rollback table reference */ public Rollback(String alias) { this(DSL.name(alias), ROLLBACK); } /** - * Create an aliased preprod.rollback table reference + * Create an aliased public.rollback table reference */ public Rollback(Name alias) { this(alias, ROLLBACK); } /** - * Create a preprod.rollback table reference + * Create a public.rollback table reference */ public Rollback() { this(DSL.name("rollback"), null); @@ -121,7 +121,7 @@ public Rollback() { @Override public Schema getSchema() { - return aliased() ? null : Preprod.PREPROD; + return aliased() ? null : Public.PUBLIC; } @Override diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/StakeRegistration.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/StakeRegistration.java index d4cfdf1ce5..4f10743f60 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/StakeRegistration.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/StakeRegistration.java @@ -11,7 +11,7 @@ import org.cardanofoundation.rosetta.api.jooq.Indexes; import org.cardanofoundation.rosetta.api.jooq.Keys; -import org.cardanofoundation.rosetta.api.jooq.Preprod; +import org.cardanofoundation.rosetta.api.jooq.Public; import org.cardanofoundation.rosetta.api.jooq.tables.records.StakeRegistrationRecord; import org.jooq.Condition; import org.jooq.Field; @@ -41,7 +41,7 @@ public class StakeRegistration extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of preprod.stake_registration + * The reference instance of public.stake_registration */ public static final StakeRegistration STAKE_REGISTRATION = new StakeRegistration(); @@ -54,57 +54,57 @@ public Class getRecordType() { } /** - * The column preprod.stake_registration.tx_hash. + * The column public.stake_registration.tx_hash. */ public final TableField TX_HASH = createField(DSL.name("tx_hash"), SQLDataType.VARCHAR(64).nullable(false), this, ""); /** - * The column preprod.stake_registration.cert_index. + * The column public.stake_registration.cert_index. */ public final TableField CERT_INDEX = createField(DSL.name("cert_index"), SQLDataType.INTEGER.nullable(false), this, ""); /** - * The column preprod.stake_registration.credential. + * The column public.stake_registration.credential. */ public final TableField CREDENTIAL = createField(DSL.name("credential"), SQLDataType.VARCHAR(56).nullable(false), this, ""); /** - * The column preprod.stake_registration.type. + * The column public.stake_registration.type. */ public final TableField TYPE = createField(DSL.name("type"), SQLDataType.VARCHAR(50), this, ""); /** - * The column preprod.stake_registration.address. + * The column public.stake_registration.address. */ public final TableField ADDRESS = createField(DSL.name("address"), SQLDataType.VARCHAR(255), this, ""); /** - * The column preprod.stake_registration.epoch. + * The column public.stake_registration.epoch. */ public final TableField EPOCH = createField(DSL.name("epoch"), SQLDataType.INTEGER, this, ""); /** - * The column preprod.stake_registration.slot. + * The column public.stake_registration.slot. */ public final TableField SLOT = createField(DSL.name("slot"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.stake_registration.block_hash. + * The column public.stake_registration.block_hash. */ public final TableField BLOCK_HASH = createField(DSL.name("block_hash"), SQLDataType.VARCHAR(64), this, ""); /** - * The column preprod.stake_registration.block. + * The column public.stake_registration.block. */ public final TableField BLOCK = createField(DSL.name("block"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.stake_registration.block_time. + * The column public.stake_registration.block_time. */ public final TableField BLOCK_TIME = createField(DSL.name("block_time"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.stake_registration.update_datetime. + * The column public.stake_registration.update_datetime. */ public final TableField UPDATE_DATETIME = createField(DSL.name("update_datetime"), SQLDataType.LOCALDATETIME(6), this, ""); @@ -117,21 +117,21 @@ private StakeRegistration(Name alias, Table aliased, Fi } /** - * Create an aliased preprod.stake_registration table reference + * Create an aliased public.stake_registration table reference */ public StakeRegistration(String alias) { this(DSL.name(alias), STAKE_REGISTRATION); } /** - * Create an aliased preprod.stake_registration table reference + * Create an aliased public.stake_registration table reference */ public StakeRegistration(Name alias) { this(alias, STAKE_REGISTRATION); } /** - * Create a preprod.stake_registration table reference + * Create a public.stake_registration table reference */ public StakeRegistration() { this(DSL.name("stake_registration"), null); @@ -139,7 +139,7 @@ public StakeRegistration() { @Override public Schema getSchema() { - return aliased() ? null : Preprod.PREPROD; + return aliased() ? null : Public.PUBLIC; } @Override diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/Transaction.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/Transaction.java index 90dfd9c61a..aa4cc446d3 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/Transaction.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/Transaction.java @@ -11,7 +11,7 @@ import org.cardanofoundation.rosetta.api.jooq.Indexes; import org.cardanofoundation.rosetta.api.jooq.Keys; -import org.cardanofoundation.rosetta.api.jooq.Preprod; +import org.cardanofoundation.rosetta.api.jooq.Public; import org.cardanofoundation.rosetta.api.jooq.tables.records.TransactionRecord; import org.jooq.Condition; import org.jooq.Field; @@ -42,7 +42,7 @@ public class Transaction extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of preprod.transaction + * The reference instance of public.transaction */ public static final Transaction TRANSACTION = new Transaction(); @@ -55,107 +55,107 @@ public Class getRecordType() { } /** - * The column preprod.transaction.tx_hash. + * The column public.transaction.tx_hash. */ public final TableField TX_HASH = createField(DSL.name("tx_hash"), SQLDataType.VARCHAR(64).nullable(false), this, ""); /** - * The column preprod.transaction.auxiliary_datahash. + * The column public.transaction.auxiliary_datahash. */ public final TableField AUXILIARY_DATAHASH = createField(DSL.name("auxiliary_datahash"), SQLDataType.VARCHAR(64), this, ""); /** - * The column preprod.transaction.block_hash. + * The column public.transaction.block_hash. */ public final TableField BLOCK_HASH = createField(DSL.name("block_hash"), SQLDataType.VARCHAR(64), this, ""); /** - * The column preprod.transaction.collateral_inputs. + * The column public.transaction.collateral_inputs. */ public final TableField COLLATERAL_INPUTS = createField(DSL.name("collateral_inputs"), SQLDataType.JSONB, this, ""); /** - * The column preprod.transaction.collateral_return. + * The column public.transaction.collateral_return. */ public final TableField COLLATERAL_RETURN = createField(DSL.name("collateral_return"), SQLDataType.JSONB, this, ""); /** - * The column preprod.transaction.fee. + * The column public.transaction.fee. */ public final TableField FEE = createField(DSL.name("fee"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.transaction.inputs. + * The column public.transaction.inputs. */ public final TableField INPUTS = createField(DSL.name("inputs"), SQLDataType.JSONB, this, ""); /** - * The column preprod.transaction.invalid. + * The column public.transaction.invalid. */ public final TableField INVALID = createField(DSL.name("invalid"), SQLDataType.BOOLEAN, this, ""); /** - * The column preprod.transaction.network_id. + * The column public.transaction.network_id. */ public final TableField NETWORK_ID = createField(DSL.name("network_id"), SQLDataType.SMALLINT, this, ""); /** - * The column preprod.transaction.outputs. + * The column public.transaction.outputs. */ public final TableField OUTPUTS = createField(DSL.name("outputs"), SQLDataType.JSONB, this, ""); /** - * The column preprod.transaction.reference_inputs. + * The column public.transaction.reference_inputs. */ public final TableField REFERENCE_INPUTS = createField(DSL.name("reference_inputs"), SQLDataType.JSONB, this, ""); /** - * The column preprod.transaction.required_signers. + * The column public.transaction.required_signers. */ public final TableField REQUIRED_SIGNERS = createField(DSL.name("required_signers"), SQLDataType.JSONB, this, ""); /** - * The column preprod.transaction.script_datahash. + * The column public.transaction.script_datahash. */ public final TableField SCRIPT_DATAHASH = createField(DSL.name("script_datahash"), SQLDataType.VARCHAR(64), this, ""); /** - * The column preprod.transaction.slot. + * The column public.transaction.slot. */ public final TableField SLOT = createField(DSL.name("slot"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.transaction.total_collateral. + * The column public.transaction.total_collateral. */ public final TableField TOTAL_COLLATERAL = createField(DSL.name("total_collateral"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.transaction.ttl. + * The column public.transaction.ttl. */ public final TableField TTL = createField(DSL.name("ttl"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.transaction.validity_interval_start. + * The column public.transaction.validity_interval_start. */ public final TableField VALIDITY_INTERVAL_START = createField(DSL.name("validity_interval_start"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.transaction.collateral_return_json. + * The column public.transaction.collateral_return_json. */ public final TableField COLLATERAL_RETURN_JSON = createField(DSL.name("collateral_return_json"), SQLDataType.JSONB, this, ""); /** - * The column preprod.transaction.block. + * The column public.transaction.block. */ public final TableField BLOCK = createField(DSL.name("block"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.transaction.block_time. + * The column public.transaction.block_time. */ public final TableField BLOCK_TIME = createField(DSL.name("block_time"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.transaction.update_datetime. + * The column public.transaction.update_datetime. */ public final TableField UPDATE_DATETIME = createField(DSL.name("update_datetime"), SQLDataType.LOCALDATETIME(6), this, ""); @@ -168,21 +168,21 @@ private Transaction(Name alias, Table aliased, Field[] par } /** - * Create an aliased preprod.transaction table reference + * Create an aliased public.transaction table reference */ public Transaction(String alias) { this(DSL.name(alias), TRANSACTION); } /** - * Create an aliased preprod.transaction table reference + * Create an aliased public.transaction table reference */ public Transaction(Name alias) { this(alias, TRANSACTION); } /** - * Create a preprod.transaction table reference + * Create a public.transaction table reference */ public Transaction() { this(DSL.name("transaction"), null); @@ -190,7 +190,7 @@ public Transaction() { @Override public Schema getSchema() { - return aliased() ? null : Preprod.PREPROD; + return aliased() ? null : Public.PUBLIC; } @Override diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/TransactionSize.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/TransactionSize.java index d86dfcbf20..8e19396c6a 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/TransactionSize.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/TransactionSize.java @@ -7,7 +7,7 @@ import java.util.Collection; import org.cardanofoundation.rosetta.api.jooq.Keys; -import org.cardanofoundation.rosetta.api.jooq.Preprod; +import org.cardanofoundation.rosetta.api.jooq.Public; import org.cardanofoundation.rosetta.api.jooq.tables.records.TransactionSizeRecord; import org.jooq.Condition; import org.jooq.Field; @@ -36,7 +36,7 @@ public class TransactionSize extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of preprod.transaction_size + * The reference instance of public.transaction_size */ public static final TransactionSize TRANSACTION_SIZE = new TransactionSize(); @@ -49,22 +49,22 @@ public Class getRecordType() { } /** - * The column preprod.transaction_size.tx_hash. + * The column public.transaction_size.tx_hash. */ public final TableField TX_HASH = createField(DSL.name("tx_hash"), SQLDataType.CLOB.nullable(false), this, ""); /** - * The column preprod.transaction_size.block_number. + * The column public.transaction_size.block_number. */ public final TableField BLOCK_NUMBER = createField(DSL.name("block_number"), SQLDataType.BIGINT.nullable(false), this, ""); /** - * The column preprod.transaction_size.size. + * The column public.transaction_size.size. */ public final TableField SIZE = createField(DSL.name("size"), SQLDataType.INTEGER.nullable(false), this, ""); /** - * The column preprod.transaction_size.script_size. + * The column public.transaction_size.script_size. */ public final TableField SCRIPT_SIZE = createField(DSL.name("script_size"), SQLDataType.INTEGER.nullable(false), this, ""); @@ -77,21 +77,21 @@ private TransactionSize(Name alias, Table aliased, Field< } /** - * Create an aliased preprod.transaction_size table reference + * Create an aliased public.transaction_size table reference */ public TransactionSize(String alias) { this(DSL.name(alias), TRANSACTION_SIZE); } /** - * Create an aliased preprod.transaction_size table reference + * Create an aliased public.transaction_size table reference */ public TransactionSize(Name alias) { this(alias, TRANSACTION_SIZE); } /** - * Create a preprod.transaction_size table reference + * Create a public.transaction_size table reference */ public TransactionSize() { this(DSL.name("transaction_size"), null); @@ -99,7 +99,7 @@ public TransactionSize() { @Override public Schema getSchema() { - return aliased() ? null : Preprod.PREPROD; + return aliased() ? null : Public.PUBLIC; } @Override diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/TransactionWitness.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/TransactionWitness.java index 51592accd7..f8b4a6b9ea 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/TransactionWitness.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/TransactionWitness.java @@ -10,7 +10,7 @@ import org.cardanofoundation.rosetta.api.jooq.Indexes; import org.cardanofoundation.rosetta.api.jooq.Keys; -import org.cardanofoundation.rosetta.api.jooq.Preprod; +import org.cardanofoundation.rosetta.api.jooq.Public; import org.cardanofoundation.rosetta.api.jooq.tables.records.TransactionWitnessRecord; import org.jooq.Condition; import org.jooq.Field; @@ -41,7 +41,7 @@ public class TransactionWitness extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of preprod.transaction_witness + * The reference instance of public.transaction_witness */ public static final TransactionWitness TRANSACTION_WITNESS = new TransactionWitness(); @@ -54,42 +54,42 @@ public Class getRecordType() { } /** - * The column preprod.transaction_witness.tx_hash. + * The column public.transaction_witness.tx_hash. */ public final TableField TX_HASH = createField(DSL.name("tx_hash"), SQLDataType.VARCHAR(64).nullable(false), this, ""); /** - * The column preprod.transaction_witness.idx. + * The column public.transaction_witness.idx. */ public final TableField IDX = createField(DSL.name("idx"), SQLDataType.INTEGER.nullable(false), this, ""); /** - * The column preprod.transaction_witness.pub_key. + * The column public.transaction_witness.pub_key. */ public final TableField PUB_KEY = createField(DSL.name("pub_key"), SQLDataType.VARCHAR(128), this, ""); /** - * The column preprod.transaction_witness.signature. + * The column public.transaction_witness.signature. */ public final TableField SIGNATURE = createField(DSL.name("signature"), SQLDataType.VARCHAR(128), this, ""); /** - * The column preprod.transaction_witness.pub_keyhash. + * The column public.transaction_witness.pub_keyhash. */ public final TableField PUB_KEYHASH = createField(DSL.name("pub_keyhash"), SQLDataType.VARCHAR(56), this, ""); /** - * The column preprod.transaction_witness.type. + * The column public.transaction_witness.type. */ public final TableField TYPE = createField(DSL.name("type"), SQLDataType.VARCHAR(40), this, ""); /** - * The column preprod.transaction_witness.additional_data. + * The column public.transaction_witness.additional_data. */ public final TableField ADDITIONAL_DATA = createField(DSL.name("additional_data"), SQLDataType.JSONB, this, ""); /** - * The column preprod.transaction_witness.slot. + * The column public.transaction_witness.slot. */ public final TableField SLOT = createField(DSL.name("slot"), SQLDataType.BIGINT, this, ""); @@ -102,7 +102,7 @@ private TransactionWitness(Name alias, Table aliased, } /** - * Create an aliased preprod.transaction_witness table + * Create an aliased public.transaction_witness table * reference */ public TransactionWitness(String alias) { @@ -110,7 +110,7 @@ public TransactionWitness(String alias) { } /** - * Create an aliased preprod.transaction_witness table + * Create an aliased public.transaction_witness table * reference */ public TransactionWitness(Name alias) { @@ -118,7 +118,7 @@ public TransactionWitness(Name alias) { } /** - * Create a preprod.transaction_witness table reference + * Create a public.transaction_witness table reference */ public TransactionWitness() { this(DSL.name("transaction_witness"), null); @@ -126,7 +126,7 @@ public TransactionWitness() { @Override public Schema getSchema() { - return aliased() ? null : Preprod.PREPROD; + return aliased() ? null : Public.PUBLIC; } @Override diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/TxInput.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/TxInput.java index a01c73fbfb..b99ca9a28d 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/TxInput.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/TxInput.java @@ -10,7 +10,7 @@ import org.cardanofoundation.rosetta.api.jooq.Indexes; import org.cardanofoundation.rosetta.api.jooq.Keys; -import org.cardanofoundation.rosetta.api.jooq.Preprod; +import org.cardanofoundation.rosetta.api.jooq.Public; import org.cardanofoundation.rosetta.api.jooq.tables.records.TxInputRecord; import org.jooq.Condition; import org.jooq.Field; @@ -40,7 +40,7 @@ public class TxInput extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of preprod.tx_input + * The reference instance of public.tx_input */ public static final TxInput TX_INPUT = new TxInput(); @@ -53,42 +53,42 @@ public Class getRecordType() { } /** - * The column preprod.tx_input.output_index. + * The column public.tx_input.output_index. */ public final TableField OUTPUT_INDEX = createField(DSL.name("output_index"), SQLDataType.SMALLINT.nullable(false), this, ""); /** - * The column preprod.tx_input.tx_hash. + * The column public.tx_input.tx_hash. */ public final TableField TX_HASH = createField(DSL.name("tx_hash"), SQLDataType.VARCHAR(64).nullable(false), this, ""); /** - * The column preprod.tx_input.spent_at_slot. + * The column public.tx_input.spent_at_slot. */ public final TableField SPENT_AT_SLOT = createField(DSL.name("spent_at_slot"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.tx_input.spent_at_block. + * The column public.tx_input.spent_at_block. */ public final TableField SPENT_AT_BLOCK = createField(DSL.name("spent_at_block"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.tx_input.spent_at_block_hash. + * The column public.tx_input.spent_at_block_hash. */ public final TableField SPENT_AT_BLOCK_HASH = createField(DSL.name("spent_at_block_hash"), SQLDataType.VARCHAR(64), this, ""); /** - * The column preprod.tx_input.spent_block_time. + * The column public.tx_input.spent_block_time. */ public final TableField SPENT_BLOCK_TIME = createField(DSL.name("spent_block_time"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.tx_input.spent_epoch. + * The column public.tx_input.spent_epoch. */ public final TableField SPENT_EPOCH = createField(DSL.name("spent_epoch"), SQLDataType.INTEGER, this, ""); /** - * The column preprod.tx_input.spent_tx_hash. + * The column public.tx_input.spent_tx_hash. */ public final TableField SPENT_TX_HASH = createField(DSL.name("spent_tx_hash"), SQLDataType.VARCHAR(64), this, ""); @@ -101,21 +101,21 @@ private TxInput(Name alias, Table aliased, Field[] parameters, } /** - * Create an aliased preprod.tx_input table reference + * Create an aliased public.tx_input table reference */ public TxInput(String alias) { this(DSL.name(alias), TX_INPUT); } /** - * Create an aliased preprod.tx_input table reference + * Create an aliased public.tx_input table reference */ public TxInput(Name alias) { this(alias, TX_INPUT); } /** - * Create a preprod.tx_input table reference + * Create a public.tx_input table reference */ public TxInput() { this(DSL.name("tx_input"), null); @@ -123,7 +123,7 @@ public TxInput() { @Override public Schema getSchema() { - return aliased() ? null : Preprod.PREPROD; + return aliased() ? null : Public.PUBLIC; } @Override diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/Withdrawal.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/Withdrawal.java index 4d4dce25b2..8ac2bc632d 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/Withdrawal.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/Withdrawal.java @@ -12,7 +12,7 @@ import org.cardanofoundation.rosetta.api.jooq.Indexes; import org.cardanofoundation.rosetta.api.jooq.Keys; -import org.cardanofoundation.rosetta.api.jooq.Preprod; +import org.cardanofoundation.rosetta.api.jooq.Public; import org.cardanofoundation.rosetta.api.jooq.tables.records.WithdrawalRecord; import org.jooq.Condition; import org.jooq.Field; @@ -42,7 +42,7 @@ public class Withdrawal extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of preprod.withdrawal + * The reference instance of public.withdrawal */ public static final Withdrawal WITHDRAWAL = new Withdrawal(); @@ -55,42 +55,42 @@ public Class getRecordType() { } /** - * The column preprod.withdrawal.tx_hash. + * The column public.withdrawal.tx_hash. */ public final TableField TX_HASH = createField(DSL.name("tx_hash"), SQLDataType.VARCHAR(64).nullable(false), this, ""); /** - * The column preprod.withdrawal.address. + * The column public.withdrawal.address. */ public final TableField ADDRESS = createField(DSL.name("address"), SQLDataType.VARCHAR(255).nullable(false), this, ""); /** - * The column preprod.withdrawal.amount. + * The column public.withdrawal.amount. */ public final TableField AMOUNT = createField(DSL.name("amount"), SQLDataType.DECIMAL_INTEGER(38), this, ""); /** - * The column preprod.withdrawal.epoch. + * The column public.withdrawal.epoch. */ public final TableField EPOCH = createField(DSL.name("epoch"), SQLDataType.INTEGER, this, ""); /** - * The column preprod.withdrawal.slot. + * The column public.withdrawal.slot. */ public final TableField SLOT = createField(DSL.name("slot"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.withdrawal.block. + * The column public.withdrawal.block. */ public final TableField BLOCK = createField(DSL.name("block"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.withdrawal.block_time. + * The column public.withdrawal.block_time. */ public final TableField BLOCK_TIME = createField(DSL.name("block_time"), SQLDataType.BIGINT, this, ""); /** - * The column preprod.withdrawal.update_datetime. + * The column public.withdrawal.update_datetime. */ public final TableField UPDATE_DATETIME = createField(DSL.name("update_datetime"), SQLDataType.LOCALDATETIME(6), this, ""); @@ -103,21 +103,21 @@ private Withdrawal(Name alias, Table aliased, Field[] param } /** - * Create an aliased preprod.withdrawal table reference + * Create an aliased public.withdrawal table reference */ public Withdrawal(String alias) { this(DSL.name(alias), WITHDRAWAL); } /** - * Create an aliased preprod.withdrawal table reference + * Create an aliased public.withdrawal table reference */ public Withdrawal(Name alias) { this(alias, WITHDRAWAL); } /** - * Create a preprod.withdrawal table reference + * Create a public.withdrawal table reference */ public Withdrawal() { this(DSL.name("withdrawal"), null); @@ -125,7 +125,7 @@ public Withdrawal() { @Override public Schema getSchema() { - return aliased() ? null : Preprod.PREPROD; + return aliased() ? null : Public.PUBLIC; } @Override diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/AddressRecord.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/AddressRecord.java index de81a76efe..df1fe21741 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/AddressRecord.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/AddressRecord.java @@ -20,98 +20,98 @@ public class AddressRecord extends UpdatableRecordImpl { private static final long serialVersionUID = 1L; /** - * Setter for preprod.address.id. + * Setter for public.address.id. */ public void setId(Long value) { set(0, value); } /** - * Getter for preprod.address.id. + * Getter for public.address.id. */ public Long getId() { return (Long) get(0); } /** - * Setter for preprod.address.address. + * Setter for public.address.address. */ public void setAddress(String value) { set(1, value); } /** - * Getter for preprod.address.address. + * Getter for public.address.address. */ public String getAddress() { return (String) get(1); } /** - * Setter for preprod.address.addr_full. + * Setter for public.address.addr_full. */ public void setAddrFull(String value) { set(2, value); } /** - * Getter for preprod.address.addr_full. + * Getter for public.address.addr_full. */ public String getAddrFull() { return (String) get(2); } /** - * Setter for preprod.address.payment_credential. + * Setter for public.address.payment_credential. */ public void setPaymentCredential(String value) { set(3, value); } /** - * Getter for preprod.address.payment_credential. + * Getter for public.address.payment_credential. */ public String getPaymentCredential() { return (String) get(3); } /** - * Setter for preprod.address.stake_address. + * Setter for public.address.stake_address. */ public void setStakeAddress(String value) { set(4, value); } /** - * Getter for preprod.address.stake_address. + * Getter for public.address.stake_address. */ public String getStakeAddress() { return (String) get(4); } /** - * Setter for preprod.address.stake_credential. + * Setter for public.address.stake_credential. */ public void setStakeCredential(String value) { set(5, value); } /** - * Getter for preprod.address.stake_credential. + * Getter for public.address.stake_credential. */ public String getStakeCredential() { return (String) get(5); } /** - * Setter for preprod.address.update_datetime. + * Setter for public.address.update_datetime. */ public void setUpdateDatetime(LocalDateTime value) { set(6, value); } /** - * Getter for preprod.address.update_datetime. + * Getter for public.address.update_datetime. */ public LocalDateTime getUpdateDatetime() { return (LocalDateTime) get(6); diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/AddressUtxoRecord.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/AddressUtxoRecord.java index fe624580ff..c3bda76a98 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/AddressUtxoRecord.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/AddressUtxoRecord.java @@ -21,280 +21,280 @@ public class AddressUtxoRecord extends UpdatableRecordImpl { private static final long serialVersionUID = 1L; /** - * Setter for preprod.address_utxo.tx_hash. + * Setter for public.address_utxo.tx_hash. */ public void setTxHash(String value) { set(0, value); } /** - * Getter for preprod.address_utxo.tx_hash. + * Getter for public.address_utxo.tx_hash. */ public String getTxHash() { return (String) get(0); } /** - * Setter for preprod.address_utxo.output_index. + * Setter for public.address_utxo.output_index. */ public void setOutputIndex(Short value) { set(1, value); } /** - * Getter for preprod.address_utxo.output_index. + * Getter for public.address_utxo.output_index. */ public Short getOutputIndex() { return (Short) get(1); } /** - * Setter for preprod.address_utxo.slot. + * Setter for public.address_utxo.slot. */ public void setSlot(Long value) { set(2, value); } /** - * Getter for preprod.address_utxo.slot. + * Getter for public.address_utxo.slot. */ public Long getSlot() { return (Long) get(2); } /** - * Setter for preprod.address_utxo.block_hash. + * Setter for public.address_utxo.block_hash. */ public void setBlockHash(String value) { set(3, value); } /** - * Getter for preprod.address_utxo.block_hash. + * Getter for public.address_utxo.block_hash. */ public String getBlockHash() { return (String) get(3); } /** - * Setter for preprod.address_utxo.epoch. + * Setter for public.address_utxo.epoch. */ public void setEpoch(Integer value) { set(4, value); } /** - * Getter for preprod.address_utxo.epoch. + * Getter for public.address_utxo.epoch. */ public Integer getEpoch() { return (Integer) get(4); } /** - * Setter for preprod.address_utxo.lovelace_amount. + * Setter for public.address_utxo.lovelace_amount. */ public void setLovelaceAmount(Long value) { set(5, value); } /** - * Getter for preprod.address_utxo.lovelace_amount. + * Getter for public.address_utxo.lovelace_amount. */ public Long getLovelaceAmount() { return (Long) get(5); } /** - * Setter for preprod.address_utxo.amounts. + * Setter for public.address_utxo.amounts. */ public void setAmounts(JSONB value) { set(6, value); } /** - * Getter for preprod.address_utxo.amounts. + * Getter for public.address_utxo.amounts. */ public JSONB getAmounts() { return (JSONB) get(6); } /** - * Setter for preprod.address_utxo.data_hash. + * Setter for public.address_utxo.data_hash. */ public void setDataHash(String value) { set(7, value); } /** - * Getter for preprod.address_utxo.data_hash. + * Getter for public.address_utxo.data_hash. */ public String getDataHash() { return (String) get(7); } /** - * Setter for preprod.address_utxo.inline_datum. + * Setter for public.address_utxo.inline_datum. */ public void setInlineDatum(String value) { set(8, value); } /** - * Getter for preprod.address_utxo.inline_datum. + * Getter for public.address_utxo.inline_datum. */ public String getInlineDatum() { return (String) get(8); } /** - * Setter for preprod.address_utxo.owner_addr. + * Setter for public.address_utxo.owner_addr. */ public void setOwnerAddr(String value) { set(9, value); } /** - * Getter for preprod.address_utxo.owner_addr. + * Getter for public.address_utxo.owner_addr. */ public String getOwnerAddr() { return (String) get(9); } /** - * Setter for preprod.address_utxo.owner_addr_full. + * Setter for public.address_utxo.owner_addr_full. */ public void setOwnerAddrFull(String value) { set(10, value); } /** - * Getter for preprod.address_utxo.owner_addr_full. + * Getter for public.address_utxo.owner_addr_full. */ public String getOwnerAddrFull() { return (String) get(10); } /** - * Setter for preprod.address_utxo.owner_stake_addr. + * Setter for public.address_utxo.owner_stake_addr. */ public void setOwnerStakeAddr(String value) { set(11, value); } /** - * Getter for preprod.address_utxo.owner_stake_addr. + * Getter for public.address_utxo.owner_stake_addr. */ public String getOwnerStakeAddr() { return (String) get(11); } /** - * Setter for preprod.address_utxo.owner_payment_credential. + * Setter for public.address_utxo.owner_payment_credential. */ public void setOwnerPaymentCredential(String value) { set(12, value); } /** - * Getter for preprod.address_utxo.owner_payment_credential. + * Getter for public.address_utxo.owner_payment_credential. */ public String getOwnerPaymentCredential() { return (String) get(12); } /** - * Setter for preprod.address_utxo.owner_stake_credential. + * Setter for public.address_utxo.owner_stake_credential. */ public void setOwnerStakeCredential(String value) { set(13, value); } /** - * Getter for preprod.address_utxo.owner_stake_credential. + * Getter for public.address_utxo.owner_stake_credential. */ public String getOwnerStakeCredential() { return (String) get(13); } /** - * Setter for preprod.address_utxo.script_ref. + * Setter for public.address_utxo.script_ref. */ public void setScriptRef(String value) { set(14, value); } /** - * Getter for preprod.address_utxo.script_ref. + * Getter for public.address_utxo.script_ref. */ public String getScriptRef() { return (String) get(14); } /** - * Setter for preprod.address_utxo.reference_script_hash. + * Setter for public.address_utxo.reference_script_hash. */ public void setReferenceScriptHash(String value) { set(15, value); } /** - * Getter for preprod.address_utxo.reference_script_hash. + * Getter for public.address_utxo.reference_script_hash. */ public String getReferenceScriptHash() { return (String) get(15); } /** - * Setter for preprod.address_utxo.is_collateral_return. + * Setter for public.address_utxo.is_collateral_return. */ public void setIsCollateralReturn(Boolean value) { set(16, value); } /** - * Getter for preprod.address_utxo.is_collateral_return. + * Getter for public.address_utxo.is_collateral_return. */ public Boolean getIsCollateralReturn() { return (Boolean) get(16); } /** - * Setter for preprod.address_utxo.block. + * Setter for public.address_utxo.block. */ public void setBlock(Long value) { set(17, value); } /** - * Getter for preprod.address_utxo.block. + * Getter for public.address_utxo.block. */ public Long getBlock() { return (Long) get(17); } /** - * Setter for preprod.address_utxo.block_time. + * Setter for public.address_utxo.block_time. */ public void setBlockTime(Long value) { set(18, value); } /** - * Getter for preprod.address_utxo.block_time. + * Getter for public.address_utxo.block_time. */ public Long getBlockTime() { return (Long) get(18); } /** - * Setter for preprod.address_utxo.update_datetime. + * Setter for public.address_utxo.update_datetime. */ public void setUpdateDatetime(LocalDateTime value) { set(19, value); } /** - * Getter for preprod.address_utxo.update_datetime. + * Getter for public.address_utxo.update_datetime. */ public LocalDateTime getUpdateDatetime() { return (LocalDateTime) get(19); diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/BlockRecord.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/BlockRecord.java index 63ee95a8dd..d192960893 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/BlockRecord.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/BlockRecord.java @@ -22,364 +22,364 @@ public class BlockRecord extends UpdatableRecordImpl { private static final long serialVersionUID = 1L; /** - * Setter for preprod.block.hash. + * Setter for public.block.hash. */ public void setHash(String value) { set(0, value); } /** - * Getter for preprod.block.hash. + * Getter for public.block.hash. */ public String getHash() { return (String) get(0); } /** - * Setter for preprod.block.number. + * Setter for public.block.number. */ public void setNumber(Long value) { set(1, value); } /** - * Getter for preprod.block.number. + * Getter for public.block.number. */ public Long getNumber() { return (Long) get(1); } /** - * Setter for preprod.block.body_hash. + * Setter for public.block.body_hash. */ public void setBodyHash(String value) { set(2, value); } /** - * Getter for preprod.block.body_hash. + * Getter for public.block.body_hash. */ public String getBodyHash() { return (String) get(2); } /** - * Setter for preprod.block.body_size. + * Setter for public.block.body_size. */ public void setBodySize(Integer value) { set(3, value); } /** - * Getter for preprod.block.body_size. + * Getter for public.block.body_size. */ public Integer getBodySize() { return (Integer) get(3); } /** - * Setter for preprod.block.epoch. + * Setter for public.block.epoch. */ public void setEpoch(Integer value) { set(4, value); } /** - * Getter for preprod.block.epoch. + * Getter for public.block.epoch. */ public Integer getEpoch() { return (Integer) get(4); } /** - * Setter for preprod.block.total_output. + * Setter for public.block.total_output. */ public void setTotalOutput(BigInteger value) { set(5, value); } /** - * Getter for preprod.block.total_output. + * Getter for public.block.total_output. */ public BigInteger getTotalOutput() { return (BigInteger) get(5); } /** - * Setter for preprod.block.total_fees. + * Setter for public.block.total_fees. */ public void setTotalFees(Long value) { set(6, value); } /** - * Getter for preprod.block.total_fees. + * Getter for public.block.total_fees. */ public Long getTotalFees() { return (Long) get(6); } /** - * Setter for preprod.block.block_time. + * Setter for public.block.block_time. */ public void setBlockTime(Long value) { set(7, value); } /** - * Getter for preprod.block.block_time. + * Getter for public.block.block_time. */ public Long getBlockTime() { return (Long) get(7); } /** - * Setter for preprod.block.era. + * Setter for public.block.era. */ public void setEra(Short value) { set(8, value); } /** - * Getter for preprod.block.era. + * Getter for public.block.era. */ public Short getEra() { return (Short) get(8); } /** - * Setter for preprod.block.issuer_vkey. + * Setter for public.block.issuer_vkey. */ public void setIssuerVkey(String value) { set(9, value); } /** - * Getter for preprod.block.issuer_vkey. + * Getter for public.block.issuer_vkey. */ public String getIssuerVkey() { return (String) get(9); } /** - * Setter for preprod.block.leader_vrf. + * Setter for public.block.leader_vrf. */ public void setLeaderVrf(JSONB value) { set(10, value); } /** - * Getter for preprod.block.leader_vrf. + * Getter for public.block.leader_vrf. */ public JSONB getLeaderVrf() { return (JSONB) get(10); } /** - * Setter for preprod.block.nonce_vrf. + * Setter for public.block.nonce_vrf. */ public void setNonceVrf(JSONB value) { set(11, value); } /** - * Getter for preprod.block.nonce_vrf. + * Getter for public.block.nonce_vrf. */ public JSONB getNonceVrf() { return (JSONB) get(11); } /** - * Setter for preprod.block.prev_hash. + * Setter for public.block.prev_hash. */ public void setPrevHash(String value) { set(12, value); } /** - * Getter for preprod.block.prev_hash. + * Getter for public.block.prev_hash. */ public String getPrevHash() { return (String) get(12); } /** - * Setter for preprod.block.protocol_version. + * Setter for public.block.protocol_version. */ public void setProtocolVersion(String value) { set(13, value); } /** - * Getter for preprod.block.protocol_version. + * Getter for public.block.protocol_version. */ public String getProtocolVersion() { return (String) get(13); } /** - * Setter for preprod.block.slot. + * Setter for public.block.slot. */ public void setSlot(Long value) { set(14, value); } /** - * Getter for preprod.block.slot. + * Getter for public.block.slot. */ public Long getSlot() { return (Long) get(14); } /** - * Setter for preprod.block.vrf_result. + * Setter for public.block.vrf_result. */ public void setVrfResult(JSONB value) { set(15, value); } /** - * Getter for preprod.block.vrf_result. + * Getter for public.block.vrf_result. */ public JSONB getVrfResult() { return (JSONB) get(15); } /** - * Setter for preprod.block.vrf_vkey. + * Setter for public.block.vrf_vkey. */ public void setVrfVkey(String value) { set(16, value); } /** - * Getter for preprod.block.vrf_vkey. + * Getter for public.block.vrf_vkey. */ public String getVrfVkey() { return (String) get(16); } /** - * Setter for preprod.block.no_of_txs. + * Setter for public.block.no_of_txs. */ public void setNoOfTxs(Integer value) { set(17, value); } /** - * Getter for preprod.block.no_of_txs. + * Getter for public.block.no_of_txs. */ public Integer getNoOfTxs() { return (Integer) get(17); } /** - * Setter for preprod.block.slot_leader. + * Setter for public.block.slot_leader. */ public void setSlotLeader(String value) { set(18, value); } /** - * Getter for preprod.block.slot_leader. + * Getter for public.block.slot_leader. */ public String getSlotLeader() { return (String) get(18); } /** - * Setter for preprod.block.epoch_slot. + * Setter for public.block.epoch_slot. */ public void setEpochSlot(Integer value) { set(19, value); } /** - * Getter for preprod.block.epoch_slot. + * Getter for public.block.epoch_slot. */ public Integer getEpochSlot() { return (Integer) get(19); } /** - * Setter for preprod.block.op_cert_hot_vkey. + * Setter for public.block.op_cert_hot_vkey. */ public void setOpCertHotVkey(String value) { set(20, value); } /** - * Getter for preprod.block.op_cert_hot_vkey. + * Getter for public.block.op_cert_hot_vkey. */ public String getOpCertHotVkey() { return (String) get(20); } /** - * Setter for preprod.block.op_cert_seq_number. + * Setter for public.block.op_cert_seq_number. */ public void setOpCertSeqNumber(Long value) { set(21, value); } /** - * Getter for preprod.block.op_cert_seq_number. + * Getter for public.block.op_cert_seq_number. */ public Long getOpCertSeqNumber() { return (Long) get(21); } /** - * Setter for preprod.block.op_cert_kes_period. + * Setter for public.block.op_cert_kes_period. */ public void setOpCertKesPeriod(Long value) { set(22, value); } /** - * Getter for preprod.block.op_cert_kes_period. + * Getter for public.block.op_cert_kes_period. */ public Long getOpCertKesPeriod() { return (Long) get(22); } /** - * Setter for preprod.block.op_cert_sigma. + * Setter for public.block.op_cert_sigma. */ public void setOpCertSigma(String value) { set(23, value); } /** - * Getter for preprod.block.op_cert_sigma. + * Getter for public.block.op_cert_sigma. */ public String getOpCertSigma() { return (String) get(23); } /** - * Setter for preprod.block.create_datetime. + * Setter for public.block.create_datetime. */ public void setCreateDatetime(LocalDateTime value) { set(24, value); } /** - * Getter for preprod.block.create_datetime. + * Getter for public.block.create_datetime. */ public LocalDateTime getCreateDatetime() { return (LocalDateTime) get(24); } /** - * Setter for preprod.block.update_datetime. + * Setter for public.block.update_datetime. */ public void setUpdateDatetime(LocalDateTime value) { set(25, value); } /** - * Getter for preprod.block.update_datetime. + * Getter for public.block.update_datetime. */ public LocalDateTime getUpdateDatetime() { return (LocalDateTime) get(25); diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/CostModelRecord.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/CostModelRecord.java index 0f8475d830..5ce521e1a1 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/CostModelRecord.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/CostModelRecord.java @@ -21,84 +21,84 @@ public class CostModelRecord extends UpdatableRecordImpl { private static final long serialVersionUID = 1L; /** - * Setter for preprod.cost_model.hash. + * Setter for public.cost_model.hash. */ public void setHash(String value) { set(0, value); } /** - * Getter for preprod.cost_model.hash. + * Getter for public.cost_model.hash. */ public String getHash() { return (String) get(0); } /** - * Setter for preprod.cost_model.costs. + * Setter for public.cost_model.costs. */ public void setCosts(JSONB value) { set(1, value); } /** - * Getter for preprod.cost_model.costs. + * Getter for public.cost_model.costs. */ public JSONB getCosts() { return (JSONB) get(1); } /** - * Setter for preprod.cost_model.slot. + * Setter for public.cost_model.slot. */ public void setSlot(Long value) { set(2, value); } /** - * Getter for preprod.cost_model.slot. + * Getter for public.cost_model.slot. */ public Long getSlot() { return (Long) get(2); } /** - * Setter for preprod.cost_model.block. + * Setter for public.cost_model.block. */ public void setBlock(Long value) { set(3, value); } /** - * Getter for preprod.cost_model.block. + * Getter for public.cost_model.block. */ public Long getBlock() { return (Long) get(3); } /** - * Setter for preprod.cost_model.block_time. + * Setter for public.cost_model.block_time. */ public void setBlockTime(Long value) { set(4, value); } /** - * Getter for preprod.cost_model.block_time. + * Getter for public.cost_model.block_time. */ public Long getBlockTime() { return (Long) get(4); } /** - * Setter for preprod.cost_model.update_datetime. + * Setter for public.cost_model.update_datetime. */ public void setUpdateDatetime(LocalDateTime value) { set(5, value); } /** - * Getter for preprod.cost_model.update_datetime. + * Getter for public.cost_model.update_datetime. */ public LocalDateTime getUpdateDatetime() { return (LocalDateTime) get(5); diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/Cursor_Record.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/Cursor_Record.java index e151d8baf0..02691c787d 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/Cursor_Record.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/Cursor_Record.java @@ -20,112 +20,112 @@ public class Cursor_Record extends UpdatableRecordImpl { private static final long serialVersionUID = 1L; /** - * Setter for preprod.cursor_.id. + * Setter for public.cursor_.id. */ public void setId(Integer value) { set(0, value); } /** - * Getter for preprod.cursor_.id. + * Getter for public.cursor_.id. */ public Integer getId() { return (Integer) get(0); } /** - * Setter for preprod.cursor_.block_hash. + * Setter for public.cursor_.block_hash. */ public void setBlockHash(String value) { set(1, value); } /** - * Getter for preprod.cursor_.block_hash. + * Getter for public.cursor_.block_hash. */ public String getBlockHash() { return (String) get(1); } /** - * Setter for preprod.cursor_.slot. + * Setter for public.cursor_.slot. */ public void setSlot(Long value) { set(2, value); } /** - * Getter for preprod.cursor_.slot. + * Getter for public.cursor_.slot. */ public Long getSlot() { return (Long) get(2); } /** - * Setter for preprod.cursor_.block_number. + * Setter for public.cursor_.block_number. */ public void setBlockNumber(Long value) { set(3, value); } /** - * Getter for preprod.cursor_.block_number. + * Getter for public.cursor_.block_number. */ public Long getBlockNumber() { return (Long) get(3); } /** - * Setter for preprod.cursor_.era. + * Setter for public.cursor_.era. */ public void setEra(Integer value) { set(4, value); } /** - * Getter for preprod.cursor_.era. + * Getter for public.cursor_.era. */ public Integer getEra() { return (Integer) get(4); } /** - * Setter for preprod.cursor_.prev_block_hash. + * Setter for public.cursor_.prev_block_hash. */ public void setPrevBlockHash(String value) { set(5, value); } /** - * Getter for preprod.cursor_.prev_block_hash. + * Getter for public.cursor_.prev_block_hash. */ public String getPrevBlockHash() { return (String) get(5); } /** - * Setter for preprod.cursor_.create_datetime. + * Setter for public.cursor_.create_datetime. */ public void setCreateDatetime(LocalDateTime value) { set(6, value); } /** - * Getter for preprod.cursor_.create_datetime. + * Getter for public.cursor_.create_datetime. */ public LocalDateTime getCreateDatetime() { return (LocalDateTime) get(6); } /** - * Setter for preprod.cursor_.update_datetime. + * Setter for public.cursor_.update_datetime. */ public void setUpdateDatetime(LocalDateTime value) { set(7, value); } /** - * Getter for preprod.cursor_.update_datetime. + * Getter for public.cursor_.update_datetime. */ public LocalDateTime getUpdateDatetime() { return (LocalDateTime) get(7); diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/DelegationRecord.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/DelegationRecord.java index cfb6850661..a0c52f9f11 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/DelegationRecord.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/DelegationRecord.java @@ -20,154 +20,154 @@ public class DelegationRecord extends UpdatableRecordImpl { private static final long serialVersionUID = 1L; /** - * Setter for preprod.delegation.tx_hash. + * Setter for public.delegation.tx_hash. */ public void setTxHash(String value) { set(0, value); } /** - * Getter for preprod.delegation.tx_hash. + * Getter for public.delegation.tx_hash. */ public String getTxHash() { return (String) get(0); } /** - * Setter for preprod.delegation.cert_index. + * Setter for public.delegation.cert_index. */ public void setCertIndex(Integer value) { set(1, value); } /** - * Getter for preprod.delegation.cert_index. + * Getter for public.delegation.cert_index. */ public Integer getCertIndex() { return (Integer) get(1); } /** - * Setter for preprod.delegation.credential. + * Setter for public.delegation.credential. */ public void setCredential(String value) { set(2, value); } /** - * Getter for preprod.delegation.credential. + * Getter for public.delegation.credential. */ public String getCredential() { return (String) get(2); } /** - * Setter for preprod.delegation.pool_id. + * Setter for public.delegation.pool_id. */ public void setPoolId(String value) { set(3, value); } /** - * Getter for preprod.delegation.pool_id. + * Getter for public.delegation.pool_id. */ public String getPoolId() { return (String) get(3); } /** - * Setter for preprod.delegation.address. + * Setter for public.delegation.address. */ public void setAddress(String value) { set(4, value); } /** - * Getter for preprod.delegation.address. + * Getter for public.delegation.address. */ public String getAddress() { return (String) get(4); } /** - * Setter for preprod.delegation.epoch. + * Setter for public.delegation.epoch. */ public void setEpoch(Integer value) { set(5, value); } /** - * Getter for preprod.delegation.epoch. + * Getter for public.delegation.epoch. */ public Integer getEpoch() { return (Integer) get(5); } /** - * Setter for preprod.delegation.slot. + * Setter for public.delegation.slot. */ public void setSlot(Long value) { set(6, value); } /** - * Getter for preprod.delegation.slot. + * Getter for public.delegation.slot. */ public Long getSlot() { return (Long) get(6); } /** - * Setter for preprod.delegation.block_hash. + * Setter for public.delegation.block_hash. */ public void setBlockHash(String value) { set(7, value); } /** - * Getter for preprod.delegation.block_hash. + * Getter for public.delegation.block_hash. */ public String getBlockHash() { return (String) get(7); } /** - * Setter for preprod.delegation.block. + * Setter for public.delegation.block. */ public void setBlock(Long value) { set(8, value); } /** - * Getter for preprod.delegation.block. + * Getter for public.delegation.block. */ public Long getBlock() { return (Long) get(8); } /** - * Setter for preprod.delegation.block_time. + * Setter for public.delegation.block_time. */ public void setBlockTime(Long value) { set(9, value); } /** - * Getter for preprod.delegation.block_time. + * Getter for public.delegation.block_time. */ public Long getBlockTime() { return (Long) get(9); } /** - * Setter for preprod.delegation.update_datetime. + * Setter for public.delegation.update_datetime. */ public void setUpdateDatetime(LocalDateTime value) { set(10, value); } /** - * Getter for preprod.delegation.update_datetime. + * Getter for public.delegation.update_datetime. */ public LocalDateTime getUpdateDatetime() { return (LocalDateTime) get(10); diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/EpochParamRecord.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/EpochParamRecord.java index 70059e4366..953691901d 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/EpochParamRecord.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/EpochParamRecord.java @@ -21,98 +21,98 @@ public class EpochParamRecord extends UpdatableRecordImpl { private static final long serialVersionUID = 1L; /** - * Setter for preprod.epoch_param.epoch. + * Setter for public.epoch_param.epoch. */ public void setEpoch(Integer value) { set(0, value); } /** - * Getter for preprod.epoch_param.epoch. + * Getter for public.epoch_param.epoch. */ public Integer getEpoch() { return (Integer) get(0); } /** - * Setter for preprod.epoch_param.params. + * Setter for public.epoch_param.params. */ public void setParams(JSONB value) { set(1, value); } /** - * Getter for preprod.epoch_param.params. + * Getter for public.epoch_param.params. */ public JSONB getParams() { return (JSONB) get(1); } /** - * Setter for preprod.epoch_param.cost_model_hash. + * Setter for public.epoch_param.cost_model_hash. */ public void setCostModelHash(String value) { set(2, value); } /** - * Getter for preprod.epoch_param.cost_model_hash. + * Getter for public.epoch_param.cost_model_hash. */ public String getCostModelHash() { return (String) get(2); } /** - * Setter for preprod.epoch_param.slot. + * Setter for public.epoch_param.slot. */ public void setSlot(Long value) { set(3, value); } /** - * Getter for preprod.epoch_param.slot. + * Getter for public.epoch_param.slot. */ public Long getSlot() { return (Long) get(3); } /** - * Setter for preprod.epoch_param.block. + * Setter for public.epoch_param.block. */ public void setBlock(Long value) { set(4, value); } /** - * Getter for preprod.epoch_param.block. + * Getter for public.epoch_param.block. */ public Long getBlock() { return (Long) get(4); } /** - * Setter for preprod.epoch_param.block_time. + * Setter for public.epoch_param.block_time. */ public void setBlockTime(Long value) { set(5, value); } /** - * Getter for preprod.epoch_param.block_time. + * Getter for public.epoch_param.block_time. */ public Long getBlockTime() { return (Long) get(5); } /** - * Setter for preprod.epoch_param.update_datetime. + * Setter for public.epoch_param.update_datetime. */ public void setUpdateDatetime(LocalDateTime value) { set(6, value); } /** - * Getter for preprod.epoch_param.update_datetime. + * Getter for public.epoch_param.update_datetime. */ public LocalDateTime getUpdateDatetime() { return (LocalDateTime) get(6); diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/EraRecord.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/EraRecord.java index 027ca4571d..0d468d8d72 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/EraRecord.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/EraRecord.java @@ -18,56 +18,56 @@ public class EraRecord extends UpdatableRecordImpl { private static final long serialVersionUID = 1L; /** - * Setter for preprod.era.era. + * Setter for public.era.era. */ public void setEra(Integer value) { set(0, value); } /** - * Getter for preprod.era.era. + * Getter for public.era.era. */ public Integer getEra() { return (Integer) get(0); } /** - * Setter for preprod.era.start_slot. + * Setter for public.era.start_slot. */ public void setStartSlot(Long value) { set(1, value); } /** - * Getter for preprod.era.start_slot. + * Getter for public.era.start_slot. */ public Long getStartSlot() { return (Long) get(1); } /** - * Setter for preprod.era.block. + * Setter for public.era.block. */ public void setBlock(Long value) { set(2, value); } /** - * Getter for preprod.era.block. + * Getter for public.era.block. */ public Long getBlock() { return (Long) get(2); } /** - * Setter for preprod.era.block_hash. + * Setter for public.era.block_hash. */ public void setBlockHash(String value) { set(3, value); } /** - * Getter for preprod.era.block_hash. + * Getter for public.era.block_hash. */ public String getBlockHash() { return (String) get(3); diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/ErrorRecord.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/ErrorRecord.java index 7d3230b2c9..af89408e47 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/ErrorRecord.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/ErrorRecord.java @@ -20,84 +20,84 @@ public class ErrorRecord extends UpdatableRecordImpl { private static final long serialVersionUID = 1L; /** - * Setter for preprod.error.id. + * Setter for public.error.id. */ public void setId(Integer value) { set(0, value); } /** - * Getter for preprod.error.id. + * Getter for public.error.id. */ public Integer getId() { return (Integer) get(0); } /** - * Setter for preprod.error.block. + * Setter for public.error.block. */ public void setBlock(Long value) { set(1, value); } /** - * Getter for preprod.error.block. + * Getter for public.error.block. */ public Long getBlock() { return (Long) get(1); } /** - * Setter for preprod.error.error_code. + * Setter for public.error.error_code. */ public void setErrorCode(String value) { set(2, value); } /** - * Getter for preprod.error.error_code. + * Getter for public.error.error_code. */ public String getErrorCode() { return (String) get(2); } /** - * Setter for preprod.error.reason. + * Setter for public.error.reason. */ public void setReason(String value) { set(3, value); } /** - * Getter for preprod.error.reason. + * Getter for public.error.reason. */ public String getReason() { return (String) get(3); } /** - * Setter for preprod.error.details. + * Setter for public.error.details. */ public void setDetails(String value) { set(4, value); } /** - * Getter for preprod.error.details. + * Getter for public.error.details. */ public String getDetails() { return (String) get(4); } /** - * Setter for preprod.error.update_datetime. + * Setter for public.error.update_datetime. */ public void setUpdateDatetime(LocalDateTime value) { set(5, value); } /** - * Getter for preprod.error.update_datetime. + * Getter for public.error.update_datetime. */ public LocalDateTime getUpdateDatetime() { return (LocalDateTime) get(5); diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/ErrorReviewRecord.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/ErrorReviewRecord.java index 1023082bfa..a2330986e7 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/ErrorReviewRecord.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/ErrorReviewRecord.java @@ -20,70 +20,70 @@ public class ErrorReviewRecord extends UpdatableRecordImpl { private static final long serialVersionUID = 1L; /** - * Setter for preprod.error_review.id. + * Setter for public.error_review.id. */ public void setId(Integer value) { set(0, value); } /** - * Getter for preprod.error_review.id. + * Getter for public.error_review.id. */ public Integer getId() { return (Integer) get(0); } /** - * Setter for preprod.error_review.status. + * Setter for public.error_review.status. */ public void setStatus(String value) { set(1, value); } /** - * Getter for preprod.error_review.status. + * Getter for public.error_review.status. */ public String getStatus() { return (String) get(1); } /** - * Setter for preprod.error_review.comment. + * Setter for public.error_review.comment. */ public void setComment(String value) { set(2, value); } /** - * Getter for preprod.error_review.comment. + * Getter for public.error_review.comment. */ public String getComment() { return (String) get(2); } /** - * Setter for preprod.error_review.checked_by. + * Setter for public.error_review.checked_by. */ public void setCheckedBy(String value) { set(3, value); } /** - * Getter for preprod.error_review.checked_by. + * Getter for public.error_review.checked_by. */ public String getCheckedBy() { return (String) get(3); } /** - * Setter for preprod.error_review.last_updated. + * Setter for public.error_review.last_updated. */ public void setLastUpdated(LocalDateTime value) { set(4, value); } /** - * Getter for preprod.error_review.last_updated. + * Getter for public.error_review.last_updated. */ public LocalDateTime getLastUpdated() { return (LocalDateTime) get(4); diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/FlywaySchemaHistoryRecord.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/FlywaySchemaHistoryRecord.java index 55e2e2e781..0b3817d48c 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/FlywaySchemaHistoryRecord.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/FlywaySchemaHistoryRecord.java @@ -20,140 +20,140 @@ public class FlywaySchemaHistoryRecord extends UpdatableRecordImplpreprod.flyway_schema_history.installed_rank. + * Setter for public.flyway_schema_history.installed_rank. */ public void setInstalledRank(Integer value) { set(0, value); } /** - * Getter for preprod.flyway_schema_history.installed_rank. + * Getter for public.flyway_schema_history.installed_rank. */ public Integer getInstalledRank() { return (Integer) get(0); } /** - * Setter for preprod.flyway_schema_history.version. + * Setter for public.flyway_schema_history.version. */ public void setVersion(String value) { set(1, value); } /** - * Getter for preprod.flyway_schema_history.version. + * Getter for public.flyway_schema_history.version. */ public String getVersion() { return (String) get(1); } /** - * Setter for preprod.flyway_schema_history.description. + * Setter for public.flyway_schema_history.description. */ public void setDescription(String value) { set(2, value); } /** - * Getter for preprod.flyway_schema_history.description. + * Getter for public.flyway_schema_history.description. */ public String getDescription() { return (String) get(2); } /** - * Setter for preprod.flyway_schema_history.type. + * Setter for public.flyway_schema_history.type. */ public void setType(String value) { set(3, value); } /** - * Getter for preprod.flyway_schema_history.type. + * Getter for public.flyway_schema_history.type. */ public String getType() { return (String) get(3); } /** - * Setter for preprod.flyway_schema_history.script. + * Setter for public.flyway_schema_history.script. */ public void setScript(String value) { set(4, value); } /** - * Getter for preprod.flyway_schema_history.script. + * Getter for public.flyway_schema_history.script. */ public String getScript() { return (String) get(4); } /** - * Setter for preprod.flyway_schema_history.checksum. + * Setter for public.flyway_schema_history.checksum. */ public void setChecksum(Integer value) { set(5, value); } /** - * Getter for preprod.flyway_schema_history.checksum. + * Getter for public.flyway_schema_history.checksum. */ public Integer getChecksum() { return (Integer) get(5); } /** - * Setter for preprod.flyway_schema_history.installed_by. + * Setter for public.flyway_schema_history.installed_by. */ public void setInstalledBy(String value) { set(6, value); } /** - * Getter for preprod.flyway_schema_history.installed_by. + * Getter for public.flyway_schema_history.installed_by. */ public String getInstalledBy() { return (String) get(6); } /** - * Setter for preprod.flyway_schema_history.installed_on. + * Setter for public.flyway_schema_history.installed_on. */ public void setInstalledOn(LocalDateTime value) { set(7, value); } /** - * Getter for preprod.flyway_schema_history.installed_on. + * Getter for public.flyway_schema_history.installed_on. */ public LocalDateTime getInstalledOn() { return (LocalDateTime) get(7); } /** - * Setter for preprod.flyway_schema_history.execution_time. + * Setter for public.flyway_schema_history.execution_time. */ public void setExecutionTime(Integer value) { set(8, value); } /** - * Getter for preprod.flyway_schema_history.execution_time. + * Getter for public.flyway_schema_history.execution_time. */ public Integer getExecutionTime() { return (Integer) get(8); } /** - * Setter for preprod.flyway_schema_history.success. + * Setter for public.flyway_schema_history.success. */ public void setSuccess(Boolean value) { set(9, value); } /** - * Getter for preprod.flyway_schema_history.success. + * Getter for public.flyway_schema_history.success. */ public Boolean getSuccess() { return (Boolean) get(9); diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/InvalidTransactionRecord.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/InvalidTransactionRecord.java index f87084b622..9f56a0a811 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/InvalidTransactionRecord.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/InvalidTransactionRecord.java @@ -21,84 +21,84 @@ public class InvalidTransactionRecord extends UpdatableRecordImplpreprod.invalid_transaction.tx_hash. + * Setter for public.invalid_transaction.tx_hash. */ public void setTxHash(String value) { set(0, value); } /** - * Getter for preprod.invalid_transaction.tx_hash. + * Getter for public.invalid_transaction.tx_hash. */ public String getTxHash() { return (String) get(0); } /** - * Setter for preprod.invalid_transaction.slot. + * Setter for public.invalid_transaction.slot. */ public void setSlot(Long value) { set(1, value); } /** - * Getter for preprod.invalid_transaction.slot. + * Getter for public.invalid_transaction.slot. */ public Long getSlot() { return (Long) get(1); } /** - * Setter for preprod.invalid_transaction.block_hash. + * Setter for public.invalid_transaction.block_hash. */ public void setBlockHash(String value) { set(2, value); } /** - * Getter for preprod.invalid_transaction.block_hash. + * Getter for public.invalid_transaction.block_hash. */ public String getBlockHash() { return (String) get(2); } /** - * Setter for preprod.invalid_transaction.transaction. + * Setter for public.invalid_transaction.transaction. */ public void setTransaction(JSONB value) { set(3, value); } /** - * Getter for preprod.invalid_transaction.transaction. + * Getter for public.invalid_transaction.transaction. */ public JSONB getTransaction() { return (JSONB) get(3); } /** - * Setter for preprod.invalid_transaction.create_datetime. + * Setter for public.invalid_transaction.create_datetime. */ public void setCreateDatetime(LocalDateTime value) { set(4, value); } /** - * Getter for preprod.invalid_transaction.create_datetime. + * Getter for public.invalid_transaction.create_datetime. */ public LocalDateTime getCreateDatetime() { return (LocalDateTime) get(4); } /** - * Setter for preprod.invalid_transaction.update_datetime. + * Setter for public.invalid_transaction.update_datetime. */ public void setUpdateDatetime(LocalDateTime value) { set(5, value); } /** - * Getter for preprod.invalid_transaction.update_datetime. + * Getter for public.invalid_transaction.update_datetime. */ public LocalDateTime getUpdateDatetime() { return (LocalDateTime) get(5); diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/LocalEpochParamRecord.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/LocalEpochParamRecord.java index 442d05d4a9..61fed902e4 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/LocalEpochParamRecord.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/LocalEpochParamRecord.java @@ -21,42 +21,42 @@ public class LocalEpochParamRecord extends UpdatableRecordImplpreprod.local_epoch_param.epoch. + * Setter for public.local_epoch_param.epoch. */ public void setEpoch(Integer value) { set(0, value); } /** - * Getter for preprod.local_epoch_param.epoch. + * Getter for public.local_epoch_param.epoch. */ public Integer getEpoch() { return (Integer) get(0); } /** - * Setter for preprod.local_epoch_param.params. + * Setter for public.local_epoch_param.params. */ public void setParams(JSONB value) { set(1, value); } /** - * Getter for preprod.local_epoch_param.params. + * Getter for public.local_epoch_param.params. */ public JSONB getParams() { return (JSONB) get(1); } /** - * Setter for preprod.local_epoch_param.update_datetime. + * Setter for public.local_epoch_param.update_datetime. */ public void setUpdateDatetime(LocalDateTime value) { set(2, value); } /** - * Getter for preprod.local_epoch_param.update_datetime. + * Getter for public.local_epoch_param.update_datetime. */ public LocalDateTime getUpdateDatetime() { return (LocalDateTime) get(2); diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/PoolRegistrationRecord.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/PoolRegistrationRecord.java index 25bf877bf0..6839a74f47 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/PoolRegistrationRecord.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/PoolRegistrationRecord.java @@ -23,252 +23,252 @@ public class PoolRegistrationRecord extends UpdatableRecordImplpreprod.pool_registration.tx_hash. + * Setter for public.pool_registration.tx_hash. */ public void setTxHash(String value) { set(0, value); } /** - * Getter for preprod.pool_registration.tx_hash. + * Getter for public.pool_registration.tx_hash. */ public String getTxHash() { return (String) get(0); } /** - * Setter for preprod.pool_registration.cert_index. + * Setter for public.pool_registration.cert_index. */ public void setCertIndex(Integer value) { set(1, value); } /** - * Getter for preprod.pool_registration.cert_index. + * Getter for public.pool_registration.cert_index. */ public Integer getCertIndex() { return (Integer) get(1); } /** - * Setter for preprod.pool_registration.pool_id. + * Setter for public.pool_registration.pool_id. */ public void setPoolId(String value) { set(2, value); } /** - * Getter for preprod.pool_registration.pool_id. + * Getter for public.pool_registration.pool_id. */ public String getPoolId() { return (String) get(2); } /** - * Setter for preprod.pool_registration.vrf_key. + * Setter for public.pool_registration.vrf_key. */ public void setVrfKey(String value) { set(3, value); } /** - * Getter for preprod.pool_registration.vrf_key. + * Getter for public.pool_registration.vrf_key. */ public String getVrfKey() { return (String) get(3); } /** - * Setter for preprod.pool_registration.pledge. + * Setter for public.pool_registration.pledge. */ public void setPledge(BigInteger value) { set(4, value); } /** - * Getter for preprod.pool_registration.pledge. + * Getter for public.pool_registration.pledge. */ public BigInteger getPledge() { return (BigInteger) get(4); } /** - * Setter for preprod.pool_registration.cost. + * Setter for public.pool_registration.cost. */ public void setCost(BigInteger value) { set(5, value); } /** - * Getter for preprod.pool_registration.cost. + * Getter for public.pool_registration.cost. */ public BigInteger getCost() { return (BigInteger) get(5); } /** - * Setter for preprod.pool_registration.margin. + * Setter for public.pool_registration.margin. */ public void setMargin(BigDecimal value) { set(6, value); } /** - * Getter for preprod.pool_registration.margin. + * Getter for public.pool_registration.margin. */ public BigDecimal getMargin() { return (BigDecimal) get(6); } /** - * Setter for preprod.pool_registration.reward_account. + * Setter for public.pool_registration.reward_account. */ public void setRewardAccount(String value) { set(7, value); } /** - * Getter for preprod.pool_registration.reward_account. + * Getter for public.pool_registration.reward_account. */ public String getRewardAccount() { return (String) get(7); } /** - * Setter for preprod.pool_registration.pool_owners. + * Setter for public.pool_registration.pool_owners. */ public void setPoolOwners(JSONB value) { set(8, value); } /** - * Getter for preprod.pool_registration.pool_owners. + * Getter for public.pool_registration.pool_owners. */ public JSONB getPoolOwners() { return (JSONB) get(8); } /** - * Setter for preprod.pool_registration.relays. + * Setter for public.pool_registration.relays. */ public void setRelays(JSONB value) { set(9, value); } /** - * Getter for preprod.pool_registration.relays. + * Getter for public.pool_registration.relays. */ public JSONB getRelays() { return (JSONB) get(9); } /** - * Setter for preprod.pool_registration.metadata_url. + * Setter for public.pool_registration.metadata_url. */ public void setMetadataUrl(String value) { set(10, value); } /** - * Getter for preprod.pool_registration.metadata_url. + * Getter for public.pool_registration.metadata_url. */ public String getMetadataUrl() { return (String) get(10); } /** - * Setter for preprod.pool_registration.metadata_hash. + * Setter for public.pool_registration.metadata_hash. */ public void setMetadataHash(String value) { set(11, value); } /** - * Getter for preprod.pool_registration.metadata_hash. + * Getter for public.pool_registration.metadata_hash. */ public String getMetadataHash() { return (String) get(11); } /** - * Setter for preprod.pool_registration.epoch. + * Setter for public.pool_registration.epoch. */ public void setEpoch(Integer value) { set(12, value); } /** - * Getter for preprod.pool_registration.epoch. + * Getter for public.pool_registration.epoch. */ public Integer getEpoch() { return (Integer) get(12); } /** - * Setter for preprod.pool_registration.slot. + * Setter for public.pool_registration.slot. */ public void setSlot(Long value) { set(13, value); } /** - * Getter for preprod.pool_registration.slot. + * Getter for public.pool_registration.slot. */ public Long getSlot() { return (Long) get(13); } /** - * Setter for preprod.pool_registration.block_hash. + * Setter for public.pool_registration.block_hash. */ public void setBlockHash(String value) { set(14, value); } /** - * Getter for preprod.pool_registration.block_hash. + * Getter for public.pool_registration.block_hash. */ public String getBlockHash() { return (String) get(14); } /** - * Setter for preprod.pool_registration.block. + * Setter for public.pool_registration.block. */ public void setBlock(Long value) { set(15, value); } /** - * Getter for preprod.pool_registration.block. + * Getter for public.pool_registration.block. */ public Long getBlock() { return (Long) get(15); } /** - * Setter for preprod.pool_registration.block_time. + * Setter for public.pool_registration.block_time. */ public void setBlockTime(Long value) { set(16, value); } /** - * Getter for preprod.pool_registration.block_time. + * Getter for public.pool_registration.block_time. */ public Long getBlockTime() { return (Long) get(16); } /** - * Setter for preprod.pool_registration.update_datetime. + * Setter for public.pool_registration.update_datetime. */ public void setUpdateDatetime(LocalDateTime value) { set(17, value); } /** - * Getter for preprod.pool_registration.update_datetime. + * Getter for public.pool_registration.update_datetime. */ public LocalDateTime getUpdateDatetime() { return (LocalDateTime) get(17); diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/PoolRetirementRecord.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/PoolRetirementRecord.java index 7e0be8b358..fe71139a3d 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/PoolRetirementRecord.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/PoolRetirementRecord.java @@ -20,140 +20,140 @@ public class PoolRetirementRecord extends UpdatableRecordImplpreprod.pool_retirement.tx_hash. + * Setter for public.pool_retirement.tx_hash. */ public void setTxHash(String value) { set(0, value); } /** - * Getter for preprod.pool_retirement.tx_hash. + * Getter for public.pool_retirement.tx_hash. */ public String getTxHash() { return (String) get(0); } /** - * Setter for preprod.pool_retirement.cert_index. + * Setter for public.pool_retirement.cert_index. */ public void setCertIndex(Integer value) { set(1, value); } /** - * Getter for preprod.pool_retirement.cert_index. + * Getter for public.pool_retirement.cert_index. */ public Integer getCertIndex() { return (Integer) get(1); } /** - * Setter for preprod.pool_retirement.pool_id. + * Setter for public.pool_retirement.pool_id. */ public void setPoolId(String value) { set(2, value); } /** - * Getter for preprod.pool_retirement.pool_id. + * Getter for public.pool_retirement.pool_id. */ public String getPoolId() { return (String) get(2); } /** - * Setter for preprod.pool_retirement.retirement_epoch. + * Setter for public.pool_retirement.retirement_epoch. */ public void setRetirementEpoch(Integer value) { set(3, value); } /** - * Getter for preprod.pool_retirement.retirement_epoch. + * Getter for public.pool_retirement.retirement_epoch. */ public Integer getRetirementEpoch() { return (Integer) get(3); } /** - * Setter for preprod.pool_retirement.epoch. + * Setter for public.pool_retirement.epoch. */ public void setEpoch(Integer value) { set(4, value); } /** - * Getter for preprod.pool_retirement.epoch. + * Getter for public.pool_retirement.epoch. */ public Integer getEpoch() { return (Integer) get(4); } /** - * Setter for preprod.pool_retirement.slot. + * Setter for public.pool_retirement.slot. */ public void setSlot(Long value) { set(5, value); } /** - * Getter for preprod.pool_retirement.slot. + * Getter for public.pool_retirement.slot. */ public Long getSlot() { return (Long) get(5); } /** - * Setter for preprod.pool_retirement.block_hash. + * Setter for public.pool_retirement.block_hash. */ public void setBlockHash(String value) { set(6, value); } /** - * Getter for preprod.pool_retirement.block_hash. + * Getter for public.pool_retirement.block_hash. */ public String getBlockHash() { return (String) get(6); } /** - * Setter for preprod.pool_retirement.block. + * Setter for public.pool_retirement.block. */ public void setBlock(Long value) { set(7, value); } /** - * Getter for preprod.pool_retirement.block. + * Getter for public.pool_retirement.block. */ public Long getBlock() { return (Long) get(7); } /** - * Setter for preprod.pool_retirement.block_time. + * Setter for public.pool_retirement.block_time. */ public void setBlockTime(Long value) { set(8, value); } /** - * Getter for preprod.pool_retirement.block_time. + * Getter for public.pool_retirement.block_time. */ public Long getBlockTime() { return (Long) get(8); } /** - * Setter for preprod.pool_retirement.update_datetime. + * Setter for public.pool_retirement.update_datetime. */ public void setUpdateDatetime(LocalDateTime value) { set(9, value); } /** - * Getter for preprod.pool_retirement.update_datetime. + * Getter for public.pool_retirement.update_datetime. */ public LocalDateTime getUpdateDatetime() { return (LocalDateTime) get(9); diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/ProtocolParamsProposalRecord.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/ProtocolParamsProposalRecord.java index 336e335fd1..573ab79460 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/ProtocolParamsProposalRecord.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/ProtocolParamsProposalRecord.java @@ -21,140 +21,140 @@ public class ProtocolParamsProposalRecord extends UpdatableRecordImplpreprod.protocol_params_proposal.tx_hash. + * Setter for public.protocol_params_proposal.tx_hash. */ public void setTxHash(String value) { set(0, value); } /** - * Getter for preprod.protocol_params_proposal.tx_hash. + * Getter for public.protocol_params_proposal.tx_hash. */ public String getTxHash() { return (String) get(0); } /** - * Setter for preprod.protocol_params_proposal.key_hash. + * Setter for public.protocol_params_proposal.key_hash. */ public void setKeyHash(String value) { set(1, value); } /** - * Getter for preprod.protocol_params_proposal.key_hash. + * Getter for public.protocol_params_proposal.key_hash. */ public String getKeyHash() { return (String) get(1); } /** - * Setter for preprod.protocol_params_proposal.params. + * Setter for public.protocol_params_proposal.params. */ public void setParams(JSONB value) { set(2, value); } /** - * Getter for preprod.protocol_params_proposal.params. + * Getter for public.protocol_params_proposal.params. */ public JSONB getParams() { return (JSONB) get(2); } /** - * Setter for preprod.protocol_params_proposal.target_epoch. + * Setter for public.protocol_params_proposal.target_epoch. */ public void setTargetEpoch(Integer value) { set(3, value); } /** - * Getter for preprod.protocol_params_proposal.target_epoch. + * Getter for public.protocol_params_proposal.target_epoch. */ public Integer getTargetEpoch() { return (Integer) get(3); } /** - * Setter for preprod.protocol_params_proposal.epoch. + * Setter for public.protocol_params_proposal.epoch. */ public void setEpoch(Integer value) { set(4, value); } /** - * Getter for preprod.protocol_params_proposal.epoch. + * Getter for public.protocol_params_proposal.epoch. */ public Integer getEpoch() { return (Integer) get(4); } /** - * Setter for preprod.protocol_params_proposal.slot. + * Setter for public.protocol_params_proposal.slot. */ public void setSlot(Long value) { set(5, value); } /** - * Getter for preprod.protocol_params_proposal.slot. + * Getter for public.protocol_params_proposal.slot. */ public Long getSlot() { return (Long) get(5); } /** - * Setter for preprod.protocol_params_proposal.era. + * Setter for public.protocol_params_proposal.era. */ public void setEra(Short value) { set(6, value); } /** - * Getter for preprod.protocol_params_proposal.era. + * Getter for public.protocol_params_proposal.era. */ public Short getEra() { return (Short) get(6); } /** - * Setter for preprod.protocol_params_proposal.block. + * Setter for public.protocol_params_proposal.block. */ public void setBlock(Long value) { set(7, value); } /** - * Getter for preprod.protocol_params_proposal.block. + * Getter for public.protocol_params_proposal.block. */ public Long getBlock() { return (Long) get(7); } /** - * Setter for preprod.protocol_params_proposal.block_time. + * Setter for public.protocol_params_proposal.block_time. */ public void setBlockTime(Long value) { set(8, value); } /** - * Getter for preprod.protocol_params_proposal.block_time. + * Getter for public.protocol_params_proposal.block_time. */ public Long getBlockTime() { return (Long) get(8); } /** - * Setter for preprod.protocol_params_proposal.update_datetime. + * Setter for public.protocol_params_proposal.update_datetime. */ public void setUpdateDatetime(LocalDateTime value) { set(9, value); } /** - * Getter for preprod.protocol_params_proposal.update_datetime. + * Getter for public.protocol_params_proposal.update_datetime. */ public LocalDateTime getUpdateDatetime() { return (LocalDateTime) get(9); diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/RollbackRecord.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/RollbackRecord.java index be80030a81..101b0439f8 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/RollbackRecord.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/RollbackRecord.java @@ -20,112 +20,112 @@ public class RollbackRecord extends UpdatableRecordImpl { private static final long serialVersionUID = 1L; /** - * Setter for preprod.rollback.id. + * Setter for public.rollback.id. */ public void setId(Long value) { set(0, value); } /** - * Getter for preprod.rollback.id. + * Getter for public.rollback.id. */ public Long getId() { return (Long) get(0); } /** - * Setter for preprod.rollback.rollback_to_block_hash. + * Setter for public.rollback.rollback_to_block_hash. */ public void setRollbackToBlockHash(String value) { set(1, value); } /** - * Getter for preprod.rollback.rollback_to_block_hash. + * Getter for public.rollback.rollback_to_block_hash. */ public String getRollbackToBlockHash() { return (String) get(1); } /** - * Setter for preprod.rollback.rollback_to_slot. + * Setter for public.rollback.rollback_to_slot. */ public void setRollbackToSlot(Long value) { set(2, value); } /** - * Getter for preprod.rollback.rollback_to_slot. + * Getter for public.rollback.rollback_to_slot. */ public Long getRollbackToSlot() { return (Long) get(2); } /** - * Setter for preprod.rollback.current_block_hash. + * Setter for public.rollback.current_block_hash. */ public void setCurrentBlockHash(String value) { set(3, value); } /** - * Getter for preprod.rollback.current_block_hash. + * Getter for public.rollback.current_block_hash. */ public String getCurrentBlockHash() { return (String) get(3); } /** - * Setter for preprod.rollback.current_slot. + * Setter for public.rollback.current_slot. */ public void setCurrentSlot(Long value) { set(4, value); } /** - * Getter for preprod.rollback.current_slot. + * Getter for public.rollback.current_slot. */ public Long getCurrentSlot() { return (Long) get(4); } /** - * Setter for preprod.rollback.current_block. + * Setter for public.rollback.current_block. */ public void setCurrentBlock(Long value) { set(5, value); } /** - * Getter for preprod.rollback.current_block. + * Getter for public.rollback.current_block. */ public Long getCurrentBlock() { return (Long) get(5); } /** - * Setter for preprod.rollback.create_datetime. + * Setter for public.rollback.create_datetime. */ public void setCreateDatetime(LocalDateTime value) { set(6, value); } /** - * Getter for preprod.rollback.create_datetime. + * Getter for public.rollback.create_datetime. */ public LocalDateTime getCreateDatetime() { return (LocalDateTime) get(6); } /** - * Setter for preprod.rollback.update_datetime. + * Setter for public.rollback.update_datetime. */ public void setUpdateDatetime(LocalDateTime value) { set(7, value); } /** - * Getter for preprod.rollback.update_datetime. + * Getter for public.rollback.update_datetime. */ public LocalDateTime getUpdateDatetime() { return (LocalDateTime) get(7); diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/StakeRegistrationRecord.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/StakeRegistrationRecord.java index 1d95231796..c3b9261520 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/StakeRegistrationRecord.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/StakeRegistrationRecord.java @@ -20,154 +20,154 @@ public class StakeRegistrationRecord extends UpdatableRecordImplpreprod.stake_registration.tx_hash. + * Setter for public.stake_registration.tx_hash. */ public void setTxHash(String value) { set(0, value); } /** - * Getter for preprod.stake_registration.tx_hash. + * Getter for public.stake_registration.tx_hash. */ public String getTxHash() { return (String) get(0); } /** - * Setter for preprod.stake_registration.cert_index. + * Setter for public.stake_registration.cert_index. */ public void setCertIndex(Integer value) { set(1, value); } /** - * Getter for preprod.stake_registration.cert_index. + * Getter for public.stake_registration.cert_index. */ public Integer getCertIndex() { return (Integer) get(1); } /** - * Setter for preprod.stake_registration.credential. + * Setter for public.stake_registration.credential. */ public void setCredential(String value) { set(2, value); } /** - * Getter for preprod.stake_registration.credential. + * Getter for public.stake_registration.credential. */ public String getCredential() { return (String) get(2); } /** - * Setter for preprod.stake_registration.type. + * Setter for public.stake_registration.type. */ public void setType(String value) { set(3, value); } /** - * Getter for preprod.stake_registration.type. + * Getter for public.stake_registration.type. */ public String getType() { return (String) get(3); } /** - * Setter for preprod.stake_registration.address. + * Setter for public.stake_registration.address. */ public void setAddress(String value) { set(4, value); } /** - * Getter for preprod.stake_registration.address. + * Getter for public.stake_registration.address. */ public String getAddress() { return (String) get(4); } /** - * Setter for preprod.stake_registration.epoch. + * Setter for public.stake_registration.epoch. */ public void setEpoch(Integer value) { set(5, value); } /** - * Getter for preprod.stake_registration.epoch. + * Getter for public.stake_registration.epoch. */ public Integer getEpoch() { return (Integer) get(5); } /** - * Setter for preprod.stake_registration.slot. + * Setter for public.stake_registration.slot. */ public void setSlot(Long value) { set(6, value); } /** - * Getter for preprod.stake_registration.slot. + * Getter for public.stake_registration.slot. */ public Long getSlot() { return (Long) get(6); } /** - * Setter for preprod.stake_registration.block_hash. + * Setter for public.stake_registration.block_hash. */ public void setBlockHash(String value) { set(7, value); } /** - * Getter for preprod.stake_registration.block_hash. + * Getter for public.stake_registration.block_hash. */ public String getBlockHash() { return (String) get(7); } /** - * Setter for preprod.stake_registration.block. + * Setter for public.stake_registration.block. */ public void setBlock(Long value) { set(8, value); } /** - * Getter for preprod.stake_registration.block. + * Getter for public.stake_registration.block. */ public Long getBlock() { return (Long) get(8); } /** - * Setter for preprod.stake_registration.block_time. + * Setter for public.stake_registration.block_time. */ public void setBlockTime(Long value) { set(9, value); } /** - * Getter for preprod.stake_registration.block_time. + * Getter for public.stake_registration.block_time. */ public Long getBlockTime() { return (Long) get(9); } /** - * Setter for preprod.stake_registration.update_datetime. + * Setter for public.stake_registration.update_datetime. */ public void setUpdateDatetime(LocalDateTime value) { set(10, value); } /** - * Getter for preprod.stake_registration.update_datetime. + * Getter for public.stake_registration.update_datetime. */ public LocalDateTime getUpdateDatetime() { return (LocalDateTime) get(10); diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/TransactionRecord.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/TransactionRecord.java index 3307ee4072..3868d3f4ad 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/TransactionRecord.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/TransactionRecord.java @@ -21,294 +21,294 @@ public class TransactionRecord extends UpdatableRecordImpl { private static final long serialVersionUID = 1L; /** - * Setter for preprod.transaction.tx_hash. + * Setter for public.transaction.tx_hash. */ public void setTxHash(String value) { set(0, value); } /** - * Getter for preprod.transaction.tx_hash. + * Getter for public.transaction.tx_hash. */ public String getTxHash() { return (String) get(0); } /** - * Setter for preprod.transaction.auxiliary_datahash. + * Setter for public.transaction.auxiliary_datahash. */ public void setAuxiliaryDatahash(String value) { set(1, value); } /** - * Getter for preprod.transaction.auxiliary_datahash. + * Getter for public.transaction.auxiliary_datahash. */ public String getAuxiliaryDatahash() { return (String) get(1); } /** - * Setter for preprod.transaction.block_hash. + * Setter for public.transaction.block_hash. */ public void setBlockHash(String value) { set(2, value); } /** - * Getter for preprod.transaction.block_hash. + * Getter for public.transaction.block_hash. */ public String getBlockHash() { return (String) get(2); } /** - * Setter for preprod.transaction.collateral_inputs. + * Setter for public.transaction.collateral_inputs. */ public void setCollateralInputs(JSONB value) { set(3, value); } /** - * Getter for preprod.transaction.collateral_inputs. + * Getter for public.transaction.collateral_inputs. */ public JSONB getCollateralInputs() { return (JSONB) get(3); } /** - * Setter for preprod.transaction.collateral_return. + * Setter for public.transaction.collateral_return. */ public void setCollateralReturn(JSONB value) { set(4, value); } /** - * Getter for preprod.transaction.collateral_return. + * Getter for public.transaction.collateral_return. */ public JSONB getCollateralReturn() { return (JSONB) get(4); } /** - * Setter for preprod.transaction.fee. + * Setter for public.transaction.fee. */ public void setFee(Long value) { set(5, value); } /** - * Getter for preprod.transaction.fee. + * Getter for public.transaction.fee. */ public Long getFee() { return (Long) get(5); } /** - * Setter for preprod.transaction.inputs. + * Setter for public.transaction.inputs. */ public void setInputs(JSONB value) { set(6, value); } /** - * Getter for preprod.transaction.inputs. + * Getter for public.transaction.inputs. */ public JSONB getInputs() { return (JSONB) get(6); } /** - * Setter for preprod.transaction.invalid. + * Setter for public.transaction.invalid. */ public void setInvalid(Boolean value) { set(7, value); } /** - * Getter for preprod.transaction.invalid. + * Getter for public.transaction.invalid. */ public Boolean getInvalid() { return (Boolean) get(7); } /** - * Setter for preprod.transaction.network_id. + * Setter for public.transaction.network_id. */ public void setNetworkId(Short value) { set(8, value); } /** - * Getter for preprod.transaction.network_id. + * Getter for public.transaction.network_id. */ public Short getNetworkId() { return (Short) get(8); } /** - * Setter for preprod.transaction.outputs. + * Setter for public.transaction.outputs. */ public void setOutputs(JSONB value) { set(9, value); } /** - * Getter for preprod.transaction.outputs. + * Getter for public.transaction.outputs. */ public JSONB getOutputs() { return (JSONB) get(9); } /** - * Setter for preprod.transaction.reference_inputs. + * Setter for public.transaction.reference_inputs. */ public void setReferenceInputs(JSONB value) { set(10, value); } /** - * Getter for preprod.transaction.reference_inputs. + * Getter for public.transaction.reference_inputs. */ public JSONB getReferenceInputs() { return (JSONB) get(10); } /** - * Setter for preprod.transaction.required_signers. + * Setter for public.transaction.required_signers. */ public void setRequiredSigners(JSONB value) { set(11, value); } /** - * Getter for preprod.transaction.required_signers. + * Getter for public.transaction.required_signers. */ public JSONB getRequiredSigners() { return (JSONB) get(11); } /** - * Setter for preprod.transaction.script_datahash. + * Setter for public.transaction.script_datahash. */ public void setScriptDatahash(String value) { set(12, value); } /** - * Getter for preprod.transaction.script_datahash. + * Getter for public.transaction.script_datahash. */ public String getScriptDatahash() { return (String) get(12); } /** - * Setter for preprod.transaction.slot. + * Setter for public.transaction.slot. */ public void setSlot(Long value) { set(13, value); } /** - * Getter for preprod.transaction.slot. + * Getter for public.transaction.slot. */ public Long getSlot() { return (Long) get(13); } /** - * Setter for preprod.transaction.total_collateral. + * Setter for public.transaction.total_collateral. */ public void setTotalCollateral(Long value) { set(14, value); } /** - * Getter for preprod.transaction.total_collateral. + * Getter for public.transaction.total_collateral. */ public Long getTotalCollateral() { return (Long) get(14); } /** - * Setter for preprod.transaction.ttl. + * Setter for public.transaction.ttl. */ public void setTtl(Long value) { set(15, value); } /** - * Getter for preprod.transaction.ttl. + * Getter for public.transaction.ttl. */ public Long getTtl() { return (Long) get(15); } /** - * Setter for preprod.transaction.validity_interval_start. + * Setter for public.transaction.validity_interval_start. */ public void setValidityIntervalStart(Long value) { set(16, value); } /** - * Getter for preprod.transaction.validity_interval_start. + * Getter for public.transaction.validity_interval_start. */ public Long getValidityIntervalStart() { return (Long) get(16); } /** - * Setter for preprod.transaction.collateral_return_json. + * Setter for public.transaction.collateral_return_json. */ public void setCollateralReturnJson(JSONB value) { set(17, value); } /** - * Getter for preprod.transaction.collateral_return_json. + * Getter for public.transaction.collateral_return_json. */ public JSONB getCollateralReturnJson() { return (JSONB) get(17); } /** - * Setter for preprod.transaction.block. + * Setter for public.transaction.block. */ public void setBlock(Long value) { set(18, value); } /** - * Getter for preprod.transaction.block. + * Getter for public.transaction.block. */ public Long getBlock() { return (Long) get(18); } /** - * Setter for preprod.transaction.block_time. + * Setter for public.transaction.block_time. */ public void setBlockTime(Long value) { set(19, value); } /** - * Getter for preprod.transaction.block_time. + * Getter for public.transaction.block_time. */ public Long getBlockTime() { return (Long) get(19); } /** - * Setter for preprod.transaction.update_datetime. + * Setter for public.transaction.update_datetime. */ public void setUpdateDatetime(LocalDateTime value) { set(20, value); } /** - * Getter for preprod.transaction.update_datetime. + * Getter for public.transaction.update_datetime. */ public LocalDateTime getUpdateDatetime() { return (LocalDateTime) get(20); diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/TransactionSizeRecord.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/TransactionSizeRecord.java index eaca47871d..4265d9642e 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/TransactionSizeRecord.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/TransactionSizeRecord.java @@ -18,56 +18,56 @@ public class TransactionSizeRecord extends UpdatableRecordImplpreprod.transaction_size.tx_hash. + * Setter for public.transaction_size.tx_hash. */ public void setTxHash(String value) { set(0, value); } /** - * Getter for preprod.transaction_size.tx_hash. + * Getter for public.transaction_size.tx_hash. */ public String getTxHash() { return (String) get(0); } /** - * Setter for preprod.transaction_size.block_number. + * Setter for public.transaction_size.block_number. */ public void setBlockNumber(Long value) { set(1, value); } /** - * Getter for preprod.transaction_size.block_number. + * Getter for public.transaction_size.block_number. */ public Long getBlockNumber() { return (Long) get(1); } /** - * Setter for preprod.transaction_size.size. + * Setter for public.transaction_size.size. */ public void setSize(Integer value) { set(2, value); } /** - * Getter for preprod.transaction_size.size. + * Getter for public.transaction_size.size. */ public Integer getSize() { return (Integer) get(2); } /** - * Setter for preprod.transaction_size.script_size. + * Setter for public.transaction_size.script_size. */ public void setScriptSize(Integer value) { set(3, value); } /** - * Getter for preprod.transaction_size.script_size. + * Getter for public.transaction_size.script_size. */ public Integer getScriptSize() { return (Integer) get(3); diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/TransactionWitnessRecord.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/TransactionWitnessRecord.java index 12d9e6eaae..23c3297059 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/TransactionWitnessRecord.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/TransactionWitnessRecord.java @@ -19,112 +19,112 @@ public class TransactionWitnessRecord extends UpdatableRecordImplpreprod.transaction_witness.tx_hash. + * Setter for public.transaction_witness.tx_hash. */ public void setTxHash(String value) { set(0, value); } /** - * Getter for preprod.transaction_witness.tx_hash. + * Getter for public.transaction_witness.tx_hash. */ public String getTxHash() { return (String) get(0); } /** - * Setter for preprod.transaction_witness.idx. + * Setter for public.transaction_witness.idx. */ public void setIdx(Integer value) { set(1, value); } /** - * Getter for preprod.transaction_witness.idx. + * Getter for public.transaction_witness.idx. */ public Integer getIdx() { return (Integer) get(1); } /** - * Setter for preprod.transaction_witness.pub_key. + * Setter for public.transaction_witness.pub_key. */ public void setPubKey(String value) { set(2, value); } /** - * Getter for preprod.transaction_witness.pub_key. + * Getter for public.transaction_witness.pub_key. */ public String getPubKey() { return (String) get(2); } /** - * Setter for preprod.transaction_witness.signature. + * Setter for public.transaction_witness.signature. */ public void setSignature(String value) { set(3, value); } /** - * Getter for preprod.transaction_witness.signature. + * Getter for public.transaction_witness.signature. */ public String getSignature() { return (String) get(3); } /** - * Setter for preprod.transaction_witness.pub_keyhash. + * Setter for public.transaction_witness.pub_keyhash. */ public void setPubKeyhash(String value) { set(4, value); } /** - * Getter for preprod.transaction_witness.pub_keyhash. + * Getter for public.transaction_witness.pub_keyhash. */ public String getPubKeyhash() { return (String) get(4); } /** - * Setter for preprod.transaction_witness.type. + * Setter for public.transaction_witness.type. */ public void setType(String value) { set(5, value); } /** - * Getter for preprod.transaction_witness.type. + * Getter for public.transaction_witness.type. */ public String getType() { return (String) get(5); } /** - * Setter for preprod.transaction_witness.additional_data. + * Setter for public.transaction_witness.additional_data. */ public void setAdditionalData(JSONB value) { set(6, value); } /** - * Getter for preprod.transaction_witness.additional_data. + * Getter for public.transaction_witness.additional_data. */ public JSONB getAdditionalData() { return (JSONB) get(6); } /** - * Setter for preprod.transaction_witness.slot. + * Setter for public.transaction_witness.slot. */ public void setSlot(Long value) { set(7, value); } /** - * Getter for preprod.transaction_witness.slot. + * Getter for public.transaction_witness.slot. */ public Long getSlot() { return (Long) get(7); diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/TxInputRecord.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/TxInputRecord.java index ae82ba3c20..c9009c6c7a 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/TxInputRecord.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/TxInputRecord.java @@ -18,112 +18,112 @@ public class TxInputRecord extends UpdatableRecordImpl { private static final long serialVersionUID = 1L; /** - * Setter for preprod.tx_input.output_index. + * Setter for public.tx_input.output_index. */ public void setOutputIndex(Short value) { set(0, value); } /** - * Getter for preprod.tx_input.output_index. + * Getter for public.tx_input.output_index. */ public Short getOutputIndex() { return (Short) get(0); } /** - * Setter for preprod.tx_input.tx_hash. + * Setter for public.tx_input.tx_hash. */ public void setTxHash(String value) { set(1, value); } /** - * Getter for preprod.tx_input.tx_hash. + * Getter for public.tx_input.tx_hash. */ public String getTxHash() { return (String) get(1); } /** - * Setter for preprod.tx_input.spent_at_slot. + * Setter for public.tx_input.spent_at_slot. */ public void setSpentAtSlot(Long value) { set(2, value); } /** - * Getter for preprod.tx_input.spent_at_slot. + * Getter for public.tx_input.spent_at_slot. */ public Long getSpentAtSlot() { return (Long) get(2); } /** - * Setter for preprod.tx_input.spent_at_block. + * Setter for public.tx_input.spent_at_block. */ public void setSpentAtBlock(Long value) { set(3, value); } /** - * Getter for preprod.tx_input.spent_at_block. + * Getter for public.tx_input.spent_at_block. */ public Long getSpentAtBlock() { return (Long) get(3); } /** - * Setter for preprod.tx_input.spent_at_block_hash. + * Setter for public.tx_input.spent_at_block_hash. */ public void setSpentAtBlockHash(String value) { set(4, value); } /** - * Getter for preprod.tx_input.spent_at_block_hash. + * Getter for public.tx_input.spent_at_block_hash. */ public String getSpentAtBlockHash() { return (String) get(4); } /** - * Setter for preprod.tx_input.spent_block_time. + * Setter for public.tx_input.spent_block_time. */ public void setSpentBlockTime(Long value) { set(5, value); } /** - * Getter for preprod.tx_input.spent_block_time. + * Getter for public.tx_input.spent_block_time. */ public Long getSpentBlockTime() { return (Long) get(5); } /** - * Setter for preprod.tx_input.spent_epoch. + * Setter for public.tx_input.spent_epoch. */ public void setSpentEpoch(Integer value) { set(6, value); } /** - * Getter for preprod.tx_input.spent_epoch. + * Getter for public.tx_input.spent_epoch. */ public Integer getSpentEpoch() { return (Integer) get(6); } /** - * Setter for preprod.tx_input.spent_tx_hash. + * Setter for public.tx_input.spent_tx_hash. */ public void setSpentTxHash(String value) { set(7, value); } /** - * Getter for preprod.tx_input.spent_tx_hash. + * Getter for public.tx_input.spent_tx_hash. */ public String getSpentTxHash() { return (String) get(7); diff --git a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/WithdrawalRecord.java b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/WithdrawalRecord.java index 450cca2f63..27e46fb4c0 100644 --- a/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/WithdrawalRecord.java +++ b/api/src/main/java/org/cardanofoundation/rosetta/api/jooq/tables/records/WithdrawalRecord.java @@ -21,112 +21,112 @@ public class WithdrawalRecord extends UpdatableRecordImpl { private static final long serialVersionUID = 1L; /** - * Setter for preprod.withdrawal.tx_hash. + * Setter for public.withdrawal.tx_hash. */ public void setTxHash(String value) { set(0, value); } /** - * Getter for preprod.withdrawal.tx_hash. + * Getter for public.withdrawal.tx_hash. */ public String getTxHash() { return (String) get(0); } /** - * Setter for preprod.withdrawal.address. + * Setter for public.withdrawal.address. */ public void setAddress(String value) { set(1, value); } /** - * Getter for preprod.withdrawal.address. + * Getter for public.withdrawal.address. */ public String getAddress() { return (String) get(1); } /** - * Setter for preprod.withdrawal.amount. + * Setter for public.withdrawal.amount. */ public void setAmount(BigInteger value) { set(2, value); } /** - * Getter for preprod.withdrawal.amount. + * Getter for public.withdrawal.amount. */ public BigInteger getAmount() { return (BigInteger) get(2); } /** - * Setter for preprod.withdrawal.epoch. + * Setter for public.withdrawal.epoch. */ public void setEpoch(Integer value) { set(3, value); } /** - * Getter for preprod.withdrawal.epoch. + * Getter for public.withdrawal.epoch. */ public Integer getEpoch() { return (Integer) get(3); } /** - * Setter for preprod.withdrawal.slot. + * Setter for public.withdrawal.slot. */ public void setSlot(Long value) { set(4, value); } /** - * Getter for preprod.withdrawal.slot. + * Getter for public.withdrawal.slot. */ public Long getSlot() { return (Long) get(4); } /** - * Setter for preprod.withdrawal.block. + * Setter for public.withdrawal.block. */ public void setBlock(Long value) { set(5, value); } /** - * Getter for preprod.withdrawal.block. + * Getter for public.withdrawal.block. */ public Long getBlock() { return (Long) get(5); } /** - * Setter for preprod.withdrawal.block_time. + * Setter for public.withdrawal.block_time. */ public void setBlockTime(Long value) { set(6, value); } /** - * Getter for preprod.withdrawal.block_time. + * Getter for public.withdrawal.block_time. */ public Long getBlockTime() { return (Long) get(6); } /** - * Setter for preprod.withdrawal.update_datetime. + * Setter for public.withdrawal.update_datetime. */ public void setUpdateDatetime(LocalDateTime value) { set(7, value); } /** - * Getter for preprod.withdrawal.update_datetime. + * Getter for public.withdrawal.update_datetime. */ public LocalDateTime getUpdateDatetime() { return (LocalDateTime) get(7); diff --git a/api/src/main/resources/config/application-online.yaml b/api/src/main/resources/config/application-online.yaml index 45147a0767..69554371d1 100644 --- a/api/src/main/resources/config/application-online.yaml +++ b/api/src/main/resources/config/application-online.yaml @@ -9,7 +9,7 @@ spring: datasource: username: ${DB_USER:rosetta_db_admin} password: ${DB_SECRET:weakpwd#123_d} - url: jdbc:postgresql://${DB_HOST:localhost}:${DB_PORT:5433}/${DB_NAME:test}?currentSchema=${DB_SCHEMA:preprod} + url: jdbc:postgresql://${DB_HOST:localhost}:${DB_PORT:5433}/${DB_NAME:test}?currentSchema=${DB_SCHEMA:public} hikari: poolName: "CardanoRosettaJavaDBPool" diff --git a/api/src/main/resources/config/application-staging.yaml b/api/src/main/resources/config/application-staging.yaml index 4801819bc0..0149a288df 100644 --- a/api/src/main/resources/config/application-staging.yaml +++ b/api/src/main/resources/config/application-staging.yaml @@ -5,7 +5,7 @@ spring: datasource: username: rosetta_db_service_user password: weakerpwd#123_d - url: jdbc:postgresql://172.16.1.217:5432/rosetta?currentSchema=${DB_SCHEMA:preprod} + url: jdbc:postgresql://172.16.1.217:5432/rosetta?currentSchema=${DB_SCHEMA:public} jpa: properties: hibernate: diff --git a/api/src/test/java/org/cardanofoundation/rosetta/api/construction/service/MetadataApiTest.java b/api/src/test/java/org/cardanofoundation/rosetta/api/construction/service/MetadataApiTest.java index b907decd0c..c030ac752e 100644 --- a/api/src/test/java/org/cardanofoundation/rosetta/api/construction/service/MetadataApiTest.java +++ b/api/src/test/java/org/cardanofoundation/rosetta/api/construction/service/MetadataApiTest.java @@ -43,7 +43,7 @@ void combineWithMetadataTest() throws IOException { assertEquals(ADA, constructionMetadataResponse.getSuggestedFee().getFirst().getCurrency().getSymbol()); assertEquals(ADA_DECIMALS, constructionMetadataResponse.getSuggestedFee().getFirst().getCurrency().getDecimals()); - assertEquals(BigDecimal.valueOf(695), constructionMetadataResponse.getMetadata().getTtl()); + assertEquals(BigDecimal.valueOf(115), constructionMetadataResponse.getMetadata().getTtl()); assertEquals("4310", constructionMetadataResponse.getMetadata().getProtocolParameters().getCoinsPerUtxoSize()); assertEquals("2000000", constructionMetadataResponse.getMetadata().getProtocolParameters().getKeyDeposit()); assertEquals("500000000", constructionMetadataResponse.getMetadata().getProtocolParameters().getPoolDeposit()); diff --git a/config/node/devkit/shelley-genesis.json b/config/node/devkit/shelley-genesis.json index 83f739a580..5e918f2550 100644 --- a/config/node/devkit/shelley-genesis.json +++ b/config/node/devkit/shelley-genesis.json @@ -64,7 +64,7 @@ "relays" : [ ], "rewardAccount" : { "credential" : { - "key hash" : "11a14edf73b08a0a27cb98b2c57eb37c780df18fcfcf6785ed5df84a" + "keyHash" : "11a14edf73b08a0a27cb98b2c57eb37c780df18fcfcf6785ed5df84a" }, "network" : "Testnet" }, diff --git a/docker-compose-offline.yaml b/docker-compose-offline.yaml index 95cde81aed..4338cb7cb9 100644 --- a/docker-compose-offline.yaml +++ b/docker-compose-offline.yaml @@ -1,4 +1,3 @@ -version: '3.8' include: - docker-compose-api.yaml diff --git a/docker/.env.dockerfile b/docker/.env.dockerfile deleted file mode 100644 index 8451e2430b..0000000000 --- a/docker/.env.dockerfile +++ /dev/null @@ -1,80 +0,0 @@ -# In offline mode there will be no synchronization with the network -# and the following components will be disabled: Node, Submit-api, Mithril, Yaci Indexer -# Set to offline for offline mode -# Set to online for online mode -API_SPRING_PROFILES_ACTIVE=online - -## Main variables -LOG=ERROR -NETWORK=mainnet -# mainnet, preprod, preview, devkit -PROTOCOL_MAGIC=764824073 -# mainnet 764824073, preprod 1, preview 2, devkit 42 - -# Node synchronization -SYNC=true -VERIFICATION=true - -# Mithril snapshots -MITHRIL_SYNC=true -SNAPSHOT_DIGEST=latest -# if not set standard values will be used -AGGREGATOR_ENDPOINT= -# if not set standard values will be used -GENESIS_VERIFICATION_KEY= -# if not set standard values will be used -ANCILLARY_VERIFICATION_KEY= - -## Postgres variables -DB_NAME=rosetta-java -DB_USER=rosetta_db_admin -DB_SECRET=weakpwd#123_d -DB_HOST=localhost -DB_PORT=5432 - -## Cardano node variables -CARDANO_NODE_HOST=localhost -CARDANO_NODE_PORT=3001 -CARDANO_NODE_VERSION=10.5.3 -CARDANO_NODE_SUBMIT_HOST=localhost -NODE_SUBMIT_API_PORT=8090 -CARDANO_NODE_SOCKET_PATH=/node/node.socket -## Api env -API_PORT=8082 - -ROSETTA_VERSION=1.4.13 -TOPOLOGY_FILEPATH=/config/topology.json -GENESIS_SHELLEY_PATH=/config/shelley-genesis.json -GENESIS_BYRON_PATH=/config/byron-genesis.json -GENESIS_ALONZO_PATH=/config/alonzo-genesis.json -GENESIS_CONWAY_PATH=/config/conway-genesis.json -PRINT_EXCEPTION=true - -## Yaci Indexer env -YACI_SPRING_PROFILES=postgres,n2c-socket -REMOVE_SPENT_UTXOS=true -REMOVE_SPENT_UTXOS_LAST_BLOCKS_GRACE_COUNT=129600 -BLOCK_TRANSACTION_API_TIMEOUT_SECS=5 -REMOVE_SPENT_UTXOS_BATCH_SIZE=3000 - -# database profiles: h2, h2-testdata, postgres -MEMPOOL_ENABLED=false -# Haven't implemented yet -INITIAL_BALANCE_CALCULATION_BLOCK=0 - -YACI_HTTP_BASE_URL=http://localhost:9095/api/v1 -YACI_INDEXER_PORT=9095 -HTTP_CONNECT_TIMEOUT_SECONDS=5 -HTTP_REQUEST_TIMEOUT_SECONDS=15 - -## Rosetta API to turn off or on DB show SQL for query debugging -API_DB_SHOW_SQL=false - -# Common DB settings for Rosetta API Connection Pool -API_DB_POOL_MAX_LIFETIME_MS=2000000 -API_DB_POOL_CONNECTION_TIMEOUT_MS=100000 -API_DB_KEEP_ALIVE_MS=60000 -API_DB_LEAK_CONNECTIONS_WARNING_MS=60000 -API_DB_MONITOR_PERFORMANCE=false - -SYNC_GRACE_SLOTS_COUNT=100 \ No newline at end of file diff --git a/docker/Dockerfile b/docker/Dockerfile deleted file mode 100644 index d8758f30e4..0000000000 --- a/docker/Dockerfile +++ /dev/null @@ -1,284 +0,0 @@ -FROM ubuntu:24.04 AS cardano-builder - -SHELL ["/bin/bash", "-c"] - -WORKDIR /root/src - -# Install dependencies -RUN apt update --fix-missing \ - && apt install -y --no-install-recommends \ - automake build-essential pkg-config libffi-dev libgmp-dev libssl-dev libncurses-dev libsystemd-dev zlib1g-dev make \ - g++ tmux git jq wget libncursesw5-dev libtool autoconf liblmdb-dev curl ca-certificates pkg-config \ - && apt-get clean - -WORKDIR /root/src - -# Install ghcup -ENV BOOTSTRAP_HASKELL_NONINTERACTIVE=1 -RUN bash -c "curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh" - -ENV PATH=/root/.local/bin:/root/.ghcup/bin:/root/.cabal/bin:${PATH} - -ARG BLST_VERSION="0.3.14" -ARG LIBSODIUM_VERSION="dbb48cc" -ARG SECP256K1_VERSION="ac83be33" -ARG LMDB_VERSION="ce20108" - -ARG CABAL_VERSION=${CABAL_VERSION:-3.12.1.0} -ARG GHC_VERSION=${GHC_VERSION:-9.6.7} - -# Cardano node version -ARG CARDANO_NODE_VERSION=${CARDANO_NODE_VERSION:-10.5.3} - -# Clone config fork reposotory -ARG CONFIG_FORK_REPO="VladislavKudrin/gnu-config-fork" -ARG CONFIG_FORK_BRANCH="master" - -# Mithril version -ARG MITHRIL_VERSION=${MITHRIL_VERSION:-2537.0} - -RUN bash -c "ghcup install cabal ${CABAL_VERSION}" -RUN bash -c "ghcup set cabal ${CABAL_VERSION}" - -RUN bash -c "ghcup install ghc ${GHC_VERSION}" -RUN bash -c "ghcup set ghc ${GHC_VERSION}" - -# Install mithril -RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y \ - && export PATH="$HOME/.cargo/bin:$PATH" \ - && apt update --fix-missing \ - && apt install -y --no-install-recommends \ - build-essential m4 libssl-dev docker.io jq git \ - && rustup update stable \ - && apt-get clean - -RUN git clone https://github.com/input-output-hk/mithril.git \ - && export PATH="$HOME/.cargo/bin:$PATH" \ - && cd mithril \ - && git checkout $MITHRIL_VERSION \ - && cd mithril-client-cli \ - && make build \ - && mkdir -p /root/.local/bin \ - && cp mithril-client /root/.local/bin/ - -WORKDIR /usr/local/src - -# Install sodium -RUN git clone --branch master https://github.com/IntersectMBO/libsodium.git \ - && cd libsodium \ - && git checkout ${LIBSODIUM_VERSION} \ - && ./autogen.sh -b \ - && curl -sSL --fail -o build-aux/config.guess \ - "https://raw.githubusercontent.com/${CONFIG_FORK_REPO}/${CONFIG_FORK_BRANCH}/config.guess" \ - && chmod +x build-aux/config.guess \ - && curl -sSL --fail -o build-aux/config.sub \ - "https://raw.githubusercontent.com/${CONFIG_FORK_REPO}/${CONFIG_FORK_BRANCH}/config.sub" \ - && chmod +x build-aux/config.sub \ - && ./configure \ - && make \ - && make check \ - && make install - -# Install secp256k1 -RUN git clone --branch master https://github.com/bitcoin-core/secp256k1.git \ - && cd secp256k1 \ - && git checkout ${SECP256K1_VERSION} \ - && ./autogen.sh \ - && ./configure --prefix=/usr --enable-module-schnorrsig --enable-experimental \ - && make \ - && make check \ - && make install - -# Install blst -RUN git clone --branch master https://github.com/supranational/blst.git \ - && cd blst \ - && git checkout v${BLST_VERSION} \ - && ./build.sh \ - && echo "prefix=/usr/local" >> libblst.pc \ - && echo "exec_prefix=\${prefix}" >> libblst.pc \ - && echo "libdir=\${exec_prefix}/lib" >> libblst.pc \ - && echo "includedir=\${prefix}/include" >> libblst.pc \ - && echo "" >> libblst.pc \ - && echo "Name: libblst" >> libblst.pc \ - && echo "Description: Multilingual BLS12-381 signature library" >> libblst.pc \ - && echo "URL: https://github.com/supranational/blst" >> libblst.pc \ - && echo "Version: ${BLST_VERSION#v}" >> libblst.pc \ - && echo "Cflags: -I\${includedir}" >> libblst.pc \ - && echo "Libs: -L\${libdir} -lblst" >> libblst.pc \ - && cp libblst.pc /usr/local/lib/pkgconfig/ \ - && cp bindings/blst_aux.h bindings/blst.h bindings/blst.hpp /usr/local/include/ \ - && cp libblst.a /usr/local/lib \ - && bash -c "chmod u=rw,go=r /usr/local/{lib/{libblst.a,pkgconfig/libblst.pc},include/{blst.{h,hpp},blst_aux.h}}" - -# Install lmdb -RUN git clone --branch mdb.master https://github.com/LMDB/lmdb.git \ - && cd lmdb \ - && git checkout ${LMDB_VERSION} \ - && cd libraries/liblmdb \ - && make \ - && make install - -# Install cardano-node -RUN git clone https://github.com/intersectmbo/cardano-node.git \ - && cd cardano-node \ - && git checkout tags/${CARDANO_NODE_VERSION} \ - && echo "with-compiler: ghc-${GHC_VERSION}" >> cabal.project.local \ - && echo "" >> cabal.project.local \ - && echo "package cardano-crypto-praos" >> cabal.project.local \ - && echo " flags: -external-libsodium-vrf" >> cabal.project.local \ - && echo "" >> cabal.project.local \ - && echo "package trace-dispatcher" >> cabal.project.local \ - && echo " ghc-options: -Wwarn" >> cabal.project.local \ - && echo "" >> cabal.project.local \ - && echo "package HsOpenSSL" >> cabal.project.local \ - && echo " flags: -homebrew-openssl" >> cabal.project.local \ - && echo "" >> cabal.project.local \ - && mkdir -p /usr/local/opt/openssl \ - && ln -s /opt/homebrew/opt/openssl@3/lib /usr/local/opt/openssl/lib \ - && ln -s /opt/homebrew/opt/openssl@3/include /usr/local/opt/openssl/include - -WORKDIR /usr/local/src/cardano-node - -RUN bash -c "cabal update" -RUN bash -c "cabal build all" -RUN bash -c "cabal build cardano-cli" -RUN bash -c "cabal build cardano-submit-api" - -RUN mkdir -p /root/.local/bin \ - && cp -p "$(./scripts/bin-path.sh cardano-node)" /root/.local/bin/ \ - && cp -p "$(./scripts/bin-path.sh cardano-cli)" /root/.local/bin/ \ - && cp -p "$(./scripts/bin-path.sh cardano-submit-api)" /root/.local/bin/ - - -# Compile java applications -FROM ubuntu:24.04 AS java-builder - -# Install dependencies -RUN apt update --fix-missing \ - && apt install -y --no-install-recommends \ - maven curl \ - && apt-get clean - -# Download and setup JDK 24.0.1 -RUN mkdir -p /opt/java \ - && curl -L https://download.java.net/java/GA/jdk24.0.1/24a58e0e276943138bf3e963e6291ac2/9/GPL/openjdk-24.0.1_linux-x64_bin.tar.gz -o /opt/jdk.tar.gz \ - && tar -xzf /opt/jdk.tar.gz -C /opt/java \ - && rm /opt/jdk.tar.gz - -# Set JAVA_HOME and update PATH -ENV JAVA_HOME=/opt/java/jdk-24.0.1 -ENV PATH="${JAVA_HOME}/bin:${PATH}" - -WORKDIR /root/app - -COPY ./pom.xml /root/app/pom.xml - -COPY ./api /root/app/api -COPY ./yaci-indexer /root/app/yaci-indexer -COPY ./test-data-generator /root/app/test-data-generator -COPY ./.git /root/app/.git - -RUN --mount=type=cache,target=/root/.m2 mvn -U clean package -DskipTests - -# Build postgres -FROM ubuntu:24.04 AS postgres-builder - -RUN apt update && apt install -y \ - build-essential \ - libreadline-dev \ - zlib1g-dev \ - flex \ - bison \ - wget \ - git \ - ca-certificates \ - sudo \ - locales \ - && sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen \ - && locale-gen \ - && update-locale LANG=en_US.UTF-8 \ - && apt clean - -ENV PG_VERSION_TAG=REL_14_11 - -WORKDIR /usr/src - -RUN git clone --branch $PG_VERSION_TAG https://github.com/postgres/postgres.git \ - && cd postgres \ - && ./configure --prefix=/usr/local/pgsql \ - && make -j$(nproc) \ - && make install - - -# Main -FROM ubuntu:24.04 - -RUN apt update && apt install -y --no-install-recommends jq bc sudo curl wget ca-certificates \ - libreadline-dev \ - sudo \ - locales \ - && sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen \ - && locale-gen \ - && update-locale LANG=en_US.UTF-8 \ - && apt clean - -WORKDIR / - -# Copy cardano node -COPY --from=cardano-builder /usr/local/lib /usr/local/lib -COPY --from=cardano-builder /root/.local/bin/cardano-* /usr/local/bin/ -COPY --from=cardano-builder /root/.local/bin/mithril-client /usr/local/bin/ -COPY --from=cardano-builder /usr/local/src/cardano-node/cardano-submit-api/config/tx-submit-mainnet-config.yaml /cardano-submit-api-config/cardano-submit-api.yaml -ENV NODE_DATA="/node/db" -RUN mkdir -p $NODE_DATA - -# Link libsodium library -COPY --from=cardano-builder --chown=root:root /usr/local/lib/libsodium.so /usr/local/lib -RUN ln -snf /usr/local/lib/libsodium.so /usr/local/lib/libsodium.so.23 \ - && ln -snf /usr/local/lib/libsodium.so /usr/local/lib/libsodium.so.23.3.0 -RUN ldconfig - -# Link secp256k1 library -COPY --from=cardano-builder --chown=root:root /usr/local/src/secp256k1/.libs/libsecp256k1.so /usr/local/lib -RUN ln -snf /usr/local/lib/libsecp256k1.so /usr/local/lib/libsecp256k1.so.0 \ - && ln -snf /usr/local/lib/libsecp256k1.so /usr/local/lib/libsecp256k1.so.1 \ - && ln -snf /usr/local/lib/libsecp256k1.so /usr/local/lib/libsecp256k1.so.1.0.1 -RUN ldconfig - -# Link lmdb library -COPY --from=cardano-builder /usr/local/lib/liblmdb.so /usr/local/lib/ -RUN ln -snf /usr/local/lib/liblmdb.so /usr/local/lib/liblmdb.so.0 -RUN ldconfig - -ENV LD_LIBRARY_PATH=/usr/local/lib -ENV PATH=/usr/local/lib/:$PATH - -COPY ./config/node/ /networks -RUN mkdir /config - -# Copy jars -COPY --from=java-builder /root/app/api/target/*.jar /api/app.jar -COPY --from=java-builder /root/app/yaci-indexer/target/*.jar /yaci-indexer/app.jar -# Copy JDK -COPY --from=java-builder /opt/java/jdk-24.0.1 /opt/java/jdk-24.0.1 -ENV JAVA_HOME=/opt/java/jdk-24.0.1 -ENV PATH="${JAVA_HOME}/bin:${PATH}" - -# Copy and configure postgres -COPY --from=postgres-builder /usr/local/pgsql /usr/local/pgsql -ENV PG_BIN="/usr/local/pgsql/bin" -ENV PG_DATA="/var/lib/postgresql/data" -ENV PATH="$PG_BIN:$PATH" -RUN mkdir -p $PG_DATA -RUN useradd -m -U -s /bin/bash postgres - -# Run -RUN mkdir /logs - -COPY ./docker/entrypoint.sh /sbin/entrypoint.sh - -RUN chmod +x /sbin/entrypoint.sh - -EXPOSE 8082 - -ENTRYPOINT ["/sbin/entrypoint.sh"] diff --git a/docker/dockerfiles/postgres/Dockerfile b/docker/dockerfiles/postgres/Dockerfile index 50465529cb..8a3d0dfcef 100644 --- a/docker/dockerfiles/postgres/Dockerfile +++ b/docker/dockerfiles/postgres/Dockerfile @@ -11,12 +11,14 @@ RUN apt update && apt install -y \ ca-certificates \ sudo \ locales \ + libicu-dev \ + pkg-config \ && sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen \ && locale-gen \ && update-locale LANG=en_US.UTF-8 \ && apt clean -ENV PG_VERSION_TAG=REL_14_11 +ENV PG_VERSION_TAG=REL_18_0 ENV PG_DATA="/var/lib/postgresql/data" ENV PG_BIN="/usr/local/pgsql/bin" ENV PATH="$PG_BIN:$PATH" diff --git a/docker/dockerfiles/postgres/entrypoint.sh b/docker/dockerfiles/postgres/entrypoint.sh index 05b2a64f7c..62cf716aa2 100644 --- a/docker/dockerfiles/postgres/entrypoint.sh +++ b/docker/dockerfiles/postgres/entrypoint.sh @@ -103,7 +103,7 @@ start_postgres() { } create_database_and_user() { - export DB_SCHEMA="$NETWORK" + export DB_SCHEMA="public" flag=true while [ $(sudo -u postgres "$PG_BIN/psql" -p "$DB_PORT" -U postgres -Atc "SELECT pg_is_in_recovery()";) == "t" ]; do @@ -125,6 +125,12 @@ create_database_and_user() { sudo -u postgres "$PG_BIN/psql" -U postgres -p "$DB_PORT" -c "GRANT ALL PRIVILEGES ON DATABASE \"$DB_NAME\" to \"$DB_USER\";" > /dev/null fi + # Grant schema privileges (required for PostgreSQL 15+) + echo "Granting schema privileges..." + sudo -u postgres "$PG_BIN/psql" -U postgres -p "$DB_PORT" -d "$DB_NAME" -c "GRANT ALL ON SCHEMA public TO \"$DB_USER\";" > /dev/null + sudo -u postgres "$PG_BIN/psql" -U postgres -p "$DB_PORT" -d "$DB_NAME" -c "GRANT ALL ON ALL TABLES IN SCHEMA public TO \"$DB_USER\";" > /dev/null + sudo -u postgres "$PG_BIN/psql" -U postgres -p "$DB_PORT" -d "$DB_NAME" -c "ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT ALL ON TABLES TO \"$DB_USER\";" > /dev/null + echo "User configured" } diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh deleted file mode 100644 index 11f5fa3ab4..0000000000 --- a/docker/entrypoint.sh +++ /dev/null @@ -1,324 +0,0 @@ -#!/bin/bash - -function clean_up() { - # Killing all processes before exiting - kill -2 "$CARDANO_NODE_PID" "$API_PID" "$MITHRIL_PID" "$CARDANO_SUBMIT_PID" "$YACI_STORE_PID" - wait $CARDANO_NODE_PID - exit -} - -trap clean_up SIGHUP SIGINT SIGTERM - -# NODE FUNCTIONS -show_progress() { - message="$1"; percent="$2" - done=$(bc <<< "scale=0; 40 * ${percent%.*} / 100" ) - todo=$(bc <<< "scale=0; 40 - $done" ) - done_sub_bar=$(printf "%${done}s" | tr " " "#") - todo_sub_bar=$(printf "%${todo}s" | tr " " "-") - echo -ne "$message [${done_sub_bar}${todo_sub_bar}] ${percent}%"\\r -} - -node_verification() { - echo "Stating Cardano node verification..." - - REGEX_VALIDATED="^.?\[.*\].?\[.*\].?(Validating|Validated) chunk no\. ([0-9]+) out of ([0-9]+)\. Progress: ([0-9]+\.[0-9][0-9])\%.*$" - REGEX_REPLAYED="^.?\[.*\].?\[.*\].?Replayed block: slot ([0-9]+) out of ([0-9]+)\. Progress: ([0-9]+\.[0-9][0-9])\%.*$" - REGEX_PUSHING="^.?\[.*\].?\[.*\].?Pushing ledger state for block ([a-f0-9]+) at slot ([0-9]+)\. Progress: ([0-9]+\.[0-9][0-9])\%.*$" - REGEX_STARTED="^.?\[.*\].?\[.*\].?(Started .*)$" - - while [ ! -S "$CARDANO_NODE_SOCKET_PATH" ]; do - new_line=$(tail -n 1 /logs/node.log) - if [ "${new_line}" == "${line}" ]; then continue; fi - line=$new_line - if [[ "$line" =~ $REGEX_VALIDATED ]]; then - show_progress "Node verification: Chunk ${BASH_REMATCH[2]}/${BASH_REMATCH[3]}" ${BASH_REMATCH[4]} - elif [[ "$line" =~ $REGEX_REPLAYED ]]; then - show_progress "Replayed block: Block ${BASH_REMATCH[1]}/${BASH_REMATCH[2]}" ${BASH_REMATCH[3]} - elif [[ "$line" =~ $REGEX_PUSHING ]]; then - show_progress "Pushing ledger state: Slot ${BASH_REMATCH[2]}" ${BASH_REMATCH[3]} - elif [[ "$line" =~ $REGEX_STARTED ]]; then - echo -e "${BASH_REMATCH[1]}..." - fi - sleep 1 - done - echo "Node verification: DONE" -} - -node_synchronization() { - echo -e "Starting Cardano node synchronization..." - epoch_length=$(jq -r .epochLength $GENESIS_SHELLEY_PATH) - slot_length=$(jq -r .slotLength $GENESIS_SHELLEY_PATH) - byron_slot_length=$(( $(jq -r .blockVersionData.slotDuration $GENESIS_BYRON_PATH) / 1000 )) - byron_epoch_length=$(( $(jq -r .protocolConsts.k $GENESIS_BYRON_PATH) * 10 )) - byron_start=$(jq -r .startTime $GENESIS_BYRON_PATH) - byron_end=$((byron_start + $HARDFORK_EPOCH * byron_epoch_length * byron_slot_length)) - byron_slots=$(($HARDFORK_EPOCH * byron_epoch_length)) - now=$(date +'%s') - expected_slot=$((byron_slots + (now - byron_end) / slot_length)) - - sync_progress=0 - while (( ${sync_progress%.*} < 100 )); do - current_status=$(cardano-cli query tip $NETWORK_STR) - current_slot=$(echo $current_status | jq -r '.slot') - sync_progress=$(echo $current_status | jq -r '.syncProgress') - - show_progress "Node synchronization: Slot $current_slot/$expected_slot" $sync_progress - sleep 1 - done - echo "Node synchronization: DONE" -} - -# POSTGRES FUNCTIONS -database_initialization() { - echo "postgres" > /tmp/password - echo "*:*:*:postgres:postgres" > /home/postgres/.pgpass - - chmod 600 /home/postgres/.pgpass - chown postgres:postgres /home/postgres/.pgpass - - if [ -z "$(ls -A "$PG_DATA")" ]; then - sudo -u postgres "$PG_BIN/initdb" --pgdata="$PG_DATA" --auth=md5 --auth-local=md5 --auth-host=md5 --username=postgres --pwfile=/tmp/password - else - echo "Database already initialized, skipping initdb." - fi - - rm -f /tmp/password -} - -configure_postgres() { - local config_file="$PG_DATA/postgresql.conf" - - # List of parameter names and their corresponding environment variables - declare -A param_vars=( - ["max_connections"]="DB_POSTGRES_MAX_CONNECTIONS" - ["shared_buffers"]="DB_POSTGRES_SHARED_BUFFERS" - ["effective_cache_size"]="DB_POSTGRES_EFFECTIVE_CACHE_SIZE" - ["work_mem"]="DB_POSTGRES_WORK_MEM" - ["maintenance_work_mem"]="DB_POSTGRES_MAINTENANCE_WORK_MEM" - ["wal_buffers"]="DB_POSTGRES_WAL_BUFFERS" - ["checkpoint_completion_target"]="DB_POSTGRES_CHECKPOINT_COMPLETION_TARGET" - ["random_page_cost"]="DB_POSTGRES_RANDOM_PAGE_COST" - ["effective_io_concurrency"]="DB_POSTGRES_EFFECTIVE_IO_CONCURRENCY" - ["parallel_tuple_cost"]="DB_POSTGRES_PARALLEL_TUPLE_COST" - ["parallel_setup_cost"]="DB_POSTGRES_PARALLEL_SETUP_COST" - ["max_parallel_workers_per_gather"]="DB_POSTGRES_MAX_PARALLEL_WORKERS_PER_GATHER" - ["max_parallel_workers"]="DB_POSTGRES_MAX_PARALLEL_WORKERS" - ["seq_page_cost"]="DB_POSTGRES_SEQ_PAGE_COST" - ["jit"]="DB_POSTGRES_JIT" - ["bgwriter_lru_maxpages"]="DB_POSTGRES_BGWRITER_LRU_MAXPAGES" - ["bgwriter_delay"]="DB_POSTGRES_BGWRITER_DELAY" - ) - - # Check for missing required environment variables - local missing_vars=() - for param in "${!param_vars[@]}"; do - local env_var="${param_vars[$param]}" - if [ -z "${!env_var}" ]; then - missing_vars+=("$env_var") - fi - done - - # If there are missing variables, print an error and exit - if [ ${#missing_vars[@]} -gt 0 ]; then - echo "Error: The following required environment variables are missing or empty:" - for var in "${missing_vars[@]}"; do - echo " - $var" - done - echo "" - echo "Most likely, you are missing a hardware profile in your environment configuration." - echo "Make sure to pass an additional --env-file parameter when running the container." - echo "" - echo "Example Docker run command for an 'entry_level' hardware profile:" - echo "docker run --env-file ./docker/.env.dockerfile --env-file ./docker/.env.docker-profile-mid-level -p 8082:8082 --shm-size=4g -d cardanofoundation/cardano-rosetta-java:latest" - echo "" - exit 1 - fi - - # Remove all commented-out lines for the parameters we are about to update - for param in "${!param_vars[@]}"; do - sed -i "/^#$param /d" "$config_file" - done - - # Update or add parameters - for param in "${!param_vars[@]}"; do - local env_var="${param_vars[$param]}" - local value="${!env_var}" - - # Try to replace existing parameter - sed -i "s/^$param = .*/$param = $value/" "$config_file" - - # Parameter not found, append it - if ! grep -q "^$param =" "$config_file"; then - echo "$param = $value" >> "$config_file" - fi - done - - if ! grep -q "^host all all 0.0.0.0/0 md5\$" "$PG_DATA/pg_hba.conf"; then - echo "host all all 0.0.0.0/0 md5" >> "$PG_DATA/pg_hba.conf" - fi - - if ! grep -q "^listen_addresses *= *'\*'\$" "$PG_DATA/postgresql.conf"; then - echo "listen_addresses='*'" >> "$PG_DATA/postgresql.conf" - fi - - echo "PostgreSQL configuration updated successfully!" -} - -start_postgres() { - sudo -u postgres "$PG_BIN/postgres" -D "$PG_DATA" -p "$DB_PORT" -c config_file="$PG_DATA/postgresql.conf" > /logs/postgres.log 2>&1 & - POSTGRES_PID=$! - - until "$PG_BIN/pg_isready" -U postgres > /dev/null; do sleep 1; done -} - -create_database_and_user() { - export DB_SCHEMA="$NETWORK" - - flag=true - while [ $(sudo -u postgres "$PG_BIN/psql" -U postgres -Atc "SELECT pg_is_in_recovery()";) == "t" ]; do - if $flag ; then - echo "Waiting for database recovery..." - flag=false - fi - sleep 1 - done - - if [[ -z $(sudo -u postgres "$PG_BIN/psql" -U postgres -Atc "SELECT 1 FROM pg_catalog.pg_user WHERE usename = '$DB_USER'";) ]]; then - echo "Creating database..." - sudo -u postgres "$PG_BIN/psql" -U postgres -c "CREATE ROLE \"$DB_USER\" with LOGIN CREATEDB PASSWORD '$DB_SECRET';" > /dev/null - fi - - if [[ -z $(sudo -u postgres "$PG_BIN/psql" -U postgres -Atc "SELECT 1 FROM pg_catalog.pg_database WHERE datname = '$DB_NAME'";) ]]; then - echo "Creating user..." - sudo -u postgres "$PG_BIN/psql" -U postgres -c "CREATE DATABASE \"$DB_NAME\";" >/dev/null - sudo -u postgres "$PG_BIN/psql" -U postgres -c "GRANT ALL PRIVILEGES ON DATABASE \"$DB_NAME\" to \"$DB_USER\";" > /dev/null - fi - - echo "User configured" -} - -# API FUNCTIONS -get_current_index() { - json="{\"network_identifier\":{\"blockchain\":\"cardano\",\"network\":\"${NETWORK}\"},\"metadata\":{}}" - response=$(curl -s -X POST -H "Content-Type: application/json" -H "Content-length: 1000" -H "Host: localhost.com" --data "$json" "localhost:{$API_PORT}/network/status") - current_index=$(echo $response | jq -r '.current_block_identifier.index') - if [[ -z "$current_index" || "$current_index" == "null" ]]; then current_index=0; fi -} - -# MITHRIL FUNCTIONS -download_mithril_snapshot() { - echo "Downloading Mithril Snapshot..." - export CARDANO_NETWORK=$NETWORK - case $NETWORK in - mainnet) - AGGREGATOR_ENDPOINT=${AGGREGATOR_ENDPOINT:-https://aggregator.release-mainnet.api.mithril.network/aggregator} - GENESIS_VERIFICATION_KEY=${GENESIS_VERIFICATION_KEY:-$(wget -q -O - https://raw.githubusercontent.com/input-output-hk/mithril/main/mithril-infra/configuration/release-mainnet/genesis.vkey)} - ANCILLARY_VERIFICATION_KEY=${ANCILLARY_VERIFICATION_KEY:-$(wget -q -O - https://raw.githubusercontent.com/input-output-hk/mithril/main/mithril-infra/configuration/release-mainnet/ancillary.vkey)} - ;; - preprod) - AGGREGATOR_ENDPOINT=${AGGREGATOR_ENDPOINT:-https://aggregator.release-preprod.api.mithril.network/aggregator} - GENESIS_VERIFICATION_KEY=${GENESIS_VERIFICATION_KEY:-$(wget -q -O - https://raw.githubusercontent.com/input-output-hk/mithril/main/mithril-infra/configuration/release-preprod/genesis.vkey)} - ANCILLARY_VERIFICATION_KEY=${ANCILLARY_VERIFICATION_KEY:-$(wget -q -O - https://raw.githubusercontent.com/input-output-hk/mithril/main/mithril-infra/configuration/release-preprod/ancillary.vkey)} - ;; - preview) - AGGREGATOR_ENDPOINT=${AGGREGATOR_ENDPOINT:-https://aggregator.pre-release-preview.api.mithril.network/aggregator} - GENESIS_VERIFICATION_KEY=${GENESIS_VERIFICATION_KEY:-$(wget -q -O - https://raw.githubusercontent.com/input-output-hk/mithril/main/mithril-infra/configuration/pre-release-preview/genesis.vkey)} - ANCILLARY_VERIFICATION_KEY=${ANCILLARY_VERIFICATION_KEY:-$(wget -q -O - https://raw.githubusercontent.com/input-output-hk/mithril/main/mithril-infra/configuration/pre-release-testing-preview/ancillary.vkey)} - ;; - esac - echo "Listing content of /node dir:" - ls -la /node - mithril-client cardano-db download latest --include-ancillary --ancillary-verification-key $ANCILLARY_VERIFICATION_KEY --download-dir /node > >(tee $logf) & - MITHRIL_PID=$! - wait $MITHRIL_PID - echo "Done downloading Mithril Snapshot" -} - -cp -r /networks/$NETWORK/* /config/ -rm -f $CARDANO_NODE_SOCKET_PATH -if [ "$API_SPRING_PROFILES_ACTIVE" == "offline" ]; then - echo "Starting in offline mode - No Database, Node, submit api or indexer will be started!" -else - echo "Network: $NETWORK" - if [ "$NETWORK" == "mainnet" ]; then - NETWORK_STR="--mainnet" - HARDFORK_EPOCH=208 - else - NETWORK_STR="--testnet-magic $PROTOCOL_MAGIC" - HARDFORK_EPOCH=1 - fi - - echo "Starting Cardano node..." - mkdir -p /node/db - - if [ "${MITHRIL_SYNC}" == "true" ]; then - if [ "$(ls -A /node/db)" ]; then - echo "Mithril Snapshot already exists - Skipping Download..." - else - download_mithril_snapshot - fi - fi - - mkdir -p "$(dirname "$CARDANO_NODE_SOCKET_PATH")" - sleep 1 - cardano-node run --socket-path "$CARDANO_NODE_SOCKET_PATH" --port $CARDANO_NODE_PORT --database-path /node/db --config /config/config.json --topology /config/topology.json > /logs/node.log & - CARDANO_NODE_PID=$! - sleep 2 - - if [ "${VERIFICATION}" == "true" ] || [ "${SYNC}" == "true" ] ; then - node_verification - fi - - if [ "${SYNC}" == "true" ] ; then - node_synchronization - fi - - echo "Starting Cardano submit api..." - cardano-submit-api --listen-address 0.0.0.0 --socket-path "$CARDANO_NODE_SOCKET_PATH" --port $NODE_SUBMIT_API_PORT $NETWORK_STR --config /cardano-submit-api-config/cardano-submit-api.yaml > /logs/submit-api.log & - CARDANO_SUBMIT_PID=$! - - echo "Initializing Database..." - chown -R postgres:postgres "$PG_DATA" - chmod -R 0700 "$PG_DATA" - database_initialization - - echo "Configuring the Database..." - configure_postgres - - echo "Starting Postgres..." - start_postgres - - echo "Creating database and user..." - create_database_and_user - - echo "Starting Yaci indexer..." - exec java --enable-preview -jar /yaci-indexer/app.jar > /logs/indexer.log & - YACI_STORE_PID=$! - -fi -echo "Starting Rosetta API..." -exec java --enable-preview -jar /api/app.jar > /logs/api.log & -API_PID=$! - -if [ "$API_SPRING_PROFILES_ACTIVE" == "online" ]; then - echo "Waiting Rosetta API initialization..." - sleep 5 - get_current_index - while (( ! $current_index > 0 )); do - get_current_index - sleep 2 - done -fi - -echo "DONE" - -if [ "$API_SPRING_PROFILES_ACTIVE" == "offline" ]; then - tail -f -n +1 /logs/*.log > >(tee $logf) & - tail_pid=$! - wait $API_PID -else - tail -f -n +1 /logs/*.log > >(tee $logf) & - tail_pid=$! - wait $CARDANO_NODE_PID -fi \ No newline at end of file diff --git a/docker/readme.md b/docker/readme.md deleted file mode 100644 index 40569fb616..0000000000 --- a/docker/readme.md +++ /dev/null @@ -1,105 +0,0 @@ -## Introduction - -Dockerfile contains cardano-node, Postgres, Cardano Rosetta API Java implementation - -Cardano-node is compiled inside the image from source. -The api and yaci-indexer modules are compiled inside the image from source. -Postgres is installed from the repository. - -Entrypoint file ``entrypoint.sh`` run all and creates the database and the postgres user. - -### 1. Build -``` -docker build -t {image_name} -f ./docker/Dockerfile . -``` -The build can take up to 1.5 hours. - -### 2. Run -```` -docker run --env-file ./docker/.env.dockerfile --env-file ./docker/.env.docker-profile-mid-level -p 8082:8082 --shm-size=4g -d {image_name}:latest -```` -You need to specify the path to the environment variables file and open the port. - -### 3. Changing project settings - -All application settings are located in the ``./docker/.env.dockerfile`` file. -You can specify network, ports, postgres user, etc. - -### 3.1 Adjusting hardware profile -Alternatively you can pass another hardware profile to the docker command for more complex setups with higher requirements -in terms of scalability / concurrent users count, a whole list of hardware profiles -and their description can be found here: https://github.com/cardano-foundation/cardano-rosetta-java/wiki/9.-Hardware-Profiles -`` -.env.docker-profile-entry-level -.env.docker-profile-mid-level -`` - -### 4. Changing build parameters -``` -docker build -t {image_name} --build-arg PG_VERSION=14 -f ./docker/Dockerfile . -``` -You can specify Cabal, GHC, Cardano node, and Postgres versions when building an image. - -The default values: -`` -CABAL_VERSION=3.12.1.0 -`` -`` -GHC_VERSION=9.6.7 -`` -`` -CARDANO_NODE_VERSION=10.5.3 -`` -`` -PG_VERSION=14 -`` - -### 5. Volume with Cardano node data -```` -docker run --env-file .\docker\.env.dockerfile --env-file ./docker/.env.docker-profile-mid-level -p 8082:8082 -v {custom_folder}:/node/db --shm-size=4g -d {image_name}:latest -```` -If you want to use already existing cardano data, you can mount the data volume to the ``/node/db`` folder inside the container to prevent loading during initialization. - -### 6. Volume with Postgres data -```` -docker run --env-file .\docker\.env.dockerfile --env-file ./docker/.env.docker-profile-mid-level -p 8082:8082 -v {custom_folder}:/var/lib/postgresql/data --shm-size=4g -d {image_name}:latest -```` - -You can mount a volume with Postgres node data to ``/var/lib/postgresql/data`` point to use already existed data. -If the mounted volume does not contain the database or empty, new database will be created there. - -### 7. Volume with custom network configurations -```` -docker run --env-file .\docker\.env.dockerfile --env-file ./docker/.env.docker-profile-mid-level -p 8082:8082 -v {custom_folder}:/networks --shm-size=4g -d {image_name}:latest -```` -The cardano node configuration jsons are stored in the ``config`` folder and copied into the image on build. -If you want to use a custom configuration without rebuilding the image, we can mount a volume with configs to ``/networks`` folder inside the container. - -### 8. Synchronization mode -```` -docker run -e SYNC=true --env-file .\docker\.env.dockerfile --env-file ./docker/.env.docker-profile-mid-level -p 8082:8082 --shm-size=4g -d {image_name}:latest -```` -The container can be started in synchronization mode. In this case, the container will verify chunks and synchronize all nodes when it is started and run ``Rosseta Api`` after that -To start it you need to change the ``SYNC`` variable in ``.env.dockerfile`` or by adding the ``-e SYNC=true`` key when starting the container. -Progress can be tracked in the container log. - -### 9. Logs location - -The logs can be viewed inside the container. -`` -Caradano node - /logs/node.log -`` -`` -Yaci indexer - /logs/indexer.log -`` -`` -Rosseta Api - /logs/api.log -`` -`` -Cardano Submit Api - /logs/submit-api.log -`` -`` -Yaci Store - /logs/yaci-store.log -`` - -After starting the container all logs are output to stdout \ No newline at end of file diff --git a/docs/docs/development/test-results/1.2.6/single-docker.md b/docs/docs/development/test-results/1.2.6/single-docker.md deleted file mode 100644 index de8473d966..0000000000 --- a/docs/docs/development/test-results/1.2.6/single-docker.md +++ /dev/null @@ -1,14 +0,0 @@ -- **Hardware Profile:** mid-level -- **Machine Specs:** 16 cores, 16 threads, 125GB RAM, 3.9TB NVMe, QEMU Virtual CPU v2.5+ - -**Maximum concurrency achieved per endpoint** - -| ID | Endpoint | Max Concurrency | p95 (ms) | p99 (ms) | -| --- | ---------------------- | --------------- | -------- | -------- | -| 1 | /network/status | 500 | 82ms | 103ms | -| 2 | /account/balance | 500 | 750ms | 902ms | -| 3 | /account/coins | 500 | 720ms | 883ms | -| 4 | /block | 200 | 726ms | 980ms | -| 5 | /block/transaction | 175 | 596ms | 733ms | -| 6 | /search/transactions | 175 | 74ms | 94ms | -| 7 | /construction/metadata | 500 | 72ms | 97ms | diff --git a/docs/docs/development/test-results/1.2.7/single-docker.md b/docs/docs/development/test-results/1.2.7/single-docker.md deleted file mode 100644 index 2536233f4b..0000000000 --- a/docs/docs/development/test-results/1.2.7/single-docker.md +++ /dev/null @@ -1,5 +0,0 @@ -- **Hardware Profile:** mid-level -- **Machine Specs:** 16 cores, 16 threads, 125GB RAM, 3.9TB NVMe, QEMU Virtual CPU v2.5+ - -**Maximum concurrency achieved per endpoint** -TBD diff --git a/docs/docs/development/test-results/1.2.9/single-docker.md b/docs/docs/development/test-results/1.2.9/single-docker.md deleted file mode 100644 index 2536233f4b..0000000000 --- a/docs/docs/development/test-results/1.2.9/single-docker.md +++ /dev/null @@ -1,5 +0,0 @@ -- **Hardware Profile:** mid-level -- **Machine Specs:** 16 cores, 16 threads, 125GB RAM, 3.9TB NVMe, QEMU Virtual CPU v2.5+ - -**Maximum concurrency achieved per endpoint** -TBD diff --git a/docs/docs/install-and-deploy/docker.md b/docs/docs/install-and-deploy/docker.md index 2f1d6c50dc..176d5c3612 100644 --- a/docs/docs/install-and-deploy/docker.md +++ b/docs/docs/install-and-deploy/docker.md @@ -1,12 +1,12 @@ --- sidebar_position: 1 -title: Getting Started with Docker -description: Guide to deploying Cardano Rosetta Java using Docker +title: Getting Started with Docker Compose +description: Guide to deploying Cardano Rosetta Java using Docker Compose --- -# Deploying with Docker +# Deploying with Docker Compose -This guide provides instructions for deploying Cardano Rosetta Java using Docker. +Starting from version 2.0.0, Docker Compose is the only supported deployment method. This guide provides instructions for deploying Cardano Rosetta Java using Docker Compose. ## Prerequisites @@ -17,13 +17,7 @@ Before you begin, ensure you have the following installed: - Java 24 - For integration tests: Node 14+ -## Deployment Options - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - - - +## Deployment ### Using Docker Compose @@ -85,170 +79,56 @@ To speed up the initial synchronization process, you can use [Mithril](https://m Mithril provides cryptographically certified blockchain snapshots for multiple Cardano networks (mainnet, preprod, preview) and is integrated directly into the Docker setup. This can reduce synchronization time from days to hours. ::: - - - -### Using Pre-built Docker Image (Deprecated) - -:::danger Deprecated Feature -⚠️ **The single Docker image deployment is deprecated and not recommended for production use.** - -This method bundles all components (cardano-node, indexer, API, and PostgreSQL) into a single container, which: -- Makes resource management difficult -- Complicates debugging and maintenance -- Prevents independent component scaling -- Is less reliable for production workloads - -**We strongly recommend using the Docker Compose deployment method instead**, which offers better modularity, resource management, and maintainability. -::: - -For every release, pre-built docker images are available on [DockerHub](https://hub.docker.com/orgs/cardanofoundation/repositories): - -```bash -docker run --name rosetta -v {CUSTOM_MOUNT_PATH}:/node \ - --env-file ./docker/.env.dockerfile \ - --env-file ./docker/.env.docker-profile-mid-level \ - -p 8082:8082 --shm-size=4g -d \ - cardanofoundation/cardano-rosetta-java:1.2.8 -``` - -#### Using the Submit API - -If you want to use the `cardano-submit-api`, you can additionally expose port `8090`: - -```bash -docker run --name rosetta -v {CUSTOM_MOUNT_PATH}:/node \ - --env-file ./docker/.env.dockerfile \ - --env-file ./docker/.env.docker-profile-mid-level \ - -p 8090:8090 -p 8082:8082 --shm-size=4g -d \ - cardanofoundation/cardano-rosetta-java:1.2.8 -``` - -:::tip -The `cardano-submit-api` can be used to submit raw CBOR transactions. -API documentation is available [here](https://input-output-hk.github.io/cardano-rest/submit-api/). -::: - - - - -### Building Docker Image from Source (Single Container) - -:::warning Deprecated Approach -This builds the deprecated single Docker image that bundles all components together. For production deployments, use the Docker Compose method which builds and manages components separately. -::: +## Operation Modes -```bash -git clone https://github.com/cardano-foundation/cardano-rosetta-java -cd cardano-rosetta-java -docker build -t rosetta-java -f ./docker/Dockerfile . -docker run --name rosetta -v {CUSTOM_MOUNT_PATH}:/node \ - --env-file ./docker/.env.dockerfile \ - --env-file ./docker/.env.docker-profile-mid-level \ - -p 8082:8082 --shm-size=4g -d rosetta-java -``` - -:::warning -The build can take up to 1.5 hours. This Dockerfile builds the node, indexer, and API from source. -::: - -#### Customizing Build Arguments - -You can specify Cabal, GHC, Cardano node, and PostgreSQL versions when building an image: - -```bash -docker build -t {image_name} --build-arg PG_VERSION=14 -f ./docker/Dockerfile . -``` - -Default values: +For information about running in online mode (default) or offline mode (for air-gapped environments), see the [Operation Modes](../core-concepts/operation-modes) documentation. -- `CABAL_VERSION=3.12.1.0` -- `GHC_VERSION=9.6.7` -- `CARDANO_NODE_VERSION=10.5.3` -- `PG_VERSION=14` +## Monitoring and Maintenance -#### Configuration +### Useful Commands -Configure the Docker image using the environment file at `./docker/.env.dockerfile`, which defines all relevant variables like which network to use. +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; -#### Running the Container + + ```bash -docker run --env-file ./docker/.env.dockerfile \ - --env-file .env.docker-profile-mid-level \ - -p 8082:8082 -it {image_name}:latest -``` - -The standard port for the API is `8082`. - -#### Mounting Node Data - -To mount Node data into the container: +# Follow service logs +docker compose logs -f api +docker compose logs -f yaci-indexer +docker compose logs -f cardano-node -```bash -docker run --env-file ./docker/.env.dockerfile \ - --env-file .env.docker-profile-mid-level \ - -p 8082:8082 --shm-size=4g \ - -v {node_snapshot}:/node/db -it {image_name}:latest +# View all logs +docker compose logs -f ``` - - -## Running Modes - -Cardano Rosetta Java supports several operating modes that can be configured based on your requirements: - -### Initial Sync Mode - -For users who don't have a fully synced node and need to start from scratch without using a snapshot: + ```bash -docker run -e SYNC=true --env-file ./docker/.env.dockerfile \ - -p 8082:8082 --shm-size=4g -d {image_name}:latest -``` - -In this mode, the container will verify chunks and synchronize the node. When it reaches the tip, the API starts automatically. - -### Online and Offline Functionality - -For information about running in online mode (default) or offline mode (for air-gapped environments), see the [Operation Modes](../core-concepts/operation-modes) documentation. - -## Monitoring and Maintenance - -### Useful Commands +# Check service status +docker compose ps - - +# Stop all services +docker compose down -```bash -# For Docker Compose deployments: -docker compose logs -f api -docker compose logs -f yaci-indexer -docker compose logs -f cardano-node +# Restart a specific service +docker compose restart api -# For single container deployments (deprecated): -docker logs rosetta -f -docker exec rosetta tail -f /logs/node.log -docker exec rosetta tail -f /logs/indexer.log +# Start specific services +docker compose up -d cardano-node db ``` ```bash -# For Docker Compose deployments: -docker exec -it cardano-rosetta-java-cardano-node-1 bash -docker exec -it cardano-rosetta-java-api-1 bash -docker exec -it cardano-rosetta-java-yaci-indexer-1 bash - -# For single container deployments (deprecated): -docker exec -it rosetta bash - -# Useful commands within the container -cardano-cli query tip --mainnet # check node sync status -tail -f /logs/node.log # follow node logs -tail -f /logs/indexer.log # follow indexer logs +# Get interactive bash shell in cardano-node +docker compose exec cardano-node bash + +# Check node sync status +docker compose exec cardano-node cardano-cli query tip --mainnet ``` @@ -257,10 +137,10 @@ tail -f /logs/indexer.log # follow indexer logs ### Troubleshooting Common Issues :::caution Connection Issues -If you experience connection losses between yaci-store and the cardano node, you can fix it by running: +If you experience connection losses between yaci-indexer and the cardano node, you can fix it by running: ```bash -docker restart yaci-indexer +docker compose restart yaci-indexer ``` ::: diff --git a/docs/docs/install-and-deploy/hardware-profiles.md b/docs/docs/install-and-deploy/hardware-profiles.md index be81d1166b..eceadb4eec 100644 --- a/docs/docs/install-and-deploy/hardware-profiles.md +++ b/docs/docs/install-and-deploy/hardware-profiles.md @@ -11,7 +11,7 @@ Hardware profiles are used to configure the hardware resources for the Cardano R ## Overview -Hardware profiles are implemented as environment files that are passed to Docker or Docker Compose when launching Cardano Rosetta Java services. The entrypoint script verifies these settings and configures PostgreSQL and application connection pools accordingly. +Hardware profiles are implemented as environment files that are passed to Docker Compose when launching Cardano Rosetta Java services. The entrypoint script verifies these settings and configures PostgreSQL and application connection pools accordingly. ## Available Hardware Profiles @@ -73,34 +73,29 @@ Hardware profiles define two main sets of configuration parameters: ## How to Use Hardware Profiles -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; +Hardware profiles are provided as environment files in the project root. To use a specific profile with Docker Compose: - - - ```bash - docker run --name rosetta -v {MOUNT_PATH}:/node \ - --env-file ./docker/.env.dockerfile \ - --env-file ./docker/.env.docker-profile-mid-level \ - -p 8082:8082 --shm-size=4g -d cardanofoundation/cardano-rosetta-java:latest - ``` - - - ```bash - docker compose --env-file .env.docker-compose \ - --env-file .env.docker-compose-profile-mid-level \ - -f docker-compose.yaml up -d - ``` - - +```bash +docker compose --env-file .env.docker-compose \ + --env-file .env.docker-compose-profile-mid-level \ + -f docker-compose.yaml up -d +``` + +### Available Profile Files + +``` +.env.docker-compose-profile-entry-level +.env.docker-compose-profile-mid-level +.env.docker-compose-profile-advanced-level +``` ## Custom Hardware Profiles You can create custom hardware profiles by: -1. Copying an existing profile file, e.g., `docker/.env.docker-profile-mid-level` +1. Copying an existing profile file, e.g., `.env.docker-compose-profile-mid-level` 2. Modifying the parameters to match your hardware -3. Using the custom profile file when launching with Docker or Docker Compose +3. Using the custom profile file when launching with Docker Compose When creating custom profiles, consider: diff --git a/pom.xml b/pom.xml index df3c67e2ec..1efe775a79 100644 --- a/pom.xml +++ b/pom.xml @@ -26,8 +26,7 @@ - full - 1.4.3 + 2.0.0-beta 24 UTF-8 3.5.0 @@ -41,8 +40,8 @@ 1.18.38 2.2.8 2.20.0 - 0.6.6 - 0.3.8 + 0.7.0 + 0.4.0-beta5 2.14.0 2.0.1.Final 1.13.0 diff --git a/test-data-generator/pom.xml b/test-data-generator/pom.xml index 80f2c06709..8fd71da5d9 100644 --- a/test-data-generator/pom.xml +++ b/test-data-generator/pom.xml @@ -28,12 +28,12 @@ com.bloxbean.cardano cardano-client-lib - 0.6.4 + 0.7.0 com.bloxbean.cardano cardano-client-backend-blockfrost - 0.6.4 + 0.7.0 org.projectlombok diff --git a/test-data-generator/src/main/java/org/cardanofoundation/rosetta/testgenerator/transactions/impl/PoolTransactions.java b/test-data-generator/src/main/java/org/cardanofoundation/rosetta/testgenerator/transactions/impl/PoolTransactions.java index 300f0aa218..aa4f0432c0 100644 --- a/test-data-generator/src/main/java/org/cardanofoundation/rosetta/testgenerator/transactions/impl/PoolTransactions.java +++ b/test-data-generator/src/main/java/org/cardanofoundation/rosetta/testgenerator/transactions/impl/PoolTransactions.java @@ -181,7 +181,8 @@ public TransactionBlockDetails retirePool() { log.info("Sender2 address: {}", sender2Addr); Tx retirePool = new Tx() - .retirePool(poolId, 19) + //.retirePool(poolId, 19) + .retirePool(poolId, 2) .from(sender2Addr); Result result = quickTxBuilder.compose(retirePool) diff --git a/testData/README.md b/testData/README.md new file mode 100644 index 0000000000..930e88c609 --- /dev/null +++ b/testData/README.md @@ -0,0 +1,24 @@ +# H2 Database Connection + +## Connecting to Local H2 Database + +To connect to the local H2 database using the H2 Shell: + +```bash +java -cp h2-2.2.224.jar org.h2.tools.Shell +``` + +When prompted, enter the following connection details: + +``` +URL: jdbc:h2:./devkit.db +Driver: [Enter] (org.h2.Driver - default) +User: rosetta_db_admin +Password: weakpwd#123 +``` + +Once connected, you can run SQL commands such as: + +```sql +show tables; +``` diff --git a/testData/devkit.db.mv.db b/testData/devkit.db.mv.db index a063221465..837f771a99 100644 Binary files a/testData/devkit.db.mv.db and b/testData/devkit.db.mv.db differ diff --git a/testData/testdata.json b/testData/testdata.json index 68b21b2165..9b3cb26396 100644 --- a/testData/testdata.json +++ b/testData/testdata.json @@ -1,57 +1,57 @@ { "stake_key_deregistration" : { "txHash" : "c4f15eadca085f6253b471465bca384abac385978120cbf5280514edb5e04772", - "blockHash" : "8ef9b39aefeab4355cf2695355b1a4dd6ac5c655e63d1143b289e79cc4f0e4b1", - "blockNumber" : 65 + "blockHash" : "fb480af5b764ede8fcf6ccf6e69ae741ac6d507726c3fc66335a5fbfd2d110c7", + "blockNumber" : 79 }, "pool_retirement" : { - "txHash" : "a0e0183c756228b1066a460f1d85448cbfc5c01748d15f9cb05debe68acac72b", - "blockHash" : "f2bf317a056d3fbbb02f22553adde53ef0d016cf3380b596855b7c4959db00a6", - "blockNumber" : 81 + "txHash" : "80d2aeddbef7f29258fa8643dfee2c55b17cee51250e3182e1c2b7eb6e1a16ff", + "blockHash" : "98ba2717fb9d2b60db0291f120bc07d40bcfb71261a40e0c2f73044c836c6938", + "blockNumber" : 95 }, "simple_new_empty_name_coins_transaction" : { - "txHash" : "0d5902595c9c51fc05a22adbc86c790a5ea57f081cac47e224c1bd3a73d46640", - "blockHash" : "9845d8e756260416edf1e508d47469de266f5fc7be6597d5bcf876cd2ef2da22", - "blockNumber" : 59 + "txHash" : "243f340f61f72378d115ed1d8ea1648e7bb578a06cf9ba0f202b992d9d6d8352", + "blockHash" : "23d74beedd7b287fec6e8b218f3958efbf897e673163d66bdd44c09c6e41dec9", + "blockNumber" : 73 }, "simple_second_lovelace_transaction" : { "txHash" : "d3a478ff5e2c11164fc7a1048152d01eea6ae709dc572e4bce598353a84dfe1d", - "blockHash" : "b20e511bc66d08b1df74e5a33827875cb407d2e5f4c4f6593a2dd090eb1489af", - "blockNumber" : 53 + "blockHash" : "9e30e7e335ce257b5736f9ae824bd026f13f60d059c99c5e2c160d989b22beb7", + "blockNumber" : 66 }, "pool_delegation" : { "txHash" : "85f60602259f85f0f2ff6f7acc9e4ef0b30b6512165fac3121ed02c7d5f389ea", - "blockHash" : "eff75cc22ea34f9a977e5d2d7689d507d7c8dd15ab8e77057f5104c1ad5320f6", - "blockNumber" : 78 + "blockHash" : "1752a01d971c7f564162b70d0730e34b44506a1d2efca910b44da8c8a18f8951", + "blockNumber" : 91 }, "simple_first_lovelace_transaction" : { "txHash" : "cb39cb98a915cf5470aad14c568594840e55acbe26f8439a12901049180643a5", - "blockHash" : "b771da44cc0c3461504fc384d7f8909b0f635ef521c7fcae7a5837b84c18fc6d", - "blockNumber" : 50 + "blockHash" : "cf619455aa69ee227873ec10c98b6c7ec00accba5ef067064a9063c4c3f33791", + "blockNumber" : 63 }, "simple_transaction_2" : { "txHash" : "5e6bd32366df3d831680b91b6b39b59b9a3b6207ec48111d4d01c878a8bf41b1", - "blockHash" : "14416c8fdb9890cb50e4375829b7b2e26340933593c3d4ba5194578fa8b3e648", - "blockNumber" : 69 + "blockHash" : "36601ccdd896e43e7dd4c26f815e7f5c2a7844524bbbd0cfb80c2e58b372c637", + "blockNumber" : 82 }, "pool_registration" : { "txHash" : "6c75f5d8d696b7d8b1ae7254b540dd11b3485fb74d722b8c2fc284dff3df9b77", - "blockHash" : "d584713f1854026ba12bbbc2a2bad4fca5e28fc8b5227ff4f3440b5fe7da86cb", - "blockNumber" : 72 + "blockHash" : "f74f275b87ba9f897fd7dc8153f874686bed4d80ca8f55505885369df558727a", + "blockNumber" : 85 }, "simple_new_coins_transaction" : { - "txHash" : "cbeeefcdef2de4208c1dbf91b146d752860f7627ba722e1264a1b604fd441c89", - "blockHash" : "a0826c9897d6f71105aa191be639aaaa39fef5aa8810ec3c49d947f8f8a252d9", - "blockNumber" : 56 + "txHash" : "cb2a2e32c23da6bdc23a08f2304037f5b8ee6d9c55a0db721a8b72d1db5f0b1c", + "blockHash" : "79a5f14d03677c7c4ec0cfdd243bdef877ac2b7cd1e4b04d550249a1fb82a9a3", + "blockNumber" : 69 }, "stake_key_registration" : { "txHash" : "81a05a1fb532c19e5c14826db918e654bdc486faeb3722bc0f71fbbf1ed1cc3e", - "blockHash" : "16f5de22952ad54030814d2761502b395adeb1db2d45d4a30ee3069154dd606d", - "blockNumber" : 62 + "blockHash" : "3cfa680bf4c3754d03cd579f1aee2d8c0315f514118b1d6235da4be7108ccea7", + "blockNumber" : 76 }, "simple_transaction" : { "txHash" : "8eb6c049474008db804d48b32f884b77274b5d97c502ffb52d8204c8b3334747", - "blockHash" : "2323754fb69b48c19d69252de906c65f3b1d4fb967635beab4b66880b1e578be", - "blockNumber" : 47 + "blockHash" : "c475f92f6356fbf5c759f6325801324935755b82fba909f97d13eec0e95ffe64", + "blockNumber" : 60 } } \ No newline at end of file diff --git a/yaci-indexer/pom.xml b/yaci-indexer/pom.xml index 2a37aa3b6b..1ebe38d2de 100644 --- a/yaci-indexer/pom.xml +++ b/yaci-indexer/pom.xml @@ -18,8 +18,7 @@ 24 - full - 0.1.5 + 2.0.0-beta5 src/main/java/org/cardanofoundation/rosetta/yaciindexer/stores/txsize/model/* @@ -99,12 +98,12 @@ yaci-store-admin-spring-boot-starter ${yaci-store.version} - - - - - - + + + com.bloxbean.cardano + yaci-store-governance-spring-boot-starter + ${yaci-store.version} + com.bloxbean.cardano diff --git a/yaci-indexer/src/main/resources/application-postgres.properties b/yaci-indexer/src/main/resources/application-postgres.properties index 839fdc4e7f..e8b56332cc 100644 --- a/yaci-indexer/src/main/resources/application-postgres.properties +++ b/yaci-indexer/src/main/resources/application-postgres.properties @@ -4,7 +4,7 @@ #################################################### ##################### Postgres DB ####################### -spring.datasource.url=jdbc:postgresql://${DB_HOST:localhost}:${DB_PORT:5433}/${DB_NAME:rosetta-java}?currentSchema=${DB_SCHEMA:preprod} +spring.datasource.url=jdbc:postgresql://${DB_HOST:localhost}:${DB_PORT:5433}/${DB_NAME:rosetta-java}?currentSchema=${DB_SCHEMA:public} spring.datasource.username=${DB_USER:rosetta_db_admin} spring.datasource.password=${DB_SECRET:weakpwd#123_d} diff --git a/yaci-indexer/src/main/resources/application.properties b/yaci-indexer/src/main/resources/application.properties index f5bfdb97c9..ebfc0300c8 100644 --- a/yaci-indexer/src/main/resources/application.properties +++ b/yaci-indexer/src/main/resources/application.properties @@ -17,6 +17,7 @@ store.cardano.port=${CARDANO_NODE_PORT:30000} store.cardano.protocol-magic=${PROTOCOL_MAGIC:1} # 3 seconds for keep alive store.cardano.keep-alive-interval=3000 +store.cardano.return-tx-body-cbor=true ############### Genesis files ############################# # The application reads the below genesis files to get data like slotLength, maxLovelaceSupply diff --git a/yaci-indexer/src/main/resources/db/store/postgresql/V1.0_2500_0__search_indices.sql b/yaci-indexer/src/main/resources/db/store/postgresql/V1.0_2500_0__search_indices.sql index e56e527e28..2c1e6e9bd7 100644 --- a/yaci-indexer/src/main/resources/db/store/postgresql/V1.0_2500_0__search_indices.sql +++ b/yaci-indexer/src/main/resources/db/store/postgresql/V1.0_2500_0__search_indices.sql @@ -56,13 +56,14 @@ CREATE INDEX idx_invalid_transaction_hash_slot ON invalid_transaction USING btre CREATE INDEX idx_transaction_hash_values_join ON transaction USING btree (tx_hash); -- ============================================================================= --- Index 6: Transaction Slot-Based Ordering and Pagination +-- Index 6: Transaction Slot and Index Ordering for Search Pagination -- Used by: TxRepositoryCustomBase.executeResultsQuery (line 190) --- Query pattern: SELECT ... FROM transaction WHERE ... ORDER BY slot DESC LIMIT/OFFSET +-- Query pattern: SELECT ... FROM transaction WHERE ... ORDER BY slot DESC, tx_index DESC LIMIT/OFFSET -- Optimizes: All paginated search transactions API endpoints: --- - /search/transactions pagination with chronological ordering --- - All search results ordered by slot descending (newest first) --- - LIMIT/OFFSET pagination performance --- Performance: Essential for pagination - avoids sorting large result sets +-- - /search/transactions pagination with proper chronological and within-slot ordering +-- - Ensures consistent transaction ordering within the same slot +-- - Maintains deterministic pagination order using tx_index (replaces tx_hash) +-- Performance: Essential for correct pagination - maintains transaction order by slot then tx_index +-- Note: tx_index column added in Yaci-Store starting from 2.0.0 for proper within-block ordering -- ============================================================================= -CREATE INDEX idx_transaction_slot_desc_tx_hash ON transaction USING btree (slot DESC, tx_hash); +CREATE INDEX idx_transaction_slot_desc_tx_index_desc ON transaction USING btree (slot DESC, tx_index DESC); diff --git a/yaci-indexer/src/main/resources/db/store/postgresql/V1.0_900_0__rosetta_app_addres_utxo.sql b/yaci-indexer/src/main/resources/db/store/postgresql/V1.0_900_0__rosetta_app_addres_utxo.sql index 05bfb309fa..8ffd8c4630 100644 --- a/yaci-indexer/src/main/resources/db/store/postgresql/V1.0_900_0__rosetta_app_addres_utxo.sql +++ b/yaci-indexer/src/main/resources/db/store/postgresql/V1.0_900_0__rosetta_app_addres_utxo.sql @@ -1,11 +1 @@ -DO $$ -BEGIN - IF NOT EXISTS ( - SELECT 1 FROM pg_indexes - WHERE indexname = 'idx_address_utxo_tx_hash' - AND tablename = 'address_utxo' - AND schemaname = current_schema() - ) THEN - CREATE INDEX idx_address_utxo_tx_hash ON address_utxo USING btree (tx_hash); - END IF; -END $$; \ No newline at end of file +CREATE INDEX idx_address_utxo_tx_hash ON address_utxo USING btree (tx_hash); \ No newline at end of file diff --git a/yaci-indexer/src/test/resources/application-test-integration.properties b/yaci-indexer/src/test/resources/application-test-integration.properties index 278dd46b21..aa1c398465 100644 --- a/yaci-indexer/src/test/resources/application-test-integration.properties +++ b/yaci-indexer/src/test/resources/application-test-integration.properties @@ -12,6 +12,7 @@ spring.h2.console.enabled=true store.cardano.host=${CARDANO_NODE_HOST:localhost} store.cardano.port=${CARDANO_NODE_PORT:8090} +store.cardano.return-tx-body-cbor=true store.utxo.pruning-interval=3600 store.utxo.pruning-safe-blocks=${REMOVE_SPENT_UTXOS_LAST_BLOCKS_GRACE_COUNT:129600}