mirror of
https://github.com/luxfi/evm.git
synced 2026-09-24 00:27:44 +00:00
26 lines
692 B
Bash
Executable File
26 lines
692 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
# This script generates a Stateful Precompile stub based off of a Solidity ABI file.
|
|
<<<<<<< HEAD
|
|
# It first sets the necessary CGO_FLAGs for the BLST library used in Lux Node and
|
|
=======
|
|
# It first sets the necessary CGO_FLAGs for the BLST library used in Luxd and
|
|
>>>>>>> b36c20f (Update executable to luxd)
|
|
# then runs PrecompileGen.
|
|
if ! [[ "$0" =~ scripts/generate_precompile.sh ]]; then
|
|
echo "must be run from repository root, but got $0"
|
|
exit 255
|
|
fi
|
|
|
|
# Load the versions
|
|
SUBNET_EVM_PATH=$(
|
|
cd "$(dirname "${BASH_SOURCE[0]}")"
|
|
cd .. && pwd
|
|
)
|
|
|
|
# Load the constants
|
|
source "$SUBNET_EVM_PATH"/scripts/constants.sh
|
|
|
|
go run ./cmd/precompilegen/main.go $@
|