From 06e78007226fb9c71aba340c1dc3c715dc1e1cde Mon Sep 17 00:00:00 2001 From: Bartosz Nowak Date: Wed, 11 Sep 2024 14:13:04 +0200 Subject: [PATCH] multicall settings updates --- fact_registry/1-declare.sh | 3 --- fact_registry/2-deploy.sh | 13 ------------- fact_registry/3-is-valid.sh | 19 ------------------- fact_registry/starknet/deploy.toml | 6 ------ fact_registry/starknet/register_verifier.toml | 18 ------------------ .../{blake2s => blake2s_160_lsb}/deploy.toml | 0 .../{blake2s => blake2s_160_lsb}/register.sh | 2 +- .../{keccak => keccak_160_lsb}/deploy.toml | 0 .../{keccak => keccak_160_lsb}/register.sh | 2 +- 9 files changed, 2 insertions(+), 61 deletions(-) delete mode 100755 fact_registry/1-declare.sh delete mode 100755 fact_registry/2-deploy.sh delete mode 100755 fact_registry/3-is-valid.sh delete mode 100644 fact_registry/starknet/deploy.toml delete mode 100644 fact_registry/starknet/register_verifier.toml rename multicall/verifiers/recursive/{blake2s => blake2s_160_lsb}/deploy.toml (100%) rename multicall/verifiers/recursive/{blake2s => blake2s_160_lsb}/register.sh (69%) rename multicall/verifiers/recursive/{keccak => keccak_160_lsb}/deploy.toml (100%) rename multicall/verifiers/recursive/{keccak => keccak_160_lsb}/register.sh (69%) diff --git a/fact_registry/1-declare.sh b/fact_registry/1-declare.sh deleted file mode 100755 index e4f3b1be7..000000000 --- a/fact_registry/1-declare.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash - -sncast --profile testnet --wait declare --contract-name FactRegistry diff --git a/fact_registry/2-deploy.sh b/fact_registry/2-deploy.sh deleted file mode 100755 index e6dcf0636..000000000 --- a/fact_registry/2-deploy.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env bash - -# Check if the arguments are provided -if [ $# -ne 1 ]; then - echo "Usage: $0 " - exit 1 -fi - -# Assign argument to variable -class_hash=$1 - -# Pass the class hash to the sncast command -sncast --profile testnet --wait deploy --class-hash "$class_hash" diff --git a/fact_registry/3-is-valid.sh b/fact_registry/3-is-valid.sh deleted file mode 100755 index 3c7776fe5..000000000 --- a/fact_registry/3-is-valid.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env bash - -# Check if the arguments are provided -if [ $# -ne 2 ]; then - echo "Usage: $0 " - exit 1 -fi - -# Assign arguments to variables -contract_address=$1 -fact_hash=$2 - -# Pass the calldata to the sncast command -sncast --profile testnet \ - --wait \ - call \ - --contract-address "$contract_address" \ - --function "is_valid" \ - --calldata "$fact_hash" diff --git a/fact_registry/starknet/deploy.toml b/fact_registry/starknet/deploy.toml deleted file mode 100644 index 83cfa9e4b..000000000 --- a/fact_registry/starknet/deploy.toml +++ /dev/null @@ -1,6 +0,0 @@ -[[call]] -call_type = "deploy" -class_hash = "0x79b972400cbbbc9afe4056a377366773bc069e292e1b9657bec2e48b4353ad3" -inputs = ["REPLACE WITH YOUR ACCOUNT ADDRESS"] -unique = false -id = "fact_registry" \ No newline at end of file diff --git a/fact_registry/starknet/register_verifier.toml b/fact_registry/starknet/register_verifier.toml deleted file mode 100644 index 70582f280..000000000 --- a/fact_registry/starknet/register_verifier.toml +++ /dev/null @@ -1,18 +0,0 @@ -[[call]] -call_type = "deploy" -class_hash = "VERIFIER CLASS HASH" -inputs = [] -unique = false -id = "verifier" - -[[call]] -call_type = "invoke" -contract_address = "REPLACE WITH FACT REGISTRY ADDRESS" -function = "register_verifier" -inputs = [ - "SETTINGS.LAYOUT", - "SETTINGS.HASHER", - "SETTINGS.SECURITY_BITS", - "SETTINGS.VERSION", - "verifier" -] \ No newline at end of file diff --git a/multicall/verifiers/recursive/blake2s/deploy.toml b/multicall/verifiers/recursive/blake2s_160_lsb/deploy.toml similarity index 100% rename from multicall/verifiers/recursive/blake2s/deploy.toml rename to multicall/verifiers/recursive/blake2s_160_lsb/deploy.toml diff --git a/multicall/verifiers/recursive/blake2s/register.sh b/multicall/verifiers/recursive/blake2s_160_lsb/register.sh similarity index 69% rename from multicall/verifiers/recursive/blake2s/register.sh rename to multicall/verifiers/recursive/blake2s_160_lsb/register.sh index 9cd963746..7a96d5c52 100644 --- a/multicall/verifiers/recursive/blake2s/register.sh +++ b/multicall/verifiers/recursive/blake2s_160_lsb/register.sh @@ -9,4 +9,4 @@ sncast \ --fee-token eth \ --contract-address $FACT_REGISTRY \ --function "register_verifier" \ - --calldata "0x726563757273697665 0x626c616b653273 0x73746f6e6535 $VERIFIER" + --calldata "0x726563757273697665 0x626c616b6532735f3136305f6c7362 0x73746f6e6535 $VERIFIER" diff --git a/multicall/verifiers/recursive/keccak/deploy.toml b/multicall/verifiers/recursive/keccak_160_lsb/deploy.toml similarity index 100% rename from multicall/verifiers/recursive/keccak/deploy.toml rename to multicall/verifiers/recursive/keccak_160_lsb/deploy.toml diff --git a/multicall/verifiers/recursive/keccak/register.sh b/multicall/verifiers/recursive/keccak_160_lsb/register.sh similarity index 69% rename from multicall/verifiers/recursive/keccak/register.sh rename to multicall/verifiers/recursive/keccak_160_lsb/register.sh index 519175534..e99467200 100644 --- a/multicall/verifiers/recursive/keccak/register.sh +++ b/multicall/verifiers/recursive/keccak_160_lsb/register.sh @@ -9,4 +9,4 @@ sncast \ --fee-token eth \ --contract-address $FACT_REGISTRY \ --function "register_verifier" \ - --calldata "0x726563757273697665 0x6b656363616b 0x73746f6e6535 $VERIFIER" + --calldata "0x726563757273697665 0x6b656363616b5f3136305f6c7362 0x73746f6e6535 $VERIFIER"