Skip to content

Commit

Permalink
blob-decompressor: adds basic decoding tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jpnovais committed Oct 21, 2024
1 parent ef9f1b7 commit 5927923
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
14 changes: 11 additions & 3 deletions jvm-libs/blob-decompressor/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'net.consensys.zkevm.kotlin-common-minimal-conventions'
id 'net.consensys.zkevm.kotlin-library-conventions'
id 'net.consensys.zkevm.linea-native-libs-helper'
alias(libs.plugins.jreleaser)
id 'java-test-fixtures'
Expand All @@ -12,8 +12,16 @@ dependencies {
implementation "net.java.dev.jna:jna:${libs.versions.jna.get()}"
implementation project(":jvm-libs:kotlin-extensions")
testImplementation project(":jvm-libs:blob-compressor")
// testImplementation project(":jvm-libs:web3j-extensions")

testImplementation(testFixtures(project(":jvm-libs:blob-compressor")))
testImplementation(project(":jvm-libs:testing:file-system"))
testImplementation("org.apache.tuweni:tuweni-bytes:${libs.versions.tuweni.get()}")
// testImplementation("org.apache.tuweni:tuweni-rlp:${libs.versions.tuweni.get()}")
testImplementation("org.hyperledger.besu:besu-datatypes:${libs.versions.besu.get()}")
testImplementation "org.hyperledger.besu:evm:${libs.versions.besu.get()}"
testImplementation("org.hyperledger.besu.internal:core:${libs.versions.besu.get()}")
testImplementation("org.hyperledger.besu.internal:crypto:${libs.versions.besu.get()}")
testImplementation("org.hyperledger.besu.internal:rlp:${libs.versions.besu.get()}")
}

jar {
Expand All @@ -31,7 +39,7 @@ def libsZipDownloadOutputDir = project.parent.layout.buildDirectory.asFile.get()

task downloadNativeLibs {
doLast {
fetchLibFromZip("https://github.com/Consensys/linea-monorepo/releases/download/blob-libs-v1.1.0-test6/linea-blob-libs-v1.1.0-test6.zip", "blob_decompressor", libsZipDownloadOutputDir)
fetchLibFromZip("https://github.com/Consensys/linea-monorepo/releases/download/blob-libs-v1.1.0-test7/linea-blob-libs-v1.1.0-test7.zip", "blob_decompressor", libsZipDownloadOutputDir)
}
}

Expand Down
2 changes: 1 addition & 1 deletion jvm-libs/teku-execution-client/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'net.consensys.zkevm.kotlin-common-minimal-conventions'
id 'net.consensys.zkevm.kotlin-library-conventions'
id 'java-library'
}

Expand Down

0 comments on commit 5927923

Please sign in to comment.