From a8661711f845965c53b183d166f4b705f44f6d7d Mon Sep 17 00:00:00 2001 From: Renato Dinhani Date: Tue, 6 Aug 2024 11:41:52 -0300 Subject: [PATCH] refactor: rename contracts directory to contracts-signatures --- build.rs | 2 +- e2e/cloudwalk-contracts/contracts-compile.sh | 2 +- static/{contracts => contracts-signatures}/BRLCToken.signatures | 0 .../BalanceTracker.signatures | 0 .../CapybaraFinance_CreditLine.signatures | 0 .../CapybaraFinance_LendingMarket.signatures | 0 .../CapybaraFinance_LiquidityPool.signatures | 0 .../CardPaymentProcessor.signatures | 0 .../CardPaymentProcessorv2.signatures | 0 .../CashbackDistributor.signatures | 0 .../CompoundAgent.signatures | 0 .../CompoundComptroller.signatures | 0 .../CompoundMarket.signatures | 0 .../MultiSigWallet.signatures | 0 .../{contracts => contracts-signatures}/PixCashier.signatures | 0 .../{contracts => contracts-signatures}/PixCashierv3.signatures | 0 .../{contracts => contracts-signatures}/PixCashierv4.signatures | 0 .../PixCashierv4_Root.signatures | 0 .../PixCashierv4_Shard.signatures | 0 .../TokenDistributor.signatures | 0 .../{contracts => contracts-signatures}/USJimToken.signatures | 0 .../YieldStreamer.signatures | 0 22 files changed, 2 insertions(+), 2 deletions(-) rename static/{contracts => contracts-signatures}/BRLCToken.signatures (100%) rename static/{contracts => contracts-signatures}/BalanceTracker.signatures (100%) rename static/{contracts => contracts-signatures}/CapybaraFinance_CreditLine.signatures (100%) rename static/{contracts => contracts-signatures}/CapybaraFinance_LendingMarket.signatures (100%) rename static/{contracts => contracts-signatures}/CapybaraFinance_LiquidityPool.signatures (100%) rename static/{contracts => contracts-signatures}/CardPaymentProcessor.signatures (100%) rename static/{contracts => contracts-signatures}/CardPaymentProcessorv2.signatures (100%) rename static/{contracts => contracts-signatures}/CashbackDistributor.signatures (100%) rename static/{contracts => contracts-signatures}/CompoundAgent.signatures (100%) rename static/{contracts => contracts-signatures}/CompoundComptroller.signatures (100%) rename static/{contracts => contracts-signatures}/CompoundMarket.signatures (100%) rename static/{contracts => contracts-signatures}/MultiSigWallet.signatures (100%) rename static/{contracts => contracts-signatures}/PixCashier.signatures (100%) rename static/{contracts => contracts-signatures}/PixCashierv3.signatures (100%) rename static/{contracts => contracts-signatures}/PixCashierv4.signatures (100%) rename static/{contracts => contracts-signatures}/PixCashierv4_Root.signatures (100%) rename static/{contracts => contracts-signatures}/PixCashierv4_Shard.signatures (100%) rename static/{contracts => contracts-signatures}/TokenDistributor.signatures (100%) rename static/{contracts => contracts-signatures}/USJimToken.signatures (100%) rename static/{contracts => contracts-signatures}/YieldStreamer.signatures (100%) diff --git a/build.rs b/build.rs index 55e86c830..718e9f496 100644 --- a/build.rs +++ b/build.rs @@ -152,7 +152,7 @@ fn generate_signatures_structs() { /// Generates the `signatures.rs` file containing a static PHF map with Solidity hashes and their description. fn generate_signature_module_content() -> String { - let signature_files = list_files("static/contracts/*.signatures"); + let signature_files = list_files("static/contracts-signatures/*.signatures"); let mut seen = HashSet::::new(); let mut signatures_4_bytes = phf_codegen::Map::<[u8; 4]>::new(); diff --git a/e2e/cloudwalk-contracts/contracts-compile.sh b/e2e/cloudwalk-contracts/contracts-compile.sh index 620943ec3..82bf880f1 100755 --- a/e2e/cloudwalk-contracts/contracts-compile.sh +++ b/e2e/cloudwalk-contracts/contracts-compile.sh @@ -18,7 +18,7 @@ compile_contract() { solc --base-path repos/$repo/contracts --include-path repos/$repo/node_modules --hashes --optimize -o repos/$repo/target --overwrite repos/$repo/contracts/$contract.sol # copy from target folder to tests - cp repos/$repo/target/$contract.signatures ../../static/contracts/ + cp repos/$repo/target/$contract.signatures ../../static/contracts-signatures/ } # ------------------------------------------------------------------------------ diff --git a/static/contracts/BRLCToken.signatures b/static/contracts-signatures/BRLCToken.signatures similarity index 100% rename from static/contracts/BRLCToken.signatures rename to static/contracts-signatures/BRLCToken.signatures diff --git a/static/contracts/BalanceTracker.signatures b/static/contracts-signatures/BalanceTracker.signatures similarity index 100% rename from static/contracts/BalanceTracker.signatures rename to static/contracts-signatures/BalanceTracker.signatures diff --git a/static/contracts/CapybaraFinance_CreditLine.signatures b/static/contracts-signatures/CapybaraFinance_CreditLine.signatures similarity index 100% rename from static/contracts/CapybaraFinance_CreditLine.signatures rename to static/contracts-signatures/CapybaraFinance_CreditLine.signatures diff --git a/static/contracts/CapybaraFinance_LendingMarket.signatures b/static/contracts-signatures/CapybaraFinance_LendingMarket.signatures similarity index 100% rename from static/contracts/CapybaraFinance_LendingMarket.signatures rename to static/contracts-signatures/CapybaraFinance_LendingMarket.signatures diff --git a/static/contracts/CapybaraFinance_LiquidityPool.signatures b/static/contracts-signatures/CapybaraFinance_LiquidityPool.signatures similarity index 100% rename from static/contracts/CapybaraFinance_LiquidityPool.signatures rename to static/contracts-signatures/CapybaraFinance_LiquidityPool.signatures diff --git a/static/contracts/CardPaymentProcessor.signatures b/static/contracts-signatures/CardPaymentProcessor.signatures similarity index 100% rename from static/contracts/CardPaymentProcessor.signatures rename to static/contracts-signatures/CardPaymentProcessor.signatures diff --git a/static/contracts/CardPaymentProcessorv2.signatures b/static/contracts-signatures/CardPaymentProcessorv2.signatures similarity index 100% rename from static/contracts/CardPaymentProcessorv2.signatures rename to static/contracts-signatures/CardPaymentProcessorv2.signatures diff --git a/static/contracts/CashbackDistributor.signatures b/static/contracts-signatures/CashbackDistributor.signatures similarity index 100% rename from static/contracts/CashbackDistributor.signatures rename to static/contracts-signatures/CashbackDistributor.signatures diff --git a/static/contracts/CompoundAgent.signatures b/static/contracts-signatures/CompoundAgent.signatures similarity index 100% rename from static/contracts/CompoundAgent.signatures rename to static/contracts-signatures/CompoundAgent.signatures diff --git a/static/contracts/CompoundComptroller.signatures b/static/contracts-signatures/CompoundComptroller.signatures similarity index 100% rename from static/contracts/CompoundComptroller.signatures rename to static/contracts-signatures/CompoundComptroller.signatures diff --git a/static/contracts/CompoundMarket.signatures b/static/contracts-signatures/CompoundMarket.signatures similarity index 100% rename from static/contracts/CompoundMarket.signatures rename to static/contracts-signatures/CompoundMarket.signatures diff --git a/static/contracts/MultiSigWallet.signatures b/static/contracts-signatures/MultiSigWallet.signatures similarity index 100% rename from static/contracts/MultiSigWallet.signatures rename to static/contracts-signatures/MultiSigWallet.signatures diff --git a/static/contracts/PixCashier.signatures b/static/contracts-signatures/PixCashier.signatures similarity index 100% rename from static/contracts/PixCashier.signatures rename to static/contracts-signatures/PixCashier.signatures diff --git a/static/contracts/PixCashierv3.signatures b/static/contracts-signatures/PixCashierv3.signatures similarity index 100% rename from static/contracts/PixCashierv3.signatures rename to static/contracts-signatures/PixCashierv3.signatures diff --git a/static/contracts/PixCashierv4.signatures b/static/contracts-signatures/PixCashierv4.signatures similarity index 100% rename from static/contracts/PixCashierv4.signatures rename to static/contracts-signatures/PixCashierv4.signatures diff --git a/static/contracts/PixCashierv4_Root.signatures b/static/contracts-signatures/PixCashierv4_Root.signatures similarity index 100% rename from static/contracts/PixCashierv4_Root.signatures rename to static/contracts-signatures/PixCashierv4_Root.signatures diff --git a/static/contracts/PixCashierv4_Shard.signatures b/static/contracts-signatures/PixCashierv4_Shard.signatures similarity index 100% rename from static/contracts/PixCashierv4_Shard.signatures rename to static/contracts-signatures/PixCashierv4_Shard.signatures diff --git a/static/contracts/TokenDistributor.signatures b/static/contracts-signatures/TokenDistributor.signatures similarity index 100% rename from static/contracts/TokenDistributor.signatures rename to static/contracts-signatures/TokenDistributor.signatures diff --git a/static/contracts/USJimToken.signatures b/static/contracts-signatures/USJimToken.signatures similarity index 100% rename from static/contracts/USJimToken.signatures rename to static/contracts-signatures/USJimToken.signatures diff --git a/static/contracts/YieldStreamer.signatures b/static/contracts-signatures/YieldStreamer.signatures similarity index 100% rename from static/contracts/YieldStreamer.signatures rename to static/contracts-signatures/YieldStreamer.signatures