-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: database migrations and hardhat security
- Added migration for ghost_contract_address column in transactions table - Fixed security issues in hardhat docker configuration - Ensured proper migration sequence (0d9538be0318 -> cb34b6b353ed) Migration changes: - Added new column ghost_contract_address (String, nullable) to transactions table - Provided proper upgrade and downgrade paths - Verified migration execution and current head state TODO: Frontend issues to fix: - Methods panel not opening after transaction acceptance - Need to investigate UI response after successful transactions
- Loading branch information
Showing
134 changed files
with
3,069 additions
and
2,809 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,77 +1,75 @@ | ||
# Location and credentials of the postgres database | ||
DBHOST = 'postgres' | ||
DBNAME = 'genlayer_state' | ||
DBUSER = 'postgres' | ||
DBPASSWORD = 'postgres' | ||
DBPORT = '5432' | ||
# Postgres Database Configuration | ||
DBHOST = 'postgres' | ||
DBNAME = 'genlayer_state' | ||
DBUSER = 'postgres' | ||
DBPASSWORD = 'postgres' | ||
DBPORT = '5432' | ||
|
||
# JSON array of initial validators to be created on startup. | ||
# Example: [{"stake": 100, "provider": "openai", "model": "gpt-4o", "amount": 2}, {"stake": 200, "provider": "anthropic", "model": "claude-3-haiku-20240307", "amount": 1}] | ||
VALIDATORS_CONFIG_JSON = '' | ||
|
||
LOGCONFIG = 'dev' # dev/prod | ||
FLASK_LOG_LEVEL = 'ERROR' # DEBUG/INFO/WARNING/ERROR/CRITICAL | ||
# Logging Configuration | ||
LOGCONFIG = 'dev' # dev/prod | ||
FLASK_LOG_LEVEL = 'ERROR' # DEBUG/INFO/WARNING/ERROR/CRITICAL | ||
DISABLE_INFO_LOGS_ENDPOINTS = '["ping", "eth_getTransactionByHash","gen_getContractSchemaForCode","gen_getContractSchema"]' | ||
|
||
# JsonRPC server details | ||
# JsonRPC Server Configuration | ||
RPCPROTOCOL = 'http' | ||
RPCHOST = 'jsonrpc' | ||
RPCPORT = '4000' | ||
# (the port debugpy is listening on) | ||
RPCDEBUGPORT = '4678' | ||
|
||
# GenVM server details | ||
GENVMPROTOCOL = 'http' | ||
GENVMHOST = 'genvm' | ||
GENVMPORT = '6000' | ||
# Location of file excuted inside the GenVM | ||
GENVMCONLOC = '/tmp' | ||
# TODO: Will be removed with the new logging | ||
GENVMDEBUG = 1 | ||
# (the port debugpy is listening on) | ||
GENVMDEBUGPORT = '6678' | ||
|
||
# (enables debuggin in VScode) | ||
VSCODEDEBUG = "false" # "true" or "false" | ||
|
||
# Ollama server details | ||
OLAMAPROTOCOL = 'http' | ||
OLAMAHOST = 'ollama' | ||
OLAMAPORT = '11434' | ||
RPCDEBUGPORT = '4678' # debugpy listening port | ||
JSONRPC_REPLICAS = '1' # number of JsonRPC container replicas to run, used to scale up for production | ||
|
||
# WebRequest server details | ||
# (container for getting web pages) | ||
WEBREQUESTPROTOCOL = 'http' | ||
WEBREQUESTHOST = 'webrequest' | ||
WEBREQUESTPORT = '5000' | ||
# GenVM Configuration | ||
GENVM_BIN = "/genvm/bin" | ||
|
||
# If you want to use OpenAI add your key here | ||
OPENAIKEY = '<add_your_openai_api_key_here>' | ||
# VSCode Debug Configuration | ||
VSCODEDEBUG = "false" # "true" or "false" | ||
|
||
# Heurist AI Details | ||
HEURISTAIURL = 'https://llm-gateway.heurist.xyz' | ||
HEURISTAIMODELSURL = 'https://raw.githubusercontent.com/heurist-network/heurist-models/main/models.json' | ||
# If you want to use Heurist AI add your key here | ||
HEURISTAIAPIKEY = '<add_your_heuristai_api_key_here>' | ||
# Ollama Server Configuration | ||
OLAMAPROTOCOL = 'http' | ||
OLAMAHOST = 'ollama' | ||
OLAMAPORT = '11434' | ||
|
||
# If you want to use Anthropic (Claude AI) add your key here and uncomment the line | ||
# ANTHROPIC_API_KEY = '<add_your_anthropic_api_key_here>' | ||
# WebRequest Server Configuration | ||
WEBREQUESTPROTOCOL = 'http' | ||
WEBREQUESTHOST = 'webrequest' | ||
WEBREQUESTPORT = '5000' | ||
WEBREQUESTSELENIUMPORT = '5001' | ||
|
||
# Front end container details | ||
VITE_JSON_RPC_SERVER_URL = 'http://127.0.0.1:4000/api' # if VITE_PROXY_ENABLED = 'true' change to '/api' | ||
VITE_WS_SERVER_URL = 'ws://127.0.0.1:4000' # if VITE_PROXY_ENABLED = 'true' change to '/' | ||
VITE_PLAUSIBLE_DOMAIN = 'studio.genlayer.com' | ||
VITE_IS_HOSTED=false | ||
# NGINX Server Configuration | ||
SERVER_NAME = 'studio.genlayer.com' | ||
|
||
FRONTEND_PORT = '8080' | ||
FRONTEND_BUILD_TARGET = 'final' # change to 'dev' to run in dev mode | ||
# Frontend Configuration | ||
# If you want to run the frontend in production, change http to https and ws to wss | ||
VITE_JSON_RPC_SERVER_URL = 'http://127.0.0.1:4000/api' # if VITE_PROXY_ENABLED = 'true' change to '/api' | ||
VITE_WS_SERVER_URL = 'ws://127.0.0.1:4000' # if VITE_PROXY_ENABLED = 'true' change to '/' | ||
VITE_PLAUSIBLE_DOMAIN = 'studio.genlayer.com' | ||
FRONTEND_PORT = '8080' | ||
FRONTEND_BUILD_TARGET = 'final' # change to 'dev' to run in dev mode | ||
|
||
VITE_PROXY_ENABLED = 'false' | ||
# Vite Proxy Configuration (for local development) | ||
VITE_PROXY_ENABLED = 'false' | ||
VITE_PROXY_JSON_RPC_SERVER_URL = 'http://jsonrpc:4000' | ||
VITE_PROXY_WS_SERVER_URL = 'ws://jsonrpc:4000' | ||
VITE_PROXY_WS_SERVER_URL = 'ws://jsonrpc:4000' | ||
VITE_IS_HOSTED = 'false' | ||
|
||
FRONTEND_BUILD_TARGET = 'final' # change to 'dev' to run in dev mode | ||
|
||
# Hardhat port | ||
HARDHAT_URL = 'http://hardhat' | ||
HARDHATPORT = '8545' | ||
HARDHAT_PRIVATE_KEY = '0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80' | ||
HARDHAT_PRIVATE_KEY = '0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80' | ||
# LLM Providers Configuration | ||
# If you want to use OpenAI LLMs, add your key here | ||
OPENAIKEY = '<add_your_openai_api_key_here>' | ||
|
||
# If you want to use Anthropic AI LLMs, add your key here | ||
ANTHROPIC_API_KEY = '<add_your_anthropic_api_key_here>' | ||
|
||
# If you want to use Heurist AI LLMs, add your key here | ||
HEURISTAIURL = 'https://llm-gateway.heurist.xyz' | ||
HEURISTAIMODELSURL = 'https://raw.githubusercontent.com/heurist-network/heurist-models/main/models.json' | ||
HEURISTAIAPIKEY = '<add_your_heuristai_api_key_here>' | ||
|
||
# Validator Configuration | ||
# JSON array of initial validators to be created on startup. | ||
# Example: VALIDATORS_CONFIG_JSON = '[{"stake": 100, "provider": "openai", "model": "gpt-4o", "amount": 2}, {"stake": 200, "provider": "anthropic", "model": "claude-3-haiku-20240307", "amount": 1}]' | ||
VALIDATORS_CONFIG_JSON = '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
text=auto eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.