From bb552ac72d14ec431bd5057d340e84a6a43bc85b Mon Sep 17 00:00:00 2001 From: Alex Metelli Date: Tue, 14 May 2024 04:38:37 +0800 Subject: [PATCH] chore: reorganize repo to add ethereum contracts --- .github/workflows/build.yml | 1 + .github/workflows/test.yml | 1 + .tool-versions => starknet/.tool-versions | 0 Scarb.toml => starknet/Scarb.toml | 0 {src => starknet/src}/L1_headers_store/contract.cairo | 0 {src => starknet/src}/L1_headers_store/interface.cairo | 0 {src => starknet/src}/L1_messages_proxy/contract.cairo | 0 {src => starknet/src}/L1_messages_proxy/interface.cairo | 0 {src => starknet/src}/fact_registry/contract.cairo | 0 {src => starknet/src}/fact_registry/interface.cairo | 0 {src => starknet/src}/lib.cairo | 0 {src => starknet/src}/library/array_utils.cairo | 0 {src => starknet/src}/library/bitshift.cairo | 0 {src => starknet/src}/library/keccak256.cairo | 0 {src => starknet/src}/library/keccak_utils.cairo | 0 {src => starknet/src}/library/math_utils.cairo | 0 {src => starknet/src}/library/merkle_patricia_utils.cairo | 0 {src => starknet/src}/library/rlp_utils.cairo | 0 {src => starknet/src}/library/trie_proof.cairo | 0 {src => starknet/src}/library/words64_utils.cairo | 0 {src => starknet/src}/types.cairo | 0 21 files changed, 2 insertions(+) rename .tool-versions => starknet/.tool-versions (100%) rename Scarb.toml => starknet/Scarb.toml (100%) rename {src => starknet/src}/L1_headers_store/contract.cairo (100%) rename {src => starknet/src}/L1_headers_store/interface.cairo (100%) rename {src => starknet/src}/L1_messages_proxy/contract.cairo (100%) rename {src => starknet/src}/L1_messages_proxy/interface.cairo (100%) rename {src => starknet/src}/fact_registry/contract.cairo (100%) rename {src => starknet/src}/fact_registry/interface.cairo (100%) rename {src => starknet/src}/lib.cairo (100%) rename {src => starknet/src}/library/array_utils.cairo (100%) rename {src => starknet/src}/library/bitshift.cairo (100%) rename {src => starknet/src}/library/keccak256.cairo (100%) rename {src => starknet/src}/library/keccak_utils.cairo (100%) rename {src => starknet/src}/library/math_utils.cairo (100%) rename {src => starknet/src}/library/merkle_patricia_utils.cairo (100%) rename {src => starknet/src}/library/rlp_utils.cairo (100%) rename {src => starknet/src}/library/trie_proof.cairo (100%) rename {src => starknet/src}/library/words64_utils.cairo (100%) rename {src => starknet/src}/types.cairo (100%) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 384e83b..d94898c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,5 +11,6 @@ jobs: - uses: software-mansion/setup-scarb@v1 with: scarb-version: "2.6.4" + - run: cd starknet - run: scarb fmt --check - run: scarb build \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3155a8d..d7d5080 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,4 +11,5 @@ jobs: - uses: software-mansion/setup-scarb@v1 with: scarb-version: "2.6.4" + - run: cd starknet - run: snforge test \ No newline at end of file diff --git a/.tool-versions b/starknet/.tool-versions similarity index 100% rename from .tool-versions rename to starknet/.tool-versions diff --git a/Scarb.toml b/starknet/Scarb.toml similarity index 100% rename from Scarb.toml rename to starknet/Scarb.toml diff --git a/src/L1_headers_store/contract.cairo b/starknet/src/L1_headers_store/contract.cairo similarity index 100% rename from src/L1_headers_store/contract.cairo rename to starknet/src/L1_headers_store/contract.cairo diff --git a/src/L1_headers_store/interface.cairo b/starknet/src/L1_headers_store/interface.cairo similarity index 100% rename from src/L1_headers_store/interface.cairo rename to starknet/src/L1_headers_store/interface.cairo diff --git a/src/L1_messages_proxy/contract.cairo b/starknet/src/L1_messages_proxy/contract.cairo similarity index 100% rename from src/L1_messages_proxy/contract.cairo rename to starknet/src/L1_messages_proxy/contract.cairo diff --git a/src/L1_messages_proxy/interface.cairo b/starknet/src/L1_messages_proxy/interface.cairo similarity index 100% rename from src/L1_messages_proxy/interface.cairo rename to starknet/src/L1_messages_proxy/interface.cairo diff --git a/src/fact_registry/contract.cairo b/starknet/src/fact_registry/contract.cairo similarity index 100% rename from src/fact_registry/contract.cairo rename to starknet/src/fact_registry/contract.cairo diff --git a/src/fact_registry/interface.cairo b/starknet/src/fact_registry/interface.cairo similarity index 100% rename from src/fact_registry/interface.cairo rename to starknet/src/fact_registry/interface.cairo diff --git a/src/lib.cairo b/starknet/src/lib.cairo similarity index 100% rename from src/lib.cairo rename to starknet/src/lib.cairo diff --git a/src/library/array_utils.cairo b/starknet/src/library/array_utils.cairo similarity index 100% rename from src/library/array_utils.cairo rename to starknet/src/library/array_utils.cairo diff --git a/src/library/bitshift.cairo b/starknet/src/library/bitshift.cairo similarity index 100% rename from src/library/bitshift.cairo rename to starknet/src/library/bitshift.cairo diff --git a/src/library/keccak256.cairo b/starknet/src/library/keccak256.cairo similarity index 100% rename from src/library/keccak256.cairo rename to starknet/src/library/keccak256.cairo diff --git a/src/library/keccak_utils.cairo b/starknet/src/library/keccak_utils.cairo similarity index 100% rename from src/library/keccak_utils.cairo rename to starknet/src/library/keccak_utils.cairo diff --git a/src/library/math_utils.cairo b/starknet/src/library/math_utils.cairo similarity index 100% rename from src/library/math_utils.cairo rename to starknet/src/library/math_utils.cairo diff --git a/src/library/merkle_patricia_utils.cairo b/starknet/src/library/merkle_patricia_utils.cairo similarity index 100% rename from src/library/merkle_patricia_utils.cairo rename to starknet/src/library/merkle_patricia_utils.cairo diff --git a/src/library/rlp_utils.cairo b/starknet/src/library/rlp_utils.cairo similarity index 100% rename from src/library/rlp_utils.cairo rename to starknet/src/library/rlp_utils.cairo diff --git a/src/library/trie_proof.cairo b/starknet/src/library/trie_proof.cairo similarity index 100% rename from src/library/trie_proof.cairo rename to starknet/src/library/trie_proof.cairo diff --git a/src/library/words64_utils.cairo b/starknet/src/library/words64_utils.cairo similarity index 100% rename from src/library/words64_utils.cairo rename to starknet/src/library/words64_utils.cairo diff --git a/src/types.cairo b/starknet/src/types.cairo similarity index 100% rename from src/types.cairo rename to starknet/src/types.cairo