Skip to content

Commit

Permalink
Create recursive_with_poseidon deployment scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
fmkra committed Sep 17, 2024
1 parent fbe8bd3 commit 26ebcee
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deployed_contracts.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
fact registry: `0x7a5340bf1a500d94185cde6fc9cdc4b32c1159d1db5c056841d21bfb0d9c2bd`
recursive,keccak: `0x0102a5157199bc7929c9f9502aac08b897606bac4e69ba45ecf088b6430e4d6d`
recursive,blake2s: `0x035de2969a164e20bc3872502ff546f7ee190da1c7edf346b4221f869f48128e`
recursive_with_poseidon,keccak: `0x04351acfba77d94cd97bbed2276391ec0e7ffea39ccadb24d1cfd37695b7ab12`
recursive_with_poseidon,blake2s: `0x076eaf28eb342e438ddc80edbdd7ff0624aa5fb0f8068b4386e729d220b2420c`
13 changes: 13 additions & 0 deletions multicall/verifiers/recursive_with_poseidon/blake2s/deploy.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[[call]]
call_type = "deploy"
class_hash = "0x5cae9f970c8da62a83193d7faefdeac3b419ff698badd4f5d502d5b11beb74f"
inputs = []
id = "contract_oods"
unique = false

[[call]]
call_type = "deploy"
class_hash = "0x62fb4efbda30065e64706029e94a71ad7f28a969c9aea19d3f769e268c01b89"
inputs = ["0", "contract_oods"]
id = "cairo_verifier"
unique = false
12 changes: 12 additions & 0 deletions multicall/verifiers/recursive_with_poseidon/blake2s/register.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
echo -n "FactRegistry address: "
read FACT_REGISTRY

echo -n "Verifier address: "
read VERIFIER

sncast \
invoke \
--fee-token eth \
--contract-address $FACT_REGISTRY \
--function "register_verifier" \
--calldata "0x7265637572736976655f776974685f706f736569646f6e 0x626c616b653273 $VERIFIER"
13 changes: 13 additions & 0 deletions multicall/verifiers/recursive_with_poseidon/keccak/deploy.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[[call]]
call_type = "deploy"
class_hash = "0x05cae9f970c8da62a83193d7faefdeac3b419ff698badd4f5d502d5b11beb74f"
inputs = []
id = "contract_oods"
unique = false

[[call]]
call_type = "deploy"
class_hash = "0x3b08718c57d44a00507d4232eec0ec59f62c9d56b56b90316f1a9a8ed4f28bb"
inputs = ["0", "contract_oods"]
id = "cairo_verifier"
unique = false
12 changes: 12 additions & 0 deletions multicall/verifiers/recursive_with_poseidon/keccak/register.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
echo -n "FactRegistry address: "
read FACT_REGISTRY

echo -n "Verifier address: "
read VERIFIER

sncast \
invoke \
--fee-token eth \
--contract-address $FACT_REGISTRY \
--function "register_verifier" \
--calldata "0x7265637572736976655f776974685f706f736569646f6e 0x6b656363616b $VERIFIER"

0 comments on commit 26ebcee

Please sign in to comment.