adding updates to build codex-storage-proofs
This commit is contained in:
parent
72da534856
commit
3e450b8259
|
@ -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
|
||||
|
|
|
@ -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":
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
|
||||
import codex_storage_proofs
|
||||
|
||||
import std/os
|
||||
|
||||
export codex_storage_proofs
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 2ac80d7ac2a1e0d0367b58a734ed34eae9dc9f91
|
|
@ -0,0 +1 @@
|
|||
Subproject commit c03b43221d68e34bd5015a4e4ee1a0ad3299f8ef
|
Loading…
Reference in New Issue