adding updates to build codex-storage-proofs

This commit is contained in:
Jaremy Creechley 2024-01-18 16:56:06 +02:00
parent 72da534856
commit 3e450b8259
No known key found for this signature in database
GPG Key ID: 4E66FB67B21D3300
5 changed files with 23 additions and 0 deletions

6
.gitmodules vendored
View File

@ -199,3 +199,9 @@
[submodule "vendor/constantine"]
path = vendor/constantine
url = https://github.com/mratsim/constantine.git
[submodule "vendor/codex-storage-proofs"]
path = vendor/codex-storage-proofs
url = https://github.com/codex-storage/codex-storage-proofs.git
[submodule "vendor/codex-storage-proofs-circuits"]
path = vendor/codex-storage-proofs-circuits
url = https://github.com/codex-storage/codex-storage-proofs-circuits.git

View File

@ -21,10 +21,19 @@ proc test(name: string, srcDir = "tests/", params = "", lang = "c") =
buildBinary name, srcDir, params
exec "build/" & name
task buildStorageProofs, "build codex storage proofs":
## pre-build codex-storage-proofs to cache the first cargo build
## though `codex-storage-proofs/codex_storage_proofs.nim` calls cargo build again
withDir "vendor/codex-storage-proofs/":
exec "cargo build --release"
buildBinary "storage_proofs", srcDir = "codex/utils/", params = "-f "
task codex, "build codex binary":
buildStorageProofsTask()
buildBinary "codex", params = "-d:chronicles_runtime_filtering -d:chronicles_log_level=TRACE"
task testCodex, "Build & run Codex tests":
buildStorageProofsTask()
test "testCodex", params = "-d:codex_enable_proof_failures=true -d:codex_use_hardhat=true"
task testContracts, "Build & run Codex Contract tests":

View File

@ -0,0 +1,6 @@
import codex_storage_proofs
import std/os
export codex_storage_proofs

1
vendor/codex-storage-proofs vendored Submodule

@ -0,0 +1 @@
Subproject commit 2ac80d7ac2a1e0d0367b58a734ed34eae9dc9f91

@ -0,0 +1 @@
Subproject commit c03b43221d68e34bd5015a4e4ee1a0ad3299f8ef