@albert-mr/genlayer-mcp-server
Version:
MCP server for generating GenLayer Intelligent Contracts with AI-native blockchain capabilities
590 lines • 23.7 kB
TypeScript
import { z } from 'zod';
export declare const GenerateIntelligentContractSchema: z.ZodObject<{
contract_name: z.ZodString;
requirements: z.ZodString;
use_llm: z.ZodDefault<z.ZodBoolean>;
web_access: z.ZodDefault<z.ZodBoolean>;
storage_fields: z.ZodDefault<z.ZodArray<z.ZodObject<{
name: z.ZodString;
type: z.ZodEnum<{
string: "string";
boolean: "boolean";
integer: "integer";
address: "address";
list: "list";
dict: "dict";
float: "float";
bytes: "bytes";
}>;
description: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>>;
template_type: z.ZodDefault<z.ZodString>;
}, z.core.$strip>;
export declare const GenerateContractTemplateSchema: z.ZodObject<{
template_type: z.ZodEnum<{
dao_governance: "dao_governance";
content_moderation: "content_moderation";
sentiment_tracker: "sentiment_tracker";
multi_oracle: "multi_oracle";
}>;
contract_name: z.ZodString;
custom_parameters: z.ZodDefault<z.ZodObject<{
voting_threshold: z.ZodOptional<z.ZodNumber>;
moderation_strictness: z.ZodOptional<z.ZodEnum<{
lenient: "lenient";
moderate: "moderate";
strict: "strict";
}>>;
sentiment_categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
data_sources: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strip>>;
}, z.core.$strip>;
export declare const CreatePredictionMarketSchema: z.ZodObject<{
market_name: z.ZodString;
description: z.ZodString;
resolution_criteria: z.ZodString;
web_sources: z.ZodArray<z.ZodString>;
resolution_deadline: z.ZodDefault<z.ZodString>;
category: z.ZodDefault<z.ZodEnum<{
crypto: "crypto";
sports: "sports";
politics: "politics";
technology: "technology";
finance: "finance";
weather: "weather";
entertainment: "entertainment";
other: "other";
}>>;
}, z.core.$strip>;
export declare const CreateVectorStoreSchema: z.ZodObject<{
store_name: z.ZodString;
description: z.ZodString;
metadata_fields: z.ZodDefault<z.ZodArray<z.ZodObject<{
name: z.ZodString;
type: z.ZodString;
}, z.core.$strip>>>;
}, z.core.$strip>;
export declare const AddEquivalencePrincipleSchema: z.ZodObject<{
contract_code: z.ZodString;
method_name: z.ZodString;
validation_type: z.ZodEnum<{
comparative: "comparative";
non_comparative: "non_comparative";
}>;
tolerance: z.ZodOptional<z.ZodNumber>;
}, z.core.$strip>;
export declare const AddWebDataAccessSchema: z.ZodObject<{
contract_code: z.ZodString;
url_template: z.ZodString;
data_processing_logic: z.ZodString;
}, z.core.$strip>;
export declare const ExplainGenLayerConceptsSchema: z.ZodObject<{
concept: z.ZodEnum<{
equivalence_principle: "equivalence_principle";
optimistic_democracy: "optimistic_democracy";
llm_integration: "llm_integration";
web_data_access: "web_data_access";
vector_stores: "vector_stores";
intelligent_contracts: "intelligent_contracts";
genvm: "genvm";
genlayer_types: "genlayer_types";
best_practices: "best_practices";
consensus_mechanisms: "consensus_mechanisms";
}>;
detail_level: z.ZodDefault<z.ZodEnum<{
basic: "basic";
intermediate: "intermediate";
advanced: "advanced";
}>>;
include_examples: z.ZodDefault<z.ZodBoolean>;
}, z.core.$strip>;
export declare const ExplainGenLayerTypesSchema: z.ZodObject<{
type_category: z.ZodEnum<{
primitive_types: "primitive_types";
collection_types: "collection_types";
custom_types: "custom_types";
storage_restrictions: "storage_restrictions";
type_conversions: "type_conversions";
all_types: "all_types";
calldata_types: "calldata_types";
}>;
include_examples: z.ZodDefault<z.ZodBoolean>;
include_comparisons: z.ZodDefault<z.ZodBoolean>;
}, z.core.$strip>;
export declare const ExplainStoragePatternsSchema: z.ZodObject<{
storage_topic: z.ZodEnum<{
storage_basics: "storage_basics";
dynarray_usage: "dynarray_usage";
treemap_usage: "treemap_usage";
storage_optimization: "storage_optimization";
storage_best_practices: "storage_best_practices";
custom_storage_types: "custom_storage_types";
storage_patterns: "storage_patterns";
}>;
include_examples: z.ZodDefault<z.ZodBoolean>;
complexity_level: z.ZodDefault<z.ZodEnum<{
intermediate: "intermediate";
advanced: "advanced";
beginner: "beginner";
}>>;
}, z.core.$strip>;
export declare const GenerateDeploymentScriptSchema: z.ZodObject<{
script_type: z.ZodEnum<{
typescript: "typescript";
python: "python";
cli_command: "cli_command";
deploy_config: "deploy_config";
}>;
contract_path: z.ZodString;
network_target: z.ZodDefault<z.ZodEnum<{
localnet: "localnet";
studionet: "studionet";
testnet_asimov: "testnet_asimov";
all_networks: "all_networks";
}>>;
constructor_args: z.ZodDefault<z.ZodArray<z.ZodObject<{
name: z.ZodString;
type: z.ZodString;
value: z.ZodString;
description: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>>;
deployment_options: z.ZodOptional<z.ZodObject<{
gas_limit: z.ZodDefault<z.ZodNumber>;
wait_for_confirmation: z.ZodDefault<z.ZodBoolean>;
verify_deployment: z.ZodDefault<z.ZodBoolean>;
}, z.core.$strip>>;
}, z.core.$strip>;
export declare const GenerateDebuggingGuideSchema: z.ZodObject<{
debug_topic: z.ZodEnum<{
contract_debugging: "contract_debugging";
transaction_debugging: "transaction_debugging";
consensus_debugging: "consensus_debugging";
studio_debugging: "studio_debugging";
cli_debugging: "cli_debugging";
testing_strategies: "testing_strategies";
llm_debugging: "llm_debugging";
web_access_debugging: "web_access_debugging";
}>;
include_code_examples: z.ZodDefault<z.ZodBoolean>;
include_troubleshooting: z.ZodDefault<z.ZodBoolean>;
}, z.core.$strip>;
export declare const GenerateGenLayerJSIntegrationSchema: z.ZodObject<{
integration_type: z.ZodEnum<{
basic_setup: "basic_setup";
contract_interaction: "contract_interaction";
transaction_monitoring: "transaction_monitoring";
event_subscription: "event_subscription";
error_handling: "error_handling";
complete_example: "complete_example";
account_management: "account_management";
}>;
framework: z.ZodDefault<z.ZodEnum<{
react: "react";
vue: "vue";
angular: "angular";
vanilla: "vanilla";
nextjs: "nextjs";
}>>;
contract_methods: z.ZodDefault<z.ZodArray<z.ZodObject<{
name: z.ZodString;
type: z.ZodEnum<{
view: "view";
write: "write";
}>;
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
name: z.ZodString;
type: z.ZodString;
}, z.core.$strip>>>;
returns: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>>;
network_config: z.ZodOptional<z.ZodObject<{
rpc_url: z.ZodDefault<z.ZodString>;
chain_id: z.ZodDefault<z.ZodNumber>;
network_name: z.ZodDefault<z.ZodString>;
}, z.core.$strip>>;
}, z.core.$strip>;
export declare const GenerateContractInteractionExamplesSchema: z.ZodObject<{
interaction_method: z.ZodEnum<{
genlayerjs_read: "genlayerjs_read";
genlayerjs_write: "genlayerjs_write";
python_sdk_read: "python_sdk_read";
python_sdk_write: "python_sdk_write";
cli_interaction: "cli_interaction";
all_methods: "all_methods";
}>;
contract_type: z.ZodDefault<z.ZodEnum<{
dao_governance: "dao_governance";
simple_storage: "simple_storage";
prediction_market: "prediction_market";
vector_store: "vector_store";
llm_contract: "llm_contract";
custom_contract: "custom_contract";
}>>;
example_operations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
error_handling: "error_handling";
read_state: "read_state";
write_state: "write_state";
call_llm_method: "call_llm_method";
handle_events: "handle_events";
batch_operations: "batch_operations";
gas_optimization: "gas_optimization";
}>>>;
include_error_handling: z.ZodDefault<z.ZodBoolean>;
}, z.core.$strip>;
export declare const GenerateTestingFrameworkSchema: z.ZodObject<{
test_framework: z.ZodDefault<z.ZodEnum<{
pytest: "pytest";
jest: "jest";
hardhat_style: "hardhat_style";
custom: "custom";
}>>;
test_types: z.ZodDefault<z.ZodArray<z.ZodEnum<{
unit_tests: "unit_tests";
integration_tests: "integration_tests";
consensus_tests: "consensus_tests";
llm_behavior_tests: "llm_behavior_tests";
web_access_tests: "web_access_tests";
performance_tests: "performance_tests";
security_tests: "security_tests";
}>>>;
contract_features: z.ZodDefault<z.ZodArray<z.ZodEnum<{
llm_integration: "llm_integration";
web_data_access: "web_data_access";
consensus_mechanisms: "consensus_mechanisms";
basic_operations: "basic_operations";
storage_operations: "storage_operations";
event_emission: "event_emission";
access_control: "access_control";
}>>>;
mock_external_services: z.ZodDefault<z.ZodBoolean>;
}, z.core.$strip>;
export declare const GenerateProjectBoilerplateSchema: z.ZodObject<{
project_name: z.ZodString;
project_type: z.ZodDefault<z.ZodEnum<{
prediction_market: "prediction_market";
basic_contract: "basic_contract";
dao_project: "dao_project";
ai_oracle: "ai_oracle";
defi_protocol: "defi_protocol";
social_platform: "social_platform";
full_dapp: "full_dapp";
}>>;
include_frontend: z.ZodDefault<z.ZodBoolean>;
frontend_framework: z.ZodDefault<z.ZodEnum<{
react: "react";
vue: "vue";
vanilla: "vanilla";
nextjs: "nextjs";
}>>;
include_tests: z.ZodDefault<z.ZodBoolean>;
include_deployment: z.ZodDefault<z.ZodBoolean>;
package_manager: z.ZodDefault<z.ZodEnum<{
npm: "npm";
yarn: "yarn";
pnpm: "pnpm";
}>>;
}, z.core.$strip>;
export type GenerateIntelligentContractParams = z.infer<typeof GenerateIntelligentContractSchema>;
export type GenerateContractTemplateParams = z.infer<typeof GenerateContractTemplateSchema>;
export type CreatePredictionMarketParams = z.infer<typeof CreatePredictionMarketSchema>;
export type CreateVectorStoreParams = z.infer<typeof CreateVectorStoreSchema>;
export type AddEquivalencePrincipleParams = z.infer<typeof AddEquivalencePrincipleSchema>;
export type AddWebDataAccessParams = z.infer<typeof AddWebDataAccessSchema>;
export type ExplainGenLayerConceptsParams = z.infer<typeof ExplainGenLayerConceptsSchema>;
export type ExplainGenLayerTypesParams = z.infer<typeof ExplainGenLayerTypesSchema>;
export type ExplainStoragePatternsParams = z.infer<typeof ExplainStoragePatternsSchema>;
export type GenerateDeploymentScriptParams = z.infer<typeof GenerateDeploymentScriptSchema>;
export type GenerateDebuggingGuideParams = z.infer<typeof GenerateDebuggingGuideSchema>;
export type GenerateGenLayerJSIntegrationParams = z.infer<typeof GenerateGenLayerJSIntegrationSchema>;
export type GenerateContractInteractionExamplesParams = z.infer<typeof GenerateContractInteractionExamplesSchema>;
export type GenerateTestingFrameworkParams = z.infer<typeof GenerateTestingFrameworkSchema>;
export type GenerateProjectBoilerplateParams = z.infer<typeof GenerateProjectBoilerplateSchema>;
export declare const toolSchemas: {
readonly generate_intelligent_contract: z.ZodObject<{
contract_name: z.ZodString;
requirements: z.ZodString;
use_llm: z.ZodDefault<z.ZodBoolean>;
web_access: z.ZodDefault<z.ZodBoolean>;
storage_fields: z.ZodDefault<z.ZodArray<z.ZodObject<{
name: z.ZodString;
type: z.ZodEnum<{
string: "string";
boolean: "boolean";
integer: "integer";
address: "address";
list: "list";
dict: "dict";
float: "float";
bytes: "bytes";
}>;
description: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>>;
template_type: z.ZodDefault<z.ZodString>;
}, z.core.$strip>;
readonly generate_contract_template: z.ZodObject<{
template_type: z.ZodEnum<{
dao_governance: "dao_governance";
content_moderation: "content_moderation";
sentiment_tracker: "sentiment_tracker";
multi_oracle: "multi_oracle";
}>;
contract_name: z.ZodString;
custom_parameters: z.ZodDefault<z.ZodObject<{
voting_threshold: z.ZodOptional<z.ZodNumber>;
moderation_strictness: z.ZodOptional<z.ZodEnum<{
lenient: "lenient";
moderate: "moderate";
strict: "strict";
}>>;
sentiment_categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
data_sources: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strip>>;
}, z.core.$strip>;
readonly create_prediction_market: z.ZodObject<{
market_name: z.ZodString;
description: z.ZodString;
resolution_criteria: z.ZodString;
web_sources: z.ZodArray<z.ZodString>;
resolution_deadline: z.ZodDefault<z.ZodString>;
category: z.ZodDefault<z.ZodEnum<{
crypto: "crypto";
sports: "sports";
politics: "politics";
technology: "technology";
finance: "finance";
weather: "weather";
entertainment: "entertainment";
other: "other";
}>>;
}, z.core.$strip>;
readonly create_vector_store: z.ZodObject<{
store_name: z.ZodString;
description: z.ZodString;
metadata_fields: z.ZodDefault<z.ZodArray<z.ZodObject<{
name: z.ZodString;
type: z.ZodString;
}, z.core.$strip>>>;
}, z.core.$strip>;
readonly add_equivalence_principle: z.ZodObject<{
contract_code: z.ZodString;
method_name: z.ZodString;
validation_type: z.ZodEnum<{
comparative: "comparative";
non_comparative: "non_comparative";
}>;
tolerance: z.ZodOptional<z.ZodNumber>;
}, z.core.$strip>;
readonly add_web_data_access: z.ZodObject<{
contract_code: z.ZodString;
url_template: z.ZodString;
data_processing_logic: z.ZodString;
}, z.core.$strip>;
readonly explain_genlayer_concepts: z.ZodObject<{
concept: z.ZodEnum<{
equivalence_principle: "equivalence_principle";
optimistic_democracy: "optimistic_democracy";
llm_integration: "llm_integration";
web_data_access: "web_data_access";
vector_stores: "vector_stores";
intelligent_contracts: "intelligent_contracts";
genvm: "genvm";
genlayer_types: "genlayer_types";
best_practices: "best_practices";
consensus_mechanisms: "consensus_mechanisms";
}>;
detail_level: z.ZodDefault<z.ZodEnum<{
basic: "basic";
intermediate: "intermediate";
advanced: "advanced";
}>>;
include_examples: z.ZodDefault<z.ZodBoolean>;
}, z.core.$strip>;
readonly explain_genlayer_types: z.ZodObject<{
type_category: z.ZodEnum<{
primitive_types: "primitive_types";
collection_types: "collection_types";
custom_types: "custom_types";
storage_restrictions: "storage_restrictions";
type_conversions: "type_conversions";
all_types: "all_types";
calldata_types: "calldata_types";
}>;
include_examples: z.ZodDefault<z.ZodBoolean>;
include_comparisons: z.ZodDefault<z.ZodBoolean>;
}, z.core.$strip>;
readonly explain_storage_patterns: z.ZodObject<{
storage_topic: z.ZodEnum<{
storage_basics: "storage_basics";
dynarray_usage: "dynarray_usage";
treemap_usage: "treemap_usage";
storage_optimization: "storage_optimization";
storage_best_practices: "storage_best_practices";
custom_storage_types: "custom_storage_types";
storage_patterns: "storage_patterns";
}>;
include_examples: z.ZodDefault<z.ZodBoolean>;
complexity_level: z.ZodDefault<z.ZodEnum<{
intermediate: "intermediate";
advanced: "advanced";
beginner: "beginner";
}>>;
}, z.core.$strip>;
readonly generate_deployment_script: z.ZodObject<{
script_type: z.ZodEnum<{
typescript: "typescript";
python: "python";
cli_command: "cli_command";
deploy_config: "deploy_config";
}>;
contract_path: z.ZodString;
network_target: z.ZodDefault<z.ZodEnum<{
localnet: "localnet";
studionet: "studionet";
testnet_asimov: "testnet_asimov";
all_networks: "all_networks";
}>>;
constructor_args: z.ZodDefault<z.ZodArray<z.ZodObject<{
name: z.ZodString;
type: z.ZodString;
value: z.ZodString;
description: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>>;
deployment_options: z.ZodOptional<z.ZodObject<{
gas_limit: z.ZodDefault<z.ZodNumber>;
wait_for_confirmation: z.ZodDefault<z.ZodBoolean>;
verify_deployment: z.ZodDefault<z.ZodBoolean>;
}, z.core.$strip>>;
}, z.core.$strip>;
readonly generate_debugging_guide: z.ZodObject<{
debug_topic: z.ZodEnum<{
contract_debugging: "contract_debugging";
transaction_debugging: "transaction_debugging";
consensus_debugging: "consensus_debugging";
studio_debugging: "studio_debugging";
cli_debugging: "cli_debugging";
testing_strategies: "testing_strategies";
llm_debugging: "llm_debugging";
web_access_debugging: "web_access_debugging";
}>;
include_code_examples: z.ZodDefault<z.ZodBoolean>;
include_troubleshooting: z.ZodDefault<z.ZodBoolean>;
}, z.core.$strip>;
readonly generate_genlayerjs_integration: z.ZodObject<{
integration_type: z.ZodEnum<{
basic_setup: "basic_setup";
contract_interaction: "contract_interaction";
transaction_monitoring: "transaction_monitoring";
event_subscription: "event_subscription";
error_handling: "error_handling";
complete_example: "complete_example";
account_management: "account_management";
}>;
framework: z.ZodDefault<z.ZodEnum<{
react: "react";
vue: "vue";
angular: "angular";
vanilla: "vanilla";
nextjs: "nextjs";
}>>;
contract_methods: z.ZodDefault<z.ZodArray<z.ZodObject<{
name: z.ZodString;
type: z.ZodEnum<{
view: "view";
write: "write";
}>;
parameters: z.ZodDefault<z.ZodArray<z.ZodObject<{
name: z.ZodString;
type: z.ZodString;
}, z.core.$strip>>>;
returns: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>>;
network_config: z.ZodOptional<z.ZodObject<{
rpc_url: z.ZodDefault<z.ZodString>;
chain_id: z.ZodDefault<z.ZodNumber>;
network_name: z.ZodDefault<z.ZodString>;
}, z.core.$strip>>;
}, z.core.$strip>;
readonly generate_contract_interaction_examples: z.ZodObject<{
interaction_method: z.ZodEnum<{
genlayerjs_read: "genlayerjs_read";
genlayerjs_write: "genlayerjs_write";
python_sdk_read: "python_sdk_read";
python_sdk_write: "python_sdk_write";
cli_interaction: "cli_interaction";
all_methods: "all_methods";
}>;
contract_type: z.ZodDefault<z.ZodEnum<{
dao_governance: "dao_governance";
simple_storage: "simple_storage";
prediction_market: "prediction_market";
vector_store: "vector_store";
llm_contract: "llm_contract";
custom_contract: "custom_contract";
}>>;
example_operations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
error_handling: "error_handling";
read_state: "read_state";
write_state: "write_state";
call_llm_method: "call_llm_method";
handle_events: "handle_events";
batch_operations: "batch_operations";
gas_optimization: "gas_optimization";
}>>>;
include_error_handling: z.ZodDefault<z.ZodBoolean>;
}, z.core.$strip>;
readonly generate_testing_framework: z.ZodObject<{
test_framework: z.ZodDefault<z.ZodEnum<{
pytest: "pytest";
jest: "jest";
hardhat_style: "hardhat_style";
custom: "custom";
}>>;
test_types: z.ZodDefault<z.ZodArray<z.ZodEnum<{
unit_tests: "unit_tests";
integration_tests: "integration_tests";
consensus_tests: "consensus_tests";
llm_behavior_tests: "llm_behavior_tests";
web_access_tests: "web_access_tests";
performance_tests: "performance_tests";
security_tests: "security_tests";
}>>>;
contract_features: z.ZodDefault<z.ZodArray<z.ZodEnum<{
llm_integration: "llm_integration";
web_data_access: "web_data_access";
consensus_mechanisms: "consensus_mechanisms";
basic_operations: "basic_operations";
storage_operations: "storage_operations";
event_emission: "event_emission";
access_control: "access_control";
}>>>;
mock_external_services: z.ZodDefault<z.ZodBoolean>;
}, z.core.$strip>;
readonly generate_project_boilerplate: z.ZodObject<{
project_name: z.ZodString;
project_type: z.ZodDefault<z.ZodEnum<{
prediction_market: "prediction_market";
basic_contract: "basic_contract";
dao_project: "dao_project";
ai_oracle: "ai_oracle";
defi_protocol: "defi_protocol";
social_platform: "social_platform";
full_dapp: "full_dapp";
}>>;
include_frontend: z.ZodDefault<z.ZodBoolean>;
frontend_framework: z.ZodDefault<z.ZodEnum<{
react: "react";
vue: "vue";
vanilla: "vanilla";
nextjs: "nextjs";
}>>;
include_tests: z.ZodDefault<z.ZodBoolean>;
include_deployment: z.ZodDefault<z.ZodBoolean>;
package_manager: z.ZodDefault<z.ZodEnum<{
npm: "npm";
yarn: "yarn";
pnpm: "pnpm";
}>>;
}, z.core.$strip>;
};
export type ToolName = keyof typeof toolSchemas;
//# sourceMappingURL=schemas.d.ts.map