Skip to content

Commit

Permalink
Update sqlx-data
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilLuta committed Oct 17, 2023
1 parent d99c956 commit 63e6268
Showing 1 changed file with 74 additions and 94 deletions.
168 changes: 74 additions & 94 deletions core/lib/dal/sqlx-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,19 @@
},
"query": "UPDATE eth_txs\n SET confirmed_eth_tx_history_id = $1\n WHERE id = $2"
},
"08373bf6498945c9ae3d72db87a958c3ce618596c9e499f635cb3fd11d4e95f3": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Left": [
"Int8",
"Text"
]
}
},
"query": "INSERT INTO basic_witness_input_producer_jobs (l1_batch_number, status, created_at, updated_at) VALUES ($1, $2, now(), now())"
},
"0c212f47b9a0e719f947a419be8284837b1b01aa23994ba6401b420790b802b8": {
"describe": {
"columns": [],
Expand Down Expand Up @@ -1083,26 +1096,6 @@
},
"query": "\n UPDATE witness_inputs_fri SET status =$1, updated_at = now()\n WHERE l1_batch_number = $2\n "
},
"1cb1248f5cee33f560c131e71480c402990fec76fd5ecb31938b812438d74fb0": {
"describe": {
"columns": [
{
"name": "max",
"ordinal": 0,
"type_info": "Int8"
}
],
"nullable": [
null
],
"parameters": {
"Left": [
"Int8"
]
}
},
"query": "SELECT MAX(number) as max FROM miniblocks WHERE l1_batch_number = $1"
},
"1d3e9cd259fb70a2bc81e8344576c3fb27b47ad6cdb6751d2a9b8c8d342b7a75": {
"describe": {
"columns": [],
Expand Down Expand Up @@ -2232,6 +2225,29 @@
},
"query": "UPDATE transactions\n SET in_mempool = TRUE\n FROM (\n SELECT hash FROM (\n SELECT hash\n FROM transactions\n WHERE miniblock_number IS NULL AND in_mempool = FALSE AND error IS NULL\n AND (is_priority = TRUE OR (max_fee_per_gas >= $2 and gas_per_pubdata_limit >= $3))\n AND tx_format != $4\n ORDER BY is_priority DESC, priority_op_id, received_at\n LIMIT $1\n ) as subquery1\n ORDER BY hash\n ) as subquery2\n WHERE transactions.hash = subquery2.hash\n RETURNING transactions.*"
},
"2c57d28042b2cadd63e7e471c0ee5207a234ab79776917ae459142be5f937b98": {
"describe": {
"columns": [
{
"name": "attempts",
"ordinal": 0,
"type_info": "Int2"
}
],
"nullable": [
false
],
"parameters": {
"Left": [
"Text",
"Int8",
"Time",
"Text"
]
}
},
"query": "UPDATE basic_witness_input_producer_jobs SET status = $1, updated_at = now(), time_taken = $3, error = $4 WHERE l1_batch_number = $2 RETURNING basic_witness_input_producer_jobs.attempts"
},
"2e3f116ca05ae70b7c83ac550302194c91f57b69902ff8e42140fde732ae5e6a": {
"describe": {
"columns": [],
Expand Down Expand Up @@ -2997,29 +3013,6 @@
},
"query": "\n UPDATE scheduler_witness_jobs\n SET status = 'in_progress', attempts = attempts + 1,\n updated_at = now(), processing_started_at = now()\n WHERE l1_batch_number = (\n SELECT l1_batch_number\n FROM scheduler_witness_jobs\n WHERE l1_batch_number <= $3\n AND\n ( status = 'queued'\n OR (status = 'in_progress' AND processing_started_at < now() - $1::interval)\n OR (status = 'failed' AND attempts < $2)\n )\n AND protocol_version = ANY($4)\n ORDER BY l1_batch_number ASC\n LIMIT 1\n FOR UPDATE\n SKIP LOCKED\n )\n RETURNING scheduler_witness_jobs.*\n "
},
"3bec3cd39c99c2b1fc87d3d346baf9718cb66db9eefb3c7c60470932b4d4c502": {
"describe": {
"columns": [
{
"name": "attempts",
"ordinal": 0,
"type_info": "Int2"
}
],
"nullable": [
false
],
"parameters": {
"Left": [
"Text",
"Int8",
"Time",
"Text"
]
}
},
"query": "UPDATE basic_witness_input_producer_jobs\n SET status = $1, updated_at = now(), time_taken = $3, error = $4\n WHERE l1_batch_number = $2\n RETURNING basic_witness_input_producer_jobs.attempts"
},
"3c582aeed32235ef175707de412a9f9129fad6ea5e87ebb85f68e20664b0da46": {
"describe": {
"columns": [],
Expand Down Expand Up @@ -3394,6 +3387,20 @@
},
"query": "SELECT hash FROM miniblocks WHERE number = $1"
},
"44850ff778e5b5d3d21205db8e96451140ccb05fe3ea68e3e5c7875d0bdb6f2f": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Left": [
"Text",
"Int8",
"Time"
]
}
},
"query": "UPDATE basic_witness_input_producer_jobs SET status = $1, updated_at = now(), time_taken = $3 WHERE l1_batch_number = $2"
},
"448d283cab6ae334de9676f69416974656d11563b58e0188d53ca9e0995dd287": {
"describe": {
"columns": [],
Expand Down Expand Up @@ -5181,6 +5188,30 @@
},
"query": "SELECT hash FROM miniblocks WHERE number BETWEEN $1 AND $2 ORDER BY number"
},
"6b6c715f13cc784544cfff01ff1acb65812b43b63659bce9d2c43ab570f5294d": {
"describe": {
"columns": [
{
"name": "l1_batch_number",
"ordinal": 0,
"type_info": "Int8"
}
],
"nullable": [
false
],
"parameters": {
"Left": [
"Text",
"Text",
"Text",
"Interval",
"Int2"
]
}
},
"query": "UPDATE basic_witness_input_producer_jobs SET status = $1, attempts = attempts + 1, updated_at = now(), processing_started_at = now() WHERE l1_batch_number = ( SELECT l1_batch_number FROM basic_witness_input_producer_jobs WHERE status = $2 OR (status = $1 AND processing_started_at < now() - $4::interval) OR (status = $3 AND attempts < $5) ORDER BY l1_batch_number ASC LIMIT 1 FOR UPDATE SKIP LOCKED )\n RETURNING basic_witness_input_producer_jobs.l1_batch_number"
},
"6c0915ed87e6d0fdf83cb24a51cc277e366bea0ba8821c048092d2a0aadb2771": {
"describe": {
"columns": [],
Expand Down Expand Up @@ -5587,30 +5618,6 @@
},
"query": "SELECT l1_batch_number FROM miniblocks WHERE number = $1"
},
"75b6a0f1a9c76fe8cfcfd090a903fc73115befc8bbb06bdebdfdd8806e55999a": {
"describe": {
"columns": [
{
"name": "l1_batch_number",
"ordinal": 0,
"type_info": "Int8"
}
],
"nullable": [
false
],
"parameters": {
"Left": [
"Text",
"Text",
"Text",
"Interval",
"Int2"
]
}
},
"query": "UPDATE basic_witness_input_producer_jobs\n SET status = $1,\n attempts = attempts + 1,\n updated_at = now(),\n processing_started_at = now()\n WHERE l1_batch_number = (\n SELECT MIN(l1_batch_number)\n FROM basic_witness_input_producer_jobs\n WHERE status = $2 OR\n (status = $1 AND processing_started_at < now() - $4::interval) OR\n (status = $3 AND attempts < $5)\n )\n RETURNING basic_witness_input_producer_jobs.l1_batch_number"
},
"769c021b51b9aaafdf27b4019834729047702b17b0684f7271eecd6ffdf96e7c": {
"describe": {
"columns": [
Expand Down Expand Up @@ -6744,20 +6751,6 @@
},
"query": "\n SELECT miniblocks.number,\n COALESCE(miniblocks.l1_batch_number, (SELECT (max(number) + 1) FROM l1_batches)) as \"l1_batch_number!\",\n miniblocks.timestamp,\n miniblocks.l1_tx_count,\n miniblocks.l2_tx_count,\n miniblocks.hash as \"root_hash?\",\n commit_tx.tx_hash as \"commit_tx_hash?\",\n commit_tx.confirmed_at as \"committed_at?\",\n prove_tx.tx_hash as \"prove_tx_hash?\",\n prove_tx.confirmed_at as \"proven_at?\",\n execute_tx.tx_hash as \"execute_tx_hash?\",\n execute_tx.confirmed_at as \"executed_at?\",\n miniblocks.l1_gas_price,\n miniblocks.l2_fair_gas_price,\n miniblocks.bootloader_code_hash,\n miniblocks.default_aa_code_hash,\n miniblocks.protocol_version,\n l1_batches.fee_account_address as \"fee_account_address?\"\n FROM miniblocks\n LEFT JOIN l1_batches ON miniblocks.l1_batch_number = l1_batches.number\n LEFT JOIN eth_txs_history as commit_tx ON (l1_batches.eth_commit_tx_id = commit_tx.eth_tx_id AND commit_tx.confirmed_at IS NOT NULL)\n LEFT JOIN eth_txs_history as prove_tx ON (l1_batches.eth_prove_tx_id = prove_tx.eth_tx_id AND prove_tx.confirmed_at IS NOT NULL)\n LEFT JOIN eth_txs_history as execute_tx ON (l1_batches.eth_execute_tx_id = execute_tx.eth_tx_id AND execute_tx.confirmed_at IS NOT NULL)\n WHERE miniblocks.number = $1\n "
},
"8d322bda216843b93a020cd245d8e1a85612c881cac27d727eeca56bdda14711": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Left": [
"Text",
"Int8",
"Time"
]
}
},
"query": "UPDATE basic_witness_input_producer_jobs\n SET status = $1, updated_at = now(), time_taken = $3\n WHERE l1_batch_number = $2"
},
"8d3c9575e3cea3956ba84edc982fcf6e0f7667350e6c2cd6801db8400eabaf9b": {
"describe": {
"columns": [
Expand Down Expand Up @@ -6922,19 +6915,6 @@
},
"query": "\n SELECT value\n FROM storage_logs\n WHERE storage_logs.hashed_key = $1 AND storage_logs.miniblock_number <= $2\n ORDER BY storage_logs.miniblock_number DESC, storage_logs.operation_number DESC\n LIMIT 1\n "
},
"94b00b9d9460df84d382279ef95c44835215de534279824df9008bb4304e5e4b": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Left": [
"Int8",
"Text"
]
}
},
"query": "INSERT INTO basic_witness_input_producer_jobs\n (l1_batch_number, status, created_at, updated_at)\n VALUES ($1, $2, now(), now())"
},
"957ceda740ffb36740acf1e3fbacf76a2ea7422dd9d76a38d745113359e4b7a6": {
"describe": {
"columns": [
Expand Down

0 comments on commit 63e6268

Please sign in to comment.