diff --git a/scripts/generate-chainId.js b/scripts/generate-chainId.js deleted file mode 100644 index b164e481..00000000 --- a/scripts/generate-chainId.js +++ /dev/null @@ -1,7 +0,0 @@ -// Use to convert chainId from decimal to hex -function formatChainID(chainId) { - const hexString = (chainId >>> 0).toString(16); // Convert to hexadecimal and treat as unsigned - return hexString.padStart(4, '0'); // Pad with leading zeros to a length of 4 characters -} - -exports = module.exports = formatChainID; diff --git a/scripts/generate-crossChain.sh b/scripts/generate-crossChain.sh deleted file mode 100644 index c700d321..00000000 --- a/scripts/generate-crossChain.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env bash - -# Default values -OUTPUT="./contracts/CrossChain.sol" -HEX_CHAIN_ID="0060" -INIT_BATCH_SIZE_FOR_ORACLE="50" - -# Parse command line arguments -while [[ "$#" -gt 0 ]]; do - case $1 in - --hexChainId) - HEX_CHAIN_ID="$2" - shift - ;; - --initBatchSizeForOracle) - INIT_BATCH_SIZE_FOR_ORACLE="$2" - shift - ;; - *) - echo "Unknown parameter passed: $1" - exit 1 - ;; - esac - shift -done - -# Replace the specific line -sed -i -e "s/uint256 constant public CROSS_CHAIN_KEY_PREFIX = .*;/uint256 constant public CROSS_CHAIN_KEY_PREFIX = 0x01${HEX_CHAIN_ID}00;/g" "$OUTPUT" -sed -i -e "s/uint256 constant public INIT_BATCH_SIZE = .*;/uint256 constant public INIT_BATCH_SIZE = ${INIT_BATCH_SIZE_FOR_ORACLE};/g" "$OUTPUT" - -echo "CrossChain file updated." diff --git a/scripts/generate-initHolders.js b/scripts/generate-initHolders.js deleted file mode 100644 index 137165d7..00000000 --- a/scripts/generate-initHolders.js +++ /dev/null @@ -1,29 +0,0 @@ -const program = require('commander'); -const fs = require('fs'); -const nunjucks = require('nunjucks'); - -nunjucks.configure('views', { autoescape: true }); - -program.version('0.0.1'); -program.option( - '-t, --template