Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ async-stream = "0.3"
bigdecimal = { version = "0.4", features = ["serde"] }
hex = "0.4"
chrono = { version = "0.4", features = ["serde"] }
tempfile = "3"

# Testing
testcontainers = { version = "0.27", features = ["blocking"] }
Expand Down
2 changes: 1 addition & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN cargo build --release
# Server image
FROM alpine:3.21 AS server

RUN apk add --no-cache ca-certificates postgresql16-client
RUN apk add --no-cache ca-certificates gcompat postgresql16-client

COPY --from=builder /app/target/release/atlas-server /usr/local/bin/

Expand Down
18 changes: 18 additions & 0 deletions backend/crates/atlas-common/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,24 @@ pub struct ContractAbi {
pub verified_at: DateTime<Utc>,
}

/// Full contract ABI including all verification metadata columns
#[derive(Debug, Clone, Serialize, Deserialize, FromRow)]
pub struct FullContractAbi {
pub address: String,
pub abi: serde_json::Value,
pub source_code: Option<String>,
pub compiler_version: Option<String>,
pub optimization_used: Option<bool>,
pub runs: Option<i32>,
pub verified_at: DateTime<Utc>,
pub contract_name: Option<String>,
pub constructor_args: Option<Vec<u8>>,
pub evm_version: Option<String>,
pub license_type: Option<String>,
pub is_multi_file: bool,
pub source_files: Option<serde_json::Value>,
}

/// SQL column list for the `blocks` table, matching the field order in [`Block`].
pub const BLOCK_COLUMNS: &str =
"number, hash, parent_hash, timestamp, gas_used, gas_limit, base_fee_per_gas::text AS base_fee_per_gas, transaction_count, indexed_at";
Expand Down
1 change: 1 addition & 0 deletions backend/crates/atlas-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ dotenvy = { workspace = true }
bigdecimal = { workspace = true }
hex = { workspace = true }
chrono = { workspace = true }
tempfile = { workspace = true }
Comment thread
coderabbitai[bot] marked this conversation as resolved.
tokio-stream = { workspace = true }
futures = { workspace = true }
async-stream = { workspace = true }
Expand Down
Loading
Loading