refactor(archive): move historical contracts and adapters to archive directory
- Archived multiple non-EVM adapters (Algorand, Hedera, Tron, TON, Cosmos, Solana) and compliance contracts (IndyVerifier) to `archive/solidity/contracts/`. - Updated documentation to reflect the historical status of archived components. - Adjusted `foundry.toml` and `README.md` for clarity on historical dependencies and configurations. - Enhanced Makefile and package.json scripts for improved contract testing and building processes. - Removed obsolete contracts (AlltraCustomBridge, CommodityCCIPBridge, ISO4217WCCIPBridge, VaultBridgeAdapter) from the main directory. - Updated implementation reports to indicate archived status for various components.
This commit is contained in:
45
scripts/lib/forge-scope.sh
Normal file
45
scripts/lib/forge-scope.sh
Normal file
@@ -0,0 +1,45 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [[ -n "${FORGE_SCOPE_HELPER_LOADED:-}" ]]; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
FORGE_SCOPE_HELPER_LOADED=1
|
||||
|
||||
forge_scope_repo_root() {
|
||||
local helper_dir
|
||||
helper_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
if [[ -n "${PROJECT_ROOT:-}" ]]; then
|
||||
printf '%s\n' "$PROJECT_ROOT"
|
||||
return 0
|
||||
fi
|
||||
|
||||
if [[ -n "${REPO_ROOT:-}" ]]; then
|
||||
printf '%s\n' "$REPO_ROOT"
|
||||
return 0
|
||||
fi
|
||||
|
||||
printf '%s\n' "$(cd "$helper_dir/../.." && pwd)"
|
||||
}
|
||||
|
||||
forge_scoped() {
|
||||
local root
|
||||
root="$(forge_scope_repo_root)"
|
||||
bash "$root/scripts/forge/scope.sh" "$@"
|
||||
}
|
||||
|
||||
forge() {
|
||||
if [[ $# -gt 0 ]]; then
|
||||
case "$1" in
|
||||
build|test|script)
|
||||
local subcommand="$1"
|
||||
shift
|
||||
forge_scoped "$subcommand" "$@"
|
||||
return $?
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
command forge "$@"
|
||||
}
|
||||
Reference in New Issue
Block a user